/* Автосервис — оформление в стиле BMW.
   Тёмный графит, синий акцент, трёхцветная кромка, прямые углы, плотная техничная типографика.
   Моушен: точный и короткий — линия-«сканер» первого экрана, строки заголовка выезжают из-под маски,
   цифры набегают как стрелка прибора, шторка с трёхцветной кромкой при смене страниц. */

@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/manrope-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0c0f; --bg-2: #111419; --bg-3: #181c23; --bg-4: #20252e;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.17);
  --ink: #f2f4f7; --ink-2: #c4cad3; --mute: #808997;
  --blue: #1c69d4; --blue-hi: #3b86f0; --blue-glow: rgba(59,134,240,.45);
  --m1: #5bb8ff; --m2: #2a3fa0; --m3: #e2262b;
  --ok: #3ddc84;
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-io: cubic-bezier(.7,0,.3,1);
  --pad: clamp(20px, 4vw, 64px);
  --hdr: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
#app { outline: none; min-height: 100vh; }

.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---- Типографика ---- */
.display { font-size: clamp(46px, 7.2vw, 124px); font-weight: 760; line-height: .96; letter-spacing: -.045em; }
.h1 { font-size: clamp(36px, 4.6vw, 76px); font-weight: 740; line-height: 1; letter-spacing: -.035em; }
.h2 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.lead { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; color: var(--ink-2); font-weight: 400; max-width: 40em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--blue-hi); }
.label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .3s, color .3s; }
.link:hover { border-color: var(--blue-hi); color: #fff; }
.link .arrow { width: 16px; height: 16px; }
.link-plain { transition: color .3s; }
.link-plain:hover { color: var(--blue-hi); }
.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; transition: transform .45s var(--ease); }
.star { width: 16px; height: 16px; fill: currentColor; }
[data-count], .tile__price, .svc__price, .cta__phone, .hero__stats dt, .score b, .page { font-variant-numeric: tabular-nums; }

/* трёхцветная кромка — фирменная деталь */
.stripe, .logo__stripe { display: block; height: 3px; background: linear-gradient(90deg, var(--m1) 0 33.3%, var(--m2) 33.3% 66.6%, var(--m3) 66.6%); }

/* ---- Кнопки ---- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; font-size: 15px; font-weight: 650; letter-spacing: .01em; border: 1px solid transparent; overflow: hidden; isolation: isolate; transition: background-color .3s, border-color .3s, color .3s; white-space: nowrap; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--primary { background: var(--blue); color: #fff; }
/* при наведении по кнопке проходит свет, как по кромке фары */
.btn--primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); }
.btn--primary:hover { background: var(--blue-hi); }
.btn--primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); transition: color .3s; }
.icon-btn svg, .search__icon, .search__close svg, .modal__close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-btn:hover { color: var(--blue-hi); }

/* ---- Логотип ---- */
.logo { display: inline-grid; grid-template-columns: auto auto; column-gap: 7px; align-items: baseline; font-size: 18px; letter-spacing: .14em; line-height: 1; }
.logo b { font-weight: 800; }
.logo span { font-weight: 300; }
.logo__stripe { grid-column: 1 / -1; margin-top: 7px; height: 2px; transform-origin: left; }
.logo--lg { font-size: 30px; justify-self: start; align-self: start; }
.logo--lg .logo__stripe { height: 3px; margin-top: 12px; }

/* ---- Шапка ---- */
.hdr { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--hdr); display: flex; align-items: center; gap: 40px; padding: 0 var(--pad); transition: transform .5s var(--ease), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.hdr.is-solid { background: rgba(10,12,15,.86); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-101%); }
.hdr__menu { display: flex; gap: 6px; margin-right: auto; }
.hdr__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hdr__phone { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); transition: color .3s; }
.hdr__phone:hover { color: #fff; }

.dd { position: relative; }
.dd__link { position: relative; display: block; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .3s; }
.dd__link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--blue-hi); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.dd__link:hover, .dd.is-open .dd__link, .dd__link.is-on { color: #fff; }
.dd.is-open .dd__link::after, .dd__link.is-on::after { transform: scaleX(1); }
.dd__panel { position: absolute; top: calc(100% + 10px); left: 0; width: 340px; padding: 22px 24px 20px; background: var(--bg-2); border: 1px solid var(--line); border-top: 2px solid var(--blue); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); font-size: 14px; color: var(--ink-2);
  visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0); transition: clip-path .32s var(--ease), opacity .2s, visibility 0s .32s; }
.dd__panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd.is-open .dd__panel { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .38s var(--ease), opacity .2s, visibility 0s; }
.dd__panel--wide { width: 480px; }
.dd__panel--end { left: auto; right: 0; }
.dd__plain li { padding: 5px 0; line-height: 1.4; }
.dd__svc li a { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--line); transition: color .25s; }
.dd__svc li a:hover { color: #fff; }
.dd__svc b { flex: none; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.dd__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 650; color: var(--ink); }
.dd__all:hover .arrow, .more-link:hover .arrow, .tile__more:hover .arrow { transform: translateX(5px); }
.dd__score { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; margin-bottom: 12px; }
.dd__score b { grid-row: span 2; font-size: 40px; font-weight: 760; color: var(--ink); letter-spacing: -.03em; }
.dd__score span { font-size: 12px; color: var(--mute); }
.dd__review { padding: 12px 0; border-top: 1px solid var(--line); }
.dd__review blockquote { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.dd__review figcaption { margin-top: 6px; font-size: 12px; color: var(--mute); }
.dd__foto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dd__foto img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.dd__phone { display: block; font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: -.01em; }
.dd__panel p { margin-bottom: 4px; }
.dd__panel .btn { margin-top: 14px; }

.burger { display: none; position: relative; width: 44px; height: 44px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---- Меню телефона ---- */
.menu { position: fixed; z-index: 45; inset: 0; padding: calc(var(--hdr) + 16px) var(--pad) 40px; background: var(--bg); overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-io), visibility 0s .55s; }
.menu-open .menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .55s var(--ease-io), visibility 0s; }
.mdd { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease); }
.menu-open .mdd { opacity: 1; transform: none; }
.menu-open .mdd:nth-child(2) { transition-delay: .05s; } .menu-open .mdd:nth-child(3) { transition-delay: .1s; }
.menu-open .mdd:nth-child(4) { transition-delay: .15s; } .menu-open .mdd:nth-child(5) { transition-delay: .2s; }
.mdd__row { display: flex; align-items: center; }
.mdd__toggle { flex: 1; text-align: left; padding: 18px 0; font-size: 30px; font-weight: 720; letter-spacing: -.03em; }
.mdd.is-on .mdd__toggle { color: var(--blue-hi); }
.mdd__go { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-2); }
.mdd__go .arrow { width: 20px; height: 20px; }
.mdd__panel { padding: 0 0 22px; color: var(--ink-2); font-size: 15px; }
.mdd__panel .dd__svc li a { padding: 11px 0; }
.menu__foot { color: var(--mute); font-size: 14px; }
.menu__phone { display: block; font-size: 26px; font-weight: 720; color: var(--ink); margin-bottom: 8px; }

/* ---- Появления ---- */
[data-intro] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.is-ready [data-intro] { opacity: 1; transform: none; }
.is-ready [data-intro="1"] { transition-delay: .25s; } .is-ready [data-intro="2"] { transition-delay: .35s; }
.is-ready [data-intro="3"] { transition-delay: .6s; } .is-ready [data-intro="4"] { transition-delay: .72s; }
.is-ready [data-intro="5"] { transition-delay: .9s; }
/* строки большого заголовка выезжают из-под маски */
.hero__title[data-intro], .page-head__title[data-intro] { opacity: 1; transform: none; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; transform: translateY(108%); transition: transform 1.1s var(--ease); }
.is-ready .ln > span { transform: none; }
.is-ready .ln:nth-child(1) > span { transition-delay: .3s; } .is-ready .ln:nth-child(2) > span { transition-delay: .42s; } .is-ready .ln:nth-child(3) > span { transition-delay: .54s; }
.page-head__title { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) .25s; }
.is-ready .page-head__title { clip-path: inset(0 0 -10% 0); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
/* кадры открываются шторкой слева направо, по очереди (наблюдается вся сетка) */
[data-reveal="imgs"] { opacity: 1; transform: none; }
[data-reveal="imgs"] > * { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal="imgs"].in > * { clip-path: inset(0 0 0 0); }
[data-reveal="imgs"] img { transform: scale(1.12); transition: transform 1.6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal="imgs"].in img { transform: none; }
.no-anim [data-intro], .no-anim [data-reveal], .no-anim [data-reveal] > *, .no-anim [data-reveal] img, .no-anim .ln > span, .no-anim .page-head__title, .no-anim [data-hero-media] img { transition: none !important; }

/* ---- Первый экран ---- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #050607; }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 2.6s var(--ease); }
.is-ready .hero__media img, .hero-static .hero__media img { opacity: 1; transform: none; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,8,.88) 0%, rgba(5,6,8,.55) 42%, rgba(5,6,8,.08) 75%), linear-gradient(0deg, rgba(5,6,8,.95) 0%, rgba(5,6,8,.2) 38%, rgba(5,6,8,.3) 100%); }
/* линия-«сканер»: один проход сверху вниз, как при диагностике */
.hero__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--m1) 20%, #fff 50%, var(--m1) 80%, transparent); box-shadow: 0 0 22px 4px var(--blue-glow); opacity: 0; pointer-events: none; }
.is-ready .hero__scan { animation: scan 2s .55s var(--ease-io) both; }
@keyframes scan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 85% { opacity: .9; } 100% { top: 100%; opacity: 0; } }
.hero__content { position: relative; padding-top: calc(var(--hdr) + 40px); padding-bottom: 46px; }
.hero__title { max-width: 11ch; margin: 22px 0 26px; }
.hero__lead { max-width: 34em; font-size: clamp(17px, 1.35vw, 21px); color: var(--ink-2); margin-bottom: 34px; }
.rating { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line-2); background: rgba(10,12,15,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; color: var(--ink-2); transition: border-color .3s; }
.rating:hover { border-color: var(--blue-hi); }
.rating .star { color: var(--blue-hi); }
.rating b { color: #fff; font-size: 15px; }
.hero__stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); padding-top: 0; padding-bottom: 34px; }
.hero__stats > div { padding: 22px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.hero__stats > div:last-child { border-right: 0; }
.hero__stats dt { font-size: clamp(22px, 2.2vw, 36px); font-weight: 720; letter-spacing: -.02em; }
.hero__stats dd { margin-top: 4px; font-size: 13px; color: var(--mute); }

/* ---- Витрины главной ---- */
.show { padding-top: clamp(90px, 11vw, 170px); }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px 30px; margin-bottom: clamp(36px, 4vw, 60px); }
.sec-head__num { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--mute); }
.sec-head__num .stripe { width: 64px; height: 2px; }
.more-link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.more-link:hover { border-color: var(--blue-hi); }
.show__about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.show__about .lead { font-size: clamp(20px, 1.9vw, 30px); color: var(--ink); line-height: 1.4; letter-spacing: -.01em; }
.index-list li { display: grid; grid-template-columns: 52px 1fr; padding: 15px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.index-list li:last-child { border-bottom: 1px solid var(--line); }
.index-list span { font-size: 13px; font-weight: 700; color: var(--blue-hi); font-variant-numeric: tabular-nums; padding-top: 2px; }
.show--reviews .wrap:first-child { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 40px; }
.show--reviews .sec-head { margin-bottom: 0; }
.show--reviews .reviews { margin-top: clamp(36px, 4vw, 60px); }
.show__contacts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.show__contacts > div { padding: 26px 24px 0 0; }
.show__contacts p:not(.label) { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; }

/* ---- Плитки ---- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.tile { position: relative; display: flex; flex-direction: column; }
.tile__link { display: block; }
.tile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
/* синяя полоса света вдоль нижней кромки кадра */
.tile__media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue-hi); box-shadow: 0 0 18px var(--blue-glow); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); filter: saturate(1.05); }
.tile:hover .tile__media::after { transform: scaleX(1); }
.tile__cat { display: block; margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__name { margin-top: 8px; font-size: 18px; font-weight: 680; line-height: 1.3; letter-spacing: -.01em; transition: color .3s; }
.tile:hover .tile__name { color: #fff; }
.tile__price { margin-top: 12px; font-size: 20px; font-weight: 740; letter-spacing: -.01em; }
.tile__desc { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.tile__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.tile__more:hover { color: #fff; }
.tile--anim { animation: tileIn .7s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(22px); clip-path: inset(0 0 12% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

/* ---- Отзывы ---- */
.score { display: flex; align-items: center; gap: 18px; }
.score b { font-size: clamp(64px, 7vw, 112px); font-weight: 780; letter-spacing: -.05em; line-height: .9; }
.score span { display: block; margin-top: 6px; font-size: 14px; color: var(--mute); }
.review__stars { display: flex; gap: 3px; color: var(--blue-hi); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { display: flex; flex-direction: column; gap: 18px; padding: 30px 28px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease); }
.review:hover { border-color: var(--line-2); transform: translateY(-4px); }
.review blockquote { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.review figcaption { margin-top: auto; display: grid; gap: 2px; font-size: 13px; color: var(--mute); }
.review figcaption b { color: var(--ink); font-size: 15px; font-weight: 650; }
.reviews--all { margin-top: 50px; }

/* ---- Фото ---- */
.foto__grid { display: grid; gap: 14px; }
.foto__item { overflow: hidden; background: var(--bg-3); }
.foto__item img { width: 100%; height: 100%; object-fit: cover; }
.foto__grid--show { grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(380px, 46vw, 720px); }
.foto__grid--show .foto__item:first-child { grid-row: span 2; }
/* 10 кадров: большой + два · три в ряд · два + большой · панорама */
.foto__grid--all { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 16vw, 270px); grid-auto-flow: row dense; }
.foto__grid--all .foto__item { grid-column: span 2; }
.foto__grid--all .foto__item:nth-child(1) { grid-column: 1 / span 4; grid-row: span 2; }
.foto__grid--all .foto__item:nth-child(7) { grid-column: 3 / span 4; grid-row: span 2; }
.foto__grid--all .foto__item:nth-child(8), .foto__grid--all .foto__item:nth-child(9) { grid-column: 1 / span 2; }
.foto__grid--all .foto__item:nth-child(10) { grid-column: 1 / -1; grid-row: span 2; }
.foto__note { margin-top: 16px; font-size: 13px; color: var(--mute); }

/* ---- Страницы ---- */
.pg-first { padding-top: calc(var(--hdr) + clamp(50px, 7vw, 110px)); }
.pg-first--flush { padding-top: var(--hdr); }
.page-head { margin-bottom: clamp(40px, 5vw, 70px); }
.page-head__title { margin-top: 20px; }
.page-head__meta { margin-top: 18px; font-size: 15px; color: var(--mute); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); padding-bottom: clamp(90px, 10vw, 150px); }
.about__grid .lead { font-size: clamp(20px, 1.9vw, 28px); color: var(--ink); line-height: 1.45; }
.index-list--full { margin-bottom: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 14px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.catalog, .reviews-page, .foto { padding-bottom: clamp(90px, 10vw, 150px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.filter { padding: 10px 16px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background-color .3s, border-color .3s, color .3s; }
.filter:hover { border-color: var(--ink); color: #fff; }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pages { display: flex; gap: 8px; margin-top: 60px; }
.page { width: 52px; height: 52px; border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--ink-2); transition: border-color .3s, background-color .3s, color .3s; }
.page:hover { border-color: var(--ink); color: #fff; }
.page.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---- Карточка услуги ---- */
.back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.back .arrow { transform: rotate(180deg); }
.back:hover { color: #fff; }
.back:hover .arrow { transform: rotate(180deg) translateX(5px); }
.svc__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.svc__media { aspect-ratio: 4 / 3; overflow: hidden; }
.svc__img { width: 100%; height: 100%; object-fit: cover; }
.svc__info { padding-top: 6px; }
.svc__title { margin: 18px 0 22px; font-size: clamp(30px, 3.2vw, 52px); font-weight: 740; line-height: 1.08; letter-spacing: -.03em; }
.svc__price { font-size: clamp(30px, 3vw, 46px); font-weight: 760; letter-spacing: -.03em; margin-bottom: 30px; }
.svc__facts { margin-top: 40px; border-top: 1px solid var(--line); }
.svc__facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.svc__facts dt { color: var(--mute); }
.svc__desc { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-top: clamp(80px, 9vw, 140px); }
.rich { max-width: 760px; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.rich p + p, .rich p + ul, .rich ul + p { margin-top: 14px; }
.rich li { position: relative; padding-left: 22px; margin: 6px 0; }
.rich li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--blue-hi); }

.more { padding-top: clamp(80px, 9vw, 140px); }
.more__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.more__nav { display: flex; gap: 8px; }
.more__nav button { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: border-color .3s, background-color .3s; }
.more__nav button:hover { border-color: var(--blue-hi); background: var(--blue); }
.more__nav button:first-child .arrow { transform: rotate(180deg); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--pad) 10px; scroll-padding: 0 var(--pad); }
.rail::-webkit-scrollbar { display: none; }
.rail .tile { scroll-snap-align: start; }
@media (min-width: 1480px) { .rail { padding-left: calc((100vw - 1480px) / 2 + var(--pad)); scroll-padding-left: calc((100vw - 1480px) / 2 + var(--pad)); } }

/* ---- Контакты ---- */
.cta { position: relative; margin-top: clamp(90px, 11vw, 170px); padding: clamp(100px, 12vw, 190px) 0 clamp(70px, 8vw, 120px); overflow: hidden; background: #050607; }
.pg-first--flush .cta { margin-top: 0; }
.cta__media { position: absolute; inset: -8% 0; will-change: transform; }
.cta__media picture, .cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,8,.94) 0%, rgba(5,6,8,.75) 48%, rgba(5,6,8,.35) 100%), linear-gradient(0deg, rgba(5,6,8,.9), transparent 50%); }
.cta__inner { position: relative; }
.cta__title { margin: 24px 0 10px; max-width: 12ch; }
.cta__phone { display: inline-block; margin: 20px 0 34px; font-size: clamp(34px, 5vw, 84px); font-weight: 300; letter-spacing: -.03em; line-height: 1; white-space: nowrap; transition: color .35s; }
.cta__phone:hover { color: var(--blue-hi); }
.cta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: clamp(60px, 7vw, 100px); padding-top: 30px; border-top: 1px solid var(--line-2); }
.cta__grid p:not(.label) { font-size: 17px; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 13px; color: var(--mute); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.status.is-open i { background: var(--ok); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } }

/* ---- Подвал ---- */
.footer { position: relative; margin-top: clamp(90px, 11vw, 170px); padding: 70px 0 34px; background: #06070a; border-top: 1px solid var(--line); }
.cta + .footer, .pg-first--flush + .footer { margin-top: 0; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__nav { display: grid; gap: 10px; align-content: start; font-size: 15px; color: var(--ink-2); }
.footer__nav a { width: fit-content; transition: color .3s; }
.footer__nav a:hover, .footer__nav a.is-on { color: #fff; }
.footer__contacts { display: grid; gap: 8px; align-content: start; font-size: 15px; color: var(--ink-2); }
.footer__contacts a { font-size: 22px; font-weight: 700; color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }

/* ---- Поиск ---- */
.search { position: fixed; z-index: 70; inset: 0; visibility: hidden; transition: visibility 0s .5s; }
.search-open .search { visibility: visible; transition: none; }
.search__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.search-open .search__backdrop { opacity: 1; }
.search__panel { position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 34px 0 30px; max-height: 88vh; overflow-y: auto; transform: translateY(-102%); transition: transform .5s var(--ease-io); }
.search__panel::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--m1) 0 33.3%, var(--m2) 33.3% 66.6%, var(--m3) 66.6%); }
.search-open .search__panel { transform: none; }
.search__bar { display: flex; align-items: center; gap: 16px; margin-top: 16px; border-bottom: 2px solid var(--line-2); transition: border-color .3s; }
.search__bar:focus-within { border-color: var(--blue-hi); }
.search__icon { flex: none; color: var(--mute); width: 26px; height: 26px; }
.search__input { flex: 1; min-width: 0; height: 74px; background: none; border: 0; outline: 0; font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.02em; }
.search__input::placeholder { color: var(--mute); font-weight: 400; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__close { width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink-2); }
.search__close:hover { color: #fff; }
.search__hint { margin-top: 18px; font-size: 14px; color: var(--mute); }
.search__list { margin-top: 12px; }
.sres { display: grid; grid-template-columns: 1fr auto; gap: 4px 30px; align-items: baseline; padding: 15px 16px; border-left: 2px solid transparent; cursor: pointer; animation: sresIn .35s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes sresIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.sres.is-active { background: var(--bg-3); border-left-color: var(--blue-hi); }
.sres__name { font-size: 17px; font-weight: 600; }
.sres__name mark { background: none; color: var(--blue-hi); }
.sres__meta { font-size: 13px; color: var(--mute); text-align: right; }
.sres--cat .sres__name::before { content: 'Категория'; display: inline-block; margin-right: 10px; padding: 2px 7px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--m1); border: 1px solid currentColor; vertical-align: 3px; }
.search__empty { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; color: var(--ink-2); }

/* ---- Формы ---- */
.modal { position: fixed; z-index: 80; inset: 0; visibility: hidden; transition: visibility 0s .6s; }
.modal-open .modal { visibility: visible; transition: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s; }
.modal-open .modal__backdrop { opacity: 1; }
.modal__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(540px, 100%); padding: 56px clamp(24px, 3.4vw, 50px) 40px; background: var(--bg-2); overflow-y: auto; transform: translateX(102%); transition: transform .6s var(--ease-io); }
.modal__panel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--m1) 0 33.3%, var(--m2) 33.3% 66.6%, var(--m3) 66.6%); }
.modal-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink-2); transition: color .3s, transform .4s var(--ease); }
.modal__close:hover { color: #fff; transform: rotate(90deg); }
.modal__title { margin: 14px 0 10px; font-size: clamp(30px, 3vw, 42px); font-weight: 740; letter-spacing: -.03em; line-height: 1.05; }
.demo-note { display: inline-block; margin-bottom: 26px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: #ffb547; border: 1px solid rgba(255,181,71,.35); background: rgba(255,181,71,.07); }
.lead-done .demo-note { margin-bottom: 30px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 0; outline: 0; font-size: 16px; transition: border-color .3s, box-shadow .3s; }
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(59,134,240,.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--m3); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 18px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.check.is-invalid { color: #ff7b7b; }
.lead__error { margin-bottom: 16px; padding: 12px 14px; border-left: 3px solid var(--m3); background: rgba(226,38,43,.08); color: #ffb3b3; font-size: 14px; }
.lead__submit { width: 100%; }
.lead.is-sending .lead__submit::before { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.7); transform-origin: left; animation: sending .7s linear both; }
@keyframes sending { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lead__alt { margin-top: 18px; font-size: 14px; color: var(--mute); }
.lead__alt a { color: var(--ink); font-weight: 650; }
.lead-done { outline: none; }

/* ---- Нижняя панель на телефоне ---- */
.dock { display: none; }

/* ---- Переходы ---- */
.fx-clone { position: fixed; z-index: 90; overflow: hidden; pointer-events: none; background: #000; }
.fx-clone img { width: 100%; height: 100%; object-fit: cover; }
.fx-curtain { position: fixed; z-index: 95; inset: 0; pointer-events: none; }
.fx-curtain--stripes { background: var(--bg); transform: translateX(-112%); }
.fx-curtain--stripes i { position: absolute; top: 0; bottom: 0; right: -42px; width: 42px; background: linear-gradient(90deg, var(--m1) 0 33.3%, var(--m2) 33.3% 66.6%, var(--m3) 66.6%); }
.fx-curtain--light { background: var(--bg); opacity: 0; }
.fx-curtain--light i { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, #fff 50%, transparent); transform: scaleX(0); }

/* ---- Адаптив ---- */
@media (max-width: 1180px) {
  .hdr__menu, .hdr__phone { display: none; }
  .burger { display: block; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
  .reviews { grid-template-columns: 1fr; }
  .show__about, .about__grid, .svc__grid, .svc__desc { grid-template-columns: 1fr; }
  .svc__desc { gap: 20px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats > div:nth-child(2) { border-right: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top .logo { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --hdr: 62px; }
  body { font-size: 15px; }
  .hdr { gap: 12px; }
  .hdr__right { gap: 4px; }
  .hdr__book { display: none; }
  .logo { font-size: 16px; }
  .hero__content { padding-bottom: 30px; }
  .hero__shade { background: linear-gradient(0deg, rgba(5,6,8,.96) 0%, rgba(5,6,8,.72) 45%, rgba(5,6,8,.25) 75%, rgba(5,6,8,.5) 100%); }
  .hero__stats { padding-bottom: 24px; }
  .hero__stats > div { padding: 16px 12px 0 0; margin-right: 12px; }
  .hero__stats dd { font-size: 12px; }
  .hero .btn-row .btn { flex: 1; padding: 0 16px; }
  .sec-head { grid-template-columns: 1fr; }
  .show--reviews .wrap:first-child { grid-template-columns: 1fr; gap: 26px; }
  .show__contacts, .cta__grid { grid-template-columns: 1fr; }
  .show__contacts > div { border-bottom: 1px solid var(--line); padding: 18px 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile__media { aspect-ratio: 16 / 10; }
  .foto__grid--show { grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr; height: 128vw; }
  .foto__grid--show .foto__item:first-child { grid-column: span 2; grid-row: auto; }
  .foto__grid--all { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 8px; }
  .foto__grid--all .foto__item, .foto__grid--all .foto__item:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .foto__grid--all .foto__item:nth-child(3n+1) { grid-column: span 2; grid-row: span 1; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 34px; padding: 0 var(--pad); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .sres { grid-template-columns: 1fr; padding: 13px 12px; }
  .sres__meta { text-align: left; }
  .footer__top { grid-template-columns: 1fr; }
  .cta__phone { font-size: clamp(30px, 9.4vw, 46px); }
  .rail { grid-auto-columns: 82vw; gap: 16px; }
  .more__nav { display: none; }
  .modal__panel { padding-top: 64px; }
  .dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; transform: translateY(160%); transition: transform .55s var(--ease); }
  .dock.is-on { transform: none; }
  .dock .btn { flex: 1; height: 56px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.8); }
  .dock__call { width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); }
  .dock__call svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
}
@media (max-width: 380px) {
  .hero__stats dt { font-size: 20px; }
  .btn { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-intro], [data-reveal], .ln > span, .page-head__title { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
