/* ===== Новая страница «Строительство» (template-construction-new.php) ===== */

@font-face { font-family: 'Cormorant700'; src: url('../fonts/cormorant-bold-cyrillic.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant700'; src: url('../fonts/cormorant-bold-latin.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.portfolio-header-inner {padding-bottom: 55px;}
/* Hero (разметка из page-repair.php) + локации и плашки */
.cn-hero__locations { display: flex; flex-wrap: wrap; margin: 0 0 22px; padding: 0; list-style: none; }
.cn-hero__locations li { position: relative; font-family: 'GilroyBold', sans-serif; font-size: 10px; line-height: 1; color: #C8AE88; text-transform: uppercase; text-box: trim-both cap alphabetic; }
.cn-hero__locations li + li { margin-left: 16px; }
.cn-hero__locations li + li::before { content: ''; position: absolute; left: -10px; top: 2px; width: 3px; height: 3px; border-radius: 50%; background: #C8AE88; }
.cn-hero__row { position: relative; }
.cn-hero__row .hero-subtitle { max-width: min(700px, calc(100% - 400px)); }
.cn-hero__badges { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: 13px 11px; width: 390px; margin: 0; padding: 0; list-style: none; }
.cn-hero__badge { padding: 10px; border: 1px solid #C8AE88; border-radius: 2px; font-family: 'GilroySemibold', sans-serif; font-size: 16px; line-height: 1; color: #fff; white-space: nowrap; text-box: trim-both cap alphabetic; }
.cn-hero__badge b { font-family: 'GilroyBold', sans-serif; font-weight: 700; color: #C8AE88; }

/* Навигация (стили construct-nav-section из style.css) */
.cn-nav .construct-page-nav a { line-height: 1; text-box: trim-both cap alphabetic; }

/* Общий заголовок секции */
.cn-section-title { margin: 0; font-family: 'Cormorant600', serif; font-size: 40px; font-weight: 600; line-height: normal; text-transform: uppercase; text-align: center; text-box: trim-both cap alphabetic; }

/* Кнопка-пилюля со стрелкой */
.cn-pill-btn { display: inline-block; padding: 14px 19px; border: 1px solid #fff; border-radius: 30px; font-family: 'Gilroy', sans-serif; font-size: 15px; line-height: 1; color: #fff; text-transform: uppercase; text-decoration: none; white-space: nowrap; text-box: trim-both cap alphabetic; transition: background 0.3s; }
.cn-pill-btn:hover { background: rgba(255, 255, 255, 0.1); }
.cn-pill-btn svg { display: inline-block; margin-left: 5px; vertical-align: 1px; }

/* Наш опыт */
.cn-stats { background: #081330; color: #fff; padding: 45px 30px 36px; }
.cn-stats__inner { display: flex; flex-direction: column; align-items: center; }
.cn-stats__list { display: flex; justify-content: center; margin: 45px 0; }
.cn-stats__item { display: flex; flex-direction: column; align-items: center; padding: 0 50px; text-align: center; }
.cn-stats__item + .cn-stats__item { border-left: 1px solid #C8AE88; }
.cn-stats .cn-stats__num { margin: 0; font-family: 'GilroyBold', sans-serif; font-size: 70px; font-weight: 700; line-height: 1; color: #C8AE88; text-transform: uppercase; text-box: trim-both cap alphabetic; }
.cn-stats__label { margin-top: 15px; font-family: 'Gilroy', sans-serif; font-size: 15px; line-height: normal; color: #fff; text-box: trim-both cap alphabetic; }

/* Общий контейнер и надзаголовок с линией */
.cn-container { max-width: 1440px; margin: 0 auto; padding: 0 70px; }
.cn-eyebrow { position: relative; margin: 0; padding-left: 51px; font-family: 'Gilroy', sans-serif; font-size: 13px; line-height: 1.25; color: #081330; text-transform: uppercase; text-box: trim-both cap alphabetic; }
.cn-eyebrow--light { color: #fff; }
.cn-eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; width: 37px; height: 2px; margin-top: -1px; background: #C8AE88; }

/* Выберите свой сценарий */
.cn-scen { padding: 45px 0 60px; background: #EAEAEA; }
.cn-scen__title { margin-top: 45px; color: #081330; }
.cn-scen__list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 45px; }
.cn-scen__card { display: flex; flex-direction: column; align-items: flex-start; min-height: 147px; padding: 21px 19px 18px; border: 1px solid #081330; color: #081330; text-decoration: none; transition: background 0.3s, color 0.3s; }
.cn-scen__card + .cn-scen__card { margin-left: -1px; }
.cn-scen__card:hover { background: #081330; color: #fff; }
.cn-scen__card-title { display: block; margin-right: -20px; font-family: 'GilroyBold', sans-serif; font-size: 18px; line-height: 1.25; text-box: trim-both cap alphabetic; }
.cn-scen__card-text { display: block; margin-right: -10px; margin-top: 15px; font-family: 'Gilroy', sans-serif; font-size: 15px; line-height: 1.25; text-box: trim-both cap alphabetic; }
.cn-scen__card-link { display: block; margin-top: auto; padding-top: 20px; font-family: 'GilroyBold', sans-serif; font-size: 13px; line-height: 1; color: #C5A87E; text-box: trim-both cap alphabetic; }

/* Что мы делаем (анимация строк — как на kayra-stroy.ru) */
.cn-what { position: relative; padding: 45px 0 75px; background: #081330; border-radius: 30px 30px 0 0; color: #fff; }
.cn-what__title { margin-top: 45px; }
.cn-what__list { margin: 45px -40px 0; border-top: 1px solid #3F465D; }
.cn-what__row { position: relative; display: grid; grid-template-columns: 68px 506px 1fr; align-items: center; min-height: 77px; padding: 12px 20px 12px 20px; border-bottom: 1px solid #3F465D; transition: padding 0.45s ease; }
.cn-what__row::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: #030D28; transition: width 0.45s ease; }
.cn-what__row > * { position: relative; z-index: 1; }
.cn-what__row:hover { padding-left: 38px; }
.cn-what__row:hover::before { width: 100%; }
.cn-what__num { font-family: 'Gilroy300', sans-serif; font-size: 24px; font-weight: 300; line-height: 1.25; color: #C5A87E; text-box: trim-both cap alphabetic; transition: color 0.4s; }
.cn-what__name { margin: 0; font-family: 'GilroySemibold', sans-serif; font-size: 27px; font-weight: 600; line-height: 1.25; color: #fff; text-box: trim-both cap alphabetic; transition: color 0.4s; }
.cn-what__text { max-width: 326px; margin: 0; font-family: 'Gilroy', sans-serif; font-size: 13px; line-height: 1.25; color: #fff; text-box: trim-both cap alphabetic; }
.cn-what__row:hover .cn-what__num { color: #fff; }
.cn-what__row:hover .cn-what__name { color: #C5A87E; }
.cn-what__btn { display: flex; justify-content: center; margin-top: 45px; }

/* Портфолио: вкладки объектов */
.cn-pf { position: relative; z-index: 1; margin-top: -30px; padding: 60px 0 45px; background: #EAEAEA; border-radius: 30px 30px 0 0; }
.cn-pf__title { margin-top: 45px; color: #081330; }
.cn-pf__subtitle { max-width: 808px; margin: 30px auto 0; font-family: 'Gilroy', sans-serif; font-size: 20px; line-height: 1.25; color: #081330; text-align: center; text-box: trim-both cap alphabetic; }
.cn-pf__box { margin-top: 35px; }

.cn-pf__media { position: relative; height: 228px; border-radius: 10px 10px 0 0; overflow: hidden; background: #081330; }
.cn-pf__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }
.cn-pf__slide.is-active { opacity: 1; visibility: visible; }
.cn-pf__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.cn-pf__slide::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.cn-pf__caption { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; font-family: 'Gilroy', sans-serif; font-size: 14px; line-height: 1; color: #fff; text-transform: uppercase; }
.cn-pf__caption-name, .cn-pf__caption-link { text-box: trim-both cap alphabetic; }
.cn-pf__caption-name i { display: inline-block; width: 4px; height: 4px; margin: 0 5px; border-radius: 50%; background: #fff; vertical-align: 3px; }
.cn-pf__caption-link { color: #fff; text-decoration: none; transition: opacity 0.3s; }
.cn-pf__caption-link:hover { opacity: 0.7; }

.cn-pf__card { position: relative; padding-bottom: 30px; background: #fff; border-radius: 0 0 10px 10px; overflow: hidden; }
.cn-pf__card::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: calc(100% / var(--cn-pf-count)); background: linear-gradient(to right, transparent calc(100% - 1px), rgba(63, 70, 93, 0.5) 0) 0 0 / calc(100% / (var(--cn-pf-count) - 1)) 100% repeat-x; pointer-events: none; }
.cn-pf__marker { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% / var(--cn-pf-count)); background: #081330; transition: transform 0.45s ease; }
.cn-pf__tabs { position: relative; display: grid; grid-template-columns: repeat(var(--cn-pf-count), 1fr); }
.cn-pf__tab { display: grid; grid-template-columns: 39px 1fr; align-content: start; min-height: 77px; padding: 20px 10px 20px 15px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.cn-pf__tab-num { grid-row: 1 / 3; font-family: 'Gilroy300', sans-serif; font-size: 25px; font-weight: 300; line-height: 1.25; color: #3F465D; text-box: trim-both cap alphabetic; }
.cn-pf__tab-name { font-family: 'GilroyBold', sans-serif; font-size: 25px; line-height: 1.25; color: #081330; text-box: trim-both cap alphabetic; transition: color 0.3s; }
.cn-pf__tab.is-active .cn-pf__tab-name { color: #fff; }
.cn-pf__tab:not(.is-active):hover .cn-pf__tab-name { color: #C8AE88; }
.cn-pf__tab-loc { display: block; margin-top: 12px; font-family: 'GilroyBold', sans-serif; font-size: 10px; line-height: 1; color: #C8AE88; text-transform: uppercase; text-box: trim-both cap alphabetic; }
.cn-pf__tab-loc span + span::before { content: ''; display: inline-block; width: 3px; height: 3px; margin: 0 5px; border-radius: 50%; background: #C8AE88; vertical-align: 2px; }

.cn-pf__panel { position: relative; display: none; grid-template-columns: 534px 1fr; min-height: 194px; margin: 0 33px; padding: 30px; background: #F5F5F5; border-radius: 15px; color: #081330; }
.cn-pf__panel.is-active { display: grid; animation: cn-fade 0.5s ease; }
@keyframes cn-fade { from { opacity: 0; } to { opacity: 1; } }
.cn-pf__style { margin: 0; font-family: 'GilroyBold', sans-serif; font-size: 15px; line-height: 1; color: #C8AE88; text-transform: uppercase; text-box: trim-both cap alphabetic; }
.cn-pf__name { margin: 19px 0 0; font-family: 'GilroyBold', sans-serif; font-size: 35px; line-height: 1.25; color: #081330; text-box: trim-both cap alphabetic; }
.cn-pf__text { max-width: 441px; margin: 15px 0 0; font-family: 'Gilroy', sans-serif; font-size: 20px; line-height: 1.25; text-box: trim-both cap alphabetic; }
.cn-pf__facts { padding-top: 2px;     margin-left: auto;}
.cn-pf__specs { display: grid; grid-template-columns: 148px 1fr; row-gap: 28px; margin: 0; }
.cn-pf__spec dt { font-family: 'GilroyBold', sans-serif; font-size: 25px; line-height: 1.25; text-box: trim-both cap alphabetic; }
.cn-pf__spec dt sup { font-size: 16px; line-height: 0; vertical-align: 8px; }
.cn-pf__spec dd { margin: 10px 0 0; font-family: 'Gilroy', sans-serif; font-size: 10px; line-height: 1.25; text-transform: uppercase; text-box: trim-both cap alphabetic; }
.cn-pf__photos { display: block; width: fit-content; margin-top: 25px; font-family: 'Gilroy', sans-serif; font-size: 16px; line-height: 1; color: #081330; text-transform: uppercase; text-decoration: none; text-box: trim-both cap alphabetic; transition: opacity 0.3s; }
.cn-pf__photos:hover { opacity: 0.6; }

.cn-pf__buttons { display: flex; justify-content: center; margin-top: 20px; }
.cn-pf__btn { display: inline-block; min-width: 207px; padding: 10px 30px; border: 1px solid #081330; font-family: 'Gilroy', sans-serif; font-size: 15px; line-height: 17px; text-align: center; text-transform: uppercase; text-decoration: none; transition: background 0.3s, color 0.3s; }
.cn-pf__btn--dark { background: #081330; color: #fff; }
.cn-pf__btn--dark:hover { background: transparent; color: #081330; }
.cn-pf__btn--outline { color: #081330; }
.cn-pf__btn--outline:hover { background: #081330; color: #fff; }

/* Баннер калькулятора (стили repair-calc-banner из style.css) */
.cn-calc { padding: 0 70px; }
.cn-calc .repair-calc-banner__img { right: 0; }
.cn-calc .repair-calc-banner__title { text-box: trim-both cap alphabetic; }
.cn-calc .repair-calc-banner__btn { font-family: 'Gilroy', sans-serif; }

/* Этапы: как строится ваш дом */
.cn-steps { padding: 60px 0; background: #EAEAEA; }
.cn-steps__title { margin-top: 45px; color: #081330; }
.cn-steps__subtitle { max-width: 808px; margin: 30px auto 0; font-family: 'Gilroy', sans-serif; font-size: 20px; line-height: 1.25; color: #081330; text-align: center; text-box: trim-both cap alphabetic; }
/* Список на всю ширину контейнера, как «Что входит» на /repair/: три равные колонки с зазором 34px.
   Вертикальные линии стоят по центру зазоров: ширина колонки = (100% - 2 зазора) / 3, линия 2px. */
.cn-steps__list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 34px; width: 100%; margin: 28px 0 0; padding: 0; border-top: 2px solid rgba(8, 19, 48, 0.2); list-style: none; counter-reset: none; }
.cn-steps__list::before, .cn-steps__list::after { content: ''; position: absolute; top: 30px; bottom: -2px; width: 2px; background: rgba(8, 19, 48, 0.2); }
.cn-steps__list::before { left: calc((100% - 68px) / 3 + 16px); }
.cn-steps__list::after { right: calc((100% - 68px) / 3 + 16px); }
.cn-steps__item { padding: 30px 15px 28px; border-bottom: 2px solid rgba(8, 19, 48, 0.2); color: #081330; }
.cn-steps__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cn-steps__name { max-width: 206px; margin: 0; font-family: 'Cormorant700', serif; font-size: 22px; font-weight: 700; line-height: 25px; text-box: trim-both cap alphabetic; }
.cn-steps__num { font-family: 'Cormorant600', serif; font-size: 50px; font-weight: 600; line-height: 1; color: #C8AE88; opacity: 0.4; text-box: trim-both cap alphabetic; padding-top: 10px; margin-top: -10px; transition: box-shadow 0.3s; }
/* Золотая полоса над номером при наведении на пункт, как у «Что входит» на /repair/.
   Рамка номера обрезана до высоты цифр (text-box), поэтому полоса без запаса легла бы на верх цифр:
   padding-top даёт ей место над цифрами, равный отрицательный margin-top оставляет цифры на прежнем месте. */
.cn-steps__item:hover .cn-steps__num { box-shadow: inset 0px 4px 0px 0px #C8AE88; }
.cn-steps__text { margin: 27px 0 0; font-family: 'Gilroy300', sans-serif; font-size: 14px; font-weight: 300; line-height: normal; text-align: justify; text-box: trim-both cap alphabetic; }

/* С чем мы можем помочь: слайдер */
.cn-help { padding: 0 0 60px; background: #EAEAEA; }
.cn-help__title { margin-top: 45px; color: #081330; }
.cn-help__slider { position: relative; height: 498px; margin-top: 45px; overflow: hidden; background: #616778; }
.cn-help__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.cn-help__slide.is-active { opacity: 1; visibility: visible; }
.cn-help__bg { position: absolute; inset: 0; background-size: cover; background-position: center 38%; }
.cn-help__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(102, 102, 102, 0) 0%, rgba(0, 0, 0, 0.46) 80%); }
.cn-help__content { position: absolute; left: 0; right: 0; bottom: 111px; z-index: 1; color: #fff; }
.cn-help__meta { margin: 0; font-family: 'Gilroy', sans-serif; font-size: 14px; line-height: 1; color: #C8AE88; text-transform: uppercase; text-box: trim-both cap alphabetic; }
.cn-help__meta span { margin-right: 11px; }
.cn-help__name { margin: 30px 0 0; font-family: 'Cormorant700', serif; font-size: 55px; font-weight: 700; line-height: 1.25; color: #fff; text-box: trim-both cap alphabetic; }
.cn-help__text { max-width: 441px; margin: 25px 0 0; font-family: 'Gilroy', sans-serif; font-size: 18px; line-height: normal; color: #fff; text-box: trim-both cap alphabetic; }
.cn-help__controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 0; border-top: 1px solid #7B85A0; }
.cn-help__controls-inner { display: flex; align-items: center; }
.cn-help__arrow { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid #EAEAEA; background: transparent; color: #fff; cursor: pointer; transition: background 0.3s, border-color 0.3s; }
.cn-help__arrow:hover, .cn-help__arrow:active, .cn-help__arrow:focus-visible { border-color: #C8AE88; background: #C8AE88; outline: none; }
.cn-help__arrow--next svg { transform: scaleX(-1); }
.cn-help__dots { display: flex; align-items: center; gap: 10px; margin-left: 20px; }
.cn-help__dot { width: 25px; height: 13px; padding: 6px 0; border: 0; background: #fff content-box; cursor: pointer; transition: width 0.3s ease, background-color 0.3s; }
.cn-help__dot:hover { background-color: #C8AE88; }
.cn-help__dot.is-active { width: 41px; background-color: #C8AE88; }
.cn-help__counter { margin-left: auto; margin-right: 21px; font-family: 'Gilroy', sans-serif; font-size: 14px; line-height: 1; color: #C8AE88; }

@media (max-width: 1024px) {
    .cn-container { padding: 0 30px; }
    .cn-hero__row .hero-subtitle { max-width: 800px; }
    .cn-hero__badges { position: static; transform: none; width: auto; flex-direction: row; margin-top: 20px; }
    .cn-scen__list { grid-template-columns: repeat(2, 1fr); }
    .cn-scen__card:nth-child(n+3) { margin-top: -1px; }
    .cn-scen__card:nth-child(odd) { margin-left: 0; }
    .cn-what__list { margin-left: 0; margin-right: 0; }
    .cn-what__row { grid-template-columns: 60px 1fr 1fr; column-gap: 20px; }
    .cn-pf__tab-name { font-size: 20px; }
    .cn-pf__panel { grid-template-columns: 1fr 1fr; column-gap: 30px; }
    .cn-calc { padding: 0 30px; }
    .cn-steps__list { grid-template-columns: repeat(2, 1fr); column-gap: 30px; width: 100%; margin-left: 0; }
    .cn-steps__list::before, .cn-steps__list::after { display: none; }
}

@media (max-width: 768px) {
    .cn-container { padding: 0 15px; }
    .cn-hero__locations { margin-bottom: 15px; }
    .cn-hero__badges { gap: 8px; }
    .cn-scen { padding: 40px 0 50px; }
    .cn-scen__title, .cn-scen__list { margin-top: 30px; }
    .cn-scen__list { grid-template-columns: 1fr; }
    .cn-scen__card { margin-left: 0 !important; }
    .cn-scen__card + .cn-scen__card { margin-top: -1px; }
    .cn-what { padding: 40px 0 70px; }
    .cn-what__title, .cn-what__list { margin-top: 30px; }
    .cn-what__row { grid-template-columns: 44px 1fr; row-gap: 12px; column-gap: 10px; padding: 20px 10px; }
    .cn-what__row:hover { padding-left: 20px; }
    .cn-what__num { font-size: 20px; }
    .cn-what__name { font-size: 21px; }
    .cn-what__text { grid-column: 2; max-width: none; }
    .cn-pf { padding: 50px 0 40px; }
    .cn-pf__title, .cn-pf__subtitle { margin-top: 25px; }
    .cn-pf__subtitle { font-size: 16px; }
    .cn-pf__media { height: 200px; }
    .cn-pf__caption-link { display: none; }
    .cn-pf__card { padding-bottom: 15px; }
    .cn-pf__card::before, .cn-pf__marker { display: none; }
    .cn-pf__tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
    .cn-pf__tab { flex: 0 0 auto; min-width: 170px; border-right: 1px solid rgba(63, 70, 93, 0.5); }
    .cn-pf__tab.is-active { background: #081330; }
    .cn-pf__tab-name { font-size: 18px; }
    .cn-pf__panel { grid-template-columns: 1fr; row-gap: 25px; margin: 15px 15px 0; padding: 20px; }
    .cn-pf__name { font-size: 28px; }
    .cn-pf__text { font-size: 16px; }
    .cn-pf__buttons { flex-direction: column; }
    .cn-calc { padding: 0 15px; }
    .cn-steps { padding: 45px 0; }
    .cn-steps__title, .cn-steps__subtitle { margin-top: 25px; }
    .cn-steps__subtitle { font-size: 16px; }
    .cn-steps__list { grid-template-columns: 1fr; }
    .cn-steps__item { padding: 25px 0; }
    .cn-help { padding-bottom: 45px; }
    .cn-help__title, .cn-help__slider { margin-top: 25px; }
    .cn-help__slider { height: 460px; }
    .cn-help__content { bottom: 90px; }
    .cn-help__name { margin-top: 20px; font-size: 38px; }
    .cn-help__text { margin-top: 18px; font-size: 16px; }
    .cn-help__dots { gap: 6px; margin-left: 12px; }
    .cn-help__dot { width: 16px; }
    .cn-help__dot.is-active { width: 28px; }
    .cn-help__counter { margin-right: 12px; }
    .cn-section-title { font-size: 30px; }
    .cn-stats { padding: 40px 15px 35px; }
    .cn-stats__list { flex-wrap: wrap; row-gap: 30px; margin: 35px 0; }
    .cn-stats__item { width: 50%; padding: 0 10px; }
    .cn-stats__item:nth-child(odd) { border-left: 0; }
    .cn-stats .cn-stats__num { font-size: 56px; }
}

/* ===== Попап «Получить консультацию» ===== */
.cn-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.cn-popup.is-open { opacity: 1; visibility: visible; }
.cn-popup__backdrop { position: absolute; inset: 0; background: rgba(8, 19, 48, 0.55); }
.cn-popup__window { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 765px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 4px; box-shadow: 0 30px 80px rgba(8, 19, 48, 0.35); transform: translateY(16px) scale(0.98); transition: transform 0.3s ease; }
.cn-popup.is-open .cn-popup__window { transform: translateY(0) scale(1); }

.cn-popup__close { position: absolute; top: 20px; right: 20px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; background: #C8AE88; border: none; border-radius: 50%; color: #fff; cursor: pointer; transition: background 0.3s, color 0.3s; }
.cn-popup__close:hover { background: #081330; color: #fff; }
.cn-popup__close svg { width: 12px; height: 12px; }

.cn-popup__aside { display: flex; flex-direction: column; padding: 50px 36px; background: #081330; color: #fff; }
.cn-popup__eyebrow { font-family: 'Gilroy', sans-serif; font-size: 11px; line-height: 1; color: #C8AE88; text-transform: uppercase; letter-spacing: 0.8px; }
.cn-popup__title { margin: 33px 0 0; font-family: 'Cormorant600', serif; font-size: 54px; font-weight: 600; line-height:0.76; color: #C8AE88;  }
.cn-popup__text { margin: 27px 0 0; font-family: 'Gilroy', sans-serif; font-size: 13px; line-height:1.1; color: rgba(255, 255, 255, 0.75); }
.cn-popup__link { margin-top: auto; padding-top: 28px; font-family: 'GilroySemibold', sans-serif; font-size: 13px; line-height: 1; color: #C8AE88; text-transform: uppercase; text-decoration: none; transition: opacity 0.3s; }
.cn-popup__link:hover { opacity: 0.7; }

.cn-popup__form { padding: 44px 40px; background: #E9E9E9; }
.cn-popup__form .kayra-form { gap: 18px; }
.cn-popup__form .form-group { gap:0px; }
/* В попапе поля идут по одному в строке, включая пару «Имя + Телефон». */
.cn-popup__form .form-row-2 { grid-template-columns: 1fr; gap: 18px; }
.cn-popup__form .form-group label { font-family: 'GilroySemibold', sans-serif; font-size: 16px; color: #55595F; }
.cn-popup__form .kayra-form input,
.cn-popup__form .kayra-form select,
.cn-popup__form .kayra-form textarea {  max-height: 45px;padding: 10px 0; background: transparent; border: none; border-bottom: 1px solid #C8AE88; border-radius: 0; font-family: 'Gilroy', sans-serif; font-size: 17px; color: #081330; }
.cn-popup__form .kayra-form input::placeholder,
.cn-popup__form .kayra-form textarea::placeholder { font-family: 'Gilroy', sans-serif; font-weight: 400; color: #A9ACB2; }
.cn-popup__form .kayra-form select { padding-right: 28px; }
.cn-popup__form .kayra-form select:invalid { color: #A9ACB2; }
.cn-popup__form .kayra-form input:focus,
.cn-popup__form .kayra-form select:focus,
.cn-popup__form .kayra-form textarea:focus { border-bottom-color: #081330; }
.cn-popup__form .select-wrapper::after { right: 2px; color: #081330; }
.cn-popup__form .kayra-form textarea { resize: none; }
.cn-popup__form .consent-text { font-family: 'Gilroy', sans-serif; font-size: 14px; color: #7E828A; }
.cn-popup__form .custom-checkbox { width: 16px; height: 16px; min-width: 16px; background: #fff; border: 1px solid #C5C8CE; border-radius: 2px; }
.cn-popup__form .form-submit { margin-top: 18px; padding: 20px; border-radius: 2px; font-size: 16px; letter-spacing: 0.06em; justify-content: center; }

@media (max-width: 860px) {
    .cn-popup { padding: 12px; }
    .cn-popup__window { grid-template-columns: 1fr; max-height: calc(100vh - 24px); }
    .cn-popup__aside { padding: 32px 24px 28px; }
    .cn-popup__title { margin-top: 18px; font-size: 34px; }
    .cn-popup__text { margin-top: 16px; }
    .cn-popup__link { padding-top: 20px; }
    .cn-popup__form { padding: 28px 24px 32px; }
    .cn-popup__close { top: 12px; right: 12px; }
    .construct-portfolio-section { margin-top: -50px;}
}

/* ===== Окно просмотра фото в портфолио (стили .custom-lightbox — из style.css) ===== */
.cn-lightbox .lightbox-content { max-width: calc(100% - 140px); }
.cn-lightbox .lightbox-img { max-height: 86vh; }
/* Крестик закреплён за углом экрана: у карточки объекта он вынесен за картинку и на телефоне уезжает за край */
.cn-lightbox__close { position: absolute; top: 18px; right: 18px; z-index: 3003; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; background: rgba(255, 255, 255, 0.1); border: none; border-radius: 50%; cursor: pointer; transition: background 0.3s; }
.cn-lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }
.cn-lightbox__counter { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 3003; text-align: center; font-family: 'Gilroy', sans-serif; font-size: 14px; color: rgba(255, 255, 255, 0.75); pointer-events: none; }
.cn-lightbox[hidden] { display: none; }
@media (max-width: 860px) {
    .cn-lightbox .lightbox-content { max-width: 100%; }
    .cn-lightbox .lb-prev { left: 8px; }
    .cn-lightbox .lb-next { right: 8px; }
    .cn-lightbox .lightbox-arrow { width: 42px; height: 42px; background: rgba(0, 0, 0, 0.35); }
    .cn-lightbox__close { top: 12px; right: 12px; width: 44px; height: 44px; }
}

/* Цитата основателя на странице «Строительство» — по центру */
.page-template-template-construction-new-php .citate-founder.portfolio-citate-text { text-align: center; }

/* Форма «Начать работу над проектом»: у обязательных полей (имя, телефон или Мах,
   тип объекта) в подписи золотая звёздочка. Необязательный комментарий без неё. */
.project-start-content .form-group:has(:required) > label::after { content: ' *'; color: #C8AE88; }
