/* Беллеза — стили сайта. Шрифты лежат локально в assets/fonts (лицензия SIL OFL 1.1).
   Оформление: сливочный фон, чёрный и бронза, строгие прямые углы,
   засечки в заголовках и разреженные заглавные в подписях. */

/* ---------- Шрифты: Noto Serif (заголовки) + Rubik (текст) ---------- */
@font-face {
    font-family: "Rubik"; font-style: normal; font-weight: 300 500; font-display: swap;
    src: url("../fonts/rubik-400.woff2") format("woff2");
}
@font-face {
    font-family: "Rubik"; font-style: normal; font-weight: 600 800; font-display: swap;
    src: url("../fonts/rubik-700.woff2") format("woff2");
}
@font-face {
    font-family: "Noto Serif"; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url("../fonts/noto-serif-400.woff2") format("woff2");
}
@font-face {
    font-family: "Noto Serif"; font-style: italic; font-weight: 300 700; font-display: swap;
    src: url("../fonts/noto-serif-400i.woff2") format("woff2");
}
/* Системные шрифты, подогнанные по метрикам: пока грузится настоящий шрифт, текст не «прыгает» */
@font-face {
    font-family: "Rubik Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans");
    size-adjust: 104.16%; ascent-override: 89.77%; descent-override: 24%; line-gap-override: 0%;
}
@font-face {
    font-family: "Noto Serif Fallback"; src: local("Georgia");
    size-adjust: 107.81%; ascent-override: 99.16%; descent-override: 27.18%; line-gap-override: 0%;
}
@font-face {
    font-family: "Noto Serif Fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic");
    size-adjust: 102.99%; ascent-override: 103.79%; descent-override: 28.45%; line-gap-override: 0%;
}

:root {
    --bg: #f4efe9;           /* сливочный фон */
    --paper: #fbf9f6;        /* светлые карточки */
    --cream: #ece4d9;        /* песочный полутон */
    --soft: #ebe3d8;
    --surface-2: #e4dacd;
    --sand: #cdb89c;         /* тёплый бежевый блок */
    --ink: #151413;          /* чёрный */
    --ink-2: #22201d;
    --text: #1c1b19;
    --muted: #655e56;
    --border: #ddd3c6;
    --border-strong: #c7b9a6;
    --accent: #7a5c3a;       /* бронза для мелкого текста (контраст AA) */
    --accent-hover: #5f4529;
    --gold: #a3835a;         /* бронза для крупного текста и декора */
    --gold-light: #cfb48a;   /* бронза на тёмном */
    --line: #c9ae86;
    --on-dark: #f4efe9;
    --on-dark-muted: rgba(244, 239, 233, .68);
    --dark-border: rgba(244, 239, 233, .16);
    --ok: #2f6b4c;
    --ok-bg: #e2ebe2;
    --radius: 0px;
    --radius-sm: 0px;
    --wrap: 1160px;
    --shadow: 0 1px 0 rgba(21, 20, 19, .03), 0 30px 60px -40px rgba(21, 20, 19, .35);
    --serif: "Noto Serif", "Noto Serif Fallback", Georgia, "Times New Roman", serif;
    --sans: "Rubik", "Rubik Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.65 var(--sans);
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
    margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1;
    letter-spacing: -0.01em; font-variant-numeric: lining-nums; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 20;
    padding: 12px 18px; background: var(--ink); color: var(--on-dark);
    font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }

/* Иконки из встроенного спрайта */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { display: inline-block; flex: none; width: 1.25em; height: 1.25em; vertical-align: -0.25em; }

/* ---------- Кнопки: чёрные прямоугольники с разреженными заглавными ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 54px; padding: 0 30px;
    border: 1px solid var(--ink); border-radius: 0;
    background: var(--ink); color: var(--on-dark);
    font: 500 0.78rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap; text-align: center;
    cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.btn .ico { width: 18px; height: 18px; }
.btn .ico-arrow { transition: transform .25s ease; }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn-small { min-height: 46px; padding: 0 20px; gap: 10px; font-size: 0.72rem; letter-spacing: 0.18em; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.actions-center { justify-content: center; }

/* Подпись над заголовком: тонкая бронзовая линия + заглавные */
.eyebrow {
    display: flex; align-items: center; gap: 16px; margin-bottom: 26px;
    color: var(--accent); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 44px; height: 1px; background: var(--gold); }

.lead { margin-top: 26px; max-width: 32em; color: var(--muted); font-size: 1.125rem; line-height: 1.7; }

/* Огромное бледное слово за заголовком раздела */
.section-mark {
    display: block; margin: 0 0 -0.5em -0.04em;
    font-family: var(--sans); font-weight: 500; font-size: clamp(3.4rem, 12.5vw, 9.5rem);
    line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
    color: var(--cream); pointer-events: none; user-select: none;
}
.section-mark + h1, .section-mark + h2, .section-mark + .eyebrow { position: relative; }

/* ---------- Верхняя строка: адрес, Яндекс Карты, онлайн-запись ---------- */
.topbar {
    background: var(--ink); color: var(--on-dark-muted);
    font-size: 0.75rem; line-height: 1.3; letter-spacing: 0.08em;
}
.topbar-bare { display: none; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 0 24px; min-height: 44px; }
.topbar-address {
    display: none; align-items: center; gap: 10px; min-width: 0; min-height: 44px;
    color: var(--on-dark-muted); text-decoration: none;
}
.topbar-address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-address .ico { width: 16px; height: 16px; color: var(--gold-light); }
.topbar-address:hover { color: var(--on-dark); }
.topbar-links { list-style: none; display: flex; align-items: center; gap: 0 32px; margin: 0; padding: 0; }
.topbar-links li { position: relative; }
.topbar-links li + li::before {
    content: ""; position: absolute; left: -18px; top: 50%;
    width: 4px; height: 4px; margin-top: -2px; background: var(--gold); transform: rotate(45deg);
}
.topbar-link {
    display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
    color: var(--on-dark); text-decoration: none; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.14em;
    transition: color .2s ease;
}
.topbar-link .ico { width: 17px; height: 17px; color: var(--gold-light); }
.topbar-link:hover { color: var(--gold-light); }
.topbar-link:hover span { text-decoration: underline; }

@media (max-width: 379.98px) {
    .topbar-more { display: none; }
    .topbar-links { gap: 0 28px; }
    .topbar-link { letter-spacing: 0.08em; }
}

@media (min-width: 860px) {
    .topbar-bare { display: block; }
    .topbar-inner { justify-content: space-between; }
    .topbar-address { display: inline-flex; }
    .topbar-links { margin-left: auto; }
}

/* ---------- Шапка ---------- */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(244, 239, 233, .94);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--border);
}

/* Телефон: логотип и кнопка сверху, меню — строкой ниже */
.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "nav nav";
    align-items: center;
    column-gap: 12px;
    padding-top: 12px;
}

.brand {
    grid-area: brand; justify-self: start; display: block;
    width: clamp(130px, 46vw, 220px); max-width: 100%;
    line-height: 0; text-decoration: none; transition: opacity .2s ease;
}
.brand:hover { opacity: .75; }
.brand picture, .brand-img { display: block; width: 100%; height: auto; }

.nav { grid-area: nav; display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 4px; }
.nav::before, .nav::after { content: ""; flex: 1 1 0; min-width: 12px; height: 1px; background: var(--line); }

.nav-link {
    --pad: 14px;
    position: relative; display: inline-block;
    padding: 0 var(--pad) 0 calc(var(--pad) + 0.24em);
    line-height: 48px; white-space: nowrap;
    color: var(--text); text-decoration: none;
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
    transition: color .25s ease;
}
.nav-link::after {
    content: ""; position: absolute; bottom: 10px; height: 1px;
    left: calc(var(--pad) + 0.24em); right: calc(var(--pad) + 0.24em);
    background: var(--gold); transform: scaleX(0); transition: transform .35s ease;
}
.nav-link:hover, .nav-link[aria-current] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }

.header-actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 28px; }
.header-phone {
    display: none; align-items: center; min-height: 44px;
    color: var(--text); text-decoration: none; white-space: nowrap;
    font-size: 0.9375rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.header-phone:hover { color: var(--accent); }
.header-cta { min-height: 46px; padding: 0 20px; font-size: 0.7rem; letter-spacing: 0.2em; }

@media (min-width: 860px) {
    .header-inner {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "nav brand actions";
        column-gap: 24px;
        min-height: 100px;
        padding-top: 0;
    }
    .brand { justify-self: center; width: clamp(240px, 26vw, 330px); }
    .nav { justify-self: start; justify-content: flex-start; gap: 0; margin: 0 0 0 -18px; }
    .nav-link { --pad: 18px; font-size: 0.78rem; }
    .nav::before, .nav::after { display: none; }
}

@media (min-width: 1080px) {
    .header-phone { display: inline-flex; }
}

/* ---------- Главная: тёмная шапка поверх фото первого экрана ---------- */
/* Верхняя строка и шапка лежат на фото: первый экран подтягивается под них на их высоту (--mast).
   Шапка тёмная и прилипает к верху экрана: меню видно на всей странице, и при прокрутке
   до раздела «Контакты» в нём подсвечивается «Контакты» (assets/js/site.js). */
.home-overlay {
    --topbar-h: 44px;
    --header-h: 111px;
    --mast: var(--header-h);
    --hero-h: max(600px, 100svh);
}
.home-overlay.with-topbar { --mast: calc(var(--topbar-h) + var(--header-h)); }

.home-overlay .topbar {
    position: relative; z-index: 11;
    background: transparent;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12);
}
.home-overlay .topbar-inner { height: var(--topbar-h); min-height: 0; }

.home-overlay .site-header {
    color: #fff;
    background: rgba(17, 14, 12, .88);
    -webkit-backdrop-filter: saturate(1.1) blur(12px);
    backdrop-filter: saturate(1.1) blur(12px);
    border-bottom-color: rgba(207, 180, 138, .22);
}
.home-overlay .header-inner { height: calc(var(--header-h) - 1px); }

.home-overlay .nav-link,
.home-overlay .nav-link:hover,
.home-overlay .nav-link[aria-current],
.home-overlay .header-phone,
.home-overlay .header-phone:hover { color: inherit; }
.home-overlay .nav-link::after { background: currentColor; }
.home-overlay .header-phone { transition: opacity .2s ease; }
.home-overlay .header-phone:hover { opacity: .72; }
.home-overlay .header-cta { background: transparent; border-color: currentColor; color: inherit; }
.home-overlay .header-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.home-overlay .site-header :focus-visible { outline-color: currentColor; }

@media (min-width: 860px) {
    .home-overlay { --header-h: 101px; }
}

/* ---------- Первый экран ---------- */
/* Фото на всю ширину под тёмной вуалью, текст по центру: заглавный заголовок с курсивным словом */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    min-height: clamp(540px, calc(100svh - 156px), 860px);
    padding: 80px 0 120px;
    background: #231e1a; color: #fff; text-align: center;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -2;
    display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
    transform-origin: 50% 40%; animation: hero-zoom 16s cubic-bezier(.22, .61, .36, 1) both;
}
/* Фото едва заметно «отъезжает» при загрузке */
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: none; } }
/* Вуаль: темнее сверху (под шапкой), за текстом и внизу, общий тёплый тон поверх всего фото */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(14, 11, 9, .74) 0%, rgba(14, 11, 9, .3) 240px, rgba(14, 11, 9, 0) 50%),
        radial-gradient(ellipse 62% 48% at 50% 54%, rgba(14, 11, 9, .42), rgba(14, 11, 9, 0) 72%),
        linear-gradient(0deg, rgba(14, 11, 9, .8) 0%, rgba(14, 11, 9, 0) 38%),
        rgba(30, 22, 16, .34);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
/* Подпись между двумя тонкими бронзовыми линиями */
.hero-eyebrow {
    margin: 0 0 30px; color: rgba(255, 255, 255, .9);
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase;
}
.hero-eyebrow::before, .hero-eyebrow::after {
    content: ""; display: inline-block; vertical-align: middle;
    width: 48px; height: 1px; margin: -2px 18px 0; background: var(--gold-light);
}
.hero-eyebrow::after { margin-left: calc(18px - 0.34em); }
.hero h1 {
    max-width: 13em; margin: 0; color: #fff;
    font-size: clamp(2.3rem, 1rem + 4.4vw, 5.1rem); font-weight: 400;
    line-height: 1.07; letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance;
}
.hero h1 em { color: #f1e3cd; font-style: italic; letter-spacing: 0; }
.hero h1::after { content: ""; display: block; width: 56px; height: 1px; margin: 34px auto 0; background: var(--gold-light); }
.hero-text {
    max-width: 36em; margin: 26px 0 0; color: rgba(255, 255, 255, .86);
    font-size: 1rem; line-height: 1.75; text-wrap: balance;
}

/* На главной фото уходит под верхнюю строку и шапку и занимает весь первый экран */
.home-overlay .hero {
    margin-top: calc(-1 * var(--mast));
    min-height: var(--hero-h);
    padding: calc(var(--mast) + 48px) 0 136px;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; margin-top: 40px; }
.hero-btn, .hero-link {
    position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
    text-decoration: none; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
}
.hero-btn { padding: 0 34px; background: #fff; color: var(--ink); transition: background-color .2s ease; }
.hero-btn:hover { background: var(--cream); color: var(--ink); }
.hero-link { color: #fff; }
.hero-link::after {
    content: ""; position: absolute; left: 0; right: 0.24em; bottom: 12px; height: 1px;
    background: rgba(255, 255, 255, .5); transition: background-color .2s ease;
}
.hero-link:hover { color: #fff; }
.hero-link:hover::after { background: #fff; }
.hero :focus-visible { outline-color: #fff; }

/* Сейчас открыто или нет и часы работы — мелкой строкой внизу */
.hero-status {
    position: absolute; left: 0; right: 0; bottom: 30px; margin: 0; padding: 0 20px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 28px;
    color: rgba(255, 255, 255, .74);
    font-size: 0.66rem; font-weight: 500; line-height: 1.6; letter-spacing: 0.22em; text-transform: uppercase;
}
.hero-status-now { display: inline-flex; align-items: center; gap: 10px; }

.dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #a39e98; }
.is-open .dot { background: #46b07a; }
.is-open .dot::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    background: rgba(70, 176, 122, .35); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-tight { padding: 40px 0; }
.section-last { padding-bottom: 104px; }
/* Призыв записаться идёт сразу за картами раздела «Контакты» */
.section.section-cta { padding-top: 40px; }
.section-head { position: relative; display: grid; gap: 14px; margin-bottom: 52px; max-width: 40em; }
.section-head .muted { max-width: 34em; }
#works { content-visibility: auto; contain-intrinsic-size: auto 1200px; }

/* Услуги — прайс-лист с пунктирными «лидерами» на светлом фоне */
#services { position: relative; overflow-x: clip; background: var(--paper); border-top: 1px solid var(--border); }
.services { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 80px; counter-reset: svc; }
.service {
    counter-increment: svc;
    display: grid; gap: 8px; padding: 26px 0;
    border-bottom: 1px solid var(--border);
}
.service-line { display: flex; align-items: baseline; gap: 14px; }
.service h3 { flex: 0 1 auto; min-width: 0; font-size: 1.32rem; line-height: 1.25; }
.service h3::before {
    content: counter(svc, decimal-leading-zero);
    display: inline-block; margin-right: 14px; vertical-align: 0.28em;
    font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; color: var(--accent);
}
.service-dots {
    flex: 1 1 24px; min-width: 24px; height: 4px; transform: translateY(-5px);
    background: radial-gradient(circle, var(--gold) 1.1px, transparent 1.5px) 0 50% / 8px 4px repeat-x;
    opacity: .8;
}
.service-dots:last-child { display: none; }
.service p { font-size: 0.9375rem; line-height: 1.6; padding-left: 2.1rem; }
.price {
    flex: none; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25;
    font-variant-numeric: lining-nums; color: var(--ink); white-space: nowrap;
}

/* Примеры работ — карточки с чередующимися тёмными и светлыми подписями */
#works .section-head { margin-inline: auto; justify-items: center; text-align: center; }
#works .section-head h2 { display: flex; align-items: center; gap: 22px; }
#works .section-head h2::before, #works .section-head h2::after {
    content: ""; flex: none; width: 40px; height: 1px; background: var(--gold);
}
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: work; }
.work {
    counter-increment: work;
    position: relative; display: flex; flex-direction: column; overflow: hidden; margin: 0;
    background: var(--ink); color: var(--on-dark);
}
.work:nth-child(even) { background: var(--paper); color: var(--text); }
.work img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    background: var(--surface-2);
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.work:hover img { transform: scale(1.04); }
.work figcaption {
    position: relative; z-index: 1; flex: 1;
    display: grid; align-content: start; gap: 6px;
    padding: 20px 56px 22px 22px; background: inherit;
}
.work figcaption::after {
    content: counter(work, decimal-leading-zero);
    position: absolute; top: 22px; right: 22px;
    font-family: var(--serif); font-size: 0.9rem; line-height: 1; color: var(--gold-light);
}
.work:nth-child(even) figcaption::after { color: var(--accent); }
.work figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 1.22rem; line-height: 1.25; }
.work figcaption span {
    color: var(--gold-light); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.work:nth-child(even) figcaption span { color: var(--accent); }

/* Призыв — чёрная полоса с бронзовой кавычкой */
.cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; gap: 16px; justify-items: center; text-align: center;
    padding: 72px 28px 84px;
    background: var(--ink); color: var(--on-dark);
}
.cta::before {
    content: "\201C"; display: block; height: 0.5em; margin-bottom: 6px;
    font-family: var(--serif); font-size: 6rem; line-height: 0.95; color: var(--gold);
}
.cta::after {
    content: ""; position: absolute; z-index: -1; inset: 14px; pointer-events: none;
    border: 1px solid rgba(207, 180, 138, .3);
}
.cta h2 { color: var(--on-dark); font-style: italic; }
.cta h2 em { color: var(--gold-light); }
.cta .muted { max-width: 30em; color: var(--on-dark-muted); }
.cta .actions { margin-top: 22px; }
.cta .btn { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.cta .btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }
.cta .btn-ghost { background: transparent; border-color: rgba(244, 239, 233, .55); color: var(--on-dark); }
.cta .btn-ghost:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }

/* ---------- Раздел «Контакты» — продолжение главной ---------- */
.page-head { position: relative; overflow-x: clip; padding: 96px 0 28px; }
.page-head .section-mark { margin-bottom: -0.62em; }
.page-head .lead { margin-top: 20px; }

/* Контакты и адрес — одна панель: светлая и тёмная половины впритык, высота одинаковая, тень общая */
.contact-grid { display: grid; align-items: stretch; box-shadow: var(--shadow); }
.contact-grid .card { box-shadow: none; }
.card {
    padding: 32px; border: 1px solid var(--border);
    background: var(--paper); box-shadow: var(--shadow);
}
.card-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
    margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.card .card-title { font-size: 1.9rem; }
.card .actions { margin-top: 28px; gap: 10px; }

/* Карточка «Адрес» — тёмная */
.card-address {
    display: flex; flex-direction: column;
    border-color: var(--ink); color: var(--on-dark);
    background: radial-gradient(120% 70% at 100% 0%, rgba(207, 180, 138, .12), transparent 60%), var(--ink);
}
.card-address .card-head { border-bottom-color: var(--dark-border); }
.card-address .card-title { color: var(--on-dark); }
.card-address .ico-circle { background: var(--gold-light); color: var(--ink); }
.card-address .btn { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.card-address .btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }
.card-address .btn-ghost { background: transparent; border-color: rgba(244, 239, 233, .5); color: var(--on-dark); }
.card-address .btn-ghost:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
/* Кнопки маршрута — ровными полосами на всю ширину, часы работы прижаты к низу панели */
.card-address .actions { margin-bottom: 30px; }
.card-address .actions .btn { flex: 1 1 auto; justify-content: center; }
.card-address .card-hours { margin-top: auto; border-top-color: var(--dark-border); }
.card-address .block-title { color: var(--gold-light); }
.card-address .block-title::after { background: var(--dark-border); }
.card-address .hours i { border-bottom-color: rgba(244, 239, 233, .26); }
.card-address .hours .is-today { background: rgba(244, 239, 233, .07); box-shadow: inset 2px 0 0 var(--gold-light); }
.card-address .hours .is-today .hours-time { color: var(--gold-light); }

.status-pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 14px 8px 12px; border: 1px solid var(--border);
    background: var(--bg); color: var(--muted);
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
}
.status-pill.is-open { background: var(--ok-bg); border-color: #c8d9c9; color: var(--ok); }

.ico-circle {
    display: grid; place-items: center; flex: none; width: 50px; height: 50px;
    border-radius: 50%; background: var(--ink); color: var(--on-dark);
}
.ico-circle .ico { width: 20px; height: 20px; }
.ico-circle-sm { width: 42px; height: 42px; background: transparent; border: 1px solid var(--line); color: var(--accent); }
.ico-circle-sm .ico { width: 18px; height: 18px; }

.phone-big, .contact-line {
    display: flex; align-items: center; gap: 18px;
    margin: 0 -14px; padding: 12px 14px;
    text-decoration: none; transition: background-color .2s ease;
}
.phone-big:hover, .contact-line:hover { background: var(--soft); color: inherit; }
.phone-label {
    display: block; color: var(--muted);
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.phone-number { display: block; margin-top: 2px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.25; font-variant-numeric: lining-nums; white-space: nowrap; }
.contact-line { margin-top: 4px; min-height: 62px; overflow-wrap: anywhere; }

.card-block { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--border); }
.block-title {
    display: flex; align-items: center; gap: 14px;
    margin: 0 0 16px; font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.block-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Соцсети: фирменный цвет появляется при наведении */
[data-net] { --brand: var(--accent); }
[data-net="telegram"] { --brand: #229ed9; }
[data-net="whatsapp"] { --brand: #1da851; }
[data-net="max"] { --brand: #6b3ff2; }
[data-net="vk"] { --brand: #0077ff; }
[data-net="ok"] { --brand: #ee8208; }
[data-net="youtube"] { --brand: #ff0033; }
[data-net="rutube"] { --brand: #14191f; }
[data-net="dzen"] { --brand: #111111; }
[data-net="tiktok"] { --brand: #111111; }
[data-net="pinterest"] { --brand: #e60023; }
[data-net="yandex_maps"] { --brand: #fc3f1d; }
[data-net="dikidi"] { --brand: #363a5e; }
.btn .ico-brand { color: var(--brand); }

.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.social {
    display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px 8px 8px;
    border: 1px solid var(--border); background: var(--bg);
    text-decoration: none; transition: border-color .2s ease, background-color .2s ease;
}
.social-ico {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
    background: var(--paper); background: color-mix(in srgb, var(--brand) 12%, var(--paper)); color: var(--brand);
    transition: background-color .2s ease, color .2s ease;
}
.social-ico .ico { width: 20px; height: 20px; }
.social-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9375rem; }
.social .ico-arrow { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.social:hover { color: var(--text); background: var(--paper); border-color: var(--ink); }
.social:hover .social-ico { background: var(--brand); color: #fff; }
.social:hover .ico-arrow { color: var(--ink); transform: translate(2px, -2px); }

/* Часы работы с подсветкой сегодняшнего дня */
.hours { list-style: none; margin: 0 -12px; padding: 0; display: grid; gap: 2px; }
.hours li { display: flex; align-items: baseline; gap: 12px; padding: 10px 12px; }
.hours i { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--border-strong); transform: translateY(-5px); }
.hours-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours .is-today { background: var(--soft); box-shadow: inset 2px 0 0 var(--gold); }
.hours .is-today .hours-time { color: var(--accent); font-weight: 500; }

.address { display: flex; align-items: flex-start; gap: 18px; margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; }
.address .ico-circle { margin-top: -2px; }
.note {
    margin-top: 20px; padding: 14px 18px;
    background: rgba(244, 239, 233, .06); border-left: 2px solid var(--gold-light);
    color: var(--on-dark-muted); font-size: 0.9375rem;
}

.maps { display: grid; gap: 28px; }
.map { display: grid; gap: 14px; align-content: start; margin: 0; }
.map-title {
    display: flex; align-items: center; gap: 14px;
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.map-title::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--gold); }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.maps-head { display: grid; gap: 10px; margin-bottom: 32px; padding-top: 48px; border-top: 1px solid var(--border); }
.maps-head h3 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.maps-head p { margin: 0; }

.map-frame {
    position: relative; height: 420px; overflow: hidden;
    border: 1px solid var(--border); background: var(--surface-2);
}
.map-frame iframe { display: block; width: 100% !important; height: 100% !important; border: 0; }
.map-frame > div { width: 100% !important; height: 100% !important; }
.map-frame noscript p { padding: 24px; }
/* Яндекс Карты — отдельная большая карта на всю ширину над картами 2ГИС и Google */
.map-wide { grid-column: 1 / -1; }
.map-frame.map-yandex { height: clamp(460px, 70vh, 640px); }

/* ---------- Подвал — чёрный ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 72px 0 36px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand { display: block; width: clamp(220px, 64vw, 300px); line-height: 0; transition: opacity .2s ease; }
.footer-brand:hover { opacity: .8; }
.footer-brand picture, .footer-logo { display: block; width: 100%; height: auto; }

.footer-contacts { display: flex; flex-direction: column; align-items: center; margin-top: 28px; }
.footer-contacts a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
    color: var(--on-dark); text-decoration: none; font-size: 0.9375rem; letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums; transition: color .2s ease;
}
.footer-contacts a:hover { color: var(--gold-light); }

.footer-socials { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0 0; padding: 0; }
.soc-btn {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(244, 239, 233, .32); background: transparent; color: var(--on-dark);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.soc-btn .ico { width: 20px; height: 20px; }
.soc-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.footer-copy {
    display: flex; align-items: center; gap: 18px; width: 100%; max-width: 600px; margin: 36px 0 0;
    color: var(--on-dark-muted); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.footer-copy::before, .footer-copy::after { content: ""; flex: 1 1 0; height: 1px; background: rgba(207, 180, 138, .45); }

@media (min-width: 640px) {
    .footer-contacts { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .footer-contacts a + a::before {
        content: ""; position: absolute; left: -2px; top: 50%;
        width: 4px; height: 4px; margin-top: -2px; background: var(--gold); transform: rotate(45deg);
    }
    .works { gap: 20px; }
}

/* ---------- Адаптив ---------- */
@media (min-width: 860px) {
    .services { grid-template-columns: 1fr 1fr; }
    .works { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .card { padding: 44px; }
    .section { padding: 120px 0; }
    .section-tight { padding: 40px 0; }
    .section-last { padding-bottom: 120px; }
    .page-head { padding-top: 120px; }
    .cta { padding: 88px 40px 100px; }
}

@media (min-width: 960px) {
    .maps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .lead { font-size: 1.0625rem; }
    .actions { margin-top: 30px; }
    .actions .btn { flex: 1 1 100%; }
    .section { padding: 80px 0; }
    .page-head { padding-top: 80px; }
    .section-head { margin-bottom: 40px; }
    .card { padding: 26px 20px; }
    .card .actions .btn, .map-actions .btn { flex: 1 1 auto; white-space: normal; padding-block: 12px; }
    .socials { grid-template-columns: 1fr; }
    .map-frame { height: 360px; }
    .service h3 { font-size: 1.15rem; }
    .service h3::before { display: block; margin: 0 0 6px; vertical-align: 0; }
    .service-line { align-items: flex-end; align-items: last baseline; }
    .service p { padding-left: 0; }
    .price { font-size: 1.1rem; }
    .work figcaption { padding: 34px 14px 16px; }
    .work figcaption::after { top: 12px; right: auto; left: 14px; font-size: 0.75rem; }
    .work figcaption strong { overflow-wrap: anywhere; hyphens: auto; }
    .work figcaption strong { font-size: 1.02rem; }
    .work figcaption span { font-size: 0.62rem; letter-spacing: 0.14em; }
    .cta { padding: 60px 22px 68px; }
    .cta::before { font-size: 4.6rem; }
    #works .section-head h2::before, #works .section-head h2::after { width: 24px; }
    #works .section-head h2 { gap: 14px; }
}

/* Первый экран на телефоне: чуть ниже, строка с часами — в две строки */
@media (max-width: 639.98px) {
    .hero { min-height: clamp(520px, calc(100svh - 160px), 720px); padding: 64px 0 112px; }
    .hero-eyebrow { margin-bottom: 20px; font-size: 0.64rem; letter-spacing: 0.26em; }
    .hero-text { margin-top: 22px; font-size: 0.9rem; }
    .hero-actions { flex-direction: column; gap: 8px; margin-top: 32px; }
    .hero-status { bottom: 24px; flex-direction: column; gap: 4px; font-size: 0.62rem; }
    .home-overlay .hero { padding: calc(var(--mast) + 40px) 0 120px; }
    .hero-eyebrow::before, .hero-eyebrow::after { width: 18px; margin-inline: 10px; }
    .hero-eyebrow::after { margin-left: calc(10px - 0.26em); }
    .hero h1::after { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
