/* WE Legal: вёрстка поверх tokens.css (дизайн) и base.css (стартовый набор). Шесть размеров шрифта из токенов
   плюс два производных: строка поиска и строки «От Астаны до Дубая» (общий clamp) и почта-заголовок в финале. */
:root { --chip-h: 56px; --size-strip: clamp(1.75rem, 3vw, 2.75rem); }

/* общие */
.head { font-weight: var(--w-head); letter-spacing: -0.035em; line-height: 1; }
h3 { font-weight: var(--w-strong); }
.link { text-decoration-color: currentColor; font-weight: var(--w-strong); }
.btn { min-height: 3.75rem; padding: 0 1.75rem; background: var(--ink); color: var(--bg); border-radius: 0; }
.btn--gold { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #22364d; }
  .btn--gold:hover { background: #d4b562; }
  .link:hover { text-decoration-thickness: 0.14em; }
  .brand:hover { opacity: 0.7; }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.field-1 :focus-visible { outline-color: var(--accent); }

/* шапка */
.top { padding-top: 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-size: var(--step-small); font-weight: var(--w-strong); text-decoration: none; color: var(--ink); transition: opacity var(--t-hover) ease; }
.brand svg { height: 26px; width: auto; color: var(--ink); }
.top__nav { margin-left: auto; align-items: center; font-size: var(--step-small); }
.top__nav .lang { color: var(--muted); }
.top__act { min-height: 2.75rem; padding: 0 1.1rem; font-size: var(--step-small); }

/* первый экран */
.hero { min-height: calc(100svh - var(--header-h)); display: grid; grid-template-rows: auto 1fr auto; padding: 0 var(--margin) 1.75rem; }
.hero h1 { font-size: var(--step-display); font-weight: var(--w-display); letter-spacing: -0.045em; line-height: 0.9; padding-top: max(5svh, 2rem); }
.hero h1 span { display: block; }
.hero h1 .l2 { text-align: right; }
.route { position: relative; align-self: center; height: 27svh; min-height: 11rem; margin: 3svh 0 5svh; }
.route__w { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; color: var(--ink); }
.route__e { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; color: var(--accent); }
.route__line { position: absolute; left: 0; right: 0; bottom: 0; height: var(--route-w); background: var(--ink); }
.route .st { position: absolute; left: var(--x); bottom: calc(var(--route-w) / 2 - var(--station) / 2); width: var(--station); height: var(--station); margin-left: calc(var(--station) / -2); border-radius: 50%; background: var(--accent); }
.route .st b { position: absolute; top: calc(var(--station) + 10px); left: 50%; transform: translateX(-50%); font-size: var(--step-small); font-weight: var(--w-strong); white-space: nowrap; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.hero__bottom .lead { max-width: 52ch; line-height: 1.3; }
.hero__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 1.25rem; }

/* маршрут (живая вещь) */
.routebox { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; min-height: 100svh; padding: var(--section) var(--margin); align-items: start; }
.routebox__ask { display: contents; }
.routebox__ask .head { grid-column: 1 / -1; }
.routebox__ask > .lead { grid-column: 1 / span 7; margin-top: -1.75rem; color: var(--field-1-ink); max-width: 48ch; }
.ask { grid-column: 1 / span 4; display: grid; gap: 1.75rem; }
.ask legend { font-size: var(--step-lead); font-weight: var(--w-text); margin-bottom: 0.75rem; line-height: 1.3; }
.routebox .chip span { min-height: var(--chip-h); padding: 0.5rem 1.1rem; background: var(--field-1-step); color: var(--field-1-ink); font-weight: var(--w-strong); line-height: 1.25; }
.routebox .chip input:checked + span { background: var(--accent); color: var(--accent-ink); }
.ask .hint { color: var(--field-1-muted); }
.routebox__map { grid-column: 6 / -1; position: sticky; top: 1.5rem; }
.canvas { position: relative; height: clamp(8rem, 18svh, 12.5rem); margin: 3.5rem 0 4.5rem; }
.canvas__w { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; color: var(--field-1-ink); }
.canvas__e { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; color: var(--accent); }
.canvas__line { position: absolute; left: 0; right: 0; bottom: 0; height: var(--route-w); background: var(--field-1-ink); }
.canvas__st { position: absolute; left: 33%; right: 17%; bottom: 0; height: 0; }
.canvas .st { position: absolute; left: calc(var(--p) * 100%); bottom: calc(var(--route-w) / 2 - var(--station) / 2); width: var(--station); height: var(--station); margin-left: calc(var(--station) / -2); border-radius: 50%; background: var(--accent); }
.canvas .st b { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: 9.5em; text-align: center; font-size: var(--step-small); font-weight: var(--w-strong); line-height: 1.25; color: var(--field-1-ink); }
.canvas .st:nth-child(odd) b { top: calc(var(--station) + 10px); }
.canvas .st:nth-child(even) b { bottom: calc(var(--station) + 10px); }
.dossier { --muted: #3e4b5b; background: var(--surface); color: var(--ink); padding: 2rem; display: grid; gap: 0.75rem; }
.dossier__t { font-size: var(--step-lead); font-weight: var(--w-strong); }
.dossier__path { font-weight: var(--w-strong); }
.dossier__urgent { font-weight: var(--w-strong); }
.dossier__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.75rem; }

/* цифры */
.numbers { min-height: 90svh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--margin) * 1.5) var(--margin); }
.numbers__t { font-size: var(--step-lead); font-weight: var(--w-strong); max-width: 24ch; }
.numbers__fig { align-self: end; padding-top: 22vh; }
.numbers__n { font-size: var(--step-mega); font-weight: var(--w-display); letter-spacing: -0.06em; line-height: 0.8; }
.numbers__n sup { font-size: 0.33em; vertical-align: top; line-height: 1; letter-spacing: 0; position: relative; top: 0.06em; }
.numbers__cap { margin-top: 1rem; max-width: 32ch; }
.numbers__more { justify-self: end; margin-top: 1.5rem; color: var(--field-2-ink); }

/* полоса «шар» */
.band { margin: 0; }
.band__pic { aspect-ratio: 21 / 9; overflow: hidden; }
.band__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.band figcaption { padding: 0.6rem var(--margin) 0; text-align: right; color: var(--muted); }

/* лицензия МФЦА */
.aifc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding-block: var(--section); align-items: start; }
.aifc__card { grid-column: 1 / span 6; background: var(--surface); padding: 2rem; }
.aifc__pic { overflow: hidden; max-width: 760px; }
.aifc__pic img { display: block; width: 100%; height: auto; }
.aifc__card figcaption { margin-top: 1rem; color: var(--muted); font-size: var(--step-body); }
.aifc__text { grid-column: 7 / -1; display: grid; gap: 1.5rem; align-content: start; }
.aifc__case { font-weight: var(--w-strong); max-width: 40ch; }
.aifc__text .link { justify-self: start; }

/* услуги */
.cmd { background: var(--surface); padding: var(--section) var(--margin); }
.cmd__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem var(--gutter); margin-bottom: 2.5rem; }
.cmd__q { display: block; width: min(100%, 83%); height: 1.9em; padding: 0 0.6em; border: 0; border-radius: 0; background: var(--bg); color: var(--ink); font: inherit; font-size: var(--size-strip); font-weight: var(--w-strong); letter-spacing: -0.02em; }
.cmd__q::placeholder { color: var(--muted); }
.cmd__list { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.cmd__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: baseline; padding: 0.15em 0.25em; cursor: pointer; outline-offset: -3px; transition: background-color var(--t-hover) ease; }
.cmd__name { font-size: var(--step-head); font-weight: var(--w-head); letter-spacing: -0.035em; line-height: 1.1; }
.cmd__list li small { grid-column: 1; display: block; max-width: 60ch; margin: 0.3em 0 0.5em; font-size: var(--step-body); line-height: 1.45; }
.cmd__list li .link { grid-column: 2; grid-row: 1; white-space: nowrap; }
.cmd--live .cmd__list li:not(.on) small, .cmd--live .cmd__list li:not(.on) .link { display: none; }
.cmd__list li.on { background: var(--accent); color: var(--accent-ink); }
.cmd__none { margin-top: 1rem; }
.cmd__list li[hidden] { display: none; }
.cmd__list li .link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--step-lead); }

/* От Астаны до Дубая */
.abroad { padding-block: var(--section); }
.abroad__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.abroad__head h2 { grid-column: 1 / span 6; }
.abroad__head .lead { grid-column: 7 / -1; max-width: 46ch; }
.abroad__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; margin-top: 4rem; }
.abroad__row figure { margin: 0; }
.abroad__map { grid-column: 1 / span 4; }
.abroad__map img { display: block; width: 100%; height: 560px; object-fit: cover; }
.abroad__city { grid-column: 5 / span 4; }
.abroad__video { grid-column: 9 / span 4; }
.abroad__frame { height: 420px; overflow: hidden; }
.abroad__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Dubai Marina: низ кадра (вывеска застройщика) срезан увеличением от верхнего края */
.abroad__video img { object-position: 50% 0; scale: 1.16; transform-origin: 50% 0; }
.abroad figcaption { margin-top: 0.6rem; color: var(--muted); }
.abroad__lines { list-style: none; margin: 4rem 0 0; padding: 0; display: grid; gap: 0.6rem; font-size: var(--size-strip); line-height: 1.2; letter-spacing: -0.02em; }
.abroad__lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gutter); align-items: baseline; }
.abroad__lines p { max-width: none; }
.abroad__lines .link { justify-self: end; font-size: var(--step-body); padding-block: 0.8rem !important; }

/* команда */
.team { padding-block: var(--section); }
.team__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); align-items: end; margin: 3rem 0 1.5rem; }
.team__face { display: grid; place-items: center; font-family: var(--font-display); font-size: var(--step-mega); font-weight: var(--w-display); line-height: 1; letter-spacing: -0.06em; }
.team__p--1 .team__face { height: 520px; background: var(--field-1); color: var(--field-1-ink); }
.team__p--2 .team__face { height: 440px; background: var(--accent); color: var(--ink); }
.team__p--3 .team__face { height: 480px; background: var(--surface); color: var(--ink); }
.team__p h3 { margin-top: 1.1rem; font-size: var(--step-lead); letter-spacing: 0; }
.team__role { font-weight: var(--w-text); color: var(--muted); }

/* публикации */
.press { padding-block: var(--section); }
.press__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.press__head h2 { grid-column: 1 / span 8; }
.press__head h2 span { display: block; }
.press__step { padding-left: 2.2em; }
.press__pic { grid-column: 9 / -1; width: 100%; height: 360px; object-fit: cover; }
.press__table { width: 100%; border-collapse: collapse; margin-top: 3.5rem; }
.press__table td { padding: 14px; vertical-align: top; }
.press__table tbody tr:nth-child(odd) td { background: var(--surface); }
.press__table .y { width: 12%; font-weight: var(--w-strong); }
.press__table td:nth-child(3) { width: 18%; color: var(--muted); }
.press__table .d { width: 16%; text-align: right; white-space: nowrap; color: var(--muted); }
.press__line { margin-top: 1.75rem; max-width: 70ch; }
.press__links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* контакты */
.contacts { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; gap: 2rem; padding: calc(var(--margin) * 1.5) var(--margin); }
.contacts__t { font-size: var(--step-lead); font-weight: var(--w-strong); }
.contacts__say { margin-top: 0.5rem; max-width: 30ch; font-size: var(--step-lead); line-height: 1.3; }
.contacts__mail { align-self: end; margin-bottom: 8svh; font-size: 11.4vw; font-weight: var(--w-light); letter-spacing: -0.045em; line-height: 1; color: var(--field-1-ink); text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .contacts__mail:hover { color: var(--accent); } }
.contacts__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.contacts__facts { display: grid; gap: 0.4rem; }
.contacts__facts .btn { justify-self: start; margin-bottom: 1rem; font-size: var(--step-body); }
.contacts__social { display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* подвал */
.foot { padding: 4rem var(--margin) 1.75rem; }
.foot__mono svg { display: block; width: 100%; height: auto; color: var(--field-1-ink); }
.foot .foot__facts { display: block; margin-top: 1.75rem; color: var(--field-1-muted); font-size: var(--step-body); }
.foot .foot__credit { margin-top: 0.6rem; color: var(--field-1-muted); }

/* ссылки-действия: область нажатия не меньше 44 px */
.hero__acts .link, .dossier__acts .link, .aifc__text .link, .press__links .link, .contacts .link, .abroad__lines .link { display: inline-block; padding-block: 0.6rem; }

/* ---------- телефон: своя композиция ---------- */
@media (max-width: 760px) {
  .top__act { display: none; }
  .hero { min-height: 0; padding-bottom: 2rem; }
  .hero h1 { font-size: 9vw; padding-top: 6svh; }
  .hero h1 .l2 { text-align: left; }
  /* монограмма собрана: E заходит на правую ногу W, как в логотипе; линия и станции под ней */
  .route { height: calc(31.5vw + 3.25rem); min-height: 0; margin: 5svh 0 2rem; }
  .route__w { top: 0; bottom: auto; height: 31.5vw; }
  .route__e { left: 40vw; right: auto; top: 0; bottom: auto; height: 31.5vw; }
  .route__line { top: calc(31.5vw + 0.9rem); bottom: auto; }
  .route .st { bottom: auto; top: calc(31.5vw + 0.9rem + var(--route-w) / 2 - var(--station) / 2); }
  .route .st:nth-of-type(1) { --x: 8% !important; }
  .route .st:nth-of-type(2) { --x: 50% !important; }
  .route .st:nth-of-type(3) { --x: 88% !important; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .hero__bottom .lead { font-size: var(--step-body); }
  .hero__acts { flex-direction: column-reverse; align-items: stretch; }
  .hero__acts .btn { width: 100%; }
  .hero__acts .link { align-self: flex-start; }

  .routebox { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  .routebox__ask > .lead { grid-column: 1; margin-top: -1.25rem; }
  .ask { grid-column: 1; }
  .routebox__map { grid-column: 1; position: static; }
  /* полотно маршрута сверху вниз: W сверху, E снизу, линия слева, подписи справа */
  .canvas { height: calc(var(--n, 5) * 4.25rem + 12rem); margin: 0 0 2rem; }
  .canvas__w { top: 0; bottom: auto; height: 5rem; }
  .canvas__e { left: 0; right: auto; top: auto; bottom: 0; height: 5rem; }
  .canvas__line { left: 1.5rem; right: auto; top: 5.75rem; bottom: 5.75rem; width: var(--route-w); height: auto; }
  .canvas__st { left: calc(1.5rem + var(--route-w) / 2); right: auto; top: 7rem; bottom: 7rem; width: 0; height: auto; }
  .canvas .st { left: 0; top: calc(var(--p) * 100%); bottom: auto; margin-top: calc(var(--station) / -2); }
  .canvas .st b, .canvas .st:nth-child(odd) b, .canvas .st:nth-child(even) b { top: 50%; bottom: auto; left: calc(var(--station) + 0.9rem); transform: translateY(-50%); max-width: 70vw; text-align: left; }
  .dossier { padding: 1.5rem; grid-template-columns: minmax(0, 1fr); }
  .dossier__acts .btn { width: 100%; white-space: normal; text-align: center; padding-block: 0.9rem; }
  .top { padding-top: 0.75rem; }

  .numbers { min-height: 0; }
  .numbers__fig { padding-top: 12vh; }
  .numbers__more { justify-self: start; }
  .band__pic { aspect-ratio: 4 / 3; }

  .aifc, .abroad__head, .abroad__row, .press__head { grid-template-columns: minmax(0, 1fr); }
  .aifc__card, .aifc__text, .abroad__head h2, .abroad__head .lead, .abroad__map, .abroad__city, .abroad__video, .press__head h2, .press__pic { grid-column: 1; }
  .aifc__card { padding: 1rem; }

  .cmd__q { width: 100%; height: 3.5rem; font-size: var(--step-lead); }
  .cmd__name { font-size: 6vw; }
  .cmd__list li { grid-template-columns: minmax(0, 1fr); padding-block: 0.5em; min-height: 2.75rem; align-content: center; }
  .cmd__list li .link { grid-column: 1; grid-row: auto; margin-bottom: 0.6rem; }

  .abroad__row { gap: 1.75rem; }
  .abroad__map img { height: auto; aspect-ratio: 4 / 3; }
  .abroad__city .abroad__frame { height: auto; aspect-ratio: 4 / 5; }
  .abroad__video .abroad__frame { height: auto; aspect-ratio: 16 / 10; }
  .abroad__lines { font-size: var(--step-lead); gap: 1rem; }
  .abroad__lines li { grid-template-columns: minmax(0, 1fr); }
  .abroad__lines .link { justify-self: start; }

  .team__row { grid-template-columns: minmax(0, 1fr); }
  .team__p .team__face { height: auto; aspect-ratio: 4 / 3; }

  .press__step { padding-left: 1.2em; }
  .press__pic { height: auto; aspect-ratio: 3 / 2; }
  .press__table, .press__table tbody, .press__table tr, .press__table td { display: block; width: auto; }
  .press__table td { padding: 0 14px; }
  .press__table tr { padding: 12px 0; }
  .press__table .y:empty { display: none; }
  .press__table tbody tr:nth-child(odd) { background: var(--surface); }
  .press__table tbody tr:nth-child(odd) td { background: none; }
  .press__table .y { font-size: var(--step-lead); padding-top: 4px; }
  .press__table td:nth-child(3), .press__table .d { display: inline-block; width: auto; text-align: left; padding-right: 0; }

  .contacts { min-height: 0; padding-block: 3rem; }
  .contacts__mail { font-size: 11.5vw; white-space: normal; margin-bottom: 0; }
  .contacts__bottom { flex-direction: column; align-items: stretch; }
  .contacts__facts .btn { justify-self: stretch; }
}
