/*
 * porsche-nsk.ru — стили сайта. Настроение — как у porsche.com: монохром, воздух, крупная типографика, фото на весь экран.
 * Без фреймворков. Шрифт — Inter Tight (variable, кириллица, локально; OFL).
 */

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

:root {
  --ink: #010205;
  --ink-2: #535457;
  --muted: #6b6d70;
  --line: #d8d8db;
  --surface: #eeeff2;
  --bg: #fff;
  --dark: #0e0e12;
  --dark-2: #1a1b1f;
  --on-dark: #fbfcff;
  --on-dark-2: #a6a7ab;
  --r-sm: 4px;
  --r: 12px;
  --pad: max(20px, 5.4vw);
  --max: 1760px;
  --hd: 72px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }

/* ---------- Типографика ---------- */
.eyebrow { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.eyebrow--light { color: rgba(255, 255, 255, .78); }
.display { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3.25rem); line-height: 1.16; font-weight: 400; letter-spacing: -.02em; }
.h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -.025em; }
.h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.h4 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: var(--r-sm);
  font-size: 16px; font-weight: 500; line-height: 1.2; border: 2px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); white-space: nowrap; }
.btn .ico { width: 20px; height: 20px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b2c30; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e2e3e6; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .9); color: #fff; backdrop-filter: blur(8px); background: rgba(255, 255, 255, .06); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: baseline; gap: .55em; white-space: nowrap; line-height: 1; }
.logo__word { font-size: 19px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; }
.logo__nsk { font-size: 12px; font-weight: 500; letter-spacing: .3em; padding: 4px 3px 4px 7px; border: 1px solid currentColor; border-radius: 3px; transform: translateY(-2px); }

/* ---------- Шапка ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 90; color: #fff; transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .35s var(--ease); }
.hd::before { content: ''; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); pointer-events: none; transition: opacity .3s; }
.hd__bar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--hd); padding-inline: var(--pad); max-width: var(--max); margin: 0 auto; }
.hd__menu { justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 10px; margin-left: -10px; border-radius: var(--r-sm); font-weight: 500; transition: background .2s; }
.hd__menu:hover { background: rgba(255, 255, 255, .14); }
.hd__menu .ico { width: 24px; height: 24px; }
.hd__logo { justify-self: center; }
.hd__phone { justify-self: end; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px; margin-right: -10px; border-radius: var(--r-sm); font-weight: 500; transition: background .2s; }
.hd__phone:hover { background: rgba(255, 255, 255, .14); }
.hd.is-solid { background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
.hd.is-solid::before { opacity: 0; }
.hd.is-solid .hd__menu:hover, .hd.is-solid .hd__phone:hover { background: var(--surface); }
.hd.is-hidden { transform: translateY(-100%); }

/* ---------- Меню-панель ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: block; visibility: hidden; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(1, 2, 5, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.drawer__panel { position: absolute; inset: 0 auto 0 0; display: flex; max-width: 100%; transform: translateX(-100%); transition: transform .45s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__main { position: relative; z-index: 2; width: min(100vw, 460px); height: 100%; overflow-y: auto; background: #fff; padding: 24px 40px 32px; display: flex; flex-direction: column; }
.drawer__close { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 0 24px -12px; border-radius: var(--r-sm); }
.drawer__close:hover { background: var(--surface); }
.drawer__close .ico { width: 26px; height: 26px; }
.drawer__nav { display: grid; gap: 2px; }
.drawer__link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 12px; margin-inline: -12px; width: calc(100% + 24px); border-radius: var(--r-sm);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 500; letter-spacing: -.02em; text-align: left; transition: background .2s; }
.drawer__link:hover, .drawer__link[aria-expanded="true"] { background: var(--surface); }
.drawer__link.is-active { font-weight: 600; }
.drawer__link .ico { width: 24px; height: 24px; color: var(--muted); }
.drawer__info { margin-top: auto; padding-top: 40px; color: var(--ink-2); font-size: 15px; }
.drawer__phone { display: inline-block; font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -.01em; }
.drawer__social { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.drawer__social a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font-weight: 500; }
.drawer__social a:hover { border-color: var(--ink); }
.drawer__sub { position: absolute; z-index: 3; inset: 0; width: min(100vw, 460px); background: #fff; padding: 24px 40px 32px; overflow-y: auto; transform: translateX(-100%); transition: transform .4s var(--ease); }
.drawer__sub[hidden] { display: block; visibility: hidden; }
.drawer__sub.is-open { transform: none; visibility: visible; }
.drawer__back { display: inline-flex; align-items: center; gap: 6px; height: 48px; margin: 0 0 24px -8px; padding-right: 12px; font-weight: 500; border-radius: var(--r-sm); }
.drawer__back:hover { background: var(--surface); }
.drawer__title { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.drawer__list { display: grid; margin-bottom: 28px; }
.drawer__list a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; font-weight: 500; }
.drawer__list a .ico { width: 22px; height: 22px; color: var(--muted); }
.drawer__list a:hover { color: var(--ink-2); }
.drawer__brands { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.drawer__brands a { display: block; }
.drawer__brands img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; transition: transform .4s var(--ease); }
.drawer__brands a:hover img { transform: scale(1.03); }
.drawer__brands span { display: block; margin-top: 8px; font-weight: 600; }
@media (min-width: 992px) {
  .drawer__sub { left: 460px; z-index: 1; background: var(--surface); transform: translateX(-100%); box-shadow: none; }
  .drawer__sub.is-open { transform: none; }
  .drawer__back { display: none; }
  .drawer__sub .drawer__title { margin-top: 72px; }
  .drawer__brands a span { font-size: 1.125rem; }
}
body.drawer-open, body.lb-open { overflow: hidden; }

/* ---------- Первый экран (главная) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1200px; color: #fff; overflow: hidden; background: var(--dark); }
.hero__media, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.08); transition: transform 8s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(1, 2, 5, .82) 0%, rgba(1, 2, 5, .45) 32%, rgba(1, 2, 5, .08) 62%, rgba(1, 2, 5, .3) 100%); }
.hero__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 150px; }
.hero__title { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6rem); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; max-width: 14ch; }
.hero__lead { margin: 24px 0 36px; font-size: clamp(1.0625rem, .95rem + .4vw, 1.375rem); line-height: 1.45; max-width: 40ch; color: rgba(255, 255, 255, .88); }
.hero__nav { position: absolute; left: 0; right: 0; bottom: 44px; display: flex; gap: 16px; }
.hero__dot { flex: 0 1 200px; text-align: left; color: rgba(255, 255, 255, .7); padding: 10px 0; }
.hero__dot.is-active, .hero__dot:hover { color: #fff; }
.hero__bar { display: block; height: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; margin-bottom: 12px; }
.hero__bar i { display: block; height: 100%; width: 0; background: #fff; }
.hero__dot.is-active .hero__bar i { animation: bar 7s linear forwards; }
.hero.is-paused .hero__dot.is-active .hero__bar i { animation-play-state: paused; }
.hero__label { font-size: 14px; font-weight: 500; }
@keyframes bar { to { width: 100%; } }

/* ---------- Полоса марок ---------- */
.bstrip { border-bottom: 1px solid var(--line); }
.bstrip__in { display: flex; justify-content: space-between; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.bstrip__in::-webkit-scrollbar { display: none; }
.bstrip a { padding: 30px 0; font-size: clamp(.9375rem, .8rem + .6vw, 1.3rem); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; transition: color .2s; }
.bstrip a:hover { color: var(--ink); }

/* ---------- Секции ---------- */
.sec { padding: clamp(72px, 8vw, 136px) 0; }
.sec--surface { background: var(--surface); }
.sec--tight { padding-top: 0; }
.sec--surface + .sec--surface, .sec:not(.sec--surface) + .sec--tight { padding-top: 0; }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.shead__lead { margin-top: 16px; max-width: 56ch; }
.shead__aside { display: flex; align-items: center; gap: 24px; flex: none; }
.carr { display: flex; gap: 8px; }
.carr__btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; transition: border-color .2s, opacity .2s; }
.carr__btn:hover { border-color: var(--ink); }
.carr__btn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.carr__btn .ico { width: 22px; height: 22px; }

/* о сервисе */
.intro { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 120px); align-items: end; }
.intro__side p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; margin-bottom: 16px; }
.intro__side .link-arrow { margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(56px, 6vw, 96px); }
.facts li { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.facts b { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.75rem); line-height: 1; font-weight: 600; letter-spacing: -.03em; display: flex; align-items: center; min-height: 1em; }
.facts b .ico { width: .9em; height: .9em; }
.facts span { color: var(--ink-2); max-width: 24ch; }

/* карусель */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 24vw, 420px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 0 var(--pad) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
@media (min-width: 1760px) { .track { padding-inline: calc((100vw - var(--max)) / 2 + var(--pad)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--pad)); } }

/* карточка услуги */
.scard { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; color: #fff; background: var(--dark); isolation: isolate; }
.scard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); z-index: -2; }
.scard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(1, 2, 5, .9) 0%, rgba(1, 2, 5, .55) 38%, rgba(1, 2, 5, 0) 70%); }
.scard:hover .scard__img { transform: scale(1.05); }
.scard__body { position: absolute; inset: auto 0 0; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.scard__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 8px; }
.scard__icon .ico { width: 22px; height: 22px; }
.scard__title { font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.scard__text { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.scard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 500; font-size: 15px; }
.scard__more .ico { transition: transform .25s var(--ease); }
.scard:hover .scard__more .ico { transform: translateX(4px); }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* фича на всю ширину */
.feat { display: grid; grid-template-columns: 1fr 1fr; min-height: min(86vh, 760px); }
.feat--dark { background: var(--dark); color: var(--on-dark); }
.feat__media { position: relative; overflow: hidden; min-height: 360px; }
.feat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(48px, 6vw, 120px) clamp(24px, 6vw, 120px); }
.feat__body p { color: var(--on-dark-2); font-size: 1.0625rem; line-height: 1.65; margin: 24px 0; max-width: 46ch; }
.feat--rev .feat__media { order: 2; }
.feat + .feat { border-top: 1px solid #222327; }
.ticks { display: grid; gap: 12px; margin-bottom: 36px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { margin-top: 2px; }
.ticks--dark { margin: 20px 0 28px; }
.ticks--dark li { color: var(--ink-2); }
.ticks--dark .ico { color: var(--ink); }

/* плитки марок */
.btiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 19vw, 340px); gap: 16px; }
.btiles--row { grid-auto-rows: auto; }
.btiles--row .btile { aspect-ratio: 4 / 5; }
.btile { position: relative; display: block; border-radius: var(--r); overflow: hidden; color: #fff; background: var(--dark); isolation: isolate; }
.btile--big { grid-column: span 2; grid-row: span 2; }
.btile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.btile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(1, 2, 5, .85), rgba(1, 2, 5, .1) 55%, rgba(1, 2, 5, 0)); }
.btile:hover .btile__img { transform: scale(1.05); }
.btile__body { position: absolute; inset: auto 0 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 4px; }
.btile__name { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.btile--big .btile__name { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.75rem); }
.btile__models { font-size: 15px; color: rgba(255, 255, 255, .78); }
.btile__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 500; font-size: 15px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.btile:hover .btile__more, .btile--big .btile__more { opacity: 1; transform: none; }

/* отзывы */
.praise { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.praise__rating { position: sticky; top: calc(var(--hd) + 32px); }
.praise__score { font-size: clamp(5rem, 3.5rem + 5vw, 9rem); line-height: .9; font-weight: 600; letter-spacing: -.05em; }
.stars { display: flex; gap: 4px; margin: 16px 0 12px; }
.stars .ico { width: 24px; height: 24px; }
.praise__rating .btn { margin-top: 28px; }
.praise__list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; margin-top: 40px; }
.praise__list li { border-top: 1px solid var(--line); padding-top: 20px; }
.praise__n { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.praise__list h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.praise__list p { color: var(--ink-2); }
.praise__note { margin-top: 32px; font-size: 14px; }

/* галерея */
.gal { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 12px; }
.gal--mosaic { grid-template-columns: repeat(4, 1fr); }
.gal__item { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--surface); aspect-ratio: 4 / 3; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal__item:hover img { transform: scale(1.05); }
.gal__zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s var(--ease); }
.gal__item:hover .gal__zoom { opacity: 1; transform: none; }
.gal--mosaic .gal__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal__item.is-hidden { display: none; }
.gal-note { margin-top: 32px; }
.gal-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter button { padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.filter button:hover { border-color: var(--ink); }
.filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter sup { font-size: 11px; opacity: .6; margin-left: 2px; }

/* вопросы */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.faq__head .muted { margin: 20px 0 28px; max-width: 40ch; font-size: 1.0625rem; }
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 1.1875rem; font-weight: 500; letter-spacing: -.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.acc[open] summary .ico { transform: rotate(180deg); }
.acc__body { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }

/* карта */
.mapx { position: relative; isolation: isolate; background: var(--surface); }
.mapx__map { position: relative; height: clamp(480px, 46vw, 640px); overflow: hidden; z-index: 0; isolation: isolate; }
.mapx__map .leaflet-tile-pane { filter: grayscale(1) contrast(1.04) brightness(1.02); }
.mapx__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
.mapx__wrap { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; z-index: 2; }
.mapx__card { pointer-events: auto; background: #fff; border-radius: var(--r); padding: 40px; width: 100%; max-width: 460px; box-shadow: 0 24px 64px rgba(1, 2, 5, .16); }
.mapx__card .h3 { margin-bottom: 24px; }
.clist { display: grid; gap: 16px; margin-bottom: 28px; }
.clist li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.clist .ico { margin-top: 2px; color: var(--ink); }
.clist a { color: var(--ink); font-weight: 600; font-size: 1.125rem; }
.clist small { color: var(--muted); font-size: 14px; }
.map-pin span { display: block; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; background: var(--ink); transform: rotate(-45deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); position: relative; }
.map-pin span::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.leaflet-popup-content-wrapper { border-radius: 8px !important; font-family: var(--font); }
.leaflet-popup-content { font-size: 14px; line-height: 1.5; }
.leaflet-popup-content a { color: var(--ink) !important; font-weight: 600; }

/* призыв */
.cta { position: relative; color: #fff; background: var(--dark); overflow: hidden; isolation: isolate; }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__img { width: 100%; height: 100%; object-fit: cover; }
.cta__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(1, 2, 5, .88) 0%, rgba(1, 2, 5, .6) 50%, rgba(1, 2, 5, .3) 100%); }
.cta__inner { padding-block: clamp(96px, 10vw, 176px); }
.cta__title { font-size: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; max-width: 14ch; }
.cta__lead { margin: 24px 0 36px; font-size: 1.125rem; color: rgba(255, 255, 255, .85); max-width: 46ch; }

/* ---------- Внутренние страницы ---------- */
.phero { position: relative; height: clamp(460px, 64vh, 720px); color: #fff; overflow: hidden; background: var(--dark); isolation: isolate; }
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__img { width: 100%; height: 100%; object-fit: cover; animation: zoom 9s var(--ease) forwards; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.phero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(1, 2, 5, .85) 0%, rgba(1, 2, 5, .4) 45%, rgba(1, 2, 5, .35) 100%); }
.phero__inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(48px, 6vw, 88px); }
.phero__title { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 5rem); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; max-width: 18ch; overflow-wrap: break-word; hyphens: auto; }
.phero__lead { margin-top: 20px; font-size: clamp(1.0625rem, .95rem + .4vw, 1.3rem); max-width: 52ch; color: rgba(255, 255, 255, .86); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 28px; }
.crumbs a:hover { color: #fff; }

.split { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.split__aside { position: sticky; top: calc(var(--hd) + 24px); }
.panel { background: var(--surface); border-radius: var(--r); padding: 32px; }
.panel__note { margin-top: 12px; font-size: 14px; text-align: center; }
.prose .h2 { margin-bottom: 32px; }
.prose p { font-size: 1.125rem; line-height: 1.7; color: var(--ink-2); margin-bottom: 20px; max-width: 68ch; }
.prose .h4 { margin: 36px 0 16px; color: var(--ink); }
.prose--narrow { max-width: 820px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chips span { display: inline-flex; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 500; background: #fff; transition: background .2s, color .2s, border-color .2s; }
.chips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips--static span { background: transparent; }
.sec--surface .chips--static span { background: #fff; border-color: transparent; }
.plinks { margin: 16px 0 24px; }
.plinks a { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.plinks a span { flex: 1; }
.plinks a .ico:first-child { color: var(--muted); }
.plinks a:hover span { text-decoration: underline; text-underline-offset: 3px; }

.steps { display: grid; gap: 48px; }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps__list li { border-top: 1px solid var(--ink); padding-top: 20px; }
.steps__list span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.steps__list h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.steps__list p { color: var(--ink-2); }

.ccards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ccard { background: var(--surface); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.ccard__icon { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-bottom: 20px; }
.ccard__icon .ico { width: 22px; height: 22px; }
.ccard .h4 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ccard__big { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.ccard__big--sm { font-size: 1.375rem; }
.ccard__links { display: grid; gap: 10px; margin-top: 4px; }
.ccard__links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; }
.ccard__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.duo .h3 { margin-bottom: 20px; }

.err { text-align: center; }
.err__code { font-size: clamp(6rem, 4rem + 8vw, 12rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; color: var(--surface); -webkit-text-stroke: 0; }
.err .h3 { margin: 8px 0 12px; }
.err .btns { margin-top: 32px; }

/* ---------- Подвал ---------- */
.ft { background: var(--dark); color: var(--on-dark); padding: clamp(64px, 6vw, 96px) 0 40px; }
.ft__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid #2a2b30; }
.ft__logo .logo__word { font-size: 22px; }
.ft__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 0; border-bottom: 1px solid #2a2b30; }
.ft__h { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 20px; }
.ft__cols ul { display: grid; gap: 12px; }
.ft__cols a { color: var(--on-dark); transition: color .2s; }
.ft__cols a:hover { color: var(--on-dark-2); }
.ft__contacts li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); }
.ft__contacts .ico { margin-top: 2px; color: var(--on-dark-2); }
.ft__social { display: flex; gap: 8px; margin-top: 24px; }
.ft__social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #3a3b40; border-radius: 50%; transition: border-color .2s, background .2s; }
.ft__social a:hover { border-color: #fff; background: #fff; color: var(--ink); }
.ft__social .ico { width: 20px; height: 20px; }
.ft__legal { padding-top: 32px; display: grid; gap: 10px; font-size: 13px; line-height: 1.6; color: var(--on-dark-2); max-width: 110ch; }

/* ---------- Нижняя панель на телефоне ---------- */
.mbar { display: none; }
@media (max-width: 767px) {
  .mbar { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); }
  .mbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line); font-weight: 500; font-size: 15px; }
  .mbar a span { font-size: 13px; }
  .mbar .mbar__call { background: var(--ink); color: #fff; border-color: var(--ink); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- Лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(1, 2, 5, .94); display: none; align-items: center; justify-content: center; padding: 64px 72px; }
.lb.is-open { display: flex; }
.lb__fig { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb__img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 6px; object-fit: contain; }
.lb__cap { margin-top: 16px; color: rgba(255, 255, 255, .85); font-size: 15px; display: flex; gap: 16px; justify-content: center; text-align: center; }
.lb__cap span { color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.lb__close, .lb__prev, .lb__next { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s; }
.lb__close:hover, .lb__prev:hover, .lb__next:hover { background: rgba(255, 255, 255, .2); }
.lb__close .ico, .lb__prev .ico, .lb__next .ico { width: 26px; height: 26px; }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Появление ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1279px) {
  .sgrid { grid-template-columns: repeat(3, 1fr); }
  .ccards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  :root { --hd: 64px; }
  .intro, .praise, .faq, .split { grid-template-columns: 1fr; }
  .praise__rating, .split__aside { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .feat { grid-template-columns: 1fr; min-height: 0; }
  .feat__media { aspect-ratio: 4 / 3; min-height: 0; }
  .feat--rev .feat__media { order: 0; }
  .btiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(200px, 34vw, 320px); }
  .btiles--row { grid-auto-rows: auto; }
  .sgrid { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
  .gal--mosaic { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .ft__cols { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .mapx__wrap { position: static; display: block; padding-block: 0 56px; margin-top: -80px; }
  .mapx__map { height: 420px; }
  .mapx__card { max-width: none; position: relative; z-index: 3; }
  .hd__phone span { display: none; }
}
@media (max-width: 767px) {
  .hero__inner { padding-bottom: 116px; }
  .hero__nav { bottom: 28px; gap: 10px; }
  .hero__label { font-size: 12px; }
  .hero .btns .btn { flex: 1 1 auto; }
  .shead { flex-direction: column; align-items: flex-start; }
  .shead__aside { width: 100%; justify-content: space-between; }
  .track { grid-auto-columns: 78vw; gap: 12px; }
  .gal { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gal[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
  .ccards, .duo { grid-template-columns: 1fr; }
  .btiles--row { grid-template-columns: repeat(2, 1fr); }
  .mapx__card { padding: 28px; }
  .ft__top { flex-direction: column; align-items: flex-start; }
  .lb { padding: 56px 8px 72px; }
  .lb__prev, .lb__next { top: auto; bottom: 12px; transform: none; }
  .lb__prev { left: calc(50% - 64px); }
  .lb__next { right: calc(50% - 64px); }
  .acc__body { padding-right: 0; }
}
@media (max-width: 559px) {
  .hd__menu span { display: none; }
  .hd__menu { padding: 0 10px; }
  .logo__word { font-size: 15px; letter-spacing: .26em; margin-right: -.26em; }
  .logo__nsk { font-size: 10px; }
  .drawer__main, .drawer__sub { padding: 16px 24px 28px; }
  .sgrid, .btiles { grid-template-columns: 1fr; }
  .btile--big { grid-column: auto; grid-row: span 1; }
  .btiles { grid-auto-rows: 260px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .praise__list, .steps__list, .ft__cols { grid-template-columns: 1fr; }
  .btns .btn { width: 100%; }
  .shead__aside .link-arrow { white-space: nowrap; }
  .scard { aspect-ratio: 4 / 5; }
  .sgrid .scard { aspect-ratio: 4 / 3; }
}
