/* Главная v2: первый экран и эффекты из шаблона (свет по шпону, плавная прокрутка, проявление при прокрутке, полоски справа) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* заставка: при открытии на весь экран, через 1 с уезжает вверх */
.intro { position: relative; height: 100svh; min-height: 560px; background: #0B231F; color: var(--white); overflow: hidden; }
.intro .scroll-cue { text-decoration: none; }

/* курсор-кольцо */
.cur { position: fixed; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 1px solid var(--champ); border-radius: 50%; pointer-events: none; z-index: 100; opacity: 0; transition: width .3s, height .3s, margin .3s, opacity .3s; }
.cur.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; }

/* первый экран */
.hero2 { position: relative; height: 100svh; min-height: 600px; background: #0B231F; color: var(--white); overflow: hidden; padding: 0; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro .scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 52%, rgba(11,35,31,.55), rgba(11,35,31,.15) 60%, rgba(11,35,31,.6)); }
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.topbar .logo .mark, .topbar .logo .name { color: var(--white); border-color: var(--champ); }
.topbar .logo .sub { color: var(--silver); }
.topbar nav { display: flex; gap: 24px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.topbar nav a { color: var(--silver); text-decoration: none; transition: color .25s; }
.topbar nav a:hover { color: var(--white); }
.topbar .phone { color: var(--white); text-decoration: none; font-weight: 500; white-space: nowrap; }
.hero-c { position: relative; z-index: 4; height: 100%; display: grid; place-items: center; text-align: center; padding: 100px 18px 90px; }
.hero-logo { display: grid; justify-items: center; gap: 22px; }
.hero-logo .sq { width: 84px; height: 84px; border: 1px solid var(--champ); display: grid; place-items: center; position: relative; }
.hero-logo .sq b { font: 400 60px/1 Forum, serif; transform: translateY(3px); }
.hero-logo .sq i { position: absolute; left: 50%; bottom: 12px; width: 26px; height: 1px; background: var(--champ); transform: translateX(-50%); }
.hero-logo .nm { font: 400 clamp(40px, 6vw, 76px)/1 Forum, serif; letter-spacing: .2em; margin-right: -.2em; }
.hero-logo .desc { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--silver); margin-top: -8px; }
.intro .slogan { font: 400 clamp(20px, 2.2vw, 28px)/1.3 Forum, serif; color: var(--white); margin: 30px 0 0; }
.intro .rule { display: block; width: 72px; height: 1px; background: var(--champ); margin: 26px auto 0; }
.years { display: inline-flex; align-items: baseline; gap: 14px; margin-top: 28px; }
.years b { font: 400 clamp(44px, 5vw, 64px)/1 Forum, serif; color: var(--champ); }
.years span { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--white); text-align: left; line-height: 1.5; }
.hero2 h1 { font: 400 13px/1.4 Jost, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--silver); margin: 26px 0 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn.light { background: transparent; border-color: var(--champ); color: var(--white); }
.btn.light:hover { background: var(--champ); color: var(--graph); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; display: grid; justify-items: center; gap: 12px; color: var(--silver); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.scroll-cue .ln { width: 1px; height: 44px; background: linear-gradient(var(--champ), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* сцены на малахите: фото с параллаксом и малым фото в рамке */
.srule { display: block; width: 64px; height: 1px; background: var(--champ); margin: 28px 0; transform-origin: left; }
.pwrap { position: relative; width: min(100%, 480px); justify-self: end; }
.pwrap.left { justify-self: start; }
.pwrap .main { aspect-ratio: 4 / 5; overflow: hidden; margin: 0; }
.pwrap .main img, .pwrap .main video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pwrap .sub { position: absolute; margin: 0; width: 38%; aspect-ratio: 4 / 5; right: -16%; bottom: -8%; outline: 1px solid var(--champ); outline-offset: 10px; overflow: hidden; z-index: 2; }
.pwrap.left .sub { right: auto; left: -16%; }
.pwrap .sub img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcap { position: absolute; left: 0; bottom: -30px; color: rgba(196,202,203,.7); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.on-light .pcap { color: var(--grey); }

/* производство: рамка видео рисуется линиями */
.bg-graph { background: var(--graph); }
.vframe { position: relative; width: min(100%, 460px); justify-self: end; }
.vframe .main { aspect-ratio: 4 / 5; overflow: hidden; background: #0A100F; }
.vframe video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vframe svg { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); pointer-events: none; overflow: visible; }
.vframe .ln { fill: none; stroke: var(--champ); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vframe .tag { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--white); background: rgba(14,21,20,.55); padding: 7px 10px; }
.vframe .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C0392B; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25 } }
.vplay { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.6); background: rgba(14,21,20,.45); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 13px; }

/* работы — сетка со сдвигом, как в шаблоне */
.works-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
.works-g a { text-decoration: none; display: block; }
.works-g .im { aspect-ratio: 4 / 5; overflow: hidden; background: var(--silver); }
.works-g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.works-g a:hover img { transform: scale(1.04); }
.works-g .cp { margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.works-g a:nth-child(4n+2), .works-g a:nth-child(4n+4) { margin-top: 48px; }

/* полоски справа: на белом — малахитовые, на малахите — белые */
.rail { position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 30; display: grid; gap: 14px; }
.rail button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: none; border: 0; padding: 2px 0; cursor: pointer; font: 400 10px/1 Jost, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--mal); transition: color .45s; }
.rail button span { opacity: 0; transition: opacity .3s; white-space: nowrap; }
.rail button:hover span, .rail button:focus-visible span { opacity: 1; }
.rail button i { display: block; width: 16px; height: 1px; background: var(--mal); opacity: .55; transition: width .35s, background-color .45s, opacity .35s; }
.rail button.on i { width: 34px; opacity: 1; }
.rail.dark button { color: var(--white); }
.rail.dark button i { background: var(--white); }
.rail.dark button.on i { background: var(--white); }

/* проявление при прокрутке без JS не прячет контент */
@media (max-width: 1100px) { .topbar nav { display: none; } }
@media (max-width: 900px) {
  .rail { display: none; }
  .pwrap, .pwrap.left, .vframe { justify-self: center; width: 84%; margin-top: 12px; }
  .pwrap .sub { right: -8%; width: 36%; }
  .pwrap.left .sub { left: -8%; }
  .works-g { grid-template-columns: 1fr 1fr; }
  .works-g a:nth-child(n) { margin-top: 0; }
  .works-g a:nth-child(2n) { margin-top: 32px; }
}
@media (max-width: 820px) {
  .topbar .phone { display: none; }
  .hero-logo .sq { width: 68px; height: 68px; }
  .hero-logo .sq b { font-size: 48px; }
  .years { flex-direction: column; align-items: center; gap: 6px; }
  .years span { text-align: center; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue .ln, .vframe .tag::before { animation: none; } }

/* приближение фото при наведении (как в варианте 1) */
.pwrap .main img { transition: transform .6s ease; }
.pwrap:hover .main img { transform: scale(1.035); }
.hero .photo { overflow: hidden; }
.hero .photo img { transition: transform .6s ease; }
.hero .photo:hover img { transform: scale(1.035); }

.intro .city { font: 400 13px/1.4 Jost, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--silver); margin: 24px 0 0; }

/* ---------- сайт: мобильное меню, карты, галерея из 1–2 фото ---------- */
.mnav { display: grid; border-top: 1px solid var(--rule); background: var(--white); }
.mnav[hidden] { display: none; }
.mnav a { padding: 14px var(--gut); border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 17px; }
@media (min-width: 1101px) { .mnav { display: none !important; } }
.salon iframe.map, .salon a.map { display: block; width: 100%; height: 260px; border: 0; margin-top: 22px; }
.salon a.map { display: grid; place-items: center; text-decoration: none; color: var(--mal); }
.gal.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gal.one .big { grid-row: auto; }
.proj a[hidden] { display: none; }
.prices td a:hover { color: var(--mal); }
.cats.four { grid-template-columns: repeat(4, 1fr); }
.mats.three, .numbers.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .cats.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .cats.four, .mats.three { grid-template-columns: 1fr; } .numbers.three { grid-template-columns: 1fr; } }

/* ---------- журнал: карточки статей (как в шаблоне) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.card { display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; }
.card[hidden] { display: none; }
.card .th { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--paper); display: block; }
.card .th img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.card:hover .th img { transform: scale(1.04); }
.card .caps { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.card h3 { font: 400 25px/1.15 Forum, serif; margin: 0; text-wrap: balance; }
.card .more { font-size: 14px; color: var(--grey); border-bottom: 1px solid var(--champ); justify-self: start; padding-bottom: 2px; }

/* ---------- журнал: статья (как в шаблоне) ---------- */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--champ); transform: scaleX(0); transform-origin: left; z-index: 40; }
.a-head-wrap { padding: 0; }
.a-head { padding: clamp(36px, 6vw, 80px) 0 36px; max-width: 900px; }
.a-head .crumbs { padding: 0; }
.a-head h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 22px 0; text-wrap: balance; }
.a-head .lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 62ch; margin: 0; }
.meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--grey); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.a-hero { position: relative; margin: 0; aspect-ratio: 21 / 9; overflow: hidden; background: var(--paper); }
.a-hero img { width: 100%; height: 100%; object-fit: cover; }
.a-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc .caps { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toc a { display: block; text-decoration: none; color: var(--grey); line-height: 1.35; border-left: 1px solid var(--silver); padding-left: 12px; transition: color .25s, border-color .25s; }
.toc a.on, .toc a:hover { color: var(--mal); border-color: var(--champ); }
.prose { max-width: 70ch; font-size: 17.5px; line-height: 1.7; }
.prose h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.12; margin: 56px 0 16px; scroll-margin-top: 110px; }
.prose > h2:first-child, .prose .summary + h2 { margin-top: 32px; }
.prose h3 { font-size: 24px; margin: 32px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--champ); }
.prose strong { font-weight: 500; color: var(--graph); }
.prose a { color: var(--mal); text-decoration-color: var(--champ); text-underline-offset: 3px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 22px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--silver); vertical-align: top; }
.prose th { font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.prose blockquote { margin: 28px 0; background: var(--mal); color: var(--white); padding: 26px 30px; font: 400 22px/1.35 Forum, serif; }
.prose blockquote p { margin: 0; }
.summary { border-top: 1px solid var(--champ); border-bottom: 1px solid var(--silver); padding: 22px 0; margin: 0 0 8px; }
.summary .caps { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; }
.a-cta { border-top: 1px solid var(--silver); margin-top: 48px; padding-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.a-cta h3 { font-size: 28px; margin: 0; }
.a-cta p { margin: 6px 0 0; color: var(--grey); font-size: 15px; }
.a-links { font-size: 14px; color: var(--grey); margin-top: 22px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .a-body { grid-template-columns: 1fr; }
  .toc { position: static; border-bottom: 1px solid var(--silver); padding-bottom: 22px; }
  .a-hero { aspect-ratio: 4 / 3; }
}

/* формы: поле-ловушка для ботов и ответ после отправки */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { position: relative; }
.sent h3 { font-size: 28px; margin: 0 0 12px; }
.sent p { margin: 0; color: var(--graph); }
button[disabled] { opacity: .6; cursor: progress; }
.policy h2 { font-size: 24px; margin: 36px 0 12px; }
.policy p { font-size: 15.5px; line-height: 1.65; margin: 0 0 10px; }
.policy p.li { padding-left: 18px; }
.a-body.no-toc { grid-template-columns: minmax(0, 1fr); }
.a-body.no-toc .prose { margin: 0 auto; }

/* согласие в формах и уведомление о cookie */
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 4px 0 16px; cursor: pointer; }
.consent-check input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 1px; accent-color: var(--mal); }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 50; max-width: 460px; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 8px 30px rgba(14,21,20,.12); padding: 16px 18px; display: flex; gap: 14px; align-items: center; font-size: 13.5px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie .sm-btn { min-height: 40px; padding: 0 16px; font-size: 13px; flex: none; }
@media (max-width: 820px) { .cookie { left: 10px; right: 10px; bottom: 70px; max-width: none; } }

/* кнопки внутри текста статьи — свой цвет, не как у ссылок */
.prose a.btn { color: var(--white); text-decoration: none; }
.prose a.btn:hover { color: var(--white); }

/* карта Яндекса в карточке салона: без полосатой заглушки, повыше — чтобы карточка организации не закрывала карту */
.salon iframe.map { background: var(--paper); height: 320px; }
/* карта салона — картинка + кнопки (без рекламы виджета) */
.smap { display: block; margin-top: 22px; overflow: hidden; background: var(--paper); }
.smap img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; transition: transform .6s ease; }
.smap:hover img { transform: scale(1.03); }
.smap-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.smap-btns .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* подпись под кнопкой в шапке страниц — ссылка к форме с загрузкой плана */
.note-link { color: inherit; text-decoration: underline; text-decoration-color: var(--champ); text-underline-offset: 3px; }
.note-link:hover { color: var(--mal); }

/* кнопки мессенджеров на экране «заявка принята» */
.sent .msgr-lead { margin: 18px 0 10px; }
.sent .msgr { display: flex; flex-wrap: wrap; gap: 10px; }
.sent .msgr-btn { min-height: 46px; padding: 0 22px; font-size: 14px; }
@media (max-width: 520px) { .sent .msgr-btn { flex: 1 1 100%; } }
