/* Стоматология «Улыбка» — визуальная система V3.
   Типографика: Prata (дисплей) + Golos Text (текст) + JetBrains Mono (подписи и коды).
   «Улыбка» здесь — не рисунок, а геометрия: границы полос прогнуты дугой вверх,
   у всех поверхностей нижние углы шире верхних, фото обрезаны по кривой улыбки,
   а одна светящаяся дуга в первом экране растягивается по мере прокрутки. */

/* ============================ токены ============================ */
:root {
  --brand: #325298;
  --brand-deep: #223d74;
  --cyan: #00aeef;
  --cyan-ink: #0a6d96;
  --cyan-soft: rgba(0, 174, 239, .1);

  --ink: #14315c;
  --ink-2: #2b4a70;
  /* тёмно-синий градиент для дисплейных заголовков (вместо чёрного) */
  --ink-grad: linear-gradient(104deg, #0f2748 0%, #23508d 46%, #14315c 74%, #0f2748 100%);
  --muted: #5a6b80;
  --muted-2: #8494a6;

  --paper: #eef2f7;
  --paper-2: #f7f9fc;
  --white: #fff;
  --night: #061426;
  --night-2: #0c2440;

  --line: rgba(11, 27, 46, .1);
  --line-2: rgba(11, 27, 46, .2);
  --line-invert: rgba(255, 255, 255, .14);

  --f-display: 'Prata', 'Times New Roman', Georgia, serif;
  --f-body: 'Golos Text', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gut: clamp(20px, 4.4vw, 64px);
  --head-h: 76px;

  /* дуга-«улыбка»: граница полосы и «улыбающиеся» скругления */
  --curve: clamp(30px, 4.4vw, 66px);
  --r-top: 10px;
  --r-bottom: 30px;
  --mask-smile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V82Q50 118 0 82Z' fill='%23000'/%3E%3C/svg%3E");
  --shadow-soft: 0 34px 70px -46px rgba(11, 27, 46, .5);
}

/* ============================ база ============================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

/* snap-прокрутка: долистал блок — тебя мягко переносит на следующий.
   .is-snap навешивает только те полосы, что целиком влезают в экран (app.js). */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  .is-snap { scroll-snap-align: start; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(.96rem, .3vw + .89rem, 1.05rem);
  line-height: 1.66;
  letter-spacing: -.006em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

/* зерно: снимает «плоский» вид цифровой подложки */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .026;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--cyan-ink); }
button { font: inherit; color: inherit; }
input { font: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
::selection { background: var(--cyan); color: #04202f; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: .8rem 1.4rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.shell {
  width: min(1320px, 100%);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.view[hidden] { display: none; }
.view.is-active { animation: viewin .6s var(--ease-out) both; }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } }

/* ============================ типографика ============================ */
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.022em; line-height: 1.04; }

.eyebrow {
  font: 500 .71rem/1.4 var(--f-mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan-ink);
  display: flex; align-items: center; gap: .85rem;
}
.eyebrow::before { content: ""; width: 30px; height: 1.6px; flex: 0 0 auto; background: var(--cyan); }
.eyebrow--center { justify-content: center; }

.lede { font-size: clamp(1.04rem, .5vw + .94rem, 1.26rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; }

/* ============================ движение ============================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform 1.05s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .11s; }
.d2 { transition-delay: .22s; }
.d3 { transition-delay: .34s; }
.d4 { transition-delay: .46s; }

/* маска-строка: текст поднимается из-под линии и расфокуса */
.reveal.ln { opacity: 1; transform: none; display: block; overflow: hidden; }
.reveal.ln > i {
  display: block; font-style: normal; transform: translateY(120%); filter: blur(14px);
  transition: transform 1.15s var(--ease-out), filter 1.15s var(--ease-out);
}
.reveal.ln.in > i { transform: none; filter: blur(0); }
.reveal.ln.d1 > i { transition-delay: .11s; }
.reveal.ln.d2 > i { transition-delay: .22s; }

.soft-in { filter: blur(9px); transition: filter 1.1s var(--ease-out), opacity .9s var(--ease-out), transform 1.05s var(--ease-out); }
.soft-in.in { filter: blur(0); }

.kenburns { animation: kb 30s var(--ease) infinite alternate; }
@keyframes kb { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.6%, -1.4%, 0); } }

/* ============================ прогресс ============================ */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--cyan)); }

/* ============================ фоновые зубики ============================ */
.teeth { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.tooth {
  position: absolute; left: var(--x); top: var(--y); width: var(--sz); height: calc(var(--sz) * 1.16);
  color: var(--brand); stroke-width: .8; opacity: var(--o);
  animation: drift var(--dur) ease-in-out var(--del) infinite alternate;
}
.hero .tooth, .page-head .tooth { color: var(--brand-deep); }
.cta-band .tooth { color: #8fdcf7; stroke-width: .5; }
/* раскладка первого экрана: шесть зубиков вразброс, от мелких к крупным */
.th1 { --x: 5%;  --y: 14%; --sz: clamp(46px, 5vw, 78px);   --dur: 24s; --del: -3s;  --o: .075; }
.th2 { --x: 88%; --y: 9%;  --sz: clamp(34px, 3.6vw, 56px); --dur: 29s; --del: -11s; --o: .06; }
.th3 { --x: 76%; --y: 34%; --sz: clamp(90px, 10vw, 168px); --dur: 36s; --del: -6s;  --o: .045; }
.th4 { --x: 13%; --y: 47%; --sz: clamp(64px, 7vw, 112px);  --dur: 31s; --del: -18s; --o: .05; }
.th5 { --x: 45%; --y: 6%;  --sz: clamp(28px, 3vw, 44px);   --dur: 22s; --del: -8s;  --o: .08; }
.th6 { --x: 60%; --y: 58%; --sz: clamp(110px, 13vw, 210px);--dur: 41s; --del: -25s; --o: .035; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(-5deg); }
  to { transform: translate3d(-3%, -7%, 0) rotate(6deg); }
}

/* парящие стоматологические глифы: щётка, зеркало, блик, зуб */
.floaties { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.flo {
  position: absolute; left: var(--x); top: var(--y); width: var(--sz); height: var(--sz);
  color: var(--brand); stroke-width: .9; opacity: var(--o);
  animation: floaty var(--dur) ease-in-out var(--del) infinite alternate;
}
.band > .shell { position: relative; z-index: 2; }
@keyframes floaty {
  from { transform: translate3d(0, 0, 0) rotate(-7deg); }
  to { transform: translate3d(-5%, -10%, 0) rotate(9deg); }
}

/* зубик-персонаж */
.mascot {
  width: clamp(112px, 13vw, 190px); height: auto; justify-self: center;
  filter: drop-shadow(0 16px 34px rgba(0, 174, 239, .38));
  animation: bob 7.5s ease-in-out infinite alternate;
}
@keyframes bob {
  from { transform: translateY(-6px) rotate(-3deg); }
  to { transform: translateY(10px) rotate(3deg); }
}
/* зубик выглядывает из угла тёмной полосы «Гарантия» */
.mascot--peek {
  position: absolute; right: clamp(6px, 4vw, 70px); bottom: clamp(14px, 3vw, 34px);
  z-index: 1; width: clamp(84px, 9vw, 128px); opacity: .92; rotate: 7deg;
  animation-duration: 9s;
}
@media (max-width: 700px) {
  .mascot--peek { display: none; }
}

/* светящаяся дуга первого экрана — растягивается скроллом */
.smile { position: relative; z-index: 2; width: min(980px, 88%); height: clamp(30px, 3.4vw, 44px); margin: -.3em auto -1.2rem; overflow: visible; }
.smile path { fill: none; stroke: url(#smileGrad); stroke-linecap: round; }
.smile-glow { stroke-width: 11; opacity: .3; filter: blur(9px); }
.smile-line { stroke-width: 2.2; }

/* ============================ верхняя полоса ============================ */
.topbar {
  background: var(--night);
  color: #b9d2e6;
  font: 400 .76rem/1.5 var(--f-mono);
  letter-spacing: .02em;
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  min-height: 42px; flex-wrap: wrap;
}
.topbar a { color: inherit; }
.topbar a:hover { color: var(--cyan); }
.tb-contacts, .tb-social { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.tb-contacts a { display: inline-flex; align-items: center; gap: .5rem; }
.tb-hours { color: #7e9bb3; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); flex: 0 0 auto; }
.tb-social a { display: inline-flex; align-items: center; gap: .45rem; text-transform: uppercase; letter-spacing: .12em; }
.tb-social svg { width: 15px; height: 15px; }

/* ============================ шапка ============================ */
.header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .45s var(--ease), border-color .45s var(--ease);
}
/* стекло живёт на псевдоэлементе: backdrop-filter у самой шапки сделал бы её
   контейнером для position:fixed, и мобильное меню перестало бы быть полноэкранным */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background-color .45s var(--ease);
}
/* в прилипшем состоянии стекло почти непрозрачно: над фото оно мажет цветным шумом */
.header.is-stuck::before {
  background: rgba(253, 254, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header.is-stuck { border-bottom-color: var(--line-2); box-shadow: 0 18px 40px -36px rgba(11, 27, 46, .6); }
.header-in {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem);
  min-height: var(--head-h);
  transition: min-height .4s var(--ease);
}
.header.is-stuck .header-in { min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); }
.brand img { height: 38px; width: auto; transition: height .4s var(--ease); }
.header.is-stuck .brand img { height: 32px; }
.brand-sep { width: 1px; height: 30px; background: var(--line-2); }
.brand-sub {
  font: 500 .64rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(.6rem, 2.2vw, 2.1rem); margin-left: auto; }
.nav a {
  position: relative; padding: .5rem 0;
  font-size: .9rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2);
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform .42s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav a.is-current { color: var(--brand); }

.header-act { display: flex; align-items: center; gap: .9rem; }
/* на узком десктопе шапка не вмещает и меню, и подпись логотипа */
@media (min-width: 861px) and (max-width: 1080px) {
  .brand-sep, .brand-sub { display: none; }
  .nav { gap: clamp(.5rem, 1.5vw, 1.1rem); }
  .nav a { font-size: .84rem; }
}

/* ============================ кнопки ============================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem; overflow: hidden; isolation: isolate;
  padding: 1rem 1.9rem; border: 1px solid transparent; border-radius: 999px;
  font-size: .93rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.1;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: color .35s var(--ease), background-color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease), box-shadow .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; opacity: 0;
  background: radial-gradient(160px 160px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .32), transparent 62%);
  transition: opacity .4s var(--ease);
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 20px 40px -26px rgba(11, 27, 46, .8); }
.btn-primary:hover { background: var(--brand); color: #fff; box-shadow: 0 26px 48px -26px rgba(50, 82, 152, .7); }
.btn-cyan { background: var(--cyan); color: #04202f; box-shadow: 0 20px 44px -24px rgba(0, 174, 239, .8); }
.btn-cyan:hover { background: #2ec4ff; color: #04202f; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .6); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-out { border-color: rgba(255, 255, 255, .34); color: #eaf4fb; }
.btn-out:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { padding: 1.2rem 2.4rem; font-size: 1rem; }
.btn-sm { padding: .68rem 1.25rem; font-size: .82rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: .93rem; color: var(--brand);
  border-bottom: 1px solid var(--line-2); padding-bottom: .25rem;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow svg { width: 20px; height: 20px; transition: transform .45s var(--ease-out); }
.link-arrow:hover { color: var(--cyan-ink); border-color: var(--cyan); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ============================ бургер / мобильное меню ============================ */
.burger {
  display: none; width: 46px; height: 46px; flex: 0 0 auto;
  background: transparent; border: 1px solid var(--line-2); border-radius: 50%;
  cursor: pointer; padding: 0; place-items: center;
}
.burger span {
  display: block; width: 18px; height: 1.6px; margin: 3.4px auto; background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
body.is-menu .burger { border-color: rgba(255, 255, 255, .3); }
body.is-menu .burger span { background: #fff; }
body.is-menu .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.is-menu .burger span:nth-child(2) { opacity: 0; }
body.is-menu .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================ полосы блоков ============================ */
.band {
  --prev: var(--paper-2);
  position: relative;
  padding: calc(var(--curve) + clamp(3.2rem, 6.4vw, 6rem)) 0 clamp(3.4rem, 6.6vw, 6.2rem);
  background: var(--white);
}
/* верх полосы прогнут дугой вверх — это и есть «улыбка» в геометрии страницы */
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--curve);
  background: var(--prev);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  pointer-events: none;
}
.band--paper { --prev: var(--white); background: var(--paper-2); }
.page-head + .band { --prev: var(--paper); }
/* под бегущей строкой дуга не нужна: там уже жёсткий цветовой шов */
.hero + .band::before { display: none; }
.band--night {
  --prev: var(--paper-2);
  background: radial-gradient(120% 130% at 82% -10%, rgba(0, 174, 239, .26), transparent 58%),
              linear-gradient(165deg, var(--night), var(--night-2) 72%, #0f3153);
  color: #dceaf6;
}
.band--night h2, .band--night h3 { color: #fff; }
.band--night .band-lede, .band--night p { color: #b7cde1; }
.band--flush { padding-bottom: 0; }
/* цвет дуги над полосой = цвет полосы, которая сверху; по умолчанию --prev: paper */
.band--prev-white { --prev: var(--white); }
.band--prev-night { --prev: #0f3153; }

.band-head {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: .9rem clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.4rem, 4.6vw, 4rem);
}
.band-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.band-head--split .band-lede { margin-top: 0; padding-bottom: .4rem; }
.band-head--split .link-arrow { justify-self: start; align-self: end; padding-bottom: .5rem; }
.band-head--split .band-title { max-width: 22ch; }
.band-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 4.3vw, 3.7rem); line-height: 1.03; letter-spacing: -.032em;
  color: var(--ink);
}
.band-title em { font-style: normal; color: var(--brand); }
.band--night .band-title em { color: var(--cyan); }
.band-lede { color: var(--muted); max-width: 52ch; font-size: 1rem; }

/* ============================ HERO ============================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(76% 62% at 50% 0%, rgba(0, 174, 239, .13), transparent 62%),
    linear-gradient(180deg, var(--paper), #f4f7fb 62%, var(--white));
  padding-top: clamp(2.2rem, 4.6vw, 4.2rem);
}
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-orb {
  position: absolute; left: 50%; top: -22%; width: min(1100px, 120vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 174, 239, .2), rgba(50, 82, 152, .07) 46%, transparent 66%);
}
.hero-top { position: relative; z-index: 3; text-align: center; display: grid; justify-items: center; }
.hero-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.75rem, 9.4vw, 6.7rem); line-height: .93; letter-spacing: -.048em;
  margin: 1.15rem 0 0;
}
.hero-title .ln { padding-bottom: .17em; margin-bottom: -.17em; }
.hero-title .ln > i { transform: translateY(135%); }
.hero-title .ln.in > i { transform: none; }
.hero-title .ln:nth-child(2) > i { color: var(--brand); }
/* дисплейные заголовки светлых полос — тёмно-синий градиент вместо чёрного */
.hero-title .ln > i,
.band:not(.band--night) .band-title,
.split-text h3, .pillar h3, .map-card h3, .page-head h1,
.about-text .lead, .person h3, .pgroup-title {
  background: var(--ink-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.band-title em, .page-head h1 em, .page-head .thin, .hero-title .ln:nth-child(2) > i {
  -webkit-text-fill-color: currentColor;
}
.hero-lede { margin-top: 1.25rem; max-width: 52ch; font-size: clamp(1.02rem, .55vw + .93rem, 1.22rem); color: var(--ink-2); line-height: 1.58; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.9rem; }
.consent-note { margin-top: 1.1rem; font-size: .78rem; line-height: 1.5; color: var(--muted-2); max-width: 46ch; }
.consent-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.hero-stage {
  position: relative; z-index: 3;
  width: min(1320px, 100%); margin: clamp(2.6rem, 5vw, 4.4rem) auto 0;
  padding-inline: var(--gut);
}
.hero-stage img {
  width: 100%; aspect-ratio: 16 / 7.6; object-fit: cover;
  -webkit-mask-image: var(--mask-smile); mask-image: var(--mask-smile);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.stage-chips {
  position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(1rem, 3vw, 2.6rem); z-index: 4;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
}
.chip {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 22px 44px -30px rgba(6, 20, 38, .7);
}
.chip b { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.chip span { font: 400 .68rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chip--lic b { color: var(--cyan-ink); }

/* бегущая строка направлений */
.ticker {
  position: relative; z-index: 3; margin-top: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--night); color: #c3dcee; overflow: hidden;
}
.ticker-track { display: flex; width: max-content; animation: slide 52s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  position: relative; padding: 1.2rem 3.4rem; white-space: nowrap;
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
}
.ticker span::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: var(--cyan); transform: translateY(-50%); opacity: .8;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================ компоненты полос ============================ */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.pillar {
  padding: clamp(1.8rem, 2.8vw, 2.6rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-top) var(--r-top) var(--r-bottom) var(--r-bottom);
  box-shadow: 0 22px 48px -40px rgba(11, 27, 46, .55);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease), border-color .45s var(--ease);
}
.pillar:hover { transform: translateY(-8px); box-shadow: 0 46px 70px -46px rgba(11, 27, 46, .6); border-color: rgba(0, 174, 239, .4); }
.ico {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-top) var(--r-top) 50% 50%;
  color: var(--brand); background: var(--paper-2);
  margin-bottom: 1.6rem;
  transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .5s var(--ease-out);
}
.ico svg { width: 27px; height: 27px; }
.pillar:hover .ico { border-color: var(--cyan); background: var(--cyan-soft); transform: translateY(-3px); }
.pillar h3 { font-family: var(--f-display); font-size: 1.42rem; font-weight: 400; letter-spacing: -.02em; margin-bottom: .8rem; }
.pillar p { color: var(--muted); font-size: .97rem; }

/* сетка на волосяных швах */
.hairgrid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-top) var(--r-top) var(--r-bottom) var(--r-bottom); overflow: hidden; }
.hairgrid > * { background: var(--white); padding: clamp(1.6rem, 2.8vw, 2.4rem); }
.hairgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hairgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hairgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.docgrid h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.22rem, 1.7vw, 1.55rem); letter-spacing: -.02em; line-height: 1.14; margin-bottom: .8rem; }
.docgrid p:not(.panel-title) { color: var(--muted); font-size: .89rem; line-height: 1.55; }
.docgrid .panel-title { margin-bottom: 1.1rem; }

/* сплит: фото + текст */
.split { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 5 / 4.1; object-fit: cover; }
.split-media .mask { -webkit-mask-image: var(--mask-smile); mask-image: var(--mask-smile); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.badge-year {
  position: absolute; right: -1.1rem; bottom: 2.4rem; z-index: 2;
  background: var(--brand); color: #fff; border-radius: 999px;
  width: 6.8rem; height: 6.8rem; display: grid; place-content: center; text-align: center;
  font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 26px 48px -26px rgba(34, 61, 116, .9);
}
.split-text h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 2.9vw, 2.5rem); letter-spacing: -.026em; line-height: 1.1; margin-bottom: 1.4rem; }
.split-text .eyebrow { margin-bottom: 1.1rem; color: var(--cyan-ink); }
.split-text p { color: var(--muted); margin-bottom: 1rem; }
.split-text h3 + p { color: var(--ink-2); font-size: 1.05rem; }
.split-marks { display: grid; gap: .85rem; margin: 1.7rem 0 0; }
.split-marks li { position: relative; padding-left: 1.9rem; color: var(--ink-2); font-size: .97rem; line-height: 1.45; }
.split-marks li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.1rem; height: .6rem; border: 2px solid var(--cyan); border-top: 0; border-bottom-left-radius: 1.1rem; border-bottom-right-radius: 1.1rem; }
.split-text .link-arrow { margin-top: 1.8rem; }

/* часы / график */
.hours { display: grid; gap: 0; margin-bottom: 1.5rem; }
.hours li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.hours li span { font: 500 .78rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hours li b { font-size: 1.04rem; font-weight: 600; }
.hours li.off b { color: var(--muted-2); }
.spec-hours { display: grid; gap: 1.2rem; }
.spec-hours b { display: block; font-weight: 600; margin-bottom: .3rem; }
.spec-hours span { display: block; color: var(--muted); font-size: .93rem; padding-left: 1.2rem; position: relative; }
.spec-hours span::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1.5px; background: var(--cyan); }
.panel-title { font: 500 .72rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: 1.7rem; }
.cta-cell { display: flex; flex-direction: column; gap: 1rem; background: var(--night) !important; color: #d8e8f5; }
.cta-cell .btn { margin-top: auto; }
.cta-cell a:not(.btn) { color: var(--cyan); }
.cta-cell .addr { font-size: .95rem; color: #b7cde1; }

/* плашка объявлений клиники */
.news-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.8rem, 3.4vw, 3rem); align-items: center; }
@media (min-width: 1025px) {
  .news-in { grid-template-columns: minmax(0, 1fr) auto; }
}
.notice {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper-2);
  border-radius: var(--r-top) var(--r-top) var(--r-bottom) var(--r-bottom);
  padding: clamp(1.4rem, 2.4vw, 2.1rem) clamp(1.8rem, 3.2vw, 3rem);
}
.notice::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--cyan) 62%, transparent);
}
.notice-head { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1.2rem; }
.notice-sum {
  flex: 1 1 14rem; font-family: var(--f-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink);
}
.notice-body { padding-top: 1.4rem; }
.notice-tag {
  display: inline-block; font: 500 .68rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan-ink); border: 1px solid var(--line-2); border-radius: 999px; padding: .45rem .85rem; flex: 0 0 auto;
}
.notice p { color: var(--ink-2); margin-bottom: .9rem; }
.notice .sign { margin-top: 1.4rem; font-weight: 600; color: var(--brand); }
.band--night .notice { background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .16); }
.band--night .notice-sum { color: #fff; }
.band--night .notice-tag { color: var(--cyan); border-color: rgba(255, 255, 255, .24); }
.band--night .notice-body p { color: #cfe2f1; }
.band--night .notice-body > p:first-child { color: #eaf4fb; }
.band--night .notice .sign { color: var(--cyan); }
.band--night .notice a { color: var(--cyan); }

/* список документов */
.doc-list { display: grid; border-top: 1px solid var(--line); }
.doc-link {
  position: relative; display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 1.4rem;
  gap: 1.2rem; align-items: center;
  padding: 1.15rem .6rem; border-bottom: 1px solid var(--line); color: var(--ink-2);
  font-size: .96rem; line-height: 1.5;
}
.doc-link::before {
  content: ""; position: absolute; inset: 0 -1.2rem; background: var(--paper-2); opacity: 0;
  transition: opacity .35s var(--ease);
}
.doc-link > * { position: relative; }
.doc-link:hover::before { opacity: 1; }
.doc-link:hover { color: var(--brand); }
.doc-link .fi {
  position: relative; display: grid; place-items: center;
  font: 500 .64rem/1 var(--f-mono); letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 4px; padding: .5rem .3rem;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.doc-link:hover .fi { color: var(--cyan-ink); border-color: var(--cyan); }
.doc-link .fi.ext { color: var(--brand); }
.doc-link .arr { width: 18px; height: 18px; color: var(--muted-2); opacity: 0; transform: translateX(-8px); transition: all .4s var(--ease-out); }
.doc-link:hover .arr { opacity: 1; transform: none; color: var(--cyan-ink); }

/* карта */
.map { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-top) var(--r-top) var(--r-bottom) var(--r-bottom); overflow: hidden; }
.map-card { background: var(--white); padding: clamp(1.7rem, 3vw, 2.8rem); }
.map-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 1rem; }
.map-card .big { font-size: 1.14rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.map-card .big span { font-weight: 400; color: var(--muted); font-size: .95rem; }
.map-card p { color: var(--muted); margin-top: .9rem; }
.map-card a:not(.btn) { color: var(--cyan-ink); font-weight: 600; }
.map-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.7rem; border-radius: var(--r-top) var(--r-top) var(--r-bottom) var(--r-bottom); }
.map-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.map-btns img { width: 22px; height: 22px; }
.map-frame { background: var(--paper); min-height: 420px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.28) contrast(1.04); }

/* ============================ заголовок раздела ============================ */
.page-head {
  position: relative; overflow: hidden;
  background: radial-gradient(72% 88% at 76% 8%, rgba(0, 174, 239, .14), transparent 62%), linear-gradient(180deg, var(--paper), #f3f6fa);
  padding: clamp(3.4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}
.page-head .shell { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 0 clamp(1.6rem, 4vw, 4.4rem); align-items: end; }
.page-head h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.5rem, 6.6vw, 5.2rem); line-height: 1; letter-spacing: -.04em;
  margin-top: 1.5rem; max-width: 17ch;
}
.page-head .thin { display: block; font-size: .5em; color: var(--muted); letter-spacing: -.024em; margin-top: .4em; }
.head-lede { position: relative; z-index: 3; align-self: end; margin-top: 0; max-width: 44ch; color: var(--ink-2); padding-bottom: .5rem; }
.page-head .eyebrow { grid-column: 1 / -1; }

/* правая колонка заголовка раздела: факты, а не пустота */
.head-side { position: relative; z-index: 3; align-self: end; padding-bottom: .5rem; border-top: 1.6px solid var(--brand); }
.head-side p {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.8rem;
  padding: .78rem 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.head-side p:last-child { border-bottom: 0; }
.head-side i { font: 500 .66rem/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-style: normal; flex: 0 0 auto; }
.head-side b { font-weight: 600; color: var(--ink); text-align: right; letter-spacing: -.01em; }
.head-side .side-note { display: block; border-bottom: 0; padding-top: 1rem; font-size: .82rem; color: var(--muted); }

.about-text { max-width: 70ch; }
.about-text .lead { font-family: var(--f-display); font-size: clamp(1.25rem, 2.5vw + .6rem, 1.95rem); line-height: 1.34; color: var(--ink); letter-spacing: -.022em; margin-bottom: 1.5rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-text .addr-line { margin-top: 1.9rem; padding: 1.3rem 1.5rem; background: var(--paper-2); border-left: 2px solid var(--cyan); border-radius: 0 var(--r-top) var(--r-top) 0; color: var(--ink); }

/* стена фотографий: на десктопе — сетка 5×2, на узких — горизонтальная лента */
.rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
.shot { position: relative; overflow: hidden; border-radius: var(--r-top); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease-out); }
.shot:hover img { transform: scale(1.06); }

/* стена сканов документов */
.scans { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-top) var(--r-top) var(--r-bottom) var(--r-bottom); overflow: hidden; }
.scan { position: relative; display: block; background: var(--white); overflow: hidden; }
.scan img { width: 100%; aspect-ratio: 1 / 1.4142; object-fit: cover; object-position: top; transition: transform .7s var(--ease-out), filter .5s var(--ease); filter: saturate(.86); }
.scan:hover img { transform: scale(1.05); filter: none; }
.scan span {
  position: absolute; inset: auto 0 0 0; padding: 1.8rem .7rem .65rem;
  background: linear-gradient(transparent, rgba(6, 20, 38, .55) 45%, rgba(6, 20, 38, .92));
  color: #e6f2fb; font: 400 .64rem/1.3 var(--f-mono); letter-spacing: .03em;
}

/* реквизиты */
.requisites { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: .1rem 1.4rem; }
.requisites dt { color: var(--muted); font-size: .9rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.requisites dd { margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .96rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; }
.link-row a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; }
.link-row img { width: 20px; height: 20px; }

.ticks { display: grid; gap: .75rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .68em; width: .85rem; height: 1.5px; background: var(--cyan); }
.band--night .ticks li { color: #cfe2f1; }

/* ============================ УСЛУГИ ============================ */
.svc { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.svc-index { position: sticky; top: calc(var(--head-h) + 1.8rem); display: grid; gap: .1rem; border-top: 1px solid var(--line-2); }
.svc-index a {
  display: block; padding: .9rem .4rem .9rem 1rem; border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  font-size: .93rem; font-weight: 500; color: var(--muted);
  transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.svc-index a:hover, .svc-index a.is-on { color: var(--brand); border-left-color: var(--cyan); background: var(--paper-2); }
.svc-note-hint { margin-top: 1.6rem; font-size: .84rem; color: var(--muted-2); }

.svc-rows { display: grid; }
.svc-row {
  position: relative;
  padding: clamp(1.9rem, 3.4vw, 2.9rem) 0; border-top: 1px solid var(--line);
}
.svc-row:first-child { border-top: 0; padding-top: 0; }
.svc-row::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--cyan); transition: width .6s var(--ease-out); }
.svc-row:hover::before { width: 5rem; }
.svc-row h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.026em; line-height: 1.1; margin-bottom: .9rem; }
.svc-row p { color: var(--muted); max-width: 62ch; }
.svc-g {
  display: inline-flex; align-items: flex-start; gap: .6rem; margin-top: 1.2rem;
  font: 500 .74rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-ink);
}
.svc-row .svc-g { max-width: 72ch; }
.svc-g::before { content: ""; width: 1.5rem; height: 1.5px; margin-top: .52em; background: var(--cyan); flex: 0 0 auto; }

/* широкая полоса-акцент */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: calc(var(--curve) + clamp(3.6rem, 8vw, 6.6rem)) 0 clamp(3.6rem, 8vw, 6.6rem);
}
.cta-band .shell { position: relative; z-index: 3; }
.cta-band h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.1rem, 4.9vw, 3.8rem); line-height: 1.03; letter-spacing: -.034em; color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin: 1.5rem auto 0; color: #b7cde1; }
.cta-band .btn { margin-top: 2.5rem; }

/* ============================ СПЕЦИАЛИСТЫ ============================ */
.roster { border-top: 1px solid var(--line-2); }
.person { border-bottom: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.6rem) 0; transition: background-color .45s var(--ease); }
.person:hover { background: var(--paper-2); }
.person-top { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr) auto; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; }
.mono-badge {
  width: 4.8rem; height: 4.8rem; border: 1px solid var(--line-2);
  border-radius: var(--r-top) var(--r-top) 50% 50%;
  display: grid; place-items: center; font-family: var(--f-display); font-size: 1.45rem; color: var(--brand);
  background: var(--white); transition: border-color .45s var(--ease), transform .55s var(--ease-out);
}
.person:hover .mono-badge { border-color: var(--cyan); transform: translateY(-3px); }
.person-role { display: block; font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: .5rem; }
.person h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.024em; line-height: 1.1; }
.person-spec { margin-top: .55rem; color: var(--muted); font-size: .92rem; }
.person-toggle {
  display: inline-flex; align-items: center; gap: .7rem; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: .7rem 1.3rem;
  font-size: .84rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: border-color .35s var(--ease), color .35s var(--ease), background-color .35s var(--ease);
}
.person-toggle::after {
  content: ""; width: 10px; height: 10px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .45s var(--ease-out);
}
.person-toggle:hover { border-color: var(--brand); color: var(--brand); }
.person.is-open .person-toggle { background: var(--ink); border-color: var(--ink); color: #fff; }
.person.is-open .person-toggle::after { transform: rotate(-135deg) translateY(-2px); }
.person-docs { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.person.is-open .person-docs { grid-template-rows: 1fr; }
.person-docs > div { overflow: hidden; }
.person-docs dl { margin: clamp(1.5rem, 3vw, 2.4rem) 0 .4rem clamp(.2rem, 4vw, 3rem); display: grid; gap: 1.3rem; }
.person-docs .doc-row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.person-docs dt { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-ink); }
.person-docs dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* ============================ ПРАЙС ============================ */
.price-key {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-top) var(--r-top) var(--r-bottom) var(--r-bottom); overflow: hidden;
  margin-bottom: 1.3rem;
}
.price-note { max-width: 66ch; color: var(--muted); font-size: .95rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.price-key > div {
  background: var(--white); padding: clamp(1.3rem, 2.2vw, 1.9rem);
  transition: background-color .45s var(--ease);
}
.price-key > div:hover { background: var(--paper-2); }
.price-key span { display: block; font: 400 .78rem/1.4 var(--f-body); color: var(--muted); margin-bottom: .6rem; }
.price-key b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1; color: var(--brand); letter-spacing: -.02em; }
.price-key b::after { content: " ₽"; font-size: .5em; color: var(--muted-2); }

.price-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.price-search {
  position: relative; display: flex; align-items: center; gap: .8rem; flex: 1 1 320px;
  max-width: 560px; padding: .1rem 1.3rem;
  background: var(--white); border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.price-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.price-search svg { width: 19px; height: 19px; color: var(--muted-2); flex: 0 0 auto; }
.price-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .95rem 0; font-size: .95rem; color: var(--ink); }
.price-search input:focus { outline: none; }
.price-search input::placeholder { color: var(--muted-2); }
.price-count { font: 500 .74rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-ink); }

.pgroup { margin-bottom: clamp(2.4rem, 4.6vw, 3.8rem); }
.pgroup-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem clamp(1.4rem, 3vw, 3rem);
  align-items: end; padding-bottom: 1.1rem; margin-bottom: .4rem;
  border-bottom: 2px solid var(--line-2); cursor: pointer;
  transition: border-color .45s var(--ease);
}
.pgroup-t { grid-column: 1; }
.pgroup-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.5vw, 2.05rem); letter-spacing: -.026em; line-height: 1.1; }
.pgroup-head:hover .pgroup-title { background-image: linear-gradient(104deg, var(--brand-deep), var(--cyan-ink) 58%, var(--brand-deep)); }
.pgroup-note { color: var(--muted); font-size: .92rem; max-width: 62ch; margin-top: .3rem; }
.pgroup-side { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: flex-end; gap: clamp(1rem, 2.2vw, 1.9rem); }
.pgroup-meta { text-align: right; align-self: end; white-space: nowrap; }
.pgroup-meta span { display: block; font: 500 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .4rem; }
.pgroup-meta b { font-size: .95rem; font-weight: 600; color: var(--brand); }

.pgroup-toggle {
  display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; cursor: pointer;
  background: transparent; border: 0; padding: .1rem 0;
  font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan-ink); transition: color .35s var(--ease);
}
.pgroup-toggle:hover, .pgroup-head:hover .pgroup-toggle { color: var(--brand); }
.pgroup-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 3px; }
.pgroup-mark { position: relative; width: 17px; height: 17px; flex: 0 0 auto; border: 1.4px solid currentColor; border-radius: 50%; }
.pgroup-mark::before, .pgroup-mark::after {
  content: ""; position: absolute; background: currentColor; border-radius: 1px;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease);
}
.pgroup-mark::before { left: 3.4px; right: 3.4px; top: 50%; height: 1.4px; margin-top: -.7px; }
.pgroup-mark::after { top: 3.4px; bottom: 3.4px; left: 50%; width: 1.4px; margin-left: -.7px; }
.pgroup.is-open .pgroup-mark::after { transform: scaleY(0); opacity: 0; }
.pgroup.is-open .pgroup-head { border-color: var(--brand); }

.pgroup-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.pgroup.is-open .pgroup-body { grid-template-rows: 1fr; }
.pgroup-clip { overflow: hidden; min-height: 0; }
.pgroup-list { columns: 2; column-gap: clamp(2rem, 4vw, 3.6rem); padding-top: 1.2rem; }
.prow {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: .78rem .5rem .78rem 0; border-bottom: 1px solid var(--line);
  break-inside: avoid; transition: background-color .3s var(--ease);
}
.prow:hover { background: var(--paper-2); }
.prow-name { flex: 1 1 auto; min-width: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.prow-code { display: block; font: 400 .66rem/1.3 var(--f-mono); letter-spacing: .04em; color: var(--muted-2); margin-top: .2rem; }
.prow-price { flex: 0 0 auto; font-weight: 600; font-size: 1.02rem; color: var(--ink); white-space: nowrap; }
.prow-price i { font-style: normal; font-size: .78em; color: var(--muted-2); margin-left: .18em; }
.price-empty { color: var(--muted); padding: 2rem 0; }

.price-origin { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.origin-toggle {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  background: transparent; border: 0; padding: .2rem 0;
  font: 400 .78rem/1.4 var(--f-body); color: var(--muted-2);
  border-bottom: 1px solid transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.origin-toggle::before {
  content: ""; width: 7px; height: 7px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .4s var(--ease-out);
}
.origin-toggle:hover { color: var(--brand); border-bottom-color: var(--line-2); }
.origin-toggle.is-on::before { transform: rotate(-135deg) translate(-1px, -1px); }
.sheets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1.6rem 0 1.4rem; scrollbar-width: thin; }
.sheet {
  position: relative; display: block; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--r-top) var(--r-top) var(--r-bottom) var(--r-bottom);
  overflow: hidden;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease), border-color .45s var(--ease);
}
.sheet img { width: 100%; aspect-ratio: 1 / 1.4142; object-fit: cover; object-position: top; }
.sheet:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); border-color: var(--brand); }
.sheet-tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  background: var(--ink); color: #fff; padding: .5rem .85rem;
  font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.sheet-zoom {
  position: absolute; right: .7rem; bottom: .7rem; z-index: 2;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan); color: #04202f; opacity: 0; transform: scale(.7);
  transition: all .45s var(--ease-out);
}
.sheet:hover .sheet-zoom { opacity: 1; transform: none; }
.sheet-zoom svg { width: 16px; height: 16px; }

/* ============================ ПОДВАЛ ============================ */
.footer { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--night), var(--night-2) 65%, #0d2f4f); color: #b7cde1; padding-top: clamp(3.6rem, 7vw, 6rem); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 174, 239, .55), transparent); }
.footer-word {
  position: relative; display: flex; align-items: flex-end; gap: .12em;
  font-family: var(--f-display); font-weight: 400; color: #fff;
  font-size: clamp(3.4rem, 13vw, 11rem); line-height: .82; letter-spacing: -.04em;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.fw-tooth { width: .16em; height: .19em; color: var(--cyan); stroke-width: 1.1; opacity: .85; margin-bottom: .06em; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 3rem); padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.footer h3 { font: 500 .7rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.3rem; }
.footer-col { display: grid; align-content: start; gap: .7rem; }
.footer-col a, .footer-col span { color: #b7cde1; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-brand p { max-width: 30ch; font-size: .95rem; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer-social a { border: 1px solid var(--line-invert); border-radius: 999px; padding: .5rem 1.1rem; font-size: .82rem; transition: all .35s var(--ease); }
.footer-social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-invert); padding-block: 1.6rem 2.4rem; display: grid; gap: .4rem; }
.footer-bottom p { font-size: .78rem; color: #7e9bb3; }

/* ============================ мобильная панель вызова ============================ */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: none; align-items: center; gap: .6rem;
  padding: .6rem var(--gut) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(6, 20, 38, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.callbar.is-on { transform: none; }
.callbar .cb-main { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: var(--cyan); color: #04202f; font-weight: 700; font-size: .95rem; padding: .95rem 1rem; border-radius: 999px; }
.callbar .cb-main svg { width: 19px; height: 19px; flex: 0 0 auto; }
.callbar .cb-route { width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; display: grid; place-items: center; color: #dceaf6; }
.callbar .cb-route svg { width: 20px; height: 20px; }

/* ============================ лайтбокс ============================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: center;
  gap: 1rem; padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 14, 26, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: lbin .35s var(--ease-out);
}
@keyframes lbin { from { opacity: 0; } }
.lb-fig { max-width: min(1100px, 92vw); }
.lb-fig img { max-height: 76vh; width: auto; margin-inline: auto; box-shadow: 0 40px 90px -50px #000; }
.lb-fig figcaption { margin-top: 1.2rem; text-align: center; color: #cfe2f1; font: 400 .8rem/1.4 var(--f-mono); letter-spacing: .06em; }
.lb-close { position: absolute; right: clamp(1rem, 3vw, 2.4rem); top: clamp(1rem, 3vw, 2rem); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; transition: all .3s var(--ease); }
.lb-close:hover { background: #fff; color: var(--ink); }
.lb-nav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: all .3s var(--ease); }
.lb-nav:hover { background: var(--cyan); color: #04202f; border-color: var(--cyan); }

/* ============================ адаптива ============================ */
@media (max-width: 1180px) {
  .band-head--split { grid-template-columns: minmax(0, 1fr); }
  .band-head--split .band-lede { padding-bottom: 0; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hairgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-right: calc(-1 * var(--gut)); padding: 0 var(--gut) 1.1rem 0;
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  }
  .rail::-webkit-scrollbar { height: 6px; }
  .rail::-webkit-scrollbar-thumb { background: var(--line-2); }
  .shot { scroll-snap-align: center; }
  .page-head .shell { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { max-width: 22ch; }
  .head-side { margin-top: 2.2rem; }
  .head-lede { margin-top: 1.6rem; }
  .hero-title { font-size: clamp(2.8rem, 9.6vw, 5.4rem); }
  .hero-stage img { aspect-ratio: 16 / 9.4; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-index { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map { grid-template-columns: minmax(0, 1fr); }
  .map-frame { min-height: 360px; }
  .hairgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { padding-block: clamp(3rem, 7vw, 4.4rem); }
}

@media (max-width: 860px) {
  :root { --head-h: 62px; --curve: 26px; }
  .topbar { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: 55; margin: 0;
    display: grid; align-content: center; gap: .4rem; padding: 6rem var(--gut) 3rem;
    background: linear-gradient(165deg, var(--night), var(--night-2));
    clip-path: inset(0 0 100% 0); pointer-events: none;
    transition: clip-path .6s var(--ease-out);
  }
  body.is-menu .nav { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .nav a { color: #eaf4fb; font-family: var(--f-display); font-size: 2rem; letter-spacing: -.02em; padding: .6rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav a::after { display: none; }
  .nav a.is-current { color: var(--cyan); }
  .burger { display: grid; position: relative; z-index: 56; }
  body.is-menu { overflow: hidden; }
  body.is-menu .header { background: transparent; }
  body.is-menu .header::before { opacity: 0; }
  .header-act .btn-header { display: none; }
  .brand-sub, .brand-sep { display: none; }
  .hairgrid--3, .hairgrid--2 { grid-template-columns: minmax(0, 1fr); }
  .person-top { grid-template-columns: 3.8rem minmax(0, 1fr); }
  .mono-badge { width: 3.8rem; height: 3.8rem; font-size: 1.15rem; }
  .person-toggle { grid-column: 1 / -1; justify-self: start; }
  .person-docs .doc-row { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .person-docs dl { margin-left: 0; }
  .callbar { display: flex; }
  .scans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .requisites { grid-template-columns: minmax(0, 1fr); }
  .requisites dt { border-bottom: 0; padding-bottom: 0; }
  .pgroup-list { columns: 1; }
  .pgroup-head { grid-template-columns: minmax(0, 1fr); }
  .pgroup-side { grid-column: 1; grid-row: auto; justify-content: space-between; flex-wrap: wrap; row-gap: .8rem; margin-top: .9rem; }
  .pgroup-meta { text-align: left; }
}

@media (max-width: 620px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .hairgrid--4 { grid-template-columns: minmax(0, 1fr); }
  .hero-title { letter-spacing: -.04em; }
  .hero-top .eyebrow { flex-direction: column; align-items: center; gap: .7rem; text-align: center; font-size: .6rem; letter-spacing: .12em; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stage img { aspect-ratio: 4 / 3.4; }
  .stage-chips { position: static; margin-top: -1.6rem; gap: .5rem; }
  .chip { padding: .7rem 1rem; flex: 1 1 100%; justify-content: space-between; background: rgba(255, 255, 255, .92); }
  .chip b { font-size: 1.15rem; }
  .svc-index { grid-template-columns: minmax(0, 1fr); }
  .doc-link { grid-template-columns: 3rem minmax(0, 1fr); }
  .doc-link .arr { display: none; }
  .scans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .rail { grid-auto-columns: minmax(210px, 78vw); }
  .sheets { grid-auto-columns: minmax(190px, 72vw); }
  .lb-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .price-key { grid-template-columns: minmax(0, 1fr); }
  .prow { gap: .8rem; }
  .prow-name { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .reveal.ln > i { opacity: 1 !important; transform: none !important; filter: none !important; }
  .tooth { display: none; }
}
