/* ============================================================
   Восход · round-02-agent-02 · «Разговор»
   Спокойная редакционная система: бумага, чернила, логотипный синий.
   ============================================================ */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --bg: #f6f3ec;
  --surface: #fffcf7;
  --ink: #121619;
  --muted: #5d666b;
  --line: #d8d2c6;
  --line-strong: #b9b2a4;
  --blue: #0557bc;
  --blue-ink: #033e8c;
  --blue-soft: #e8eff8;
  --band-blue: #0557bc;
  --sand: #ece5d8;
  --black: #0b0e12;
  --on-dark: #f5f1e8;
  --on-dark-muted: #aeb6bc;
  --btn-bg: #0557bc;
  --btn-fg: #ffffff;
  --shadow: 0 0 0 rgba(0, 0, 0, 0);
  --header: rgba(246, 243, 236, .94);
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
  --wrap: 1200px;
}

html[data-theme="night"] {
  --bg: #0b0e12;
  --surface: #12171d;
  --ink: #f4f0e7;
  --muted: #a8b1b8;
  --line: #2a3037;
  --line-strong: #3d454e;
  --blue: #5b9bff;
  --blue-ink: #9cc2ff;
  --blue-soft: #16202c;
  --band-blue: #0d3f82;
  --sand: #1a1c1f;
  --black: #07090c;
  --on-dark: #f4f0e7;
  --on-dark-muted: #a8b1b8;
  --btn-bg: #6fa8ff;
  --btn-fg: #0b0e12;
  --header: rgba(11, 14, 18, .94);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 160;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
}

/* ---------------- header ---------------- */

.top {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  padding: 0 max(24px, calc((100vw - var(--wrap)) / 2));
  background: var(--header);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: height .25s var(--ease), border-color .25s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
}
.brand__mark {
  width: 44px;
  height: 50px;
  color: var(--blue);
  transition: width .25s var(--ease), height .25s var(--ease), color .25s var(--ease);
}
html[data-theme="night"] .brand__mark { color: var(--on-dark); }
.top__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.top__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.top__nav a:hover { color: var(--ink); border-bottom-color: var(--blue); }

.top__actions { display: flex; align-items: center; gap: 8px; }
.top__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.top__phone:hover { color: var(--blue); }

.theme-btn,
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.theme-btn:hover,
.menu-btn:hover { border-color: var(--blue); color: var(--blue); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-icon--sun { display: none; }
html[data-theme="night"] .theme-icon--sun { display: block; }
html[data-theme="night"] .theme-icon--moon { display: none; }

.menu-btn { display: none; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn--primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
html[data-theme="night"] .btn--primary:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--black); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { border-color: var(--ink); }
.btn--light { background: var(--on-dark); color: var(--black); border-color: var(--on-dark); }
.btn--light:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.btn--line-light { background: transparent; color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 45%, transparent); }
.btn--line-light:hover { border-color: var(--on-dark); }
.btn--wide { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 750;
  color: var(--blue-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--blue-ink) 35%, transparent);
}
.text-link:hover { border-bottom-color: var(--blue-ink); }

/* ---------------- right contents rail ---------------- */

.toc {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 60;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .8;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.toc a span {
  width: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--line-strong);
}
.toc a:hover { opacity: 1; color: var(--ink); }
.toc a.is-active { opacity: 1; color: var(--blue); }
.toc a.is-active span { color: var(--blue); }

/* ---------------- hero ---------------- */

.hero {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
  padding: clamp(30px, 5vw, 70px) 0 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: min(680px, calc(100svh - var(--header-h) - 40px));
}
.hero__copy { max-width: 560px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
}

.hero h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.8vw, 76px);
  font-weight: 650;
  line-height: .94;
  letter-spacing: -.045em;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-ink);
  border-bottom: 3px solid var(--blue);
  padding-bottom: .04em;
}
.lede {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero__quiet-links { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 14px; font-size: 12px; font-weight: 650; color: var(--muted); }
.hero__quiet-links a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; }
.hero__quiet-links a:hover { color: var(--ink); border-bottom-color: var(--blue); }
.hero__quiet-links span { color: var(--line-strong); }
.hero__quiet:hover { color: var(--ink); }

.hero__gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: clamp(420px, 36vw, 540px);
  isolation: isolate;
  overflow: hidden;
}
.sunburst {
  position: absolute;
  z-index: -1;
  width: 138%;
  aspect-ratio: 1;
  left: -19%;
  top: -9%;
  color: var(--blue);
  opacity: .17;
  animation: spin 120s linear infinite;
}
.sunburst svg { width: 100%; height: 100%; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.panel {
  position: relative;
  height: 86%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 200px 200px 0 0;
  background: var(--sand);
  overflow: hidden;
  text-align: left;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.panel--two { height: 100%; }
.panel--three { height: 80%; }
.panel:hover { border-color: var(--blue); transform: translateY(-4px); }
.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transition: transform .6s var(--ease);
}
.panel:hover img { transform: scale(1.035); }
.panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(8, 11, 14, .78), transparent);
  pointer-events: none;
}
.panel__label {
  position: absolute;
  left: 16px;
  right: 12px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.panel__label span {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .14em;
  opacity: .7;
}
.panel__meta {
  position: absolute;
  left: 16px;
  bottom: 46px;
  z-index: 1;
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-weight: 600;
}

/* what if strip */

.whatif {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.15fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.whatif__label {
  font-family: var(--font-hand);
  font-size: 27px;
  line-height: 1;
  color: var(--blue-ink);
  transform: rotate(-1.5deg);
}
.whatif__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue-ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.whatif__answer {
  min-height: 2.8em;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.whatif__answer strong { color: var(--ink); font-weight: 750; }
.whatif > .text-link { justify-self: end; }

/* ---------------- ticker ---------------- */

.ticker {
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 76px);
  border-block: 1px solid var(--line);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 12px 0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  animation: ticker 44s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track i { font-style: normal; color: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */

.section {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
  padding: clamp(72px, 9vw, 120px) 0 0;
}
.section--compact { padding-top: clamp(56px, 7vw, 88px); }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-label span { color: var(--blue); font-variant-numeric: tabular-nums; }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.sec-note {
  padding-bottom: 4px;
  font-family: var(--font-hand);
  font-size: 23px;
  line-height: 1;
  color: var(--blue-ink);
  transform: rotate(-1.5deg);
  white-space: nowrap;
}

/* ---------------- route / quiz ---------------- */

.route-card {
  margin-top: 32px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  background: var(--surface);
}
.progress {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress__bar {
  position: relative;
  flex: 1;
  max-width: 220px;
  height: 2px;
  background: var(--line);
}
.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--blue);
  transition: width .3s var(--ease);
}
.quiz__q {
  margin-top: 22px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
}
.quiz__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.quiz__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.quiz__opt:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.quiz__opt:nth-child(even) { padding-left: 20px; }
.quiz__opt:hover { color: var(--blue-ink); background: var(--blue-soft); }
.quiz__opt span:last-child { color: var(--blue); font-size: 18px; }
.quiz__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.quiz__back {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.quiz__hint { font-family: var(--font-hand); font-size: 21px; color: var(--muted); }

.result { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
.result__tag {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid var(--blue);
  color: var(--blue-ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.result__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.result__text { margin-top: 12px; max-width: 48ch; color: var(--muted); font-size: 15px; }
.result__steps { margin-top: 22px; border-top: 1px solid var(--line); }
.result__step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.result__step b { color: var(--blue); font-size: 11px; font-weight: 750; }
.result__side { padding: 22px; border: 1px solid var(--line); background: var(--bg); }
.result__side h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.result__side p { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.result__side .btn { margin-top: 16px; }
.result__note { margin-top: 16px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.result__again {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- directions ---------------- */

.dir-list { margin-top: 8px; border-bottom: 1px solid var(--line); }
.dir-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(180px, 280px) 28px;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 26px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background .2s var(--ease), padding .2s var(--ease);
}
.dir-row:hover { background: var(--blue-soft); padding-left: 12px; }
.dir-row__num { font-size: 11px; font-weight: 750; letter-spacing: .12em; color: var(--blue); }
.dir-row__main { display: flex; flex-direction: column; gap: 5px; }
.dir-row__title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.dir-row__desc { font-size: 13px; color: var(--muted); max-width: 46ch; }
.dir-row__facts { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); }
.dir-row__facts span::before { content: "— "; color: var(--blue); }
.dir-row__arrow { font-size: 22px; color: var(--blue); justify-self: end; }
.dir-more { margin-top: 18px; }

/* ---------------- consultation ---------------- */

.consult {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  margin-top: 32px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--black);
  color: var(--on-dark);
}
.consult__lead { display: flex; flex-direction: column; align-items: flex-start; }
.consult__big {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.07em;
  color: var(--on-dark);
}
.consult__caption { margin-top: 12px; font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.consult__fine { margin-top: 10px; max-width: 34ch; font-size: 11px; line-height: 1.45; color: var(--on-dark-muted); }
.consult__text { margin-top: 22px; max-width: 34ch; font-size: 15px; line-height: 1.55; color: var(--on-dark-muted); }
.consult__lead .btn { margin-top: 26px; }
.steps { border-top: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent); }
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent);
}
.step__num { font-size: 10px; font-weight: 750; letter-spacing: .12em; color: var(--blue); padding-top: 3px; }
.step__title { display: block; font-size: 15px; font-weight: 750; }
.step__desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--on-dark-muted); }
.step--note .step__desc { color: var(--on-dark); }

/* ---------------- doctors ---------------- */

.doctors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 22px;
  margin-top: 34px;
}
.doc { min-width: 0; }
.doc__media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand);
  aspect-ratio: 3 / 4;
}
.doc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transition: transform .5s var(--ease), filter .3s var(--ease);
}
@media (hover: hover) {
  .doc:hover .doc__media img { transform: scale(1.02); }
}
.doc__name { margin-top: 12px; font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.doc__role { margin-top: 2px; font-size: 11px; color: var(--muted); }

/* ---------------- OMS ---------------- */

.section--oms {
  width: 100%;
  margin-top: clamp(72px, 9vw, 120px);
  padding: 0;
  background: var(--band-blue);
  color: #fff;
}
.oms {
  position: relative;
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
  padding: clamp(52px, 7vw, 96px) 0;
  overflow: hidden;
}
.oms__mark {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(100px, 16vw, 220px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .3);
  user-select: none;
  pointer-events: none;
}
.oms__body { position: relative; z-index: 1; max-width: 720px; }
.sec-label--light { color: rgba(255, 255, 255, .65); }
.sec-label--light span { color: #fff; }
.oms h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
}
.oms p { margin-top: 18px; max-width: 52ch; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.oms__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------------- story ---------------- */

.section--story {
  width: 100%;
  margin-top: 0;
  padding: 0;
  background: var(--black);
  color: var(--on-dark);
}
.story__inner {
  position: relative;
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
  padding: clamp(64px, 9vw, 120px) 0;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.story__copy { position: relative; z-index: 1; max-width: 560px; }
.story h2 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 58px); font-weight: 600; line-height: .98; letter-spacing: -.045em; }
.story h2 span { color: var(--blue); }
.story p { margin-top: 18px; max-width: 48ch; font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); }
.story__hand { font-family: var(--font-hand); font-size: 26px; color: var(--on-dark); transform: rotate(-2deg); }
.story__year {
  font-family: var(--font-display);
  font-size: clamp(110px, 17vw, 240px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--on-dark) 34%, transparent);
  text-align: right;
  user-select: none;
}
.story__mark {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: min(250px, 26vw);
  height: auto;
  color: var(--on-dark);
  opacity: .07;
  pointer-events: none;
}

/* ---------------- FAQ ---------------- */

.faq { margin-top: 8px; border-bottom: 1px solid var(--line); }
.qnote {
  position: relative;
  display: block;
  width: 100%;
  padding: 22px 44px 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.qnote:hover .qnote__q { color: var(--blue-ink); }
.qnote__q { display: block; font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; letter-spacing: -.015em; transition: color .2s var(--ease); }
.qnote__a { display: none; max-width: 66ch; margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.qnote[aria-expanded="true"] .qnote__a { display: block; }
.qnote__plus {
  position: absolute;
  right: 6px;
  top: 22px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  transition: transform .2s var(--ease);
}
.qnote[aria-expanded="true"] .qnote__plus { transform: rotate(45deg); }

/* ---------------- prices / passes ---------------- */

.passes { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; border-bottom: 1px solid var(--line); }
.pass {
  display: grid;
  grid-template-columns: 80px 1fr 24px;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 20px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background .2s var(--ease), padding .2s var(--ease);
}
.pass:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
.pass:nth-child(even) { padding-left: 20px; }
.pass:hover { background: var(--blue-soft); padding-left: 12px; }
.pass__label { font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pass__title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.pass__arrow { color: var(--blue); font-size: 20px; justify-self: end; }
.fineprint { margin-top: 16px; max-width: 80ch; font-size: 11px; line-height: 1.5; color: var(--muted); }

/* ---------------- contacts ---------------- */

.contacts {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 6vw, 80px);
  padding-top: 8px;
}
.contacts__copy h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.05em;
}
.contacts__copy > p { margin-top: 16px; max-width: 40ch; font-size: 15px; color: var(--muted); }
.contacts__phone {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 20px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -.035em;
}
.contacts__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.contacts__card {
  align-self: end;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-style: normal;
}
.contacts__city { font-size: 9px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contacts__street { margin-top: 6px; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.contacts__hint { margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.contacts__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.contacts__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 12px; font-weight: 750; color: var(--blue-ink); border-bottom: 1px solid transparent; }
.contacts__links a:hover { border-bottom-color: var(--blue-ink); }

/* ---------------- footer ---------------- */

.footer {
  margin-top: clamp(72px, 9vw, 120px);
  padding: 56px 0 24px;
  background: var(--black);
  color: var(--on-dark);
}
.footer__grid {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer__brandline { display: flex; align-items: center; gap: 12px; }
.footer__brandline .brand__mark { width: 34px; height: 39px; color: var(--on-dark); }
.footer__brandname { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.footer__note { margin-top: 16px; max-width: 30ch; font-size: 11px; line-height: 1.55; color: var(--on-dark-muted); }
.footer h3 { font-size: 9px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer nav { display: flex; flex-direction: column; margin-top: 8px; }
.footer nav button, .footer nav a {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 12px;
  color: var(--on-dark);
  opacity: .8;
}
.footer nav button:hover, .footer nav a:hover { opacity: 1; color: var(--blue); }
.footer__egg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  padding: 0;
  border: 1px dashed color-mix(in srgb, var(--on-dark) 35%, transparent);
  background: none;
  color: var(--on-dark);
  font-family: var(--font-hand);
  font-size: 20px;
  transform: rotate(-2deg);
}
.footer__egg svg { width: 20px; height: 23px; transition: transform .2s var(--ease); }
.footer__egg:hover svg { transform: rotate(14deg) scale(1.08); }
.footer__legal {
  width: min(var(--wrap), 100% - 48px);
  margin: 40px auto 0;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 15%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--on-dark-muted);
}

/* ---------------- dock ---------------- */

.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  transform: translateY(calc(100% + 24px));
  transition: transform .3s var(--ease);
}
.dock.is-visible { transform: none; }
.dock__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.dock__phone svg { width: 20px; height: 20px; }
.dock__cta { flex: 1; }

/* ---------------- toast / confetti ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 650;
  transform: translate(-50%, 140%);
  transition: transform .3s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; z-index: 1100; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute;
  top: -10vh;
  width: 6px; height: 10px;
  background: var(--blue);
  animation: fall var(--d, 2.4s) linear forwards;
}
@keyframes fall { to { transform: translate3d(var(--x, 0), 110vh, 0) rotate(720deg); opacity: .8; } }

/* ---------------- menu ---------------- */

.menu[hidden] { display: none; }
.menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px;
  background: var(--bg);
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.menu.is-open { transform: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.brand--menu .brand__mark { width: 32px; height: 37px; }
.menu-btn--close { display: inline-flex; }
.menu__nav { position: relative; display: flex; flex-direction: column; justify-content: flex-start; padding: 24px 0 0; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(28px, 7.4vw, 44px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.menu__nav a span { font-family: var(--font-body); font-size: 10px; font-weight: 750; color: var(--blue); }
.menu__nav a:hover { color: var(--blue-ink); }
.menu__note {
  position: absolute;
  left: 0;
  bottom: 18px;
  font-family: var(--font-hand);
  font-size: 24px;
  line-height: .95;
  color: var(--blue-ink);
  transform: rotate(-2deg);
}
.menu__foot { display: grid; gap: 8px; padding-top: 16px; }
.menu__phone { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 750; }

/* ---------------- dialog ---------------- */

.dialog {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.dialog::backdrop { background: rgba(10, 13, 16, .58); backdrop-filter: blur(2px); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }
.dialog__title { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.dialog__body { padding: 14px 20px 22px; }
.dialog__note {
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.dialog__text { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; }

.form { display: grid; gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 5px; }
.field__label { font-size: 11px; font-weight: 750; color: var(--muted); }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
.field__input:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 25%, transparent); outline-offset: 1px; }
.field__error { min-height: 0; font-size: 11px; color: #a3211b; }
html[data-theme="night"] .field__error { color: #ff9d8f; }
.field__error:empty { display: none; }
.check { display: flex; gap: 9px; align-items: flex-start; min-height: 44px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.inline-link { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--blue-ink); font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dialog__success h3 { margin-top: 12px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.dialog__success p { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.dialog__mark {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--blue);
  color: var(--blue-ink);
  font-size: 18px;
  font-weight: 750;
}

/* ---------------- reveal ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 1439px) {
  .toc { display: none; }
}

@media (max-width: 1180px) {
  :root { --wrap: 1040px; }
  .top__nav { display: none; }
  .top__phone { display: none; }
  .menu-btn { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 34px; }
  .hero__copy { max-width: 680px; }
  .hero h1 { max-width: 14ch; }
  .hero__gallery { height: clamp(380px, 52vw, 500px); max-width: 720px; }
  .whatif { grid-template-columns: 130px 1fr; gap: 14px 20px; }
  .whatif > .text-link { grid-column: 2; justify-self: start; }
  .dir-row { grid-template-columns: 44px 1fr 180px 24px; gap: 14px; }
  .consult { grid-template-columns: 1fr; gap: 28px; }
  .doctors { gap: 28px 16px; }
  .story__inner { grid-template-columns: 1fr; }
  .story__year { text-align: left; }
  .contacts { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer__grid nav:last-child { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
  .top { gap: 12px; padding-inline: 18px; }
  .logo { height: 36px; }
  .top__cta { display: none; }
  .top__actions { margin-left: auto; }
  .hero, .section, .story__inner, .oms, .footer__grid, .footer__legal { width: calc(100% - 36px); }
  .hero { padding-top: 20px; }
  .hero__gallery { height: clamp(300px, 58vw, 420px); gap: 7px; }
  .panel__meta { display: none; }
  .panel__label { left: 12px; right: 8px; bottom: 12px; font-size: 11px; }
  .panel__label span { font-size: 8px; }
  .whatif { grid-template-columns: 1fr; gap: 10px; }
  .whatif__label { font-size: 25px; }
  .whatif__answer { min-height: 0; }
  .whatif > .text-link { grid-column: auto; }
  .dir-row { grid-template-columns: 34px 1fr 24px; gap: 10px; padding: 20px 2px; }
  .dir-row__facts { display: none; }
  .dir-row__title { font-size: 24px; }
  .doctors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consult { padding: 24px 18px; }
  .section--oms { width: 100%; }
  .oms { width: calc(100% - 36px); }
  .oms__mark { opacity: .5; }
  .passes { grid-template-columns: 1fr; }
  .pass:nth-child(odd) { border-right: 0; padding-right: 4px; }
  .pass:nth-child(even) { padding-left: 4px; }
  .pass:hover { padding-left: 8px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid nav:last-child { grid-column: auto; }
  .dock { display: flex; }
  body.has-dock { padding-bottom: 84px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { height: 66px; }
  .logo { height: 36px; }
  .hero h1 { font-size: clamp(38px, 11.4vw, 52px); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__gallery { height: 250px; }
  .panel { border-radius: 120px 120px 0 0; }
  .panel__label { font-size: 10px; }
  .panel__label span { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 18px; }
  .sec-title { font-size: clamp(26px, 7.8vw, 36px); }
  .sec-note { font-size: 21px; }
  .quiz__options { grid-template-columns: 1fr; }
  .quiz__opt:nth-child(odd) { padding-right: 0; border-right: 0; }
  .quiz__opt:nth-child(even) { padding-left: 0; }
  .result { grid-template-columns: 1fr; gap: 22px; }
  .result__side { padding: 18px; }
  .doctors { gap: 22px 10px; }
  .doc__name { font-size: 12px; }
  .doc__role { font-size: 10px; }
  .consult__big { font-size: 78px; }
  .story__year { font-size: 100px; }
  .contacts__card { padding: 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 18px; }
  .footer__legal { flex-direction: column; }
  .menu__nav a { font-size: clamp(26px, 8vw, 38px); }
  .menu__note { bottom: 12px; font-size: 21px; }
}

@media (max-width: 360px) {
  .panel__label { font-size: 9px; left: 9px; }
  .hero__gallery { height: 220px; }
  .contacts__phone { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sunburst, .ticker__track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- multi-page content ---------- */
.hero-arch {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .32;
  mix-blend-mode: multiply;
  pointer-events: none;
}
html[data-theme="night"] .hero-arch { display: none; }

.dir-row__facts .dir-icon { width: 36px; height: 36px; color: var(--blue); }
.page-head { width: min(var(--wrap), 100% - 48px); margin: 0 auto; padding: clamp(48px, 7vw, 90px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head__inner { max-width: 900px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(34px, 5.2vw, 64px); font-weight: 600; line-height: .98; letter-spacing: -.05em; margin-top: 18px; text-wrap: balance; }
.page-head__lead { max-width: 64ch; margin-top: 16px; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.breadcrumbs a { min-height: 32px; display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { color: var(--line-strong); }
.page-body { width: min(var(--wrap), 100% - 48px); margin: 0 auto; padding: clamp(36px, 5vw, 64px) 0 0; }
.page-body--narrow { max-width: 780px; }
.block { padding: clamp(28px, 4vw, 54px) 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2, .page-body h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 16px; }
.block h3 { font-size: 18px; font-weight: 750; margin-bottom: 6px; }
.prose { max-width: 72ch; font-size: 16px; line-height: 1.65; }
.prose p + p, .prose h2 + p { margin-top: 14px; }
.prose h2 { margin-top: 32px; }
.prose ul, .prose ol { margin: 14px 0 0 20px; }
.prose li { margin: 5px 0; }
.prose a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.ordered { margin: 0 0 0 22px !important; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.callout p { max-width: 64ch; }
.callout--soft { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 25%, var(--line)); }
.direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.direction-grid--wide { margin-top: 0; }
.direction-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 210px; padding: 22px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.direction-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.direction-card .dir-icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 6px; }
.direction-card h2, .direction-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.direction-card p { color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }
.direction-card .text-link { font-size: 12px; }
.direction-hero, .doctor-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.direction-hero__image, .doctor-hero__image { width: 100%; max-width: 420px; border: 1px solid var(--line); object-fit: cover; aspect-ratio: 3 / 4; }
.doctor-hero__role { font-family: var(--font-hand); font-size: 28px; color: var(--blue-ink); margin-bottom: 12px; }
.service-list { border-bottom: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.service-row h3 { margin: 0 0 4px; }
.service-row p { color: var(--muted); font-size: 14px; }
.service-row__price { font-weight: 750; white-space: nowrap; }
.service-row__price small { display: block; max-width: 210px; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; white-space: normal; }
.price-group { margin: 30px 0; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th { padding: 8px; border-bottom: 1px solid var(--line-strong); text-align: left; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.price-table small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 4px; }
.price-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.oms-page { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
.oms-side { padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.oms-side h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; }
.oms-side ul { margin: 0 0 16px 18px; color: var(--muted); font-size: 14px; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.contact-card { padding: 26px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.contact-card .contacts__phone { margin-top: 8px; }
.contact-card .btn { margin-top: 16px; }
.form-card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); background: var(--surface); }
.form-card h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.035em; margin-bottom: 8px; }
.form-card__intro { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__hint { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: left; padding: 12px 0; }
.form-success__mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--blue); color: var(--blue-ink); font-size: 20px; }
.form-success h2 { margin-top: 12px; }
.form-success p { color: var(--muted); margin: 8px 0 14px; }
.form-vacancy { padding: 10px 12px; border: 1px dashed var(--line-strong); font-size: 13px; }
.alert { padding: 12px 14px; border: 1px solid var(--line); margin-bottom: 14px; font-size: 13px; }
.alert--error { border-color: #e0b4ad; background: #fff1ee; color: #8d1d16; }
.alert--success { border-color: #a9d5b9; background: #eef8f1; color: #216e46; }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.search-form { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 24px; }
.search-form .field { flex: 1; }
.search-results { border-top: 1px solid var(--line); }
.search-row { display: grid; grid-template-columns: 90px 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-row:hover { color: var(--blue-ink); }
.search-row__type { grid-row: span 2; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.search-row span:last-child { color: var(--muted); font-size: 13px; }
.vacancy-list { border-bottom: 1px solid var(--line); }
.vacancy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; }
.vacancy-row h2 { font-size: 22px; margin: 0; }
.vacancy-row__salary { color: var(--muted); font-size: 12px; margin-top: 4px; }
.vacancy-row:hover h2 { color: var(--blue-ink); }
@media (max-width: 900px) {
  .page-head, .page-body { width: calc(100% - 36px); }
  .direction-grid { grid-template-columns: 1fr 1fr; }
  .direction-hero, .doctor-hero, .oms-page, .contact-layout { grid-template-columns: 1fr; }
  .direction-hero__image, .doctor-hero__image { max-width: 100%; max-height: 520px; }
}
@media (max-width: 600px) {
  .direction-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; align-items: stretch; }
  .service-row { grid-template-columns: 1fr; gap: 6px; }
  .price-table { font-size: 12px; }
  .price-table th, .price-table td { padding: 9px 4px; }
  .page-head h1 { font-size: 34px; }
}
.nowrap { white-space: nowrap; }
.prose .btn, .block .btn, .callout .btn { text-decoration: none; }
.prose .btn--primary, .block .btn--primary, .callout .btn--primary { color: var(--btn-fg); }
.prose .btn--line, .block .btn--line, .callout .btn--line { color: var(--ink); }
.direction-hero__image, .doctor-hero__image { height: auto; }
.toast { opacity: 0; visibility: hidden; }
.toast.is-visible { opacity: 1; visibility: visible; }
.legal-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 18px 0 10px; border-top: 1px solid var(--line); }
.legal-dl > div { display: grid; grid-template-columns: minmax(130px, .7fr) 1.3fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { color: var(--muted); font-size: 12px; }
.legal-dl dd { margin: 0; font-size: 14px; font-weight: 650; }
@media (max-width: 700px) { .legal-dl { grid-template-columns: 1fr; } .legal-dl > div { grid-template-columns: 1fr; gap: 2px; } }
.service-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.service-facts div { display: flex; flex-direction: column; gap: 3px; }
.service-facts span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.service-facts strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.service-facts small { color: var(--muted); font-size: 11px; }
@media (max-width: 600px) { .service-facts { grid-template-columns: 1fr; } }

/* Homepage composition and illustrated treatment links */
.hero .hero__grid { min-height: 0; padding-block: clamp(24px, 5vw, 72px); }
.hero h1 { font-size: clamp(34px, 5vw, 68px); line-height: 1.03; }
.hero h1 .nowrap { white-space: normal; }
.hero h1 em { border: 0; padding: 0; }
.hero-feature { margin: 0; position: relative; border-radius: 24px; overflow: hidden; }
.hero-feature img { width: 100%; height: clamp(320px, 39vw, 480px); display: block; object-fit: cover; object-position: 50% 26%; }
.hero-feature figcaption { display: grid; gap: 3px; position: absolute; inset: auto auto 16px 16px; padding: 10px 16px; border-radius: 12px; background: #142136; color: #fff; font-size: 14px; }
.hero-feature figcaption span { font-size: 12px; }
.direction-portrait-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.direction-portrait-grid .dir-row { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 12px 12px 18px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; }
.direction-portrait-grid .dir-row__main { padding-inline: 6px; }
.direction-portrait-grid .dir-row__title { font-size: clamp(19px, 2vw, 30px); }
.direction-portrait-grid .dir-row__facts { display: none; }
.direction-portrait-grid .dir-row__arrow { align-self: flex-end; }
.direction-portrait { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center 22%; border-radius: 10px; }
@media (max-width: 760px) {
  .hero .hero__grid { gap: 20px; padding-block: 22px; }
  .hero-feature img { height: clamp(245px, 70vw, 410px); object-position: 50% 22%; }
  .direction-portrait-grid { grid-template-columns: 1fr; }
  .direction-portrait-grid .dir-row:has(.direction-portrait) { display: grid; grid-template-columns: minmax(85px, 31%) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; }
  .direction-portrait-grid .dir-row__main { padding: 0; }
  .direction-portrait-grid .dir-row__arrow { align-self: center; }
  .direction-portrait { aspect-ratio: 1; }
}
.direction-portrait { aspect-ratio: 1; }

.brand__mark--original { object-fit: contain; }
html[data-theme="night"] .brand__mark--original,
.footer .brand__mark--original { content: url("../img/voshod-night.png"); }


.home-route { margin-block: 24px; border-block: 1px solid var(--line); }
.home-route summary { padding-block: 14px; cursor: pointer; font-weight: 650; }
.home-route .route-card { margin-bottom: 16px; }
@media (max-width: 760px) {
}

.home-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin-top: 20px; }
.home-shortcuts a { display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--line); font-size: .875rem; }
.home-shortcuts a:hover { text-decoration: underline; }

.hero .home-shortcuts { margin-top: 0; }
@media (min-width: 761px) {
  .hero .home-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


.hero-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}
.hero-team__chief, .hero-team__specialist {
  display: grid;
  min-width: 0;
  gap: 4px;
  text-align: center;
}
.hero-team__chief { grid-column: 2; grid-row: span 2; }
.hero-team__chief > img, .hero-team__specialist > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 48% 48% 12px 12px;
}
.hero-team__chief > img { aspect-ratio: 3 / 4; }
.hero-team__chief > span, .hero-team__label > span { font-size: .75rem; }
.hero-team__chief > span:last-child { text-decoration: underline; }
.hero-team__specialist--prikus { grid-column: 1; grid-row: 1; }
.hero-team__specialist--protezirovanie { grid-column: 3; grid-row: 1; }
.hero-team__specialist--implantatsiya { grid-column: 3; grid-row: 2; }
.hero-team__label { display: grid; justify-items: center; gap: 4px; }
.hero-team__label strong { font-size: clamp(.72rem, 1.15vw, 1rem); }
.hero-team a:hover strong { text-decoration: underline; }
.featured-doctor { display: inline-flex; align-items: center; gap: 16px; }
.featured-doctor img { width: 84px; height: 100px; object-fit: cover; border-radius: 8px; }
.featured-doctor span { display: block; }
.chief-video { display: block; width: 100%; max-height: 520px; background: #12161b; }

/* Soft controls echo the curved portrait frames on the homepage. */
.hero__actions .btn,
#oms .oms__actions .btn,
#contacts .contacts__actions .btn { border-radius: 999px; }
.hero .home-shortcuts a {
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.hero .home-shortcuts { gap: 8px; }
.home-route { border: 1px solid var(--line); border-radius: 18px; padding-inline: 16px; }
.home-route .route-card,
#contacts .contacts__card { border-radius: 14px; }
@media (max-width: 1000px) {
  .hero-team__chief { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(100%, 210px); }
  .hero-team__specialist { grid-column: auto; grid-row: 2; }
}
@media (max-width: 500px) {
  .hero-team { gap: 14px 7px; }
  .hero-team__label > span { display: none; }
}

@media (min-width: 1001px) {
  .hero-team { grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr) repeat(2, minmax(0, 1fr)); }
  .hero-team__chief, .hero-team__specialist { grid-row: 1; }
  .hero-team__specialist--implantatsiya { grid-column: 4; }
}

.hero-team__chief,
.hero-team__specialist {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 48% 48% 12px 12px;
}
.hero-team__specialist > img { aspect-ratio: 2 / 3; }
.hero-team__chief-label,
.hero-team__label {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 22px 7px 8px;
  color: #fff;
  background: linear-gradient(transparent, #101923 62%);
  text-align: left;
  line-height: 1.18;
}
.hero-team .hero-team__chief-label { text-decoration: none; font-size: 13px; }
.hero-team__chief-label > span { font-size: 12px; }
.hero-team__label img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.hero-team__label strong { font-size: clamp(11px, 1vw, 14px); overflow-wrap: anywhere; }
.hero-team__direction { display: none; }
@media (min-width: 1001px) {
  .hero-team__role { display: none; }
  .hero-team__direction { display: block; }
}
@media (max-width: 760px) {
  .hero .hero__grid { gap: 8px; padding-block: 12px 16px; }
  .hero h1 { margin-top: 8px; font-size: clamp(25px, 7vw, 34px); }
  .hero .lede { display: none; }
  .hero .hero__actions { margin-top: 12px; }
  .hero .hero__quiet-links { margin-top: 0; }
  .hero-team__chief { width: clamp(112px, 31vw, 152px); }
  .hero-team__chief > img { aspect-ratio: 4 / 5; }
  .hero-team { width: min(100%, 410px); margin-inline: auto; gap: 8px; }
  .hero-team__label { padding-inline: 5px; }
}

@media (max-width: 350px) and (max-height: 600px) {
  .hero h1 { font-size: 22px; }
  .hero .hero__grid { gap: 4px; padding-top: 4px; }
  .hero .hero__actions { margin-top: 8px; }
  .hero-team__chief { width: 104px; }
  .hero-team { max-width: 270px; gap: 5px; }
  .hero-team__label strong { font-size: 10px; }
}

.hero-team__chief-desktop-icon { display: none; }
.hero-team__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 1001px) {
  .hero-team { align-items: stretch; }
  .hero-team__chief, .hero-team__specialist {
    grid-row: 1 / span 2;
    grid-template-rows: subgrid;
    overflow: visible;
    border-radius: 0;
  }
  .hero-team__chief > img, .hero-team__specialist > img { align-self: end; }
  .hero-team__chief > img { aspect-ratio: 3 / 4; }
  .hero-team__specialist > img { aspect-ratio: 4 / 5; }
  .hero-team__chief-label, .hero-team__label {
    align-self: start;
    position: static;
    justify-items: center;
    padding: 0;
    color: inherit;
    background: none;
    text-align: center;
    line-height: inherit;
  }
  .hero-team__role { display: block; }
  .hero-team__chief-desktop-icon { display: block; }
  .hero-team__direction { display: none; }
  .hero-team__label img { width: 32px; height: 32px; filter: none; }
  .hero-team__label strong { font-size: clamp(.72rem, 1.15vw, 1rem); }
  .hero-team__name { position: static; width: auto; height: auto; clip-path: none; white-space: normal; font-size: .75rem; }
}

@media (min-width: 1001px) {
  .hero .hero__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hero-team { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  body:has(.hero-team) .top { height: 58px; }
  .hero:has(.hero-team) { padding-top: 0; }
  .hero .hero__grid:has(.hero-team) { padding-top: 4px; gap: 14px; }
  .hero-team__chief {
    --chief-width: clamp(112px, 31vw, 152px);
    width: var(--chief-width);
    z-index: 101;
    margin-top: -34px;
  }
  .hero-team__chief > img {
    aspect-ratio: auto;
    height: calc(var(--chief-width) * 4 / 3 + 12px);
  }
  .hero-team__chief .hero-team__chief-label {
    gap: 3px;
    padding: 24px 8px 8px;
    background: linear-gradient(transparent, #101923 52%);
  }
  .hero-team__chief-label strong {
    font-size: clamp(12px, 3.4vw, 16px);
    line-height: 1.12;
  }
  .hero-team__chief-role { display: none; }
  .hero-team__chief-desktop-icon { display: block; }
  .hero-team__chief .hero-team__chief-label,
  .hero-team__specialist .hero-team__label {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 3px;
    padding-bottom: 5px;
  }
  .hero-team__chief-label img,
  .hero-team__label img {
    grid-column: 2;
    grid-row: 1;
    width: 28px;
    height: 28px;
    filter: none;
  }
  .hero-team__chief-label strong,
  .hero-team__role { grid-column: 1; grid-row: 1; }
}
@media (max-width: 350px) {
  .hero-team__chief { left: -10px; }
  .hero-team__label img { width: 22px; height: 22px; }
}
@media (max-width: 350px) and (max-height: 600px) {
  .hero-team__chief { --chief-width: 104px; }
}

@media (max-width: 760px) {
  body:has(.hero-team) {
    --home-unit: clamp(3.25px, min(1.25vw, 0.76svh), 6px);
    --mobile-home-header: max(54px, calc(12 * var(--home-unit)));
  }
  body:has(.hero-team) .top { height: var(--mobile-home-header); }
  .hero .hero__grid:has(.hero-team) {
    min-height: calc(100svh - var(--mobile-home-header));
    grid-template-rows: auto 1fr;
    align-content: start;
    align-items: stretch;
    gap: 14px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .hero .hero__copy { display: flex; flex-direction: column; }
  .hero .hero__actions { margin-top: auto; padding-top: 12px; }
  .hero .hero-team {
    max-width: calc(72 * var(--home-unit));
    gap: calc(2 * var(--home-unit));
  }
  .hero-team__chief {
    --chief-width: calc(26 * var(--home-unit));
    margin-top: calc(-7 * var(--home-unit));
  }
  .hero-team__chief > img { height: calc(38 * var(--home-unit)); }
  .hero-team__chief .hero-team__chief-label,
  .hero-team__specialist .hero-team__label {
    padding: calc(4 * var(--home-unit)) calc(var(--home-unit)) calc(var(--home-unit));
  }
  .hero-team__chief-label img,
  .hero-team__label img {
    width: calc(5 * var(--home-unit));
    height: calc(5 * var(--home-unit));
  }
  .hero-team__chief-label strong { font-size: max(12px, calc(2.9 * var(--home-unit))); }
  .hero-team__label strong {
    font-size: clamp(10px, calc(2.1 * var(--home-unit)), 12px);
    letter-spacing: -.02em;
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .hero-team__specialist .hero-team__label { column-gap: 2px; padding-inline: 4px; }
  .hero-team__specialist .hero-team__label img {
    width: calc(4.5 * var(--home-unit));
    height: calc(4.5 * var(--home-unit));
  }
  .hero h1 { font-size: max(22px, calc(6 * var(--home-unit))); }
  .hero .hero__actions .btn { width: 100%; min-height: 44px; justify-content: center; }
  .hero .home-shortcuts { margin-top: 12px; }
}
@media (max-width: 760px) and (max-height: 610px) {
  .hero .hero__actions { padding-top: 7px; }
}
@media (max-width: 350px), (max-width: 760px) and (max-height: 440px) and (orientation: landscape) {
  .hero-team__specialist .hero-team__label { padding-inline: 2px; }
  .hero-team__specialist .hero-team__label img { width: 14px; height: 14px; }
}
@media (max-width: 350px) {
  .hero .hero-team { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.16fr); }
}
@media (max-width: 950px) and (max-height: 440px) and (orientation: landscape) {
  .hero:has(.hero-team) { padding-top: 0; }
  .hero .hero__grid:has(.hero-team) {
    min-height: calc(100svh - var(--mobile-home-header, var(--header-h)));
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-content: end;
    align-items: end;
    gap: 16px;
    padding-block: 6px 12px;
  }
  .hero .hero-team {
    max-width: 390px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.16fr);
  }
  .hero-team__specialist .hero-team__label {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 2px;
    padding-inline: 2px;
  }
  .hero-team__label .hero-team__role { grid-column: 1; grid-row: 1; font-size: 10px; white-space: nowrap; overflow-wrap: normal; }
  .hero-team__label img { grid-column: 2; grid-row: 1; width: 14px; height: 14px; }
  .hero-team__chief, .hero-team__specialist { grid-column: auto; grid-row: 1; }
  .hero-team__chief { width: 100%; margin-top: 0; left: auto; }
  .hero-team__chief > img { height: auto; aspect-ratio: 3 / 4; }
  .hero .lede { display: none; }
  .hero h1 { font-size: clamp(19px, 4vw, 28px); }
}

.hero-installments { display: none; }
@media (max-width: 760px) and (orientation: portrait) {
  .hero-installments {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: clamp(48px, calc(23svh - 96px), 110px);
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    color: var(--ink);
  }
  .hero-installments__title,
  .hero-installments__art {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 4px clamp(10px, 4vw, 18px);
  }
  .hero-installments__title {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    line-height: 1.15;
    font-size: clamp(13px, 4vw, 18px);
  }
  .hero-installments__title strong { font-weight: 750; }
  .hero-installments__title > span { color: var(--muted); font-size: .75rem; }
  .hero-installments__art {
    justify-content: space-between;
    gap: 4px;
    border-inline-start: 1px solid var(--line);
    color: var(--blue);
  }
  .hero-installments__art img {
    width: min(75%, 114px);
    height: clamp(34px, calc(14svh - 44px), 64px);
  }
  .hero-installments__art svg { flex: 0 0 auto; }
  .hero .hero__copy .hero__actions { margin-top: 0; padding-top: 8px; }
}
@media (max-width: 760px) and (max-height: 570px) {
  .hero-installments__title > span { display: none; }
}

@media (max-width: 760px) and (max-height: 570px) and (orientation: portrait) {
  .hero .hero__grid:has(.hero-team) { gap: 8px; }
  .hero .hero__copy .eyebrow { display: none; }
}
@media (max-width: 760px) and (max-height: 500px) and (orientation: portrait) {
  .hero-team__chief { --chief-width: 80px; }
  .hero-team__chief > img { height: calc(var(--chief-width) * 4 / 3 + 12px); }
  .hero .hero__copy .hero__actions { padding-top: 5px; }
}

.home-team__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0 16px;
}
.home-team__person {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 48% 48% 12px 12px;
  background: var(--surface);
}
.home-team__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.home-team__placeholder { background: linear-gradient(155deg, var(--surface), var(--line)); }
.home-team__name {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 22px 8px 8px;
  background: linear-gradient(transparent, #101923 62%);
  color: #fff;
  font-size: clamp(11px, 3vw, 16px);
  line-height: 1.2;
}
.home-team__name small { display: block; margin-top: 4px; color: #dbe5f0; font-size: .8em; }
a.home-team__person:hover .home-team__name { text-decoration: underline; }
.home-team__all { border-radius: 999px; min-height: 44px; }
.home-secondary-links { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
@media (max-width: 760px) {
  .home-team__list { gap: 8px; }
  .home-team__all { width: 100%; justify-content: center; }
}


.home-link-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.home-link-panel .btn { border-radius: 999px; min-height: 44px; }
@media (max-width: 760px) {
  .home-link-panel .btn { width: 100%; justify-content: center; }
}


.home-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(14px, 4vw, 56px);
}
.section.home-feature { padding-block: clamp(32px, 5vw, 62px); }
.home-feature__copy { min-width: 0; }
.home-feature__copy .sec-title {
  color: var(--ink);
  font-size: clamp(22px, 5.7vw, 51px);
  line-height: 1.1;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.home-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
  min-height: 44px;
  max-width: 100%;
  margin-top: 9px;
  color: var(--blue-ink);
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 700;
  text-decoration: none;
}
.home-feature__arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75em;
  height: 1.75em;
  border: 1px solid currentColor;
  border-radius: 50%;
  line-height: 1;
}
.home-feature__link::before { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.home-feature:hover .home-feature__link > span:first-child,
.home-feature__link:focus-visible > span:first-child { text-decoration: underline; text-underline-offset: 5px; }
.home-feature__link:focus-visible { outline-offset: 5px; }
.home-feature__link:focus-visible::before {
  box-shadow: inset 0 0 0 2px currentColor;
}
.home-feature__art { display: block; width: min(100%, 320px); height: auto; margin-inline: auto; }
.home-feature__art--careers {
  clip-path: inset(2.6% 5% 2.6% 4.6% round 50% 50% 0 0 / 48% 48% 0 0);
}
html[data-theme="night"] .home-feature__art--careers {
  clip-path: inset(3.4% 5.8% 2.9% 5.4% round 50% 50% 0 0 / 48% 48% 0 0);
}
.home-feature--price { border-top: 1px solid var(--line); }
.home-feature--oms {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
  background: #183351;
  color: #f7f9ff;
  border-radius: 22px;
}
.home-feature--oms .home-feature {
  width: 100%;
  border-radius: inherit;
  padding-inline: clamp(18px, 5vw, 64px);
  grid-template-columns: minmax(0, .87fr) minmax(0, 1fr);
}
.home-feature--oms .sec-title,
.home-feature--oms .home-feature__link { color: inherit; }
.home-feature--oms .home-feature__copy { container-type: inline-size; }
.home-feature--oms .sec-title {
  font-size: clamp(19px, min(5.7vw, 10cqi), 51px);
  overflow-wrap: break-word;
}
.home-feature--vacancies {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1001px) {
  .section.home-feature { padding-block: clamp(32px, 3vw, 46px); }
  .home-feature--price .home-feature__art { width: min(100%, 246px); }
  .home-feature--oms .home-feature__art { width: min(100%, 254px); }
  .home-feature--vacancies .home-feature__art { width: min(100%, 274px); }
}
@media (min-width: 600px) and (max-width: 1000px) {
  .section.home-feature { padding-block: clamp(32px, 4vw, 46px); }
  .home-feature__art { max-width: clamp(208px, 27vw, 274px); }
  .home-feature--oms .home-feature__art { max-width: clamp(188px, 25vw, 254px); }
}
@media (max-width: 900px) {
  .home-feature--oms { width: calc(100% - 36px); }
}
@media (max-width: 760px) {
  .home-feature--oms .home-feature {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 22px 16px;
    text-align: center;
  }
  .home-feature--oms .home-feature__art { width: min(57%, 188px); }
  .home-feature--oms .home-feature__link { margin-top: 2px; }
}

.top__actions { flex: none; }
.menu-btn { flex: 0 0 44px; }
.menu-btn svg { display: block; flex: none; width: 23px; height: 23px; }
.menu:not([open]) { display: none; }
.menu[open] {
  inset: 0 0 0 auto;
  width: min(100%, 390px);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
  transform: none;
  border: 0;
  color: var(--ink);
  grid-template-rows: auto auto auto;
  align-content: start;
}
.menu::backdrop { background: #0b162975; }
.menu .menu__nav { padding-top: 15px; }
.menu .menu__nav a {
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font: 650 1rem/1.25 var(--font-body);
  letter-spacing: normal;
}
.menu__nav a::after { content: '→'; color: var(--blue-ink); }
.menu__foot .btn { border-radius: 999px; }
.footer { padding-block: clamp(22px, 4vw, 45px); }
.footer__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-weight: 700;
}
.footer h3 { font-size: 11px; letter-spacing: .08em; }
.footer nav a { min-height: 32px; }
.footer__legal { margin-top: 16px; gap: 8px 20px; }
@media (min-width: 1001px) {
  .section.home-team { max-width: 760px; padding-top: clamp(52px, 6vw, 84px); }
  .home-team__person { aspect-ratio: 4 / 5; }
}
@media (max-width: 600px) {
  .footer .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .footer .footer__brand { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .footer .footer__grid nav:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .footer .footer__grid nav:last-child h3 { grid-column: 1 / -1; }
}

.top__brand-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.contact-dialog {
  width: min(430px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
}
.contact-dialog::backdrop { background: #0b162975; }
.contact-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.contact-dialog__heading h2 { font: 650 clamp(17px, 4.5vw, 22px)/1.2 var(--font-display); margin: 0; }
.contact-dialog__heading form { flex: none; }
.contact-dialog__links { display: grid; margin-top: 12px; }
.contact-dialog__links a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  min-height: 48px;
  padding-block: 8px;
  border-top: 1px solid var(--line);
}
.contact-dialog__links a:hover { color: var(--blue-ink); }
.contact-dialog__links strong { font-weight: 750; }
@media (max-width: 760px) {
  body:has(.hero-team) .top { z-index: auto; }
  .top__brand-tools, .top__actions { position: relative; z-index: 102; gap: 4px; }
  .top { gap: 4px; }
}
