:root {
  color-scheme: light;
  --night: #0a1628;
  --night-line: #25344d;
  --gold: #d4af62;
  --gold-light: #ecd290;
  --gold-ink: #7d5f1d;
  --ink: #101a2b;
  --muted: #4b586d;
  --line: #e1e4ea;
  --mist: #f5f6f8;
  --on-night: #bac6da;
  --space: clamp(72px, 10vw, 136px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.75 "Montserrat", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(36px, 5.6vw, 68px); font-weight: 600; line-height: 1.12; letter-spacing: -.028em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; line-height: 1.2; letter-spacing: -.022em; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -.008em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
::selection { background: var(--gold-light); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.section { padding-block: var(--space); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 5; padding: 10px 16px; background: var(--gold); color: var(--night); font-weight: 600; }
.skip:focus { top: 16px; }

/* Шапка */
.top { background: var(--night); color: #fff; position: relative; z-index: 2; border-bottom: 1px solid var(--night-line); }
.top .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; min-height: 88px; padding-block: 16px; }
.brand { display: block; }
.brand svg { display: block; width: 214px; height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px; font-size: 14px; font-weight: 500; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-night); transition: color .2s ease-out; }
nav a:hover, nav a[aria-current="page"] { color: #fff; }
nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
nav .lang { justify-content: center; min-width: 44px; border: 1px solid var(--night-line); border-radius: 100px; color: var(--gold-light); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
nav .lang:hover { border-color: var(--gold); color: var(--gold-light); }

/* Первый экран */
.hero, .ask, .page-head { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; }
.contours { position: absolute; z-index: -1; max-width: none; pointer-events: none; }
.hero .wrap { display: flex; flex-direction: column; justify-content: center; min-height: min(700px, calc(100svh - 88px)); padding-block: 80px 96px; }
.hero .contours { width: 960px; height: 960px; right: -270px; top: 50%; margin-top: -480px; animation: settle 2.4s cubic-bezier(.16, 1, .3, 1); }
@keyframes settle { from { transform: rotate(-14deg) scale(.9); } }
.hero h1 { max-width: 13.5em; width: min(100%, 700px); }
.hero p { max-width: 50ch; margin-top: 28px; color: var(--on-night); font-size: 18px; font-weight: 300; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px; border: 1px solid var(--gold); border-radius: 100px; background: var(--gold); color: var(--night); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s ease-out, border-color .2s ease-out; }
.button:hover { background: var(--gold-light); border-color: var(--gold-light); }
.button-outline { background: transparent; color: #fff; border-color: #56677f; }
.button-outline:hover { background: transparent; border-color: var(--gold); }

/* Услуги */
.services { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
.section-head { position: sticky; top: 48px; }
.section-head p { margin-top: 20px; color: var(--muted); max-width: 34ch; }
.services > ul > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 28px; padding-block: 40px; border-top: 1px solid var(--line); }
.services > ul > li:first-child { padding-top: 0; border-top: 0; }
.services > ul > li:last-child { padding-bottom: 0; }
.icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--night); color: var(--gold-light); }
.icon svg { width: 28px; height: 28px; }
.services h3 { font-size: 22px; }
.services h3 + p { margin-top: 10px; color: var(--muted); max-width: 54ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 5px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); font-size: 12.5px; font-weight: 500; }

/* Этапы: последовательность на золотой линии */
.approach { background: var(--mist); }
.approach ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; counter-reset: step; }
.approach li { position: relative; padding: 76px 32px 0 0; counter-increment: step; }
.approach li::before { content: counter(step); position: absolute; z-index: 1; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; background: var(--mist); color: var(--gold-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.approach li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--gold); opacity: .55; }
.approach li p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* О компании */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 80px; align-items: baseline; }
.about p { font-size: clamp(22px, 2.6vw, 31px); font-weight: 300; line-height: 1.55; letter-spacing: -.012em; }

.ask { text-align: center; }
.ask .wrap { display: flex; flex-direction: column; align-items: center; padding-block: var(--space); }
.ask p { margin-top: 18px; color: var(--on-night); font-weight: 300; }
.ask .button { margin-top: 36px; }
.ask .contours { width: 900px; height: 900px; left: -420px; top: 50%; margin-top: -450px; opacity: .55; }

/* Контакты */
.page-head .wrap { padding-block: clamp(56px, 8vw, 104px); }
.page-head h1 { font-size: clamp(36px, 5vw, 58px); }
.page-head p { margin-top: 16px; color: var(--on-night); font-weight: 300; max-width: 46ch; }
.page-head .contours { width: 760px; height: 760px; right: -200px; top: 50%; margin-top: -380px; opacity: .75; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px 80px; align-items: start; }
.contact-grid h2, .company h2 { margin-bottom: 36px; font-size: clamp(25px, 2.6vw, 32px); }
.reach li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; align-items: center; padding-block: 22px; border-top: 1px solid var(--line); }
.reach li:last-child { border-bottom: 1px solid var(--line); }
.reach .icon { width: 52px; height: 52px; }
.reach .icon svg { width: 22px; height: 22px; }
.label { display: block; color: var(--muted); font-size: 13px; }
.value { display: block; font-size: 18px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.reach a.value { text-decoration: none; padding-block: 4px; }
.reach a.value:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.reach .long { font-size: 15.5px; font-weight: 500; }
.people { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 40px; }
.people .value { font-size: 15.5px; }
.people span:not(.label, .value) { display: block; color: var(--muted); font-size: 14px; }
.map-frame { padding: 10px; border: 1px solid var(--line); border-radius: 20px; }
.map { display: block; width: 100%; height: 460px; border: 0; border-radius: 12px; background: var(--mist); }
.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.map-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .2s ease-out; }
.map-links a:hover { border-color: var(--gold-ink); }
.company { background: var(--mist); }
.details { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--line); }
.details div { grid-column: span 2; padding: 26px 30px; background: #fff; }
.details div:nth-child(-n+2) { grid-column: span 3; }
.details dt { color: var(--muted); font-size: 13px; }
.details dd { margin: 6px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Подвал */
footer { background: var(--night); color: var(--on-night); border-top: 1px solid var(--night-line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 48px; }
footer p { width: 100%; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13px; }

@media (max-width: 960px) {
  .services, .about, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { position: static; }
  .hero .contours { right: -520px; opacity: .55; }
  .approach ol { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .approach li { padding: 6px 0 40px 72px; }
  .approach li:last-child { padding-bottom: 0; }
  .approach li:not(:last-child)::after { top: 44px; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .top .section-link { display: none; }
  .top .wrap { min-height: 76px; }
  .brand svg { width: 168px; }
  nav { gap: 4px 18px; }
  .hero .wrap { min-height: 0; padding-block: 72px 80px; }
  .hero .contours { right: -600px; top: 0; margin-top: -330px; }
  .actions .button { flex: 1 1 100%; }
  .services > ul > li { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .map { height: 340px; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .details div, .details div:nth-child(-n+2) { grid-column: auto; }
}

@media (max-width: 380px) {
  .brand svg { width: 148px; }
  nav { gap: 4px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .contours { animation: none; }
  * { transition: none !important; }
}
