:root {
  --void: #000000;
  --bone: #ffffff;
  --ash: #9a9a9a;
  --mist: #bdbdbd;
  --iris: #8052ff;
  --iris-hi: #9370ff;
  --saffron: #ffb829;
  --verdant: #15846e;
  --hair: rgba(255, 255, 255, 0.09);
  --radius: 24px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01' on;
  font-weight: 200;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--iris); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.field { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .foot, .nav { position: relative; z-index: 1; }

/* ——— Типографика ——— */
.display, .h-lg, .h-md { font-weight: 400; margin: 0; letter-spacing: -0.04em; }
.display { font-size: clamp(46px, 8.2vw, 113px); line-height: 0.98; }
.h-lg { font-size: clamp(38px, 5.6vw, 78px); line-height: 1.02; }
.h-md { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.label {
  margin: 0 0 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--saffron);
}
.lead { font-size: clamp(18px, 1.6vw, 22px); font-weight: 200; color: var(--bone); max-width: 34ch; margin: 28px 0 0; }
.body { margin: 0 0 18px; color: var(--bone); max-width: 52ch; }
.muted { color: var(--mist); }
.cap { margin: 30px 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }

/* ——— Кнопки ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 45px; padding: 0 22px; border-radius: 22.5px;
  background: var(--iris); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--iris-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.ghost { font-size: 14px; font-weight: 400; color: var(--ash); transition: color 0.2s; }
.ghost:hover { color: var(--bone); }

/* ——— Навигация ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}
.nav.is-scrolled { background: rgba(0, 0, 0, 0.82); padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; font-size: 17px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 34px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--hair); }
.lang button {
  height: 30px; min-width: 36px; padding: 0 9px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ash); transition: color 0.2s, background 0.2s;
}
.lang button:hover { color: var(--bone); }
.lang button[aria-pressed='true'] { background: var(--bone); color: var(--void); }
.nav-links a {
  font-size: 14px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--ash);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--bone); }

/* ——— Hero ——— */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 60px; overflow: hidden; }
/* Холст мозга на весь первый экран: мозг сам переезжает справа налево */
.hero-visual { position: absolute; inset: 0; }
.hero-visual canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
/* Затемнение под текстом слева, исчезает в режиме проекта */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 34%, transparent 55%);
  transition: opacity 0.8s var(--ease);
}
.hero > * { z-index: 1; }
.hero-visual { z-index: 0; }
.hero-copy { position: relative; pointer-events: none; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), filter 0.6s; }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.hero-copy .display { max-width: 9.5ch; }
.hero.is-focus::before { opacity: 0; }
.hero.is-focus .hero-copy { opacity: 0; transform: translateX(-90px); filter: blur(6px); }
.hero.is-focus .hero-copy * { pointer-events: none !important; }
.hint { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 14px; color: var(--ash); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--iris); box-shadow: 0 0 0 0 rgba(128, 82, 255, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(128, 82, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(128, 82, 255, 0); } }
.hero-stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: 54px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b { font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: var(--ash); font-weight: 400; }

/* Подсказка над узлом */
.tip {
  position: fixed; z-index: 30; pointer-events: none;
  width: 260px; padding: 16px 18px; border-radius: 18px;
  background: rgba(10, 10, 12, 0.92); border: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 4px;
  transform: translate(18px, -50%);
  animation: tipIn 0.22s var(--ease);
}
.tip[hidden] { display: none; }
@keyframes tipIn { from { opacity: 0; transform: translate(10px, -50%) scale(0.97); } }
.tip-kind { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--saffron); }
.tip-name { font-weight: 400; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.tip-short { font-size: 14px; color: var(--mist); line-height: 1.4; }
.tip-cta { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--iris-hi); }

/* ——— Секции ——— */
.section { padding-top: clamp(80px, 11vw, 150px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head .body { margin: 0; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--rev .split-a { order: 2; }
.split--rev .split-b { order: 1; }

/* Фильтры */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 9999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ash);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: color 0.2s, box-shadow 0.2s, background 0.2s;
}
.chip:hover { color: var(--bone); }
.chip.is-on { color: var(--void); background: var(--bone); box-shadow: none; }

/* Список проектов */
.rows { list-style: none; margin: 0; padding: 0; }
.row { border-top: 1px solid var(--hair); }
.row:last-child { border-bottom: 1px solid var(--hair); }
.row.is-hidden { display: none; }
.row-btn {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 56px 1fr auto auto 32px; align-items: center; gap: 24px;
  padding: 30px 0;
  transition: padding 0.4s var(--ease);
}
.row-idx { font-size: 13px; font-weight: 600; color: var(--ash); letter-spacing: 0.05em; }
.row-name { display: flex; align-items: center; gap: 18px; font-weight: 400; font-size: clamp(26px, 3.4vw, 48px); letter-spacing: -0.035em; line-height: 1.1; }
.row-tri {
  width: 16px; height: 14px; flex: none; background: var(--c);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.85; transition: transform 0.5s var(--ease);
}
.row-kind { font-size: 14px; color: var(--mist); font-weight: 200; text-align: right; }
.row-year { font-size: 14px; color: var(--ash); font-weight: 400; }
.row-arrow { font-size: 22px; color: var(--ash); transition: transform 0.4s var(--ease), color 0.2s; }
.row-btn:hover, .row-btn:focus-visible { padding-left: 14px; }
.row-btn:hover .row-tri { transform: rotate(180deg) scale(1.25); }
.row-btn:hover .row-arrow { transform: translateX(6px); color: var(--bone); }
.row--slot .row-name { color: var(--ash); }
.row--slot .row-tri { background: none; box-shadow: none; outline: 1px dashed var(--ash); clip-path: none; width: 12px; height: 12px; transform: rotate(45deg); }

.row-star { color: var(--saffron); }
.feat-links { display: flex; gap: 28px; flex-wrap: wrap; }

/* Метрики */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; margin: 36px 0; }
.metrics div { margin: 0; }
.metrics dt { font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.04em; line-height: 1.05; }
.metrics dd { margin: 4px 0 0; font-size: 14px; color: var(--ash); font-weight: 400; }
.metrics--sm dt { font-size: 32px; }

/* Услуги */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.services h3, .steps h3, .prices h3 { margin: 0 0 6px; font-weight: 400; font-size: clamp(22px, 2vw, 27px); letter-spacing: -0.02em; line-height: 1.2; }
.services p, .steps p { margin: 0; color: var(--mist); font-size: 17px; }

/* Цены */
.prices { list-style: none; margin: 0; padding: 0; }
.price {
  display: grid; grid-template-columns: 1.2fr 1.4fr 0.6fr auto; gap: 28px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--hair);
}
.price:last-child { border-bottom: 1px solid var(--hair); }
.price p { margin: 0; color: var(--mist); font-size: 16px; }
.price-term { font-size: 14px; color: var(--ash); font-weight: 400; }
.price-val { font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; white-space: nowrap; text-align: right; }
.price-val small { font-size: 14px; color: var(--ash); letter-spacing: 0; margin-right: 6px; font-weight: 400; }
.price-val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.price-old { font-size: 15px; color: var(--ash); letter-spacing: 0; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 184, 41, 0.8); }
.price-now { white-space: nowrap; }
.price-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--saffron); }
.price--accent .price-now { color: var(--saffron); }

/* Процесс */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.steps span { display: block; font-size: 13px; font-weight: 600; color: var(--iris-hi); letter-spacing: 0.06em; margin-bottom: 18px; }

/* Стек */
.stack { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li {
  padding: 7px 14px; border-radius: 9999px; font-size: 13px; font-weight: 400; color: var(--mist);
  box-shadow: inset 0 0 0 1px var(--hair);
}

/* Контакты */
.contact { padding-bottom: 40px; }
.contact .display { max-width: 12ch; }
.contact-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 44px; }
.contact-row .ghost { font-size: 16px; }

.foot { display: flex; justify-content: space-between; align-items: center; padding-top: 80px; padding-bottom: 40px; font-size: 13px; color: var(--ash); font-weight: 400; }

/* ——— Карточка проекта ——— */
.sheet {
  margin: 0 0 0 auto; height: 100%; max-height: none; width: min(640px, 100vw);
  padding: 0; border: 0; background: #050506; color: var(--bone);
  border-left: 1px solid var(--hair);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.6); }
.sheet[open] { animation: sheetIn 0.5s var(--ease); }
.sheet[open]::backdrop { animation: fade 0.4s var(--ease); }
.sheet.is-closing { animation: sheetOut 0.3s var(--ease) forwards; }
.sheet.is-closing::backdrop { animation: fade 0.3s reverse forwards; }
@keyframes sheetIn { from { transform: translateX(60px); opacity: 0; } }
@keyframes sheetOut { to { transform: translateX(60px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-body { padding: 72px clamp(22px, 5vw, 56px) 56px; }
.sheet-body .h-md { margin-bottom: 24px; }
.sheet-close {
  position: sticky; top: 16px; float: right; margin: 16px 16px 0 0;
  width: 44px; height: 44px; border-radius: 22px; font-size: 26px; line-height: 1; color: var(--ash);
  box-shadow: inset 0 0 0 1px var(--hair); background: #050506; z-index: 2;
}
.sheet-close:hover { color: var(--bone); }
.done { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.done li { position: relative; padding-left: 24px; color: var(--mist); font-size: 16px; }
.done li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 9px; height: 8px; background: var(--c, var(--iris)); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sheet-actions { display: flex; gap: 24px; align-items: center; margin-top: 40px; flex-wrap: wrap; }

/* ——— Режим проекта ——— */
.focus {
  position: absolute; z-index: 2; top: 92px; bottom: 28px;
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  width: min(48vw, 640px);
  display: flex; align-items: center;
  opacity: 0; visibility: hidden; transform: translateX(60px);
  transition: opacity 0.55s var(--ease), transform 0.8s var(--ease), visibility 0s linear 0.8s;
}
.hero.is-focus .focus {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.7s var(--ease) 0.25s, transform 0.9s var(--ease) 0.2s, visibility 0s;
}
.focus.is-switch .focus-inner { opacity: 0; transform: translateY(10px); }
.focus-inner {
  width: 100%; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding-right: 6px; transition: opacity 0.18s, transform 0.25s var(--ease);
}
.focus-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.focus .label { color: var(--c, var(--saffron)); margin-bottom: 10px; }
.focus .h-md { margin-bottom: 20px; }
.focus .body { color: var(--mist); font-size: 17px; margin: 22px 0 0; max-width: none; }
.metrics--row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px; margin: 24px 0 8px; }
.metrics--row dt { font-size: 28px; }
.metrics--row dd { font-size: 13px; }
.done-box { margin-top: 14px; }
.done-box summary { cursor: pointer; list-style: none; margin: 8px 0 12px; }
.done-box summary::-webkit-details-marker { display: none; }
.done-box summary::after { content: ' +'; }
.done-box[open] summary::after { content: ' −'; }
.focus .stack { margin-top: 16px; }
.focus-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 26px; }

/* Галерея скриншотов */
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: #0a0a0c; }
.gal-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 16 / 10; outline: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; user-select: none; }
.slide--tall { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c, #8052ff) 18%, #0a0a0c), #0a0a0c 70%); }
.slide--tall img { object-fit: contain; padding: 14px 0; }
.slide--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--ash); font-size: 14px; font-weight: 400; text-align: center; padding: 24px; }
.empty-tri { width: 64px; height: 56px; background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: 0.85; filter: drop-shadow(0 0 24px var(--c)); }
.gal-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 22px; font-size: 26px; line-height: 1;
  background: rgba(0, 0, 0, 0.55); color: #fff; opacity: 0; transition: opacity 0.25s, background 0.2s;
}
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gallery:hover .gal-btn, .gal-btn:focus-visible { opacity: 1; }
.gal-btn:hover { background: rgba(0, 0, 0, 0.8); }
.gal-btn[hidden] { display: none; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.gal-dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); pointer-events: auto; transition: background 0.2s, transform 0.2s; }
.gal-dots button.on { background: #fff; transform: scale(1.25); }
@media (hover: none) { .gal-btn { opacity: 0.85; } }

/* ——— Окно контактов ——— */
html.cp-lock { overflow: hidden; }
.cp {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto; overscroll-behavior: contain;
  background: #000;
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path 0.75s cubic-bezier(0.7, 0, 0.2, 1);
}
.cp.is-open { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); }
.cp[hidden] { display: none; }
.cp-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cp-inner {
  position: relative; min-height: 100%; max-width: 1120px; margin: 0 auto;
  padding: 110px var(--gutter) 60px; display: flex; flex-direction: column; justify-content: center;
}
.cp-inner > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.cp.is-open .cp-inner > * { opacity: 1; transform: none; }
.cp.is-open .cp-inner > :nth-child(1) { transition-delay: 0.3s; }
.cp.is-open .cp-inner > :nth-child(2) { transition-delay: 0.38s; }
.cp.is-open .cp-inner > :nth-child(3) { transition-delay: 0.46s; }
.cp.is-open .cp-inner > :nth-child(4) { transition-delay: 0.56s; }
.cp.is-open .cp-inner > :nth-child(5) { transition-delay: 0.7s; }
.cp-title { font-size: clamp(42px, 6.4vw, 92px); max-width: 13ch; }
.cp-lead { max-width: 40ch; }
.cp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.cp-card {
  position: relative; padding: 32px 32px 28px; border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.62); box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow 0.3s, transform 0.4s var(--ease);
}
.cp-card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-3px); }
.cp-tri { display: block; width: 22px; height: 19px; background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 0 14px var(--c)); margin-bottom: 22px; }
.cp-cap { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); }
.cp-value { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.2; color: var(--bone); overflow-wrap: anywhere; }
.cp-value:hover { color: var(--c); }
.cp-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.cp-pill {
  display: inline-flex; align-items: center; height: 45px; padding: 0 22px; border-radius: 22.5px;
  box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase;
  transition: box-shadow 0.2s, color 0.2s;
}
.cp-pill:hover { box-shadow: inset 0 0 0 1px var(--c); color: var(--c); }
.cp-note { margin: 30px 0 0; font-size: 14px; color: var(--ash); font-weight: 400; }
.cp-close {
  position: fixed; top: 18px; right: var(--gutter); z-index: 2; width: 46px; height: 46px; border-radius: 23px;
  font-size: 26px; line-height: 1; color: var(--ash); box-shadow: inset 0 0 0 1px var(--hair); background: #000;
  transition: color 0.2s, transform 0.3s var(--ease);
}
.cp-close:hover { color: var(--bone); transform: rotate(90deg); }
@media (max-width: 760px) {
  .cp-inner { padding-top: 84px; justify-content: flex-start; }
  .cp-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .cp-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp, .cp-inner > * { transition: none; }
}

/* ——— Появление при скролле ——— */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot { animation: none; }
}

/* ——— Адаптив ——— */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .focus { width: min(52vw, 560px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price { grid-template-columns: 1fr auto; gap: 6px 20px; }
  .price p { grid-column: 1 / -1; grid-row: 2; }
  .price-term { grid-column: 1; grid-row: 3; }
  .price-val { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { padding: 12px 16px; }
  .logo span { font-size: 15px; }
  .btn { height: 40px; padding: 0 16px; font-size: 12px; }
  .hero { flex-direction: column; align-items: stretch; padding: 76px 0 20px; min-height: 0; }
  .hero-visual { position: relative; inset: auto; width: 100%; height: min(84vw, 400px); order: 1; margin: -8px 0 4px; }
  .hero::before { display: none; }
  .hero-copy { order: 2; }
  .hero.is-focus .hero-copy { display: none; }
  .focus { position: relative; order: 3; inset: auto; width: auto; padding: 0 16px; transform: translateY(30px); display: none; }
  .hero.is-focus .focus { display: flex; }
  .focus { scroll-margin-top: 72px; }
  .focus-inner { max-height: none; overflow: visible; padding-right: 0; }
  .nav-right { gap: 8px; }
  .nav-right .btn { display: none; }
  .lang button { min-width: 32px; padding: 0 7px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; margin-top: 32px; }
  .hero-stats b { font-size: 24px; }
  .hero-stats span { font-size: 12px; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split-a, .split--rev .split-b { order: 0; }
  .row-btn { grid-template-columns: 1fr 24px; gap: 4px 12px; padding: 22px 0; }
  .row-idx, .row-year { display: none; }
  .row-kind { grid-row: 2; text-align: left; font-size: 13px; }
  .row-arrow { grid-row: 1 / span 2; grid-column: 2; }
  .row-btn:hover, .row-btn:focus-visible { padding-left: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .price { grid-template-columns: 1fr; gap: 6px; }
  .price h3, .price p, .price-term, .price-val { grid-column: 1; grid-row: auto; }
  .price-val { align-items: flex-start; margin-top: 10px; white-space: normal; }
  .price-tag { white-space: normal; }
  .metrics { gap: 22px 16px; }
  .tip { display: none !important; }
}
