@font-face {
  font-family: Golos;
  src: url('assets/library/golos-cyrillic.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Golos;
  src: url('assets/library/golos-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF, U+2190-21FF;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #131e3e;
  --night: #151d3c;
  --blue: #253aa3;
  --wash: #e8ebfa;
  --mint: #c2ffed;
  --paper: #f4f3ee;
  font: 16px/1.53 Golos, system-ui, sans-serif;
  color: var(--ink);
  background: var(--night);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 3px dashed currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(91%, 1810px); margin-inline: auto; }
.skip { position: absolute; z-index: 8; padding: 1rem; background: var(--mint); transform: translateY(-130%); }
.skip:focus { transform: none; }

.top { color: var(--wash); background: var(--night); }
.top-inner {
  min-height: 76px;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
}
.signature { text-decoration: none; font-size: 1.2rem; font-weight: 680; letter-spacing: -.035em; line-height: 1.15; justify-self: start; }
.signature span { display: block; margin-top: .25rem; font-size: .73rem; font-weight: 440; letter-spacing: 0; }
.top nav, .foot-contacts { display: flex; flex-wrap: wrap; gap: .25rem 1.85rem; }
.top nav a, .top-phone, .foot-contacts a { display: inline-flex; align-items: center; min-height: 44px; }
.top nav a { text-decoration-color: transparent; transition: text-decoration-color .2s ease; }
.top nav a:hover { text-decoration-color: currentColor; }
.top-phone { justify-self: end; font-size: .94rem; }

.hero { background: var(--night); color: var(--wash); }
.hero-stage { min-height: clamp(590px, 53vw, 820px); position: relative; isolation: isolate; display: grid; align-items: center; }
.hero-photo { position: absolute; inset: 0 0 0 auto; z-index: -2; width: min(68%, 1024px); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 44%; }
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night), rgb(21 29 60 / .55) 15%, transparent 42%, transparent 94%, var(--night)), linear-gradient(0deg, var(--night), transparent 22%);
  pointer-events: none;
}
.hero-copy { padding: clamp(4rem, 8vw, 7rem) 0; }
.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 6.4vw, 7.25rem);
  line-height: .96;
  letter-spacing: -.072em;
  font-weight: 610;
  text-wrap: balance;
  text-shadow: 0 1px 5px rgb(21 29 60 / .24);
}
.hero-next { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 2rem; margin-top: clamp(1.7rem, 3.25vw, 3.25rem); }
.city-link { display: inline-flex; align-items: center; min-height: 44px; }
.action { display: inline-grid; grid-template-columns: auto 1.55rem; gap: 1rem; align-items: center; width: max-content; min-height: 52px; max-width: 100%; padding: .62rem .85rem .62rem 1rem; background: var(--mint); color: var(--ink); text-decoration: none; font-weight: 690; transition: background-color .18s ease, color .18s ease; }
.action span { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-inline-start: 1px solid currentColor; padding-inline-start: .45rem; }
.action svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .18s ease; }
.action:hover { background: white; }
.hero .action:hover svg { translate: 0 .18rem; }
.dark:hover svg { translate: .12rem -.12rem; }

.practice { overflow: clip; background: var(--paper); padding: clamp(4rem, 8.6vw, 8rem) 0 clamp(4rem, 7vw, 7rem); }
.practice-intro { display: grid; grid-template-columns: 1fr minmax(15rem, 27rem); gap: 1.5rem; align-items: end; }
.practice h2, .appointment h2, .visit h2 { font-size: clamp(2.4rem, 5.4vw, 5.25rem); letter-spacing: -.07em; font-weight: 600; line-height: .98; text-wrap: balance; }
.practice-intro p { font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 34ch; }
.sequence { width: min(91%, 1420px); display: grid; grid-template-columns: repeat(16, 1fr); align-items: start; gap: 0; padding-block-start: clamp(2rem, 4vw, 4.5rem); }
.sequence figure { grid-row: 1; min-width: 0; }
.sequence figure img { object-fit: cover; }
.sequence-process { grid-column: 2 / span 6; z-index: 1; width: min(100%, 640px); }
.sequence-process img { aspect-ratio: 1 / 1.2; object-position: 47% 60%; }
.sequence-room { grid-column: 7 / 17; width: min(100%, 800px); margin-top: clamp(2rem, 7.3vw, 8rem); padding: .6rem 0 0 .6rem; background: var(--paper); }
.sequence-room img { aspect-ratio: 1.65; object-position: center 62%; }
.practice-links { display: flex; flex-wrap: wrap; gap: .1rem 2rem; }
.practice-links a { min-height: 44px; display: inline-flex; align-items: center; }

.appointment { background: var(--blue); color: var(--wash); padding: clamp(4rem, 7vw, 7rem) 0; overflow: clip; }
.worksheet { position: relative; }
.appointment-layout { display: grid; grid-template-columns: minmax(15rem, .75fr) 1.25fr; gap: clamp(1.5rem, 7vw, 10rem); align-items: center; margin: clamp(2rem, 5vw, 5rem) 0 0; }
.topics { border: 0; margin: 0; padding: 0; display: grid; }
.topics legend { margin-bottom: .95rem; }
.topics label { display: grid; grid-template-columns: minmax(0, 1fr) 1.1rem; align-items: center; gap: 1rem; min-height: 64px; position: relative; padding: .62rem .8rem; border-bottom: 1px solid rgb(232 235 250 / .48); font-size: clamp(1.24rem, 3.3vw, 2.45rem); letter-spacing: -.05em; cursor: pointer; transition: color .18s ease; }
.topics label:hover { color: var(--mint); }
.topics label:has(input:checked) { color: var(--mint); }
.topics label:has(input:focus-visible) { outline: 3px dashed var(--mint); outline-offset: 5px; }
.topics input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-indicator { width: 1rem; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; }
.topics input:checked ~ .choice-indicator { background: currentColor; box-shadow: inset 0 0 0 3px var(--blue); }
.sheet { --sheet-face: var(--mint); min-height: clamp(15rem, 24vw, 22rem); display: grid; align-items: center; position: relative; isolation: isolate; color: var(--ink); padding: clamp(1.3rem, 4.2vw, 4.2rem); background: var(--sheet-face); transition: background-color .25s ease; }
.sheet[data-topic='care'] { --sheet-face: #dce5ff; }
.sheet::before { content: ''; position: absolute; inset: .6rem -.6rem -.6rem .6rem; z-index: -1; outline: 1px solid rgb(232 235 250 / .6); pointer-events: none; }
.sheet-panel { display: grid; grid-template-columns: minmax(0, 1fr) clamp(2.6rem, 9.5vw, 8rem); gap: .8rem; align-items: start; }
.sheet-symbol { width: 100%; color: var(--blue); stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.sheet[data-topic='care'] .sheet-symbol { color: #394a97; }
.sheet-panel p { font-size: clamp(1.16rem, 2vw, 1.8rem); max-width: 34ch; line-height: 1.35; margin-bottom: 1.5rem; }
.sheet .dark { background: var(--ink); color: var(--wash); }
.sheet .dark:hover { background: var(--blue); }
.booking-phone { color: var(--mint); min-height: 44px; display: inline-flex; align-items: center; margin-top: 1.45rem; }

.visit { background: var(--wash); }
.visit-inner { min-height: 550px; padding-block: clamp(3rem, 7vw, 7rem); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(1.5rem, 8vw, 9.5rem); }
.visit-where address { margin-top: 1.6rem; font-size: clamp(1.18rem, 2.35vw, 2rem); font-style: normal; }
.visit-where p { margin: .4rem 0 1.15rem; }
.map-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 640; }
.visit-portrait { width: min(100%, 360px); }
.visit-portrait img { aspect-ratio: .95; object-fit: cover; object-position: 46% 29%; }
.foot { background: var(--night); color: var(--wash); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.6rem 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-photo { animation: photograph-in .84s cubic-bezier(.15, .66, .32, 1) both; }
}
@keyframes photograph-in { from { translate: 5.5% 0; filter: saturate(.55) brightness(.83); } to { translate: 0 0; filter: none; } }
@keyframes print-process { from { translate: 21% 13%; } to { translate: 0 0; } }
@keyframes print-room { from { translate: -13% 17%; } to { translate: 0 0; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sequence { view-timeline-name: --studio-sequence; }
    .sequence-process { animation: print-process linear both; animation-timeline: --studio-sequence; animation-range: entry 4% cover 48%; }
    .sequence-room { animation: print-room linear both; animation-timeline: --studio-sequence; animation-range: entry 9% cover 48%; }
  }
}

@media (max-width: 860px) {
  .hero-photo { width: 74%; }
  .hero h1 { font-size: clamp(3.05rem, 7vw, 5rem); }
  .practice-intro { grid-template-columns: 1fr; }
  .appointment-layout { gap: 1.6rem; grid-template-columns: minmax(12rem, .75fr) 1.25fr; }
  .visit-inner { min-height: 460px; }
}

@media (max-width: 620px) {
  .top-inner { grid-template-columns: 1fr auto; gap: .25rem 1rem; padding-block: .72rem .18rem; }
  .top nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .15rem 1rem; }
  .top nav a { font-size: .91rem; }
  .top-phone { font-size: .77rem; }
  .signature { font-size: 1.05rem; }
  .hero-stage { width: 100%; display: grid; min-height: 0; }
  .hero-photo { position: relative; inset: auto; height: clamp(360px, 105vw, 460px); width: 100%; }
  .hero-photo img { height: calc(100% + 4rem); margin-top: -4rem; object-position: 57% 46%; }
  .hero-photo::after { background: linear-gradient(0deg, var(--night), transparent 35%); }
  .hero-copy { margin-top: clamp(-100px, -20vw, -70px); padding: 0 4.5% 2.7rem; }
  .hero h1 { font-size: clamp(2.18rem, 10vw, 3.6rem); font-weight: 660; }
  .hero-next { gap: .35rem 1.3rem; margin-top: 1.05rem; }
  .practice, .appointment { padding-block: 3.1rem; }
  .practice-intro { gap: 1rem; }
  .sequence { grid-template-columns: repeat(10, 1fr); }
  .sequence-process { grid-column: 1 / span 8; }
  .sequence .sequence-room { grid-row: 2; grid-column: 2 / -1; margin-top: 0; padding: 0; }
  .sequence-room img { aspect-ratio: 1.35; }
  .practice-links { margin-block-start: .5rem; }
  .appointment-layout { grid-template-columns: 1fr; gap: 1.35rem; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .topics label { font-size: clamp(.98rem, 4.2vw, 1.3rem); padding-inline: .05rem; min-height: 46px; gap: .3rem; }
  .sheet { min-height: 13.5rem; margin-right: .55rem; }
  .sheet-panel { grid-template-columns: minmax(0, 1fr) 2.45rem; gap: .35rem; }
  .visit-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 3rem 2.15rem; gap: 1.8rem; }
  .visit-portrait { width: min(80%, 235px); justify-self: end; }
  .foot-inner { display: grid; }
  .foot-contacts { gap: 0 1.2rem; }

  @keyframes photograph-in { from { translate: 0 -3.2%; filter: saturate(.55) brightness(.85); } to { translate: 0 0; filter: none; } }
  @keyframes print-process { from { translate: 9% 12%; } to { translate: 0 0; } }
  @keyframes print-room-mobile {
    from { translate: 20% 5%; clip-path: inset(0 21% 0 14%); }
    to { translate: 0 0; clip-path: inset(0); }
  }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .sequence-room {
        view-timeline-name: --room;
        animation-name: print-room-mobile;
        animation-timeline: --room;
        animation-range: entry 1% cover 44%;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
