@font-face { font-family: Geologica; src: url(fonts/geologica-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Geologica; src: url(fonts/geologica-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --ground: #f5f4fc;
  --text: #1c1548;
  --soft: #5b5485;
  --accent: #5a2be0;
  --line: #d5d0ec;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; color: var(--text); font: 300 1.0625rem/1.6 Geologica, system-ui, sans-serif; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }

.skip { position: fixed; left: var(--gutter); top: -4rem; padding: .5rem 1rem; background: var(--accent); color: #fff; z-index: 4; }
.skip:focus { top: .75rem; }

.stage canvas { display: block; width: 100%; height: 100%; }

.top { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem var(--gutter); }
.wordmark { font-size: 1.35rem; font-weight: 600; text-decoration: none; }
.wordmark, .legal { display: flex; align-items: center; gap: .6rem; }
.top nav { display: flex; gap: clamp(.75rem, 2.5vw, 2.25rem); font-size: clamp(.8125rem, 2.4vw, 1rem); }
.top nav a { padding-block: .6rem; text-decoration: none; }
.top nav a:hover { color: var(--accent); }

h1 { font-size: clamp(2.6rem, 8vw, 9rem); font-weight: 300; line-height: 1; letter-spacing: -.045em; max-width: 6.8em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 4rem); font-weight: 300; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }

main section, footer { padding-inline: var(--gutter); }
.hero p { max-width: 34em; }
.since { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin-top: 1.5rem; }
.since a { padding-block: .4rem; text-decoration: none; }
.since a:hover { color: var(--accent); }
.since b { font-weight: 500; color: var(--accent); }

.practice p { max-width: 30em; margin-top: 1.5rem; color: var(--soft); font-size: 1.125rem; }
.services { margin-top: 2.5rem; display: grid; gap: 1rem; font-size: clamp(1.125rem, 1.5vw, 1.45rem); line-height: 1.35; }

.services small { display: block; max-width: 36em; margin-top: .25rem; color: var(--soft); font-size: 1rem; line-height: 1.5; }
.services.plain { margin-top: 1.25rem; gap: .5rem; }
.practice .law { margin-top: 1.25rem; color: var(--soft); font-size: .9375rem; }

.when { padding-block: 5rem; }
.when dl { margin: 2.5rem 0 0; display: grid; gap: 1.75rem; }
.when dt { font-size: clamp(1.125rem, 1.5vw, 1.45rem); line-height: 1.35; }
.when dd { margin: .25rem 0 0; max-width: 34em; color: var(--soft); }

.answers { margin-top: 2.5rem; }
.answers details { border-bottom: 1px solid var(--line); }
.answers summary { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; font-size: clamp(1.125rem, 1.5vw, 1.45rem); line-height: 1.35; cursor: pointer; list-style: none; }
.answers summary::-webkit-details-marker { display: none; }
.answers summary::after { content: "+"; flex: none; color: var(--accent); transition: rotate .25s; }
.answers details[open] summary::after { rotate: 45deg; }
.answers summary:hover { color: var(--accent); }
.answers details p { margin-top: 0; padding-bottom: .75rem; font-size: 1.0625rem; }
.answers details .law { padding-bottom: 1.25rem; font-size: .9375rem; }

.clients ul { margin-top: 2.5rem; }
.clients li { padding-block: .4rem; font-size: clamp(1.2rem, 1.9vw, 1.9rem); line-height: 1.25; letter-spacing: -.02em; transition: color .2s; }
.clients li span { color: var(--soft); transition: color .2s; }
.clients li:hover, .clients li:hover span { color: var(--accent); }

footer { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 4rem; padding-block: 3rem; }
address { display: grid; gap: .4rem; font-style: normal; }

/* Телефон: узор закреплён сверху, текст проходит под ним. */
@media (max-width: 55.99rem) {
  .stage { position: sticky; top: 0; z-index: 2; height: 36svh; background: var(--ground); pointer-events: none; }
  .stage::after { content: ""; position: absolute; inset: 100% 0 auto; height: 2.5rem; background: linear-gradient(var(--ground), transparent); }
  .hero { padding-block: 2.75rem 5rem; }
  .hero .intro { margin-top: 1.5rem; }
  .top { gap: .5rem; padding-inline: 1rem; }
  .wordmark { gap: .4rem; font-size: 1.2rem; }
  .wordmark img { width: 1.6rem; height: 1.6rem; }
  .top nav a[href="#questions"] { display: none; }
  .practice, .clients { padding-block: 5rem; scroll-margin-top: 32svh; }
}

/* Десктоп: узор на весь экран за текстом. */
@media (min-width: 56rem) {
  .stage { position: fixed; inset: 0; z-index: -1; }
  .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(2rem, 6vh, 4.5rem); padding-block: 6rem clamp(2rem, 6vh, 4rem); }
  .hero .intro { max-width: min(42rem, 39vw); }
  .practice { min-height: 125svh; display: flex; flex-direction: column; justify-content: center; }
  .practice > *, .when > * { max-width: 41vw; }
  .practice { padding-block: 12vh; }
  .when { padding-block: 4vh 16vh; }
  .clients { padding-block: 14vh 20vh; }
  .clients ul { width: fit-content; max-width: 46vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .answers summary::after { transition: none; }
}
