/* ===========================
   SUNGORA INVESTMENTS - STYLES
   =========================== */

:root {
    --primary-color: #0a491f;
    --secondary-color: #417037;
    --accent-color: #da822a;
    --light-bg: #edf7ea;
    --dark-text: #1b242e;
    --light-text: #454a4b;
    --border-color: #edf7ea;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ===========================
   TYPOGRAPHY & BASICS
   =========================== */

body {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: #fff;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 1rem 1rem;
}

.page-wrapper{
    position: relative;
}

/* ===========================
   HEADER & NAVIGATION  ЗАГОЛОВОК И НАВИГАЦИЯ
   =========================== */

.header {
    
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    /* backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.3); */
   
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: white;
}

.tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* добавит ... если не влезет */
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.nav {
    display: flex;

    
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    position: relative;
    text-decoration: none;
    color: #fff; /* или твой цвет */
}

/* линия */
.nav-list a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;

    width: 0;
    height: 2px;
    background: #fff;

    transform: translateX(-50%);
    opacity: 0;

    transition: width 0.3s ease, opacity 0.3s ease;
}


/* hover эффект */
.nav-list a:hover::after {
    width: 100%;
    opacity: 1;
}

/* .nav-list a {
    color: white;
    font-weight: 300;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
} */

/* .nav-list a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
} */


/*На размерах меньше 1050px nav-menu раскрывается по центру*/

@media (max-width: 1050px) {

    .header-content {
        position: relative;
    }

    /* Скрываем логотип при открытом меню */
    .header-content.menu-open .logo,
    .header-content.menu-open .tagline {
        display: none;
    }

     /* Кнопка открытия/закрытия */
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        font-size: 1.8rem;
        padding: 0.5rem;
        border: none;
        background: transparent;
        color: white;
        cursor: pointer;
    }

    .nav {
        width: 100%;
    }

    /* Меню закрыто */
    .nav-list {
        display: none;
    }

     /* Меню открыто */
    .header-content.menu-open .nav-list {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;

        width: 100%;
        min-height: 100vh;
        height: auto;

        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

        gap: 0;
        margin: 0;
        padding: 80px 20px 30px;

        box-sizing: border-box;

        background: linear-gradient(
            135deg,
            var(--primary-color),
            var(--secondary-color)
        );

        z-index: 1000;

        /* Если экран очень низкий — меню можно прокручивать */
        overflow-y: auto;
        overflow-x: hidden;

        -webkit-overflow-scrolling: touch;
    }

    /* Каждый пункт меню */
    .header-content.menu-open .nav-list li {
        width: 100%;
        max-width: 420px;
        margin: 0;
        text-align: center;
    }


    /* Ссылки */
    .header-content.menu-open .nav-list a {
        display: block;
        width: 100%;
        box-sizing: border-box;

        padding: 12px 15px;

        font-size: 1.15rem;
        line-height: 1.3;
        text-align: center;

        color: white;
        text-decoration: none;

        border-radius: 6px;
    }

     /* Небольшой визуальный эффект при наведении/нажатии */
    .header-content.menu-open .nav-list a:hover,
    .header-content.menu-open .nav-list a:focus {
        background: rgba(255, 255, 255, 0.12);
    }

    /* Кнопка закрытия поверх меню */
    .header-content.menu-open .menu-toggle {
        position: fixed;
        top: 15px;
        right: 15px;

        z-index: 1001;

        font-size: 2rem;
        line-height: 1;

        padding: 8px;
        border: none;
        background: transparent;
        color: white;
    }
}


.page-bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;   /* фон следует за всей верхней композицией */

    background-image: url("https://www.dl.dropboxusercontent.com/scl/fi/uiqsenzcg745j7takbcto/img_hero_2_2.png?rlkey=cqk4cm2vb2sykxtmwx16rdeoa&st=vqmsjxi5&dl=0");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;

    z-index: -1;
    pointer-events: none;
}

/* ===========================
   HERO SECTION  СЕКЦИЯ ГЕРОЯ
   =========================== */


.hero {
    background: transparent;
    position: relative;
    /* Высота hero масштабируется вместе с фоновым изображением.
       16:9 соответствует исходной композиции page-bg. */
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;                                                                                                                                                                                                                                             
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 0;
    position: relative;
}

.hero-content {
    text-align: center;
    position: relative;
}

.suninvest{
    margin-top: 2rem;

    color: rgba(255, 255, 255, 0.9);
}

.hero-content1{
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    padding-top: 0;
    /* Вертикальный сдвиг теперь масштабируется вместе с шириной композиции. */
    
}
@media (max-width: 1450px) {
        .hero-content1{
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
        .suninvest{
        font-size: 5.0rem;
    }
}

@media (max-width: 992px) {
        .hero-content1{
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
        .suninvest{
        font-size: 4.5rem;
    }
}
@media (max-width: 892px) {
        .hero-content1{
        font-size: 1.2rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
        .suninvest{
        font-size: 4rem;
    }
}

@media (max-width: 846px) {
        .hero-content1 p{
            
            font-size: 1.2rem;
            
            
    }
        .suninvest {
            margin-top: 2rem;
            font-size: 3.5rem;
    }
}

@media (max-width: 695px) {
        .hero-content1{
            
            font-size: 1.2rem;
            margin-top: 2rem;
            margin-bottom: 2rem;
    }
        .suninvest{
            margin-top: 6rem;
            font-size: 3.0rem;
    }
}

@media (max-width: 615px) {
        .hero-content1{
            
            font-size: 1rem;
            margin-top: 6rem;
            margin-bottom: 2rem;
    }
        .suninvest{
            display: none;
    }
}
@media (max-width: 480px) {
        .hero-content1{
            font-size: 0.75rem;
            margin-top: 8rem;
            margin-bottom: 0.5rem;
    }
        .suninvest{
             display: none;
    }
}
/* ===========================
   BUTTONS  КНОПКИ
   =========================== */

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    margin-left: 5px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #CC9966;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* ===========================
   SECTIONS     СЕКЦИИ
   =========================== */


.section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-advance {
    font-size: 2.0rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
}

/* ===========================
   Про SUNGORA
   =========================== */

.about {
    background: var(--light-bg);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}


.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--light-text);
    width: 100%;
}

.about-text p {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.stat {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--light-text);
    margin-bottom: 0;
}

/* Блок видео Vimeo*/
.about-video {
    margin-top: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===========================
   План забудови
   =========================== */

/* Интерактивная карта*/
.masterplan {
    background: var(--light-bg);
}

.about-map {
    display:flex;
    justify-content: center;
    align-items: center;          /* Центрируем по вертикали */
    width: 100%;
    overflow: hidden;
    
   
}

.about-map img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
} 


.plan{
    width: 919px; 
    position:relative;
    margin: 40px auto;
}

.plan img{
    width:100%; 
    display:block
}

.plan svg{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.prodano{
    fill:rgba(4, 122, 4, 0.5);
    stroke:#00aa00;
    stroke-width: 2;
    cursor: pointer;
    transition: 0.3s;
}

/* .prodano:hover {
    fill: rgba(173, 231, 11, 0.884);
} */




/* полигоны */
.viewbox {
  fill: rgba(0, 200, 0, 0.25);
  stroke: #00aa00;
  stroke-width: 2;
  cursor: pointer;
  transition: 0.3s;
}

.viewbox:hover {
  fill: rgba(173, 231, 11, 0.884);
}

.property-card {
  transition: 0.4s;
}

.property-card.highlight {
  box-shadow: 0 0 0 3px #00aa00, 0 0 20px rgba(0,170,0,0.6);
  transform: scale(1.02);
}

/* ENDИнтерактивная карта*/

/* модальное окно */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: end;  /*позиционирование контента*/
  z-index: 1000;
}

.modal.active {
  display: flex;
}

/* контент */
.modal-content {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: fadeIn 0.3s ease;
  margin-bottom: 190px;  /*Сдвигаем модальное окно*/
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

.modal img {
  width: 100%;
  display: block;
}

.modal-body {
  padding: 15px;
  justify-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-text {
  margin-bottom: 8px;
}

.modal-price {
  font-weight: bold;
  margin: 10px 0;
}

/* кнопка */
.modal-btn {
  display: inline-block;
  padding: 10px 15px;
  background: #00aa00;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.2s;
}

.modal-btn:hover {
  background: #008800;
  cursor: pointer;
}

/* закрытие */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 40px;
  transform: none;
  background: rgba(0,0,0,0.4);
  color: #dad6d6;
  cursor: pointer;
}



/* ===========================
   ADVANTAGES SECTION       ПРЕИМУЩЕСТВА
   =========================== */

.advantages {
    background: var(--light-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.advantage-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-card .icon img {
    height: 77px;
    width: auto;
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.advantage-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.advantage-card p {
    color: var(--light-text);
    margin-bottom: 0;
}

/* ===========================
   INVESTMENTS SECTION      ИНВЕСТИЦИИ
   =========================== */

.investments {
    background: var(--light-bg);
}

.investments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.investment-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.investment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.investment-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.investment-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.investment-card p,
.investment-card li {
    color: var(--light-text);
}

.investment-card.highlight {
  box-shadow: 0 0 0 3px #00aa00, 0 0 20px rgba(0,170,0,0.6);
  transform: scale(1.02);
}

@media (max-width: 900px) {
    .investments-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   PROPERTIES SECTION       НЕДВИЖИМОСТЬ
   =========================== */

.properties {
    background: var(--light-bg);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}



.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    height: 280px;
    background: linear-gradient(135deg, #996666 0%, #CC6699 100%);
    flex-shrink: 0;
}

.property-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.h3small {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.property-icon {
    fill: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    width: 16px;
    height: 16px;
}

.property-icon:hover {
    fill: var(--accent-color);
} 

.property-description {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.spec {
    font-size: 1rem;
    color: var(--light-text);
    background: var(--light-bg);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

.property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.property-income {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.btn-property {
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-property:hover {
    background: #CC9966;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ===========================
   LOCATION SECTION     РАЗМЕЩЕНИЕ
   =========================== */

.location {
    background: none;
    margin-top: 0;
}


.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;

}

.location-map {
    width: 100%;
    height: 700px;
    background: var(--light-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--light-text);
    background-image: url('https://www.dl.dropboxusercontent.com/scl/fi/cr3g1x819t543eefeibxr/mapa_sputnik_plan_596_603.png?rlkey=k1kelpzh75q0kxyjs7mdly0vd&st=h4dqp83o&dl=0');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.map-placeholder p:first-child {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.location-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.location-info h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.location-benefits {
    list-style: none;
    padding: 0;
}

.location-benefits li {
    padding: 1rem 0;
    padding-left: 2rem;
    color: var(--light-text);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.location-benefits li b {
    color: var(--primary-color);
    position: relative;
    font-size: 1.2rem;
    font-weight: 500;
}

.location-benefits li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
}

.buns li{
    padding: 0.5rem 0;
    padding-left: 2rem;
}

.files li {
    padding: 0.5rem 0 0.5rem 3rem;
}

.files li::before {
    content: '📄';
    position: absolute;
    left: 0,1rem;
    color: var(--accent-color);
    font-size: 1.0rem;
    line-height: 1.5;
}

.location-benefits li:last-child {
    border-bottom: none;
}

/* ===========================
   INFRASTRUCTURE PROPERTYES     ПРОПОЗИЦИИ
   =========================== */

.properties-benefits li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
}

.properties-benefits {
    list-style: none;
    padding: 0;
}

.properties-benefits li {
    padding: 0 0;
    padding-left: 2rem;
    color: var(--light-text);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.properties-benefits li:last-child {
    border-bottom: none;
}

/*== Типи будинків ==*/

.property-image {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
}

.property-image img {
  width: 100%;
  display: block;
}

/* Слайдер */
.slider {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.3s ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* UI элементы */
.slider-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arrow, .close-btn {
  pointer-events: all;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }

.close-btn {
  top: 10px;
  right: 10px;
  transform: none;
}

.pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
}

.dot.active {
  background: orange;
}


/* ===========================
   INVESTMENT SECTION       ИНВЕСТИЦИИ
   =========================== */

.investment {
    background: var(--light-bg);
}

.investment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.investment-process h3,
.investment-terms h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    padding-left: 80px;
}

.step-number {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.step h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--light-text);
    margin-bottom: 0;
}

.terms-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.term-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.term-row:last-child {
    border-bottom: none;
}

.term-label {
    font-weight: 600;
    color: var(--primary-color);
}

.term-value {
    text-align: right;
    color: var(--accent-color);
    font-weight: 600;
}

/* ===========================
   CONTACT SECTION      КОНТАКТЫ
   =========================== */

.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.contact-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--light-text);
}

.contact-item a {
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(45, 122, 78, 0.1);
}

.contact-form button {
    align-self: flex-start;
}

/* ===========================
   FOOTER   ФУТЕР   
   =========================== */

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* ===========================
   SMOOTH SCROLLING     ПЛАВНАЯ ПРОКРУТКА
    =========================== */


html {
    scroll-behavior: smooth;
}

/* ===========================
   UTILITY CLASSES      УТИЛИТАРНЫЕ КЛАССЫ
   =========================== */

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/*messengers*/
/*профессиональные кнопки*/

.messenger-bar{
    display:flex;
    gap:12px;
    margin-top: 10px;
}

.messenger{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:30px;
    text-decoration:none;
    color:#fff;
    font-size:14px;
    font-family:sans-serif;
    transition:0.3s;
}

.messenger svg{
    width:16px;
    height:16px;
    fill:white;
}

.viber{
    background:#7360F2;
}

.telegram{
    background:#229ED9;
}

.whatsapp{
    background:#25D366;
}

.messenger span{
    max-width:0;
    overflow:hidden;
    white-space:nowrap;
    transition:0.3s;
}

.messenger {
    transform:translateY(-3px);
    box-shadow:0 6px 14px rgba(0,0,0,0.25);
}

.messenger span{
    max-width:100px;
}

/* кнопка Наверх*/

#btnTop {
  display: none; /* Скрыта по умолчанию */
  position: fixed; /* Фиксация на экране */
  bottom: 20px; /* Отступ снизу */
  right: 30px; /* Отступ справа */
  z-index: 99; /* Поверх всех элементов */
  border: none;
  outline: none;
  background-color: #517e47; /* Цвет фона */
  color: white; /* Цвет стрелки */
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
}

#btnTop:hover {
  background-color: #0a491f; /* Цвет при наведении */
}



/* Бейдж поверх слайдера */
.video-badge{
    position: absolute;
    bottom: 10px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 10px;
    background: rgba(10, 94, 2, 0.72);
    backdrop-filter: blur(3px);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    z-index: 5;
}
.video-badge:hover{
    background: rgba(15, 126, 4, 0.753);
    transform: translateY(-1px);
}
.property-image-video{ 
    position: relative;
    width: 100%;
    height: 50px;
    border-radius: 0 0 8px 8px;
    background-color: rgba(6, 75, 6, 0.342);
    display: block; 
} /* нужно для позиционирования бейджа */

/* Модалка */
.video-modal{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.video-modal.active{ display: flex; }

.video-modal-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
}

.video-modal-content{
    position: relative;
    width: min(900px, 92vw);
    max-height: 86vh;
    z-index: 1;
}

.video-modal-content video{
    width: 100%;
    max-height: 86vh;
    border-radius: 8px;
    display: block;
    background: #000;
}

.video-modal-close{
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 600px){
    .video-modal-content{ width: 96vw; }
    .video-modal-close{ top: -38px; font-size: 28px; }
}

