/* ============================================
   ЖК Время жить — основные стили
   Файл: assets/css/vremya-zhit.css
   ============================================ */

/* --- Переменные --- */
:root {
    --vzh-bg:        #EDF3F5;
    --vzh-primary:   #258D82;
    --vzh-hover:     #ff8562;
    --vzh-text:      #0d3c63;
    --vzh-radius:    18px;
}

/* ============================================
   HERO-БЛОК
   ============================================ */

.vzh-hero {
    position: relative;
    min-height: 100vh;
    background-image: url('/wp-content/themes/novyj-gorod-theme/assets/images/vremya-zhit/hero-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

/* Лёгкий тёмный оверлей для читаемости текста */
.vzh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.10) 40%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 0;
}

.vzh-hero .container-fluid {
    position: relative;
    z-index: 1;
    padding-top: clamp(60px, 8vw, 120px);
    padding-bottom: clamp(40px, 6vw, 80px);
    padding-left: clamp(20px, 5vw, 80px);
    padding-right: clamp(20px, 5vw, 80px);
}

/* --- Заголовок --- */
.vzh-hero__title {
    font-size: clamp(36px, 6vw, 54px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- Декоративные листики --- */
.vzh-hero__leaf {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.vzh-hero__leaf--left {
    width: 150px;
    top: 80px;
    left: 520px;
    transform: rotate(-20deg);
    opacity: 0.9;
}

.vzh-hero__leaf--right {
    width: 200px;
    top: 400px;
    right: 320px;
    transform: rotate(356deg);
    opacity: 0.85;
}

/* --- Сетка карточек (Bootstrap row/col) --- */
.vzh-hero__cards {
    max-width: 860px;
}

/* --- Карточка характеристики --- */
.vzh-hero__card {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 20px);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--vzh-radius);
    border: 1.5px solid rgba(37, 141, 130, 0.18);
    padding: clamp(14px, 1.8vw, 22px) clamp(16px, 2vw, 28px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    cursor: default;
}

.vzh-hero__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 141, 130, 0.18);
    background: rgba(255, 255, 255, 0.97);
    border-color: var(--vzh-primary);
}

/* --- Иконка карточки --- */
.vzh-hero__card-icon {
    flex-shrink: 0;
    width: clamp(40px, 4vw, 54px);
    height: clamp(40px, 4vw, 54px);
    border: 1.5px solid var(--vzh-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vzh-primary);
}

.vzh-hero__card-icon img {
    width: clamp(20px, 2.2vw, 28px);
    height: clamp(20px, 2.2vw, 28px);
    object-fit: contain;
}

/* --- Текст карточки --- */
.vzh-hero__card-text {
    color: var(--vzh-text);
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 768px) {
    .vzh-hero {
        min-height: auto;
        padding-bottom: 0;
        background-attachment: scroll;
    }

    .vzh-hero__leaf--right {
        width: 80px;
        top: 10px;
        right: 10px;
    }

    .vzh-hero__leaf--left {
        display: none;
    }

    .vzh-hero__cards {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .vzh-hero__card {
        padding: 12px 16px;
    }
}


/* ============================================
   БАННЕР ПОЗИЦИИ
   ============================================ */

.vzh-position-banner {
    background: var(--vzh-bg);
    padding: clamp(24px, 4vw, 60px) 0;
}

.vzh-position-banner .container-fluid {
    padding-left: clamp(16px, 4vw, 60px);
    padding-right: clamp(16px, 4vw, 60px);
}

/* Карточка с фото — имеет скругление и clip */
.vzh-position-banner__card {
    position: relative;
    border-radius: var(--vzh-radius);
    overflow: hidden;
    width: 100%;
}

/* Фоновое фото */
.vzh-position-banner__bg {
    display: block;
    width: 100%;
    height: clamp(260px, 40vw, 520px);
    object-fit: cover;
    object-position: center center;
}

/* Оверлей поверх фото — flex по центру */
.vzh-position-banner__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 16px);
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.28) 60%,
        rgba(0,0,0,0.18) 100%
    );
    padding: clamp(16px, 3vw, 40px);
    text-align: center;
}

/* Логотип */
.vzh-position-banner__logo {
    width: clamp(120px, 20vw, 300px);
    height: auto;
    margin-bottom: clamp(20px, 2.8vw, 40px);
    /*filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));*/
}

/* Заголовок */
.vzh-position-banner__title {
    font-family: 'PT Serif', serif;
    font-size: clamp(26px, 3.8vw, 56px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* Подзаголовок */
.vzh-position-banner__subtitle {
    font-family: 'PT Serif', serif;
    font-size: clamp(15px, 1.8vw, 26px);
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ============================================
   КНОПКА (общая для всей страницы)
   ============================================ */

.vzh-btn {
    display: inline-block;
    margin-top: clamp(6px, 1vw, 14px);
    padding: clamp(10px, 1.1vw, 16px) clamp(28px, 3.6vw, 52px);
    background: var(--vzh-primary);
    color: #ffffff;
    font-family: 'PT Serif', serif;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 600;
    text-decoration: none;
    border-radius: 18px;
    border: 2px solid var(--vzh-primary);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.vzh-btn:hover {
    background: var(--vzh-hover);
    border-color: var(--vzh-hover);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- Адаптив --- */
@media (max-width: 576px) {
    .vzh-position-banner__bg {
        height: 260px;
        object-position: center center;
    }
}

/* ============================================
   БЛОК О КОМПЛЕКСЕ
   Добавить в: assets/css/vremya-zhit.css
   ============================================ */

.vzh-about {
    background: var(--vzh-bg);
    padding: clamp(40px, 5vw, 80px) 0;
}

.vzh-about .container-fluid {
    padding-left: clamp(16px, 4vw, 60px);
    padding-right: clamp(16px, 4vw, 60px);
}

/* Заголовок */
.vzh-about__title {
    font-family: 'PT Serif', serif;
    font-size: clamp(22px, 2.8vw, 40px);
    font-weight: 700;
    color: var(--vzh-primary);
    line-height: 1.25;
    margin-bottom: clamp(24px, 3vw, 44px);
    max-width: 820px;
}

/* Обёртка фото + карточки */
.vzh-about__inner {
    position: relative;
}

/* Фото двора — 80% ширины, прижато влево */
.vzh-about__photo {
    display: block;
    width: 80%;
    height: clamp(320px, 38vw, 560px);
    object-fit: cover;
    border-radius: var(--vzh-radius);
}

/* Белая карточка — поверх фото, справа, по центру по вертикали */
.vzh-about__card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    background: #ffffff;
    border-radius: var(--vzh-radius);
    padding: clamp(20px, 2.5vw, 40px) clamp(20px, 2.5vw, 36px);
    box-shadow: 0 8px 40px rgba(37, 141, 130, 0.10);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.8vw, 28px);
}

/* Пункт списка */
.vzh-about__item {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.2vw, 20px);
}

/* Иконка в круге */
.vzh-about__icon {
    flex-shrink: 0;
    width: clamp(36px, 3vw, 48px);
    height: clamp(36px, 3vw, 48px);
    border: 1.5px solid var(--vzh-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vzh-about__icon img {
    width: clamp(18px, 1.6vw, 26px);
    height: clamp(18px, 1.6vw, 26px);
    object-fit: contain;
}

/* Текст пункта */
.vzh-about__text {
    color: var(--vzh-text);
    line-height: 1.5;
    margin: 0;
    padding-top: 4px;
}

/* --- Адаптив --- */
@media (max-width: 991px) {
    .vzh-about__photo {
        width: 100%;
        height: clamp(240px, 45vw, 400px);
    }

    .vzh-about__card {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 20px;
        box-shadow: 0 4px 20px rgba(37, 141, 130, 0.10);
    }
}

 /*============================================
   БЛОК РАСПОЛОЖЕНИЕ И ИНФРАСТРУКТУРА
   ============================================ */

.vzh-location {
    background: var(--vzh-bg);
    padding: clamp(40px, 5vw, 80px) 0;
}

.vzh-location .container-fluid {
    padding-left: clamp(16px, 4vw, 60px);
    padding-right: clamp(16px, 4vw, 60px);
}

/* Заголовок */
.vzh-location__title {
    font-family: 'PT Serif', serif;
    font-size: clamp(22px, 2.8vw, 40px);
    font-weight: 700;
    color: var(--vzh-primary);
    margin-bottom: clamp(24px, 3vw, 44px);
}

/* Обёртка карта + карточка */
.vzh-location__inner {
    position: relative;
    border-radius: var(--vzh-radius);
    display: flex;
}

/* Карта — на весь блок */
.vzh-location__map-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--vzh-radius);
    overflow: hidden;
    z-index: 0;
}

/* Белая карточка — слева поверх карты */
.vzh-location__card {
    position: relative;
    width: 42%;
    flex-shrink: 0;
    overflow-y: visible;
    background: rgba(255, 255, 255);
    border-radius: var(--vzh-radius);
    padding: clamp(20px, 2.2vw, 36px) clamp(20px, 2.2vw, 32px);
    box-shadow: 0 8px 40px rgba(37, 141, 130, 0.12);
    z-index: 1;
}

/* Вводный текст */
.vzh-location__intro {
    color: var(--vzh-text);
    line-height: 1.6;
    margin-bottom: clamp(16px, 1.8vw, 24px);
    padding: clamp(10px, 1vw, 16px);
    background: var(--vzh-bg);
    border-radius: 12px;
}

/* Список */
.vzh-location__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.2vw, 18px);
}

/* Пункт списка — переиспользуем .vzh-about__icon */
.vzh-location__item {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1vw, 16px);
    color: var(--vzh-text);
    line-height: 1.45;
}

.vzh-location__item span {
    padding-top: 4px;
}

/* --- Адаптив --- */
@media (max-width: 991px) {
    .vzh-location__inner {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .vzh-location__card {
        position: static;
        transform: none;
        width: 100%;
        max-height: none;
        overflow-y: visible;
        order: 1;
    }

    .vzh-location__map-wrap {
        position: relative;
        height: 360px;
        border-radius: var(--vzh-radius);
        order: 2;
        margin-top: 20px;
    }
}


/* ============================================
   БЛОК ПОЗИЦИЯ 2.25 — ХАРАКТЕРИСТИКИ
   Добавить в: assets/css/vremya-zhit.css
   ============================================ */

.vzh-position-info {
    background: var(--vzh-bg);
    padding: clamp(40px, 5vw, 80px) 0;
}

.vzh-position-info .container-fluid {
    padding-left: clamp(16px, 4vw, 60px);
    padding-right: clamp(16px, 4vw, 60px);
}

/* Заголовок */
.vzh-position-info__title {
    font-family: 'PT Serif', serif;
    font-size: clamp(22px, 2.8vw, 40px);
    font-weight: 700;
    color: var(--vzh-primary);
    line-height: 1.25;
    margin-bottom: clamp(6px, 0.6vw, 10px);
}

/* Подзаголовок */
.vzh-position-info__subtitle {
    font-size: clamp(14px, 1.25vw, 18px);
    font-weight: 700;
    color: var(--vzh-text);
    line-height: 1.5;
    margin-bottom: clamp(24px, 3vw, 44px);
}

/* Обёртка фото + карточки */
.vzh-position-info__inner {
    position: relative;
}

/* Фото дома — 80% ширины, прижато влево */
.vzh-position-info__photo {
    display: block;
    width: 80%;
    height: clamp(320px, 38vw, 560px);
    object-fit: cover;
    border-radius: var(--vzh-radius);
}

/* Белая карточка — справа поверх фото */
.vzh-position-info__card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    background: #ffffff;
    border-radius: var(--vzh-radius);
    padding: clamp(20px, 2.5vw, 36px) clamp(20px, 2.5vw, 36px);
    box-shadow: 0 8px 40px rgba(37, 141, 130, 0.10);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.8vw, 24px);
}

/* Плашка со сроками */
.vzh-position-info__dates {
    background: var(--vzh-bg);
    border-radius: 12px;
    padding: clamp(14px, 1.4vw, 20px) clamp(16px, 1.6vw, 22px);
    margin-bottom: clamp(4px, 0.4vw, 8px);
}

.vzh-position-info__dates-title {
    font-size: clamp(14px, 1.25vw, 18px);
    font-weight: 700;
    color: var(--vzh-primary);
    margin-bottom: clamp(8px, 0.8vw, 12px);
}

.vzh-position-info__dates-list {
    padding-left: 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vzh-position-info__dates-list li {
    font-size: clamp(14px, 1.25vw, 18px);
    color: var(--vzh-text);
    line-height: 1.5;
}

/* --- Адаптив --- */
@media (max-width: 991px) {
    .vzh-position-info__photo {
        width: 100%;
        height: clamp(240px, 45vw, 400px);
    }

    .vzh-position-info__card {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 20px;
        box-shadow: 0 4px 20px rgba(37, 141, 130, 0.10);
    }
}

/* ============================================
   БЛОК СОСТАВ ДОМА
   Добавить в: assets/css/vremya-zhit.css
   ============================================ */

.vzh-composition {
    background: var(--vzh-bg);
    padding: clamp(40px, 5vw, 80px) 0;
}

.vzh-composition .container-fluid {
    padding-left: clamp(16px, 4vw, 60px);
    padding-right: clamp(16px, 4vw, 60px);
}

.vzh-composition__title {
    font-family: 'PT Serif', serif;
    font-size: clamp(22px, 2.8vw, 40px);
    font-weight: 700;
    color: var(--vzh-primary);
    margin-bottom: clamp(8px, 0.8vw, 12px);
}

.vzh-composition__count {
    font-size: clamp(14px, 1.25vw, 18px);
    color: var(--vzh-text);
    margin-bottom: clamp(24px, 3vw, 48px);
}

/* Схема генплана */
.vzh-composition__plan {
    width: 100%;
    height: auto;
    display: block;
}

/* Список типов квартир */
.vzh-composition__list {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 36px);
    padding-left: clamp(0px, 2vw, 32px);
}

/* Пункт */
.vzh-composition__item {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.5vw, 24px);
}

/* Иконка */
.vzh-composition__icon {
    flex-shrink: 0;
    width: clamp(44px, 4.5vw, 64px);
    height: clamp(44px, 4.5vw, 64px);
}

/* Текст */
.vzh-composition__type {
    font-size: clamp(15px, 1.25vw, 18px);
    font-weight: 700;
    color: var(--vzh-text);
    margin-bottom: 4px;
}

.vzh-composition__area {
    color: var(--vzh-text);
    margin: 0;
}

/* --- Адаптив --- */
@media (max-width: 767px) {
    .vzh-composition__list {
        padding-left: 0;
        margin-top: 24px;
    }
}

/* ============================================
   БЛОК ПЛАНЫ ЭТАЖЕЙ
   Добавить в: assets/css/vremya-zhit.css
   ============================================ */

.vzh-floors {
    background: var(--vzh-bg);
    padding: clamp(40px, 5vw, 80px) 0;
}

.vzh-floors .container-fluid {
    padding-left: clamp(16px, 4vw, 60px);
    padding-right: clamp(16px, 4vw, 60px);
}

.vzh-floors__title {
    font-family: 'PT Serif', serif;
    font-size: clamp(22px, 2.8vw, 40px);
    font-weight: 700;
    color: var(--vzh-primary);
    margin-bottom: clamp(24px, 3vw, 44px);
}

/* Список табов */
.vzh-floors__tabs {
    border-bottom: none;
    gap: clamp(16px, 3vw, 48px);
    margin-bottom: clamp(24px, 3vw, 40px);
}

/* Таб */
.vzh-floors__tab {
    font-family: 'PT Serif', serif;
    font-size: clamp(16px, 1.6vw, 24px);
    font-weight: 400;
    color: var(--vzh-hover);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0 0 10px 0;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.vzh-floors__tab:hover {
    color: var(--vzh-primary);
}

/* Активный таб */
.vzh-floors__tab.active {
    color: var(--vzh-primary);
    border-bottom-color: var(--vzh-primary);
}

/* Изображение плана */
.vzh-floors__plan {
    display: block;
    width: 80%;
    margin: 0 auto;
    height: auto;
    border-radius: var(--vzh-radius);
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.vzh-floors__plan:hover {
    opacity: 0.9;
}

/* ============================================
   ЛАЙТБОКС
   ============================================ */

.vzh-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--vzh-bg);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vzh-lightbox--active {
    display: flex;
}

.vzh-lightbox__img {
    width: auto;
    height: auto;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: auto;
}

.vzh-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--vzh-primary);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    padding: 0;
}

.vzh-lightbox__close:hover {
    opacity: 1;
}

.wp-block-image.no-style-img img {
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
}

.vremya-zhit-docs .section-title {
    color: #258D82 !important;
}

/* ЖК Время жить — цвет хедера и футера */
.vremya-zhit-page .top-bar {
    background: #258D82 !important;
}

.vremya-zhit-page .dropdown-item {
    color: #258D82 !important;
}

.vremya-zhit-page .footer-bottom {
    background: #258D82 !important;
}

.vremya-zhit-page .footer-title {
    color: #258D82 !important;
}

.vremya-zhit-page .section-title {
    color: #258D82 !important;
}

.vremya-zhit-page .seo-text-section h2 {
    color: #258D82 !important;
}


.vremya-zhit-page .seo-text-section {
    background: #EDF3F5 !important;
}

.vremya-zhit-page .btn-open-calculator {
    background: #ff8562 !important;
}

.vremya-zhit-page .rooms-filter-btn.active {
    background: #258D82 !important;
    border-color: #258D82 !important;
}


.vremya-zhit-page .vk-subscribe-btn {
    background: #258D82 !important;
}

.vremya-zhit-page .infrastructure-section {
    background: #EDF3F5 !important;
}

.vremya-zhit-page .btn-load-more {
    background: #258D82 !important;
}

.vremya-zhit-page .catalog-header h2 {
    color: #258D82 !important;
}

.vremya-zhit-page .payment-methods-section, .documents-section {
    background: #EDF3F5 !important;
}

.vremya-zhit-page .nav-menu-item {
    color: #258D82 !important;
}

.vremya-zhit-page .poziciya-link-btn {
    background: #258D82 !important;
}

.vremya-zhit-page .office-card {
    border: 1px solid #258D82;
}

.vremya-zhit-page .infrastructure-overlay {
    background: linear-gradient(0turn, rgba(8, 20, 18, 0) 0%, rgba(15, 55, 48, 0.7) 100%);
}

.vremya-zhit-page .payment-form-title {
    color: #258D82 !important;
}

.vremya-zhit-page .btn-booking {
    background: #258D82 !important;
}

.vremya-zhit-page .btn-booking:hover {
        background: #258D82 !important;
}

.vremya-zhit-page .btn-booking-bottom {
    background: #258D82 !important;
}

.vremya-zhit-page .btn-booking-bottom:hover {
    background: #258D82 !important;
}

.vremya-zhit-page .scroll-to-top {
    background: #258D82 !important;
    color: #ffffff;
}

.vremya-zhit-page .scroll-to-top:hover {
    background: #ff8562 !important;
     color: #ffffff;
}

.vremya-zhit-page .btn-callback {
    background: #258D82 !important;
}

.vremya-zhit-page .btn-callback:hover {
    background: #ff8562 !important;
}

/* --- Адаптив --- */
@media (max-width: 767px) {
    .vremya-zhit-page .navbar {
        background: #258D82 !important;
    }

    .vremya-zhit-page .nav-menu-item {
        color: #ffffff !important;
    }

    .vremya-zhit-page .dropdown-item {
        color: #ffffff !important;
    }
}