/* ===============================
   Общие стили
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f4f4;
    color: #fff;
    margin: 0;
    padding: 0;
}

.contact-page {
    padding: 50px 20px;
    text-align: center;
}

.section {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

button.submit-btn {
    background-color: #39b54a;
    color: #fff;
    font-size: 18px;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.submit-btn:hover {
    background-color: #2a7f62;
}

/* ===============================
   Адаптивность
================================ */
@media (max-width: 768px) {
    .section {
        padding: 15px;
    }
    button.submit-btn {
        font-size: 16px;
    }
}


/* ===============================
   Фоны страниц с затемнением
================================ */
body.index-page,
body.home-page,
body.objects-page,
body.sell-page,
body.contact-page,
body.about-page {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 0;
}

body.index-page::before,
body.home-page::before,
body.objects-page::before,
body.sell-page::before,
body.contact-page::before,
body.about-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
    z-index: -1;
}

/* ===============================
   Конкретные фоновые изображения
================================ */
body.index-page { background-image: url('../img/index-bg.jpg?v=2'); }
body.home-page { background-image: url('../img/home-bg.jpg'); }
body.objects-page { background-image: url('../img/objects-bg.jpg'); }
body.sell-page { background-image: url('../img/sell-bg.jpg'); }
body.contact-page { background-image: url('../img/contact-bg.jpg'); }
body.about-page { background-image: url('../img/about-bg.jpg'); }

/* ===============================
   Header / Логотип и меню
================================ */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    flex-wrap: nowrap; 

    /* ===== Animation ===== */
    transform: translateY(-100%);
    opacity: 0;
    animation: slideDown 0.8s forwards ease-out;
}

.logo-text {
    font-size: 30px;
    font-weight: 900;
    color: #2a7f62;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    white-space: nowrap; 
}

header nav ul {
    display: flex;
    gap: 25px;
    margin-left: auto;
}

header nav ul li { list-style: none; }

header nav ul li a {
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    color: #2a7f62;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    background: #2a7f62;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(42,127,98,0.6);
}

/* ===============================
   Мобильная адаптивность Header
================================ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }
    .logo-text { font-size: 36px; text-align: center; }
    header nav ul {
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
    }
}

/* ===============================
   Header Slide Down Animation
================================ */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ===============================
   Hero / Главный блок
================================ */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1, .index-hero h1 {
    font-size: 58px;
    margin-bottom: 25px;
    animation: fadeInDown 1s ease forwards;
}

.hero p, .index-hero p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease forwards;
}

.glow-btn {
    padding: 16px 38px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(45deg, #2a7f62, #39b54a);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(57,181,74,0.5);
    transition: all 0.3s ease;
}

.glow-btn:hover {
    box-shadow: 0 0 25px rgba(57,181,74,0.7);
    transform: translateY(-3px);
}

/* ===============================
   Языковые кнопки на index
================================ */
.index-page .language-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 70vh;
}

.index-page .language-buttons button {
    padding: 18px 45px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: #2a7f62;
    color: #fff;
    transition: all 0.3s ease;
}

.index-page .language-buttons button:hover {
    background: #39b54a;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(57,181,74,0.6);
}

/* ===============================
   Секции с полупрозрачными карточками
================================ */
.section,
.review-card,
.object-card,
.contact-card {
    background: rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.section h2,
.review-card h3,
.object-card h3,
.contact-card h3 {
    color: #fff;
    animation: fadeInDown 1s ease forwards;
}

.section p,
.review-card p,
.object-card p,
.contact-card p {
    color: #fff;
    animation: fadeInUp 1s ease forwards;
}

/* ===============================
   About и Sell – текст ниже
================================ */
.about-page .section,
.sell-page .section {
    margin-top: 120px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
    text-align: center;
}

/* ===============================
   Слайд-шоу для фото компании
================================ */
.company-photos {
    width: 100%;
    max-width: 800px;        /* уменьшенные фото */
    margin: 50px auto;       /* центрирование блока */
    border-radius: 15px;     /* закругленные углы */
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35); /* красивая тень */
    position: relative;
}

.company-photos .slideshow {
    position: relative;
    width: 100%;
    height: 400px;           /* высота слайд-шоу */
}

.company-photos img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;  /* плавное появление */
    border-radius: 15px;
}

.company-photos img.active {
    opacity: 1;
}

/* ===== МОДАЛКА ФОН ===== */
.object-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* тёмный прозрачный фон вокруг модалки */
  justify-content: center;
  align-items: center;
}

/* ===== КОНТЕЙНЕР ===== */
.modal-content {
  width: 85%;
  max-width: 1200px;
  height: 75vh;
  background: #000; /* основной фон, чтобы фото выделялось */
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ===== ЛЕВАЯ ЧАСТЬ (ФОТО) ===== */
.modal-left {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== СТРЕЛКИ ===== */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: white;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  padding: 10px 15px;
  cursor: pointer;
  transition: 0.2s;
}

.arrow:hover {
  background: rgba(0,0,0,0.7);
}

.prev { left: 15px; }
.next { right: 15px; }

/* ===== ПРАВАЯ ЧАСТЬ (ИНФА) ===== */
.modal-right {
  width: 40%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.7); /* тёмный полупрозрачный фон для текста */
  color: white;
}

/* ===== ТЕКСТ ===== */
.modal-right h2 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #fff;
}

#modalCity {
  color: #ddd;
  margin-bottom: 10px;
}

#modalPrice {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #4CAF50;
}

.description {
  font-size: 15px;
  line-height: 1.5;
  color: #eee;
}

/* ===== КНОПКА ===== */
.contact-btn {
  display: block;
  text-align: center;
  padding: 14px;
  background: rgba(255, 90, 95, 0.9); /* полупрозрачная кнопка */
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.contact-btn:hover {
  background: rgba(224, 72, 72, 0.9);
}

/* ===== КРЕСТИК ===== */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
}

/* ===== АДАПТИВ (телефон) ===== */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    height: 90vh;
  }

  .modal-left {
    width: 100%;
    height: 50%;
  }

  .modal-right {
    width: 100%;
    height: 50%;
    overflow-y: auto;
  }
}

/* ===============================
   Contact – красиво и центрировано
================================ */
.contact-page {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
}

.contact-page .section {
    background: rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 40px 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.contact-page .section h2 {
    font-size: 42px;
    margin-bottom: 25px;
    color: #fff;
}

.contact-page .section p {
    font-size: 18px;
    margin: 10px 0;
    color: #fff;
}

.contact-page .social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-page .social-links a {
    display: inline-block;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    background: #2a7f62;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-page .social-links a:hover {
    background: #39b54a;
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(57,181,74,0.6);
}

/* ===============================
   Reviews Section
================================ */
.reviews-section {
    padding: 80px 20px;
    text-align: center;
}

.review-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.review-card {
    flex: 0 0 300px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.review-card h3 { margin-bottom: 10px; }
.review-card p { margin-bottom: 12px; }
.stars { color: gold; font-size: 18px; }

/* ===============================
   Sell Page Form
================================ */
.sell-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sell-form input,
.sell-form textarea {
    padding: 14px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 15px;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.sell-form input:focus,
.sell-form textarea:focus {
    box-shadow: 0 0 12px rgba(57,181,74,0.6);
}

.sell-form button {
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    background: linear-gradient(45deg,#2a7f62,#39b54a);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sell-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(57,181,74,0.7);
}

/* ===============================
   Reviews Carousel
================================ */
.review-carousel {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.review-carousel .review-cards {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    pointer-events: none;
}

.review-carousel .review-cards::-webkit-scrollbar { display: none; }

/* ===============================
   Contact Section с картой
================================ */
.contact-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    animation: fadeInUp 1s ease forwards;
}

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}

/* ===============================
   Карта с анимацией
================================ */
.map-container {
    flex: 1 1 500px;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: mapFadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.map-container:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* ===============================
   Contact info
================================ */
.contact-info {
    flex: 1 1 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.contact-info h2 { font-size: 42px; margin-bottom: 20px; }
.contact-info p { font-size: 18px; margin-bottom: 12px; }

.contact-info .social-links { 
    margin-top: 20px; 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap;
}

.contact-info .social-links a {
    display: inline-block;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #2a7f62;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info .social-links a:hover {
    background: #39b54a;
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(57,181,74,0.6);
}

/* ===============================
   Анимации
================================ */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mapFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================
   OBJECTS PAGE
===================================== */

.objects-page {
    padding-top: 120px;
}

/* Заголовок */
.objects-page .section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 30px;
}

/* ================================
   СОРТИРОВКА
================================ */

.sort-box{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:40px;
}

.sort-box button{
    padding:12px 28px;
    border:none;
    border-radius:30px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;

    background:linear-gradient(45deg,#2a7f62,#39b54a);
    color:white;

    transition:0.3s;
}

.sort-box button:hover{
    transform:translateY(-3px);
    box-shadow:0 0 20px rgba(57,181,74,0.6);
}


/* ================================
   СЕТКА ОБЪЕКТОВ
================================ */

.objects-grid{

    width:90%;
    max-width:1300px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

}



/* ================================
   КАРТОЧКА ОБЪЕКТА
================================ */

.object-card{

    background:rgba(255,255,255,0.12);

    backdrop-filter:blur(10px);

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 10px 35px rgba(0,0,0,0.25);

    transition:0.35s;

    cursor:pointer;

}



.object-card:hover{

    transform:translateY(-8px) scale(1.02);

    box-shadow:0 20px 45px rgba(0,0,0,0.35);

}



/* ================================
   ФОТО
================================ */

.object-card img{

    width:100%;

    height:220px;

    object-fit:cover;

    display:block;

}



/* ================================
   ИНФОРМАЦИЯ
================================ */

.object-card .info{

    padding:20px;

    text-align:center;

}



.object-card h3{

    font-size:22px;

    margin-bottom:10px;

}



.object-card p{

    font-size:15px;

    opacity:0.85;

}



.object-card .price{

    font-size:20px;

    font-weight:700;

    margin-top:10px;

    color:#4CAF50;

}



/* ================================
   АДАПТИВНОСТЬ
================================ */

@media(max-width:900px){

.objects-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:600px){

.objects-grid{

grid-template-columns:1fr;

}

.object-card img{

height:200px;

}

}

/* ===============================
   Objects Page
================================ */

/* фильтр */
.filter-bar {
    text-align: center;
    margin: 20px 0 40px 0;
}

.filter-bar select {
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    cursor: pointer;
}


/* сортировка */
.sort-box {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.sort-box button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #2a7f62;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.sort-box button:hover {
    background: #39b54a;
    transform: translateY(-2px);
}


/* сетка объектов */
.objects-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
    padding: 20px;
}


/* карточка объекта */
.object-card {
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.object-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}


/* фото */
.object-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


/* информация */
.object-card .info {
    padding: 18px;
}

.object-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.object-card p {
    font-size: 14px;
    margin-bottom: 5px;
}

.price {
    font-weight: 700;
    color: #4CAF50;
    font-size: 18px;
}


/* адаптив */
@media (max-width: 1000px) {

.objects-grid {
grid-template-columns: repeat(2,1fr);
}

}

@media (max-width: 700px) {

.objects-grid {
grid-template-columns: 1fr;
}

}

/* ===============================
   Адаптивность
================================ */
@media (max-width: 992px) {
    .objects-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 10px; padding: 10px 20px; }
    .logo-text { font-size: 48px; text-align: center; }
    header nav ul { flex-direction: column; gap: 10px; margin-left: 0; }
    .objects-grid { grid-template-columns: 1fr; }
    .contact-page .section, .sell-page .section { padding: 30px 20px; }
    .contact-page .section h2 { font-size: 36px; }
    .contact-page .section p { font-size: 16px; }
    .contact-page .social-links a { font-size: 13px; padding: 8px 16px; }
    .hero h1, .index-hero h1 { font-size: 36px; }
    .hero p, .index-hero p { font-size: 16px; }
    .index-page .language-buttons button { font-size: 18px; padding: 15px 40px; }
    .review-card { flex: 0 0 80%; min-width: 250px; }
}

/* ===============================
   Анимации
================================ */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
