/* ============================================================
   Résidence Assayag — стили сайта.
   Собственная реализация по DESIGN-SPEC.md (параметры сняты
   с прежнего сайта владельца): Julius Sans One / Lato / Poppins,
   акцент #83b735, контейнер 1222px, радиусы 0.
   ============================================================ */

:root {
    /* Палитра из проекта Petition-assayag (владельца): navy → небо + золото */
    --navy-deep: #0f2a44;
    --navy: #1f3d5c;
    --blue: #2c5282;
    --blue-mid: #4a7baa;
    --sky: #8bb6d9;
    --gold: #b89668;
    --gold-soft: #d4b98c;
    --primary: #2c5282;        /* акцент: кнопки, ссылки, активные состояния */
    --primary-hover: #1f3d5c;
    --alt: #b89668;            /* тёплый золотой акцент для декоративных линий */
    --title-color: #1a2733;
    --text-color: #4a5568;
    --link-color: #1f3d5c;
    --muted: #718096;
    --gray-400: #a5a5a5;
    --brd: rgba(15, 42, 68, .10);
    --container: 1222px;
    --header-h: 105px;
    --header-sticky-h: 60px;
    --font-display: "Julius Sans One", Arial, Helvetica, sans-serif;
    --font-text: "Lato", Arial, Helvetica, sans-serif;
    --font-accent: "Poppins", Arial, Helvetica, sans-serif;
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif; /* заголовки в теле статьи */
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font: 400 16px/1.6 var(--font-text);
    color: var(--text-color);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--link-color); transition: color .25s ease; }
a:hover { color: rgba(51, 51, 51, .65); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -.02em;   /* Julius Sans One от природы широкий — поджимаем */
    color: var(--title-color);
    margin: 0 0 20px;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: 15px; width: 100%; }

/* ─────────────── Кнопки (параметры темы-эталона) ─────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 5px 28px; min-height: 48px;
    font: 600 14px/1.2 var(--font-text);
    text-transform: uppercase; text-decoration: none;
    border: 0; border-radius: 0; cursor: pointer;
    transition: all .25s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary); color: #fff; box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: #333; box-shadow: inset 0 0 0 2px #fff; }
.btn-outline { background: transparent; color: #333; box-shadow: inset 0 0 0 2px rgba(0,0,0,.2); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px #333; color: #333; }
.btn-light { background: #f3f3f3; color: #3e3e3e; padding: 5px 20px; min-height: 42px; font-size: 13px; }
.btn-light:hover { background: #e8e8e8; color: #3e3e3e; }

/* ─────────────── Шапка ─────────────── */
.site-header {
    position: absolute; top: 0; left: 0; right: 0; z-index: 390;
    transition: background-color .3s ease, transform .35s ease;
}
.site-header.header-solid { position: relative; background: var(--navy-deep); }
.site-header.is-sticky {
    position: fixed; background: var(--navy-deep);
    box-shadow: 0 1px 8px rgba(0,0,0,.1);
    animation: slideDown .35s ease;
}
.site-header.is-hidden { transform: translateY(-110%); }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }

.header-inner {
    max-width: var(--container); margin-inline: auto; padding-inline: 15px;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
    transition: height .3s ease;
}
.is-sticky .header-inner { height: var(--header-sticky-h); }
.site-logo { display: flex; align-items: center; max-height: 100%; }
.site-logo img { max-height: 53px; width: auto; padding-block: 5px; }
.is-sticky .site-logo img { max-height: 40px; }

.site-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; padding-inline: 10px; margin-right: 14px; }
.nav-root { display: inline-flex; gap: 5px 20px; list-style: none; margin: 0; padding: 0; }
.nav-root > li { position: relative; }
.nav-root > li > a {
    display: flex; align-items: center; min-height: 42px; padding: 5px 0;
    font: 500 15px/1.4 var(--font-accent); letter-spacing: .04em;
    text-transform: uppercase; text-decoration: none; color: #fff;
}
.nav-root > li > a:hover, .nav-root > li:hover > a { color: rgba(255,255,255,.7); }
.caret { margin-inline-start: 6px; border: 4px solid transparent; border-top-color: currentColor; translate: 0 2px; }

.nav-dropdown {
    position: absolute; top: 100%; left: 0; z-index: 401;
    min-width: 260px; padding: 15px 0;
    background: #fff; box-shadow: 0 0 9px rgba(0,0,0,.15);
    list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .25s ease;
}
.has-dropdown:hover .nav-dropdown, .has-dropdown:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; transform: none;
}
.nav-dropdown a {
    display: block; padding: 9px 30px;
    font: 400 16px/1.5 var(--font-text);
    color: #333; text-decoration: none;
}
.nav-dropdown a:hover { color: rgba(51,51,51,.6); }

.header-right { display: flex; align-items: center; gap: 18px; }
.btn-boutique {
    font: 600 13px/1.2 var(--font-accent); text-transform: uppercase;
    color: #fff; text-decoration: none; padding: 8px 18px;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
}
.btn-boutique:hover { background: #fff; color: #333; }
.icon-instagram { color: #fff; display: inline-flex; }
.icon-instagram:hover { color: rgba(255,255,255,.7); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: all .25s ease; }

/* ─────────────── Баннер страниц ─────────────── */
.page-title {
    position: relative; background-color: var(--navy-deep);
    background-size: cover; background-position: center;
    padding-block: 60px;
    margin-top: 0;
}
.page-title-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.page-title-inner {
    position: relative; max-width: var(--container); margin-inline: auto; padding-inline: 15px;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
    padding-top: var(--header-h);
}
.page-title h1 { font-size: 68px; line-height: 1.2; letter-spacing: -.035em; color: #fff; margin: 0; }
.breadcrumbs { display: inline-flex; flex-wrap: wrap; font-size: 16px; color: rgba(255,255,255,.7); }
.breadcrumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { margin-inline: 8px; }
.breadcrumbs span:last-child { font-weight: 600; color: #fff; }

/* ─────────────── Hero со скраббингом ─────────────── */
.hero-scrub { position: relative; height: 300vh; background: var(--navy-deep); }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-poster, .hero-poster img, .hero-canvas, .hero-video-mobile {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-canvas { display: none; }
.hero-video-mobile { display: none; }
/* Тёмный оверлей под титрами hero; растворяется при скролле (JS),
   открывая чистое видео. (Вариант с «чертёжной калькой» отменён 17.07.2026.) */
.hero-veil {
    position: absolute; inset: 0; z-index: 1; transition: opacity .3s ease;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, .58), rgba(0, 0, 0, .42) 45%, rgba(0, 0, 0, .62));
}
/* Киноплёночное зерно (едва заметное) */
.hero-grain {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}
/* Рамка «чертёжного листа» */
.hero-frame {
    position: absolute; inset: 18px; z-index: 2; pointer-events: none;
    border: 1px solid rgba(255,255,255,.22);
}
.hero-frame::before, .hero-frame::after {
    content: ""; position: absolute; width: 26px; height: 26px;
    border: 1px solid rgba(255,255,255,.55);
}
.hero-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Компоновка: титры в нижней трети (кино), картуш справа */
.hero-layout {
    position: absolute; inset: 0; z-index: 3;
    max-width: calc(var(--container) + 60px); margin-inline: auto;
    padding: 60px 60px 96px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.hero-overline {
    display: flex; align-items: center; gap: 16px;
    font: 600 15.5px/1.3 var(--font-accent);
    color: #fff; text-transform: uppercase; letter-spacing: .26em;
    margin: 0 0 22px; text-shadow: 0 1px 18px rgba(0,0,0,.6);
}
.ho-rule { width: 56px; height: 2px; background: var(--gold-soft); flex: 0 0 auto; }
.hero-title { margin: 0; color: #fff; text-transform: uppercase; }
.ht-line { display: block; overflow: hidden; }
.ht-line > span { display: inline-block; transform: translateY(115%); transition: transform 1s cubic-bezier(.19,1,.22,1); }
.ht-small > span { transition-delay: .15s; }
.ht-big > span { transition-delay: .3s; }
body.hero-ready .ht-line > span { transform: none; }
.ht-small {
    font: 400 clamp(20px, 2.4vw, 32px)/1.25 var(--font-display);
    letter-spacing: .45em; opacity: .9;
    margin-left: clamp(8px, 3.5vw, 52px);   /* «ступенька» — как уступы башен */
}
.ht-big {
    font: 400 clamp(64px, 10.5vw, 150px)/0.98 var(--font-display);
    letter-spacing: -.02em;   /* поджали буквы — «Assayag» собраннее */
    text-shadow: 0 4px 44px rgba(0,0,0,.45);
}
/* Картуш — «фиша» чертежа вместо кнопок */
.hero-fiche {
    position: relative;
    flex: 0 0 auto; max-width: 322px; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.5);
    opacity: 0; transform: translateY(14px);
    transition: opacity .9s ease .55s, transform .9s ease .55s;
}
/* Короткий золотой акцент поверх линии — «печать» чертежа */
.hero-fiche::before {
    content: ""; position: absolute; top: -1px; left: 0;
    width: 48px; height: 2px; background: var(--gold-soft);
}
body.hero-ready .hero-fiche { opacity: 1; transform: none; }
.hf-sub {
    margin: 0 0 16px; font: 400 17.5px/1.5 var(--font-heading);
    color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.55);
}
.hf-meta {
    margin: 0; font: 600 11px/1.95 var(--font-text);
    text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.78);
    text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.hf-k { color: var(--gold-soft); margin-right: 8px; }
.hf-k::after { content: "—"; margin-left: 8px; color: rgba(255,255,255,.4); }
.hero-scroll-hint {
    position: absolute; bottom: 34px; left: 50%; translate: -50% 0;
    font: 600 10px/1 var(--font-text); letter-spacing: .3em; text-transform: uppercase;
    color: rgba(255,255,255,.55);
    animation: hintPulse 2.6s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
/* Полоска-прогресс наезда — по нижней кромке рамки листа */
.hero-progress {
    position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 4;
    height: 1px; background: rgba(255,255,255,.15);
}
.hero-progress span { display: block; width: 0; height: 100%; background: rgba(255,255,255,.8); }

/* ─────────────── Секции ─────────────── */
.over-title {
    display: flex; align-items: center; gap: 12px;
    font: 600 12px/1.4 var(--font-text);
    text-transform: uppercase; letter-spacing: .2em; color: var(--gray-400);
    margin: 0 0 8px;
}
.over-title.light { color: rgba(255,255,255,.6); }
.ot-rule { width: 40px; height: 1px; background: var(--gold); opacity: 1; flex: 0 0 auto; }
.section-display { font-size: 34px; }

/* Редакционная шапка секции: заголовок слева, ссылка-действие справа */
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; margin-bottom: 36px;
}
.section-head .section-display { margin-bottom: 0; }
.link-arrow {
    font: 600 13px/1.4 var(--font-text); text-transform: uppercase; letter-spacing: .08em;
    color: #333; text-decoration: none;
    border-bottom: 2px solid var(--primary); padding-bottom: 3px;
    transition: color .25s ease;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--primary); }
.link-arrow.light { color: #fff; }
.link-arrow.light:hover { color: var(--primary); }
.link-arrow[target="_blank"]::after { content: ""; }

/* ─────────────── Манифест: цитата Буайе + чертёж в паспарту ─────────────── */
.home-manifesto { padding: 100px 0 0; }
.manifesto-grid {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 56px; align-items: center;
}
.manifesto-display { margin: 14px 0 0; border: 0; padding: 0; }
.manifesto-display p {
    font: 400 clamp(18px, 1.7vw, 23px)/1.5 var(--font-display);
    letter-spacing: -.02em;
    color: var(--title-color); margin: 0;
}
.manifesto-cite { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.manifesto-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
/* План — крупный элемент во всю ширину, без рамки и отступов */
.manifesto-plan { margin: 0; }
.manifesto-plan img {
    display: block; width: 100%;
    border: 0; padding: 0; background: none;
    box-shadow: 0 14px 34px rgba(15, 42, 68, .16);
}
.manifesto-plan figcaption {
    margin-top: 14px; text-align: center;
    font: 600 10.5px/1.6 var(--font-text); text-transform: uppercase;
    letter-spacing: .18em; color: var(--gray-400);
}

/* «Данные листа» — полоса фактов */
.facts-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px; margin-top: 70px; padding: 28px 15px;
    border-top: 1px solid var(--brd); border-bottom: 1px solid var(--brd);
}
.fact { text-align: center; }
.fact b { display: block; font: 400 clamp(28px, 3vw, 40px)/1.1 var(--font-display); color: var(--title-color); }
.fact span { font: 600 10.5px/1.6 var(--font-text); text-transform: uppercase; letter-spacing: .18em; color: var(--gray-400); }

.home-news { padding: 80px 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.news-card { position: relative; }
.news-card-media { position: relative; display: block; overflow: hidden; }
.news-card-media .ncm-link { display: block; }
.news-card-media img { width: 100%; height: 230px; object-fit: cover; transition: transform .5s cubic-bezier(0,0,.44,1.18); }
.news-card:hover .news-card-media img { transform: scale(1.1); }
/* Рубрика поверх фото — с отступами от угла, полупрозрачный фон «матовое стекло» */
.news-card-media .news-cat {
    position: absolute; left: 14px; bottom: 14px; z-index: 2;
    background: rgba(255,255,255,.78); color: var(--primary) !important;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 14px rgba(15,42,68,.18);
}
.news-card-media .news-cat:hover { background: rgba(255,255,255,.92); color: var(--primary-hover) !important; }
.news-card-body { padding: 14px 0 0; }
.news-card h3 { font: 400 22px/1.4 var(--font-text); margin: 0 0 10px; }
.news-card h3 a { color: #333; text-decoration: none; }
.news-card h3 a:hover { color: rgba(51,51,51,.65); }
.news-card p { color: var(--muted); margin: 0 0 12px; }

/* ─────────────── Фотолента ─────────────── */
.home-strip { padding: 0 0 80px; }
.strip-track {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
    padding-inline: 10px;
}
.strip-item { display: block; overflow: hidden; }
.strip-item img {
    width: 100%; height: 240px; object-fit: cover; display: block;
    transition: transform .5s cubic-bezier(0,0,.44,1.18), opacity .3s ease;
}
.strip-item:hover img { transform: scale(1.06); opacity: .88; }

/* ─────────────── Визит: ночной финал вместо карты ─────────────── */
.home-visite {
    position: relative; min-height: 480px; display: flex; align-items: center;
    background: url('../img/casablanca-night.jpg') center / cover no-repeat #0a0a0a;
}
.home-visite::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%);
}
.visite-inner { position: relative; width: 100%; }
.visite-card { max-width: 420px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.4); }
.visite-card h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); margin: 10px 0 16px; }
.visite-addr { color: rgba(255,255,255,.85); line-height: 1.7; margin: 0 0 24px; }
.visite-links { display: flex; gap: 34px; flex-wrap: wrap; }

/* Дата-бейдж (53px, белый) */
.date-badge {
    position: absolute; top: 15px; inset-inline-start: 15px; z-index: 2;
    display: inline-flex; flex-direction: column; gap: 4px;
    min-width: 53px; padding: 7px; text-align: center; line-height: 1;
    background: #fff; box-shadow: 0 0 9px rgba(0,0,0,.1); color: #333;
}
.date-badge b { font-size: 22px; font-weight: 400; }
.date-badge i { font: 600 12px/1 var(--font-text); text-transform: uppercase; font-style: normal; }

/* Рубрика (зелёный лейбл) */
.news-cat {
    display: inline-block; padding-inline: 10px; height: 2em; line-height: 2em;
    background: var(--primary); color: #fff !important;
    font: 600 12.8px/2em var(--font-text); text-transform: uppercase; text-decoration: none;
}
.news-cat:hover { color: rgba(255,255,255,.8) !important; }

/* Мягкая инлайн-ссылка «Lire la suite →» в конце анонса (главная) */
.read-more {
    white-space: nowrap; font-weight: 600;
    color: var(--primary); text-decoration: none;
}
.read-more .rm-arrow { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.read-more:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.read-more:hover .rm-arrow { transform: translateX(3px); }

/* ─────────────── Блог: список с сайдбаром ─────────────── */
.layout-sidebar {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px;
    padding-block: 60px;
}
.blog-list { display: flex; flex-direction: column; gap: 50px; }

/* Витрина «mask»: сетка 2 колонки, фото на всю карточку, текст поверх */
.blog-mask-grid, .blog-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Заголовок «Toutes les actualités» между большими и компактными */
.blog-all-title { font-size: 26px; margin: 44px 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--brd); }

/* Компактные карточки: миниатюра слева + текст справа, 2 колонки */
.blog-compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.compact-card { display: flex; gap: 16px; text-decoration: none; align-items: flex-start; }
.compact-thumb { width: 124px; height: 84px; flex: 0 0 auto; object-fit: cover; transition: opacity .25s ease; }
.compact-card:hover .compact-thumb { opacity: .85; }
.compact-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.compact-cat { font: 600 10.5px/1.2 var(--font-text); text-transform: uppercase; letter-spacing: .12em; color: var(--primary); }
.compact-title { font: 400 16px/1.35 var(--font-accent); color: var(--title-color); }
.compact-card:hover .compact-title { color: var(--primary); }
.compact-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mask-card {
    position: relative; overflow: hidden; aspect-ratio: 4 / 3;
    background: var(--navy-deep);
}
.mask-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s cubic-bezier(0,0,.3,1);
}
.mask-card:hover .mask-img { transform: scale(1.07); }
.mask-fill {
    position: absolute; inset: 0; z-index: 2; text-decoration: none;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
    /* тёмный только внизу под заголовком; верх картинки светлый */
    background: linear-gradient(to top, rgba(7,23,38,.92) 0%, rgba(7,23,38,.62) 22%, rgba(7,23,38,0) 52%);
    transition: background .3s ease;
}
.mask-card:hover .mask-fill { background: linear-gradient(to top, rgba(7,23,38,.94) 0%, rgba(7,23,38,.68) 28%, rgba(7,23,38,0) 58%); }
.mask-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mask-inner .news-cat { position: static; }
.mask-title {
    font: 400 clamp(19px, 1.6vw, 23px)/1.35 var(--font-accent);
    color: #fff; text-transform: none; letter-spacing: .01em;
}
.mask-meta {
    font: 600 11px/1.2 var(--font-text); text-transform: uppercase;
    letter-spacing: .14em; color: rgba(255,255,255,.7);
}

.blog-card { display: flex; align-items: center; }
.blog-card-media { position: relative; display: block; overflow: hidden; flex: 1 0 50%; max-width: 50%; }
.blog-card-media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; transition: transform .5s cubic-bezier(0,0,.44,1.18); }
.blog-card:hover .blog-card-media img { transform: scale(1.1); }
.blog-card-body {
    flex: 1 0 50%; max-width: 50%;
    margin-inline-start: -15px; position: relative; z-index: 2;
    background: #fff; padding: 25px;
    box-shadow: 0 0 4px rgba(0,0,0,.12);
    transition: box-shadow .5s cubic-bezier(0,0,.44,1.18);
    display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
}
.blog-card:hover .blog-card-body { box-shadow: 0 0 9px rgba(0,0,0,.2); }
.blog-card:not(:has(.blog-card-media)) .blog-card-body { max-width: 100%; flex-basis: 100%; margin: 0; }
.blog-card .news-cat { margin-top: calc(-25px - 1.1em); }
.blog-card-title { font: 400 22px/1.4 var(--font-text); margin: 0; }
.blog-card-title a { color: #333; text-decoration: none; }
.blog-card-title a:hover { color: rgba(51,51,51,.65); }
.blog-card-meta { font-size: 14px; color: var(--gray-400); margin: 0; }
.blog-card-excerpt { color: var(--muted); margin: 0; }

.pagination { display: flex; justify-content: space-between; margin-top: 50px; gap: 10px; }
.no-content { padding: 40px 0; color: var(--muted); }

/* Одиночная статья + контент из Quill-редактора.
   Текст — тёмный и крупный для комфортного чтения. */
.single-article .entry-content { font-size: 18px; line-height: 1.8; color: #16202b; }
.single-article .entry-content p, .single-article .entry-content li { color: #16202b; }
/* Заголовки в теле статьи — serif Playfair (Julius слишком тонкий/растянутый для текста) */
.entry-content h2, .entry-content h3, .entry-content h4 {
    font-family: var(--font-heading);
    letter-spacing: 0; text-transform: none;
    color: var(--title-color);
}
.entry-content h2 { font-weight: 600; font-size: 28px; line-height: 1.3; margin-top: 40px; margin-bottom: 16px; }
.entry-content h3 { font-weight: 600; font-size: 22px; line-height: 1.35; margin-top: 30px; margin-bottom: 12px; }
.entry-content h4 { font-weight: 700; font-size: 18px; line-height: 1.4; margin-top: 24px; margin-bottom: 10px; }
.entry-content img { margin-block: 10px; max-width: 100%; height: auto; }
.entry-content iframe { max-width: 100%; }
.entry-content blockquote {
    margin: 24px 0; padding: 4px 0 4px 20px;
    border-left: 3px solid var(--primary);
    font-family: var(--font-display); font-size: 1.15em; color: var(--title-color);
}
.entry-content .ql-align-center, .entry-content [style*="text-align: center"] { text-align: center; }
.entry-content .ql-align-right { text-align: right; }
.entry-content .ql-align-justify { text-align: justify; }
/* «Две фото в ряд» (блок из редактора) */
.entry-content .article-duo { display: flex; gap: 12px; margin: 20px 0; }
.entry-content .article-duo img { flex: 1 1 0; width: 50%; margin: 0; object-fit: cover; }
@media (max-width: 600px) { .entry-content .article-duo { flex-direction: column; } .entry-content .article-duo img { width: 100%; } }

/* Подзаголовок статьи (chapô) — serif Playfair, прямое начертание (без наклона) */
.article-chapo {
    font: normal 500 clamp(22px, 2.3vw, 27px)/1.45 var(--font-heading);
    color: var(--title-color); margin: 0 0 24px; letter-spacing: 0;
}

/* ─── Байлайн ─── */
.article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--brd); font-size: 14px; color: var(--muted); }
.article-byline .news-cat { position: static; }
.byline-author { font-weight: 700; color: var(--title-color); }
.byline-sep { opacity: .5; }

/* ─── TOC ─── */
.article-toc {
    background: #f5f8fb; border: 1px solid var(--brd); border-left: 3px solid var(--primary);
    padding: 14px 20px; margin: 0 0 30px; border-radius: 0 6px 6px 0;
}
.article-toc summary { cursor: pointer; font: 600 13px/1.2 var(--font-accent); text-transform: uppercase; letter-spacing: .08em; color: var(--title-color); }
.article-toc ol { margin: 12px 0 2px; padding-left: 20px; }
.article-toc li { margin: 6px 0; }
.article-toc a { color: var(--link-color); text-decoration: none; }
.article-toc a:hover { color: var(--primary); text-decoration: underline; }

/* Секционные заголовки «хвоста» статьи — serif Playfair (в тон заголовкам тела) */
.article-links h2, .article-related h2, .article-comments h2, .an-title {
    font-family: var(--font-heading); font-weight: 600; letter-spacing: 0; text-transform: none;
}

/* ─── Liens utiles ─── */
.article-links { margin: 40px 0 0; }
.article-links h2 { font-size: 22px; }
.article-links ul { margin: 0; padding-left: 20px; }
.article-links li { margin: 8px 0; }
.article-links a { color: var(--primary); }

/* ─── Подпись / copyright ─── */
.article-signature { margin: 30px 0 6px; font-style: italic; color: var(--text-color); }
.article-copyright { font-size: 13px; color: var(--muted); border-top: 1px solid var(--brd); padding-top: 16px; margin-top: 16px; }

/* ─── CTA ─── */
.article-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background:
        radial-gradient(120% 80% at 90% 0%, rgba(184,150,104,.18), rgba(184,150,104,0) 55%),
        linear-gradient(150deg, #1a4066, #0f2a44);
    color: #fff; padding: 26px 28px; margin: 30px 0; border-radius: 8px;
}
.article-cta .cta-text b { display: block; font: 400 20px/1.3 var(--font-display); }
.article-cta .cta-text span { color: rgba(255,255,255,.75); font-size: 14px; }
.article-cta .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.article-cta .btn-outline { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.article-cta .btn-outline:hover { box-shadow: inset 0 0 0 2px #fff; color: #fff; }

/* ─── Голосование (центрировано, с линиями сверху/снизу — как во флагмане) ─── */
.article-vote {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin: 36px 0; padding: 20px 0; font-size: 15px; color: var(--muted);
    border-top: 1px solid var(--brd); border-bottom: 1px solid var(--brd);
}
.vote-btn {
    border: 1px solid var(--brd); background: #fff; border-radius: 22px; padding: 8px 18px;
    cursor: pointer; font: 600 14px/1 var(--font-text); color: var(--title-color); transition: all .2s ease;
}
.vote-btn:hover { border-color: var(--primary); color: var(--primary); }
.vote-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── À lire aussi ─── */
.article-related { margin: 50px 0; }
.article-related h2 { font-size: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card { display: flex; flex-direction: column; text-decoration: none; }
.related-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 10px; transition: opacity .25s ease; }
.related-card:hover img { opacity: .85; }
.related-title { font: 400 15px/1.35 var(--font-accent); color: var(--title-color); }
.related-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── Комментарии ─── */
.article-comments { margin: 50px 0; }
.article-comments h2 { font-size: 24px; }
.comment-form { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-bottom: 30px; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--title-color); }
.comment-form input, .comment-form textarea {
    padding: 10px 14px; border: 2px solid rgba(15,42,68,.12); border-radius: 0; font: inherit; font-size: 14px; background: transparent;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--primary); }
.comment-form .btn { align-self: flex-start; }
.comment-note { font-size: 12px; color: var(--muted); }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.comment { border-left: 3px solid var(--brd); padding: 4px 0 4px 16px; }
.comment-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.comment-head b { color: var(--title-color); }
.comment-head time { font-size: 12px; color: var(--muted); }
.comment p { margin: 0; }
.comment-empty { margin-top: 10px; }

/* ─── Prev/Next ─── */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 0; }
.article-nav-item { border: 1px solid rgba(15,42,68,.28); padding: 18px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s ease; }
.article-nav-item:hover { border-color: var(--primary); }
.article-nav-item.next { text-align: right; align-items: flex-end; }
.an-label { font: 600 12px/1.2 var(--font-text); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.an-title { color: var(--title-color); font-family: var(--font-heading); font-weight: 600; }
.figure.video, .entry-content .video { margin: 20px 0; }
.back-link { margin-top: 40px; }

/* ─────────────── Сайдбар ─────────────── */
.sidebar { min-width: 0; }
.widget { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--brd); }
.widget:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.widget-title {
    font: 600 16px/1.4 var(--font-accent); text-transform: uppercase;
    color: #333; margin: 0 0 20px;
}
.widget-cats { list-style: none; margin: 0; padding: 0; }
.widget-cats li { padding: 6px 0; border-bottom: 1px solid var(--brd); }
.widget-cats li:last-child { border-bottom: 0; }
.widget-cats a { color: var(--muted); text-decoration: none; }
.widget-cats a:hover { color: var(--primary); }

.widget-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.widget-recent li { display: flex; gap: 12px; align-items: flex-start; }
.wr-thumb img { width: 75px; height: 60px; object-fit: cover; display: block; }
.wr-body a { display: block; color: #333; text-decoration: none; line-height: 1.4; }
.wr-body a:hover { color: rgba(51,51,51,.65); }
.wr-body time { font-size: 13px; color: var(--gray-400); }

.widget-insta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.widget-insta img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: opacity .25s ease; }
.widget-insta a:hover img { opacity: .8; }

/* ─────────────── Галерея ─────────────── */
.gallery-tabs { text-align: center; margin: 50px 0 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 30px; }
.gallery-tabs .tab {
    background: none; border: 0; cursor: pointer;
    font: 400 16px/1.4 var(--font-display); text-transform: uppercase;
    color: rgba(51,51,51,.7); padding: 5px 0; min-height: 42px;
    position: relative;
}
.gallery-tabs .tab::after {
    content: ""; position: absolute; top: 100%; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width .4s cubic-bezier(.19,1,.22,1);
    translate: 0 -8px;
}
.gallery-tabs .tab:hover, .gallery-tabs .tab.active { color: #333; }
.gallery-tabs .tab:hover::after, .gallery-tabs .tab.active::after { width: 100%; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-bottom: 70px; }
.gallery-item { position: relative; margin: 0; overflow: hidden; }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .5s cubic-bezier(0,0,.44,1.18); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0; padding: 40px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff; display: flex; flex-direction: column; gap: 2px;
    opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover figcaption { opacity: 1; }
.gi-cat { font: 600 11px/1.2 var(--font-text); text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.gi-title { font-size: 15px; }
.gallery-item.is-hidden { display: none; }

/* ─────────────── Galerie / Portfolio : витрина проектов ─────────────── */
.portfolio-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 30px; margin: 44px 0 30px; }
.portfolio-tabs .ptab {
    background: none; border: 0; cursor: pointer; position: relative;
    font: 400 16px/1.4 var(--font-display); text-transform: uppercase;
    color: rgba(51,51,51,.7); padding: 5px 0; min-height: 42px;
}
.portfolio-tabs .ptab::after { content: ""; position: absolute; top: 100%; left: 0; width: 0; height: 2px; background: var(--primary); transition: width .4s cubic-bezier(.19,1,.22,1); translate: 0 -8px; }
.portfolio-tabs .ptab:hover, .portfolio-tabs .ptab.active { color: #333; }
.portfolio-tabs .ptab:hover::after, .portfolio-tabs .ptab.active::after { width: 100%; }

/* Сетка без зазоров — миниатюры вплотную (как во Woodmart) */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-bottom: 70px; }
.portfolio-card { position: relative; }
.pc-media { position: relative; display: block; overflow: hidden; }
.pc-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .6s cubic-bezier(0,0,.44,1.18); }
.portfolio-card:hover .pc-media img { transform: scale(1.06); }
/* Заголовок проекта — оверлеем на фото, проявляется при наведении */
.pc-overlay {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
    padding: 28px 26px; text-align: left;
    background: linear-gradient(to top, rgba(11,30,50,.78) 0%, rgba(11,30,50,.28) 45%, rgba(11,30,50,0) 75%);
    opacity: 0; transition: opacity .4s ease;
}
.portfolio-card:hover .pc-overlay { opacity: 1; }
.pc-cat { font: 600 11px/1.4 var(--font-text); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-soft); }
.pc-title { font: 500 clamp(20px, 1.5vw, 24px)/1.3 var(--font-heading); color: #fff; }
.pc-play {
    position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; z-index: 3;
    display: flex; align-items: center; justify-content: center; padding-left: 3px;
    background: rgba(15,42,68,.55); color: #fff; border-radius: 50%; font-size: 18px;
    backdrop-filter: blur(2px); transition: background .25s ease, transform .25s ease;
}
.portfolio-card:hover .pc-play { background: var(--primary); transform: scale(1.08); }
.portfolio-empty { text-align: center; padding: 30px 0 70px; }
/* На тач-устройствах (без hover) заголовок виден всегда */
@media (hover: none) {
    .pc-overlay { opacity: 1; }
}

/* ─── Страница проекта ─── */
.single-project { padding-top: 10px; }
.project-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; margin: 20px 0 44px; }
.project-main img.project-cover { width: 100%; display: block; border-radius: 4px; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-infos { border-top: 2px solid var(--primary); padding-top: 18px; }
.project-infos .over-title { margin-bottom: 14px; }
.pi-lead { font: normal 500 clamp(17px, 1.5vw, 20px)/1.5 var(--font-heading); color: var(--title-color); margin: 0 0 18px; }
.infos-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.infos-grid dt { font: 600 11px/1.6 var(--font-text); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.infos-grid dd { margin: 0; font-size: 14px; color: var(--title-color); }
.infos-grid dd a { color: var(--primary); }

.project-gallery { margin: 44px 0; }
.project-gallery h2 { font-family: var(--font-heading); font-weight: 600; margin-bottom: 18px; }
.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pg-item { display: block; overflow: hidden; border-radius: 3px; cursor: zoom-in; }
.pg-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .5s ease, opacity .25s ease; }
.pg-item:hover img { transform: scale(1.05); opacity: .92; }

/* Autres projets — карточки с оверлей-заголовком (как витрина, но с зазорами) */
.related-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Пагинация проекта — линии сверху/снизу, круглые стрелки (стиль Woodmart) */
.portfolio-nav {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
    margin: 44px 0; padding: 22px 0;
    border-top: 1px solid var(--brd); border-bottom: 1px solid var(--brd);
}
.pn-side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pn-next { justify-content: flex-end; }
.pn-next .pn-link { text-align: right; }
.pn-arrow {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--brd); display: flex; align-items: center; justify-content: center;
    color: var(--muted); font: 400 24px/1 var(--font-text); text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.pn-arrow:hover { border-color: var(--primary); color: var(--primary); }
.pn-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; min-width: 0; }
.pn-label { font-size: 14px; color: var(--muted); }
.pn-title { font-size: 16px; font-weight: 600; color: var(--title-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-link:hover .pn-title { color: var(--primary); }
.pn-grid { flex: 0 0 auto; color: var(--muted); display: inline-flex; text-decoration: none; padding: 0 8px; }
.pn-grid:hover { color: var(--primary); }

/* Lightbox / diaporama галереи проекта */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(7,23,38,.94); padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; cursor: pointer; box-shadow: 0 20px 60px rgba(0,0,0,.5); user-select: none; }
.lb-close { position: absolute; top: 20px; right: 26px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; z-index: 2; }
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1;
    display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
    transition: background .2s ease;
}
.lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 14px; letter-spacing: .08em; }
@media (max-width: 560px) { .lb-nav { width: 44px; height: 44px; font-size: 24px; } .lb-prev { left: 10px; } .lb-next { right: 10px; } }

@media (max-width: 900px) {
    .project-top { grid-template-columns: 1fr; gap: 24px; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .related-portfolio, .pg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .portfolio-grid, .pg-grid, .related-portfolio { grid-template-columns: 1fr; }
    .pn-title { display: none; }   /* на узких экранах — только стрелки + метка */
}

/* ─────────────── Карта + карточка ─────────────── */
.contact-map { position: relative; height: 460px; background: #e8e6e1; }
.map-lazy { position: absolute; inset: 0; }
.map-lazy iframe { width: 100%; height: 100%; border: 0; display: block; }
.home-map .map-lazy iframe { filter: invert(90%) hue-rotate(180deg) saturate(.6); }

.map-card {
    position: absolute; top: 50%; translate: 0 -50%;
    inset-inline-start: max(15px, calc((100vw - var(--container)) / 2 + 15px));
    z-index: 2; max-width: 340px; padding: 38px 42px;
}
.map-card-dark { background: var(--navy-deep); color: rgba(255,255,255,.8); }
.map-card-dark h2 { color: #fff; font-size: 30px; margin: 6px 0 14px; }
.map-card-light { background: #fff; color: var(--text-color); box-shadow: 0 0 9px rgba(0,0,0,.15); }
.map-card-light h2 { font-size: 30px; margin: 6px 0 14px; }
.map-card-addr { margin: 0 0 18px; line-height: 1.7; }
.map-card-link {
    font: 600 13px/1.4 var(--font-text); text-transform: uppercase;
    text-decoration: none; border-bottom: 2px solid var(--primary); padding-bottom: 2px;
}
.map-card-dark .map-card-link { color: #fff; }
.map-card-light .map-card-link { color: #333; }
.map-card-link:hover { color: var(--primary); }

/* ─────────────── Contact: FAQ + форма ─────────────── */
.contact-columns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    padding-block: 70px;
}
.faq { border-top: 1px solid var(--brd); }
.faq-item { border-bottom: 1px solid var(--brd); }
.faq-item summary {
    cursor: pointer; list-style: none;
    padding: 16px 30px 16px 0; position: relative;
    font-size: 16px; color: var(--text-color);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
    font-size: 20px; color: var(--gray-400); transition: transform .25s ease;
}
.faq-item[open] summary { color: var(--primary); }
.faq-item[open] summary::after { content: "–"; color: var(--primary); }
.faq-body { padding: 0 0 18px; color: var(--muted); }
.faq-body p { margin: 0; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--title-color); }
.contact-form input, .contact-form textarea {
    width: 100%; height: 42px; padding: 0 15px;
    border: 2px solid rgba(0,0,0,.1); border-radius: 0;
    font: 400 14px/1.4 var(--font-text); color: var(--text-color);
    background: transparent; transition: border-color .25s ease;
}
.contact-form textarea { height: auto; padding: 12px 15px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: rgba(0,0,0,.35); }
.contact-form .btn { align-self: flex-start; }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-success { color: #2c6e49; background: #e8f4ea; padding: 14px 18px; }
.form-error { color: #a4351f; background: #fbeae5; padding: 14px 18px; }

/* ─────────────── 404 ─────────────── */
.error-404 { text-align: center; padding: 80px 0; }

/* ─────────────── Подвал: «закрывающий титр» ─────────────── */
/* Люксовый градиент: диагональ navy + мягкое золотое свечение (латунь на лаке) */
.site-footer {
    position: relative;
    background:
        radial-gradient(115% 75% at 88% -5%, rgba(184,150,104,.16) 0%, rgba(184,150,104,0) 55%),
        radial-gradient(90% 60% at 8% 108%, rgba(74,123,170,.16) 0%, rgba(74,123,170,0) 60%),
        linear-gradient(157deg, #1a4066 0%, #0f2a44 46%, #071726 100%);
    color: rgba(255,255,255,.8);
}
/* тонкая золотая линия-«ребро» по верхней кромке подвала */
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,150,104,.55) 50%, transparent);
}
.footer-newsletter { border-bottom: 1px solid rgba(255,255,255,.1); }
.fn-inner {
    max-width: var(--container); margin-inline: auto; padding: 34px 15px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.fn-text p { margin: 0; color: rgba(255,255,255,.7); }
.fn-text .footer-title { margin-bottom: 6px; }
.fn-form { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.fn-form input[type=email] {
    min-width: 300px; height: 44px; padding: 0 2px;
    border: 0; border-bottom: 1px solid rgba(255,255,255,.35); border-radius: 0;
    background: transparent; color: #fff; font: 400 15px/1.4 var(--font-text);
    transition: border-color .25s ease;
}
.fn-form input[type=email]::placeholder { color: rgba(255,255,255,.45); }
.fn-form input[type=email]:focus { outline: none; border-bottom-color: var(--primary); }

.footer-logo { margin-bottom: 18px; display: block; }
.footer-grid {
    max-width: var(--container); margin-inline: auto; padding: 70px 15px 50px;
    display: grid; grid-template-columns: 1.4fr 1.2fr .8fr .8fr; gap: 40px;
}
.footer-about p { margin: 0 0 18px; }
.footer-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.footer-contacts li { display: flex; align-items: center; gap: 10px; }
.footer-contacts a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-contacts a:hover { color: #fff; }
.fc-ico { flex: 0 0 auto; color: rgba(255,255,255,.85); }
.footer-title {
    font: 600 16px/1.4 var(--font-accent); text-transform: uppercase;
    color: #fff; margin: 0 0 22px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-news li { display: flex; gap: 12px; }
.fn-thumb img { width: 75px; height: 60px; object-fit: cover; display: block; }
.fn-body a { color: rgba(255,255,255,.9); text-decoration: none; line-height: 1.4; display: block; }
.fn-body a:hover { color: #fff; }
.fn-body time { font-size: 13px; color: rgba(255,255,255,.45); }
.footer-muted { color: rgba(255,255,255,.45); }

.footer-bar {
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    max-width: var(--container); margin-inline: auto; padding: 22px 15px;
    font-size: 14px; color: rgba(255,255,255,.6);
}
.footer-bar p { margin: 0; }
.footer-bar b { color: #fff; }
.footer-bar a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bar a:hover { color: #fff; }
.footer-bar .icon-instagram { color: rgba(255,255,255,.7); }
.footer-bar .icon-instagram:hover { color: #fff; }

/* ─────────────── Адаптив ─────────────── */
@media (max-width: 1024px) {
    :root { --header-h: 60px; }
    .page-title h1 { font-size: 36px; }
    .page-title { padding-block: 15px; }
    .hero-layout { padding: 40px 40px 84px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .site-nav { display: none; position: fixed; inset: var(--header-h) 0 auto; z-index: 400;
        background: var(--navy-deep); padding: 10px 20px 30px; max-height: calc(100vh - var(--header-h)); overflow: auto; }
    .site-nav.is-open { display: block; }
    .nav-root { flex-direction: column; gap: 0; width: 100%; }
    .nav-root > li > a { min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none;
        background: transparent; box-shadow: none; padding: 0 0 10px 16px; }
    .nav-dropdown a { color: rgba(255,255,255,.75); padding: 8px 0; }
    .nav-dropdown a:hover { color: #fff; }
    .nav-toggle { display: block; }
    .layout-sidebar { grid-template-columns: 1fr; }
    .manifesto-grid { grid-template-columns: 1fr; gap: 44px; }
    .manifesto-plan { max-width: 520px; margin-inline: auto; }
    .strip-track { grid-template-columns: repeat(3, 1fr); }
    .strip-item:nth-child(n+4) { display: none; }
}

@media (max-width: 767px) {
    .hero-scrub { height: 220vh; }
    .hero-layout { flex-direction: column; align-items: flex-start; justify-content: flex-end;
        gap: 24px; padding: 30px 26px 70px; }
    .hero-overline { font-size: 11px; letter-spacing: .28em; gap: 10px; margin-bottom: 12px; }
    .ho-rule { width: 32px; }
    .ht-small { letter-spacing: .3em; }
    .hero-fiche { max-width: none; }
    .hf-sub { font-size: 14px; margin-bottom: 8px; }
    .hero-frame { inset: 10px; }
    .hero-progress { left: 10px; right: 10px; bottom: 10px; }
    .hero-scroll-hint { display: none; }
    .section-display { font-size: 26px; }
    .boyer-quote p { font-size: 18px; }
    .blog-mask-grid, .blog-feature-grid { grid-template-columns: 1fr; }
    .blog-compact-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .article-nav { grid-template-columns: 1fr; }
    .article-cta { flex-direction: column; align-items: flex-start; }
    .comment-form .form-row { grid-template-columns: 1fr; }
    .blog-card { flex-direction: column; }
    .blog-card-media, .blog-card-body { max-width: 100%; flex-basis: auto; width: 100%; }
    .blog-card-body { margin: -30px 15px 0; width: calc(100% - 30px); padding-inline: 15px; }
    .blog-card-media img { min-height: 220px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .contact-columns { grid-template-columns: 1fr; gap: 40px; padding-block: 50px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; padding-top: 30px; }
    .footer-bar { flex-direction: column; text-align: center; }
    .footer-brand { padding-top: 40px; }
    .map-card { position: static; translate: none; max-width: none; margin: 0; }
    .contact-map { height: auto; }
    .contact-map .map-lazy { position: relative; height: 300px; }
    .page-title-inner { padding-top: calc(var(--header-h) + 10px); }
    .home-manifesto { padding-top: 60px; }
    .facts-row { grid-template-columns: 1fr 1fr; margin-top: 44px; }
    .strip-track { grid-template-columns: 1fr 1fr; }
    .strip-item:nth-child(n+3) { display: none; }
    .home-visite { min-height: 420px; }
    .fn-form input[type=email] { min-width: 0; width: 100%; }
    .fn-form { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
