:root {
  --bg: #0c0c0d;
  --surface: #161618;
  --field: #1d1d20;
  --field-hover: #232327;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --light: #f5f5f7;
  --light-card: #ffffff;
  --ink: #1d1d1f;
  --ink-muted: #6e6e73;
  --accent: #ff7a00;
  --accent-text: #ff9e45;
  --accent-ink: #c25700;
  --grad: linear-gradient(135deg, #ff7a00, #ff9f4d);
  --grad-text: linear-gradient(100deg, #ff6a00 0%, #ffa24d 55%, #ffd2a6 100%);
  --err: #ff6961;
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.25,.1,.25,1);
  /* Ширина контента растёт с экраном: 1120 на ноутбуке → до 1440 на больших и широких (34") мониторах */
  --wrap: clamp(1120px, 74vw, 1440px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
html, body { margin: 0; }
body {
  font-family: var(--sf); color: var(--text); background: var(--bg);
  line-height: 1.47; -webkit-font-smoothing: antialiased; letter-spacing: -.01em;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ===== Навигация: тонкая полупрозрачная панель как на apple.com ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,12,13,.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; height: 56px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 13px; }
.nav-links a { text-decoration: none; color: rgba(245,245,247,.8); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  font-size: 13px; font-weight: 500; text-decoration: none; color: #0d0d0e;
  background: var(--grad); border-radius: 999px; padding: 7px 15px; flex: none;
  transition: box-shadow .2s var(--ease);
}
.nav-cta:hover { box-shadow: 0 6px 18px rgba(255,122,0,.45); }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }
header.open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
header.open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ===== Типографика секций ===== */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.light .eyebrow { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; margin: 0; }
.h-section { font-size: clamp(34px, 5.6vw, 64px); font-weight: 700; line-height: 1.05; margin: 10px 0 12px; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--muted); max-width: 720px; margin: 0; font-weight: 500; letter-spacing: -.015em; }
.light .lead { color: var(--ink-muted); }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.more { color: var(--accent-text); text-decoration: none; font-size: 17px; font-weight: 400; white-space: nowrap; }
.more::after { content: " ›"; }
.more:hover { text-decoration: underline; }
.light .more { color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 17px; letter-spacing: -.01em; text-decoration: none; color: #0d0d0e;
  background: var(--grad); border: 0; border-radius: 999px; padding: 14px 28px; min-height: 50px;
  cursor: pointer; box-shadow: 0 8px 24px rgba(255,122,0,.32);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255,122,0,.5); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }

section { position: relative; }
.sec { padding: clamp(56px, 7vw, 96px) 0; }
.light + .light { padding-top: 0; } /* две светлые секции подряд — без двойного отступа */
.light { background: var(--light); color: var(--ink); }

/* ===== Hero ===== */
.hero { overflow: hidden; padding: clamp(32px, 4.5vw, 56px) 0 0; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 380px at 50% 30%, rgba(255,122,0,.22), transparent 70%),
    radial-gradient(900px 520px at 85% -10%, rgba(255,122,0,.12), transparent 62%),
    radial-gradient(700px 420px at 0% 50%, rgba(255,122,0,.07), transparent 60%);
}
.hero-cities { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.hero-cities i { width: 4px; height: 4px; border-radius: 1px; background: var(--accent); align-self: center; }
.hero h1 { font-size: clamp(48px, 9.6vw, 112px); font-weight: 700; line-height: 1; letter-spacing: -.035em; margin: 18px auto 22px; max-width: 980px; }
.hero .lead { margin: 0 auto; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; align-items: center; margin-top: 34px; }

/* Сцена: «пиксели» из логотипа, собирающиеся в сетку */
.stage { position: relative; max-width: 980px; margin: clamp(40px, 6vw, 72px) auto 0; aspect-ratio: 16 / 7; border-radius: 28px 28px 0 0; overflow: hidden;
  background: linear-gradient(180deg, #19191c, #0f0f11 80%); border: 1px solid var(--line); border-bottom: 0; }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--bg)); pointer-events: none; }
.pix { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(24, 1fr); gap: 6px; padding: 6%; align-content: center; }
.pix b { aspect-ratio: 1; border-radius: 22%; background: var(--accent); opacity: 0; transform: scale(.4); animation: pix 6s var(--ease) infinite; }
@keyframes pix { 0%, 100% { opacity: 0; transform: scale(.4); } 30%, 70% { opacity: var(--o, .9); transform: scale(1); } }
.stage-caption { position: absolute; left: 0; right: 0; bottom: 10%; z-index: 2; text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(15px, 2vw, 21px); color: var(--text); letter-spacing: -.01em; }
.stage-caption span { color: var(--muted); font-weight: 500; }

/* ===== Форматы: плитки как на apple.com ===== */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.tile {
  grid-column: span 2; position: relative; overflow: hidden; border-radius: 28px; background: var(--light-card);
  padding: 36px 32px 32px; min-height: 360px; display: flex; flex-direction: column; color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.tile.wide { grid-column: span 3; }
.tile.dark { background: #111113; color: var(--text); }
.tile h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; line-height: 1.08; margin: 8px 0 12px; }
.tile p { margin: 0; color: var(--ink-muted); font-size: 17px; line-height: 1.42; }
.tile.dark p { color: var(--muted); }
.tile .tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.tile.dark .tag { color: var(--accent-text); }
.tile .more { margin-top: auto; padding-top: 24px; }
.tile .glyph { position: absolute; right: -18px; bottom: -18px; width: 170px; height: 170px; opacity: .9; pointer-events: none; }
.tile .glyph b { position: absolute; border-radius: 22%; background: var(--grad); }

/* ===== Почему мы ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.feature { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); padding: 36px 28px 40px; min-height: 250px; }
/* Значок — не плашкой над заголовком, а крупным еле заметным контуром в углу карточки */
.feature .ico { position: absolute; z-index: -1; right: -26px; bottom: -30px; width: 170px; height: 170px; color: rgba(255,255,255,.045); pointer-events: none; }
.feature .ico svg { width: 100%; height: 100%; stroke-width: 1.1; }
.feature:hover .ico { color: rgba(255,122,0,.08); transition: color .4s var(--ease); }
.feature h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ===== Города ===== */
.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  background: #e8e8ed; border-radius: 12px; padding: 3px; margin-top: 28px;
}
.seg button {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-muted); background: transparent; border: 0;
  border-radius: 9px; padding: 9px 22px; min-height: 40px; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.seg button:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(255,122,0,.4); }

.city {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 28px; text-align: left;
}
.city[hidden] { display: none; }
.city-hero {
  position: relative; overflow: hidden; border-radius: 28px; min-height: 440px; padding: 40px; color: var(--text);
  background: #111113; display: flex; flex-direction: column; justify-content: flex-end;
  animation: fade .5s var(--ease);
}
.city-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.2s var(--ease); }
.city-hero:hover .city-photo { transform: scale(1.03); }
/* Затемнение снизу — чтобы название и текст читались на любом фото; лёгкий оранжевый отсвет — в цвет бренда */
.city-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.1) 48%, rgba(12,12,13,.9) 100%),
              radial-gradient(120% 70% at 0% 100%, rgba(255,122,0,.22), transparent 60%); }
.city-hero > *:not(.city-photo) { position: relative; z-index: 2; }
.city-hero .credit { position: absolute; top: 36px; right: 40px; font-size: 11px; color: rgba(255,255,255,.6); }
.city-hero .credit a { color: inherit; text-decoration: none; }
.city-hero .credit a:hover { color: #fff; text-decoration: underline; }
.city-hero .coord { position: absolute; top: 36px; left: 40px; font-size: 13px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.city-hero h3 { font-size: clamp(44px, 6vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.city-hero p { color: rgba(255,255,255,.82); font-size: 17px; margin: 14px 0 0; max-width: 420px; }
.city-list { display: grid; gap: 16px; animation: fade .5s .05s var(--ease) backwards; }
.city-item { background: #fff; border-radius: 22px; padding: 26px 28px; }
.city-item h4 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.city-item p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ===== Как работаем ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; counter-reset: step; }
.step { position: relative; border-radius: 24px; padding: 30px 26px 32px; background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--display); font-weight: 700; font-size: 48px; letter-spacing: -.04em; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 26px;
}
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ===== Заявка ===== */
.lead-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.lead-side { position: sticky; top: 100px; }
.contacts { margin-top: 36px; display: grid; gap: 14px; }
.contacts a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); font-size: 17px; }
.contacts a span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--accent-text); flex: none; }
.contacts a:hover { color: var(--accent-text); }
.contacts small { display: block; color: var(--faint); font-size: 13px; }

form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(22px, 4vw, 40px); box-shadow: 0 40px 100px -50px rgba(0,0,0,.9);
}
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 26px 4px 12px; }
.section-title:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full { grid-column: 1 / -1; }

/* Поля с плавающей подписью — как в анкете */
.fl { position: relative; }
.fl input, .fl textarea, .fl select {
  width: 100%; display: block;
  font: inherit; font-size: 17px; color: var(--text); letter-spacing: -.02em;
  background: var(--field); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 16px 9px; min-height: 58px; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.fl select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a1a1a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.fl select option { color: #000; }
.fl textarea { resize: vertical; min-height: 110px; padding-top: 30px; line-height: 1.4; }
.fl input:hover, .fl textarea:hover, .fl select:hover { background-color: var(--field-hover); }
.fl label {
  position: absolute; left: 17px; top: 18px; right: 16px;
  font-size: 17px; color: var(--faint); pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: left top; transition: transform .18s var(--ease), color .18s var(--ease);
}
.fl input:focus + label, .fl input:not(:placeholder-shown) + label,
.fl textarea:focus + label, .fl textarea:not(:placeholder-shown) + label,
.fl select + label, .fl input[type=date] + label { transform: translateY(-10px) scale(.72); }
.fl input:focus + label, .fl textarea:focus + label, .fl select:focus + label { color: var(--accent-text); }
.fl input::placeholder, .fl textarea::placeholder { color: transparent; transition: color .15s; }
.fl input:focus::placeholder, .fl textarea:focus::placeholder { color: var(--faint); }
.fl input:focus, .fl textarea:focus, .fl select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,0,.18); }
.fl input[type=date] { color-scheme: dark; }
.fl input[type=date] { min-height: 58px; }
.req { color: var(--accent-text); }
.fl.invalid input, .fl.invalid textarea { border-color: var(--err); box-shadow: 0 0 0 4px rgba(255,105,97,.14); }
.fl.invalid label { color: var(--err); }
.fl .err-msg { display: none; font-size: 12px; color: var(--err); margin: 6px 4px 0; }
.fl.invalid .err-msg { display: block; }

.segmented {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 3px;
}
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: grid; place-items: center; text-align: center; min-height: 44px; padding: 6px 8px;
  border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.segmented input:hover + span { color: var(--text); }
.segmented input:checked + span { background: #3a3a3e; color: var(--text); box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.08); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,122,0,.4); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 20px; cursor: pointer; line-height: 1.4; }
.consent input {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0;
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--field);
  display: grid; place-items: center; cursor: pointer; transition: .15s var(--ease);
}
.consent input::after { content: ""; width: 6px; height: 11px; border: solid #0d0d0e; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px,-1px) scale(0); transition: transform .15s var(--ease); }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { transform: rotate(45deg) translate(-1px,-1px) scale(1); }
.consent.invalid input { border-color: var(--err); }
.consent a { color: var(--accent-text); text-decoration: none; }
.consent a:hover { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.actions { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.actions .btn { width: 100%; }
.status { font-size: 14px; min-height: 20px; text-align: center; color: var(--err); }
.success { display: none; text-align: center; padding: 40px 8px; }
.success.show { display: block; animation: fade .5s var(--ease); }
.success .ico { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 20px; background: var(--grad); color: #0d0d0e; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(255,122,0,.4); }
.success h3 { font-size: 28px; margin: 0 0 10px; }
.success p { color: var(--muted); margin: 0; font-size: 17px; }

/* ===== Команда (ссылка на анкету) ===== */
.join { border-radius: 28px; padding: clamp(40px, 6vw, 72px); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.join h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.08; color: var(--ink); }
.join p { margin: 12px 0 0; color: var(--ink-muted); font-size: 17px; max-width: 520px; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn-dark:hover { box-shadow: 0 10px 24px rgba(0,0,0,.2); }

/* ===== Подвал ===== */
footer { border-top: 1px solid var(--line); background: #0a0a0b; color: var(--faint); font-size: 12px; line-height: 1.5; }
.footer-in { max-width: var(--wrap); margin: 0 auto; padding: 22px 22px 36px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 8px 0 22px; border-bottom: 1px solid var(--line); }
.footer-cols h4 { color: var(--text); font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
.footer-note { margin: 18px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 1.5; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 16px; }

/* ===== Появление при прокрутке ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pix b { animation: none; opacity: var(--o, .9); transform: none; }
}

/* ===== Планшет ===== */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: span 1; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .city { grid-template-columns: 1fr; }
  .city-hero { min-height: 340px; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-side { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
/* ===== Телефон ===== */
@media (max-width: 760px) {
  .wrap, .nav { padding: 0 16px; }
  .nav { height: 52px; }
  .logo img { height: 28px; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    height: calc(100dvh - 52px); background: var(--bg);
    padding: 8px 24px 24px; font-size: 28px; font-weight: 600; letter-spacing: -.02em;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-links a { display: block; padding: 10px 0; color: var(--text); }
  header.open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  header.open { background: var(--bg); }
  body.menu-open { overflow: hidden; }
  .sec { padding: 52px 0; }
  .light + .light { padding-top: 0; }
  .h-section { margin: 8px 0 10px; }
  .lead { font-size: 17px; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 46px; margin: 14px auto 16px; }
  .hero-cities { font-size: 12px; }
  .hero-actions { margin-top: 26px; }
  .stage { aspect-ratio: 16 / 10; margin-top: 36px; border-radius: 22px 22px 0 0; }
  .pix { grid-template-columns: repeat(12, 1fr); gap: 5px; padding: 6% 5%; }
  .pix b:nth-child(n+73) { display: none; }

  /* Форматы — горизонтальная лента со свайпом вместо семи карточек столбиком */
  .tiles {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
    margin: 28px -16px 0; padding: 4px 16px 10px; scroll-padding-inline: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tiles::-webkit-scrollbar { display: none; }
  .tile, .tile.wide { grid-column: auto; }
  .tile { min-height: 270px; padding: 26px 22px 22px; border-radius: 22px; scroll-snap-align: start; }
  .tile h3 { font-size: 26px; }
  .tile p { font-size: 15px; }
  .tile:hover { transform: none; }
  .tile .glyph { display: none; }

  /* Преимущества и шаги — компактными строками: значок/номер слева, текст справа */
  .features, .steps { grid-template-columns: 1fr; }
  .features { margin-top: 28px; border-radius: 22px; }
  .feature { padding: 20px 96px 22px 20px; min-height: 0; }
  .feature .ico { right: -14px; bottom: -22px; width: 104px; height: 104px; }
  .feature h3 { font-size: 17px; margin-bottom: 4px; }
  .feature p { font-size: 14px; }
  .steps { gap: 10px; margin-top: 28px; }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 0 12px; padding: 18px 18px 20px; border-radius: 18px; }
  .step::before { grid-row: span 2; font-size: 32px; margin: 0; }
  .step h3 { font-size: 17px; margin-bottom: 4px; }
  .step p { font-size: 14px; }
  .seg { display: grid; width: 100%; }
  .seg button { padding: 9px 6px; font-size: 14px; }
  .city { margin-top: 20px; gap: 10px; }
  .city-list { gap: 10px; }
  .city-hero { padding: 24px 22px; min-height: 380px; border-radius: 22px; }
  .city-hero .coord { top: 24px; left: 24px; }
  .city-hero .credit { top: auto; bottom: 10px; right: 16px; font-size: 10px; }
  .city-item { padding: 16px 18px; border-radius: 16px; }
  .city-item h4 { font-size: 17px; }
  .city-item p { font-size: 14px; }
  .lead-grid { gap: 28px; }
  .contacts { margin-top: 22px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  form { padding: 22px 14px 24px; border-radius: 22px; }
  .segmented span { font-size: 14px; padding: 6px 2px; }
  .join { border-radius: 22px; padding: 28px 22px; gap: 20px; }
  .join .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .footer-bottom { flex-direction: column; }
  .footer-in { padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); }
}

/* ===== Специалисты: общие карточки (главная + каталог) ===== */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.person {
  display: flex; flex-direction: column; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--light-card); border: 0; border-radius: 24px; padding: 0; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.person:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.28); }
.person:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(255,122,0,.45); }
.person-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #111113; }
.person-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transition: transform .8s var(--ease); }
.person:hover .person-media img { transform: scale(1.04); }
.person-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.person-cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.person-name { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.person-role { font-size: 15px; color: var(--ink-muted); line-height: 1.4; }
.person-city { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--ink-muted); display: flex; align-items: center; gap: 6px; }
.person-city::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.badge-demo { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 4px 10px; }

/* Лента специалистов на главной — листается вбок, как карусели на apple.com */
.rail {
  --edge: max(22px, calc((100vw - var(--wrap)) / 2 + 22px));
  display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 280px; gap: 20px;
  margin-top: 36px; padding: 8px var(--edge) 24px; scroll-padding-inline: var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 0; }
.rail .person { scroll-snap-align: start; }
/* Компьютер: лента живёт в колонке контента — целое число карточек от края до края,
   края мягко гаснут, чтобы было видно, что ленту можно листать. На планшете и телефоне — лента «в край», как на apple.com */
@media (min-width: 1100px) {
  .rail {
    --cols: 4;
    max-width: var(--wrap); margin-inline: auto; padding: 8px 22px 24px; scroll-padding-inline: 22px;
    grid-auto-columns: calc((100% - (var(--cols) - 1) * 20px) / var(--cols));
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  }
}
@media (min-width: 1500px) { .rail { --cols: 5; } }
.rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.rail-nav { display: flex; gap: 14px; }
.rail-btn, .sheet-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #e8e8ed; color: var(--ink); transition: background .2s var(--ease), opacity .2s var(--ease), transform .15s var(--ease);
}
.rail-btn:hover:not(:disabled), .sheet-arrow:hover:not(:disabled) { background: #dcdce1; }
.rail-btn:active:not(:disabled), .sheet-arrow:active:not(:disabled) { transform: scale(.94); }
.rail-btn:disabled, .sheet-arrow:disabled { opacity: .35; cursor: default; }
.rail-btn:focus-visible, .sheet-arrow:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(255,122,0,.45); }

/* Заглушка вместо фото: инициалы + «пиксели» логотипа */
.ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, rgba(255,122,0,.38), transparent 60%), linear-gradient(180deg, #1b1b1e, #0f0f11); }
.ph span { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 7vw, 84px); letter-spacing: -.04em; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.ph b { position: absolute; border-radius: 22%; background: var(--grad); }

/* ===== Каталог ===== */
.page-hero { text-align: center; padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 700px; z-index: -1;
  background: radial-gradient(560px 340px at 50% 40%, rgba(255,122,0,.2), transparent 70%); }
.page-hero h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -.035em; margin: 16px auto 20px; max-width: 900px; }
.catalog { padding: clamp(28px, 5vw, 48px) 0 clamp(48px, 7vw, 88px); min-height: 60vh; }
.filters { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; cursor: pointer;
  background: #fff; border: 0; border-radius: 999px; padding: 9px 18px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(255,122,0,.45); }
.chip .n { color: var(--ink-muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: rgba(255,255,255,.6); }
.filters .seg { margin-top: 0; }
.empty { text-align: center; color: var(--ink-muted); font-size: 17px; padding: 60px 0; }
.empty[hidden] { display: none; }

/* ===== Карточка-окно (sheet) ===== */
/* Сам dialog прозрачный и не обрезает содержимое — чтобы стрелки листания стояли снаружи, по бокам карточки */
dialog.sheet {
  width: min(1040px, calc(100% - 200px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 28px;
  background: transparent; color: var(--ink); overflow: visible;
}
dialog.sheet[open] { animation: sheetIn .45s var(--ease); }
dialog.sheet::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
/* Главное фото стоит на месте, прокручивается только правая колонка с описанием и портфолио */
.sheet-in { display: grid; grid-template-columns: 1fr 1.1fr; max-height: calc(100dvh - 48px); overflow: hidden;
  background: #fff; border-radius: 28px; box-shadow: 0 50px 120px -30px rgba(0,0,0,.6); }
.sheet-side {
  position: absolute; top: 50%; z-index: 3; width: 56px; height: 56px; margin-top: -28px;
  background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sheet-side:hover:not(:disabled) { background: rgba(255,255,255,.3); }
.sheet-side:disabled { opacity: .25; }
.sheet-side.prev { left: -84px; }
.sheet-side.next { right: -84px; }
.sheet-pager .sheet-arrow { display: none; } /* на компьютере листаем боковыми стрелками, внизу остаётся счётчик */
.sheet-media { position: relative; min-height: 520px; background: #111113; }
.sheet-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sheet-media .ph span { font-size: 120px; }
.sheet-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 6px; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.sheet-body > * { flex-shrink: 0; } /* колонка ограничена по высоте — блоки не должны ужиматься, только прокручиваться */
.sheet-body h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin: 6px 0 4px; }
.sheet-role { font-size: 19px; color: var(--ink-muted); }
.sheet-about { font-size: 17px; line-height: 1.5; margin: 18px 0 0; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sheet-meta span { font-size: 13px; background: var(--light); border-radius: 999px; padding: 6px 12px; }
.sheet-meta .loc { background: rgba(255,122,0,.1); color: var(--accent-ink); font-weight: 500; }
.sheet-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
.sheet-gallery .shot, .sheet-gallery div { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--light); position: relative; }
.sheet-gallery .shot { border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; }
.sheet-gallery .shot:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(255,122,0,.5); }
.sheet-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.sheet-gallery .shot:hover img { transform: scale(1.06); }
.sheet-gallery div { display: grid; place-items: center; color: #c7c7cc; }
.sheet-video { margin-top: 26px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.sheet-video.vertical { aspect-ratio: 9 / 16; width: min(100%, 320px); }
.sheet-video video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.badge-video { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 4px 10px; }
.sheet-gallery-title { font-size: 13px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; margin: 28px 0 -14px; }
.sheet-actions { margin-top: 30px; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s;
}
.sheet-close:hover { background: rgba(0,0,0,.75); }

.sheet-pager { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sheet-count { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.sheet-in.swap { animation: swap .35s var(--ease); }
.sheet-in.swap-back { animation: swapBack .35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateX(28px); } }
@keyframes swapBack { from { opacity: 0; transform: translateX(-28px); } }

/* ===== Просмотр фото (lightbox) ===== */
dialog.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0a0a0b; color: #fff; overflow: hidden;
}
dialog.lightbox[open] { animation: lbIn .3s var(--ease); }
dialog.lightbox::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } }
.lb-stage { margin: 0; position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 88px 56px; }
.lb-img { width: auto; height: auto; max-width: calc(100vw - 176px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); user-select: none; -webkit-user-drag: none; }
.lb-img.swap { animation: swap .35s var(--ease); }
.lb-img.swap-back { animation: swapBack .35s var(--ease); }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s var(--ease), transform .15s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn:active { transform: scale(.94); }
.lb-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(255,122,0,.6); }
.lb-close { top: 16px; right: 16px; width: 40px; height: 40px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:active, .lb-next:active { transform: scale(.94); }
.lb-count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 14px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }

@media (max-width: 760px) {
  .people { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
  .person { border-radius: 18px; }
  .person-body { padding: 14px 14px 16px; }
  .person-name { font-size: 17px; }
  .person-role { font-size: 13px; }
  .person-cat { font-size: 10px; }
  .person-city { font-size: 12px; padding-top: 10px; }
  .ph span { font-size: 44px; }
  .chips { justify-content: flex-start; width: calc(100% + 32px); margin: 0 -16px; padding: 4px 16px; }
  dialog.sheet { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .sheet-side { display: none; }
  .sheet-pager .sheet-arrow { display: grid; }
  dialog.sheet[open] { animation: sheetUp .45s var(--ease); }
  @keyframes sheetUp { from { transform: translateY(40%); opacity: 0; } }
  .sheet-in { display: block; max-height: 92dvh; border-radius: 22px 22px 0 0; overflow-y: auto; overscroll-behavior: contain; }
  .sheet-body { max-height: none; overflow: visible; }
  .sheet-media { min-height: 0; aspect-ratio: 4 / 3; }
  .sheet-media .ph span { font-size: 80px; }
  .sheet-actions .btn { width: 100%; }
  .sheet-pager { width: 100%; justify-content: space-between; margin-left: 0; }
  .lb-stage { padding: 60px 0 64px; }
  .lb-img { border-radius: 0; max-width: 100vw; max-height: calc(100dvh - 124px); }
  .lb-prev, .lb-next { top: auto; bottom: 8px; margin-top: 0; width: 44px; height: 44px; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-count { bottom: 20px; }
  .rail { grid-template-columns: none; grid-auto-columns: 74%; gap: 12px; margin-top: 32px; }
  .rail-nav { gap: 10px; }
}
@media (max-width: 340px) {
  .people:not(.rail) { grid-template-columns: 1fr; }
}
