/* Лендинг Zakazo. Тёмная тема, спокойная типографика, реальные скриншоты продукта. */
:root {
  --bg: #0f0f0e;
  --bg-2: #141413;
  --card: #1a1a18;
  --line: rgba(241, 238, 230, .09);
  --text: #f1eee6;
  --muted: #9d9a92;
  --ink: #17130f;
  --accent: #e2541b;
  --accent-text: #ff8a52;
  --r-md: 18px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@supports (corner-shape: squircle) {
  :root { --r-md: 24px; --r-lg: 34px; }
  .btn, .card, .step, .col, .browser, .browser img, .nav.scrolled { corner-shape: squircle; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.logo { height: 22px; width: auto; color: var(--text); }
.logo-tile { fill: var(--text); }
.logo-z { fill: var(--bg); }

/* ---------- шапка ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 12px 0; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav-in { width: min(1120px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.nav-logo { margin-right: auto; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover, .nav-login:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 14px; color: var(--muted); }
.nav.scrolled { background: rgba(15, 15, 14, .94); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(1px)) {
  .nav.scrolled { background: rgba(15, 15, 14, .7); backdrop-filter: saturate(160%) blur(16px); }
  @media (prefers-reduced-transparency: reduce) { .nav.scrolled { background: rgba(15, 15, 14, .96); backdrop-filter: none; } }
}
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 500; font-size: 16px; border: 1px solid transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #ee6126; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { background: rgba(241, 238, 230, .06); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; }
:focus-visible:not(input):not(textarea):not(select) { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 28px; height: 28px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: min(760px, calc(100svh - 120px)); }
h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; max-width: 11ch; text-wrap: balance; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 30em; margin-top: 24px; text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.final .lead { margin-inline: auto; }
.final .cta-row { justify-content: center; }
@media (max-width: 900px) { .hero { padding-top: 104px; } .hero-in { grid-template-columns: 1fr; gap: 40px; min-height: 0; } }

/* ---------- iPhone ---------- */
/* Рамка — готовый PNG iPhone 16 Pro (титан, Dynamic Island, кнопки). Экран в нём прозрачный:
   скриншот лежит под рамкой. Размеры в em от ширины, 1em = --w / 100. */
.phone { --w: 300px; width: var(--w); font-size: calc(var(--w) / 100); aspect-ratio: 800 / 1605; position: relative; flex: none; filter: drop-shadow(0 2em 2.6em rgba(0, 0, 0, .45)); }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.screen { position: absolute; left: 7.25%; top: 3.61%; width: 85.5%; height: 92.77%; border-radius: 9.5em; overflow: hidden; background: #faf7f2; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.sb { position: absolute; inset: 0 0 auto 0; height: 2.75em; display: flex; justify-content: space-between; align-items: center; padding: .25em 1.9em 0 2.1em; color: #1b1612; font-size: 3.8em; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sb svg { fill: currentColor; height: .75em; width: auto; }
.sb .sb-r { display: flex; align-items: center; gap: .3em; }
.sb svg:nth-child(1) { width: 1.1em; } .sb svg:nth-child(2) { width: 1.05em; } .sb svg:nth-child(3) { width: 1.65em; height: .8em; }
.home { position: absolute; bottom: 1.6em; left: 50%; translate: -50% 0; width: 30em; height: 1.1em; border-radius: .6em; background: #1b1612; opacity: .9; }

.stage { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 2.4vw, 32px); align-self: end; margin-bottom: -160px; }
.stage .phone-side { margin-top: 96px; }
.stage .phone-main { margin-top: 24px; }
@media (max-width: 900px) { .stage { height: 440px; margin-bottom: 0; overflow: hidden; } .stage .phone-main { margin-top: 0; } .stage .phone-side { margin-top: 56px; } }
@media (max-width: 520px) { .stage .phone-side { display: none; } .stage .phone-main { --w: 260px !important; } }

/* ---------- секции ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
/* светлее фон секций сплавляется с основным плавно, без линий */
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { margin-bottom: 56px; max-width: 44rem; }
.head.center { text-align: center; margin-inline: auto; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.sub { color: var(--muted); font-size: clamp(17px, 2vw, 19px); margin-top: 18px; max-width: 34em; text-wrap: pretty; }
.sub.center { margin-inline: auto; }
.head .sub { margin-inline: 0; }
.head.center .sub { margin-inline: auto; }
h3 { font-size: 19px; letter-spacing: -.01em; line-height: 1.3; font-weight: 500; }

/* было / стало */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin-inline: auto; }
.col { padding: 34px 32px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.col h3 { margin-bottom: 22px; color: var(--muted); }
.col ul { display: grid; gap: 16px; }
.col li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.col li .i { margin-top: 2px; }
.col-yes { background: var(--card); border-color: rgba(241, 238, 230, .18); }
.col-yes h3 { color: var(--text); }
.col-yes li { color: var(--text); }
.col-yes li .i { color: var(--accent-text); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 32px 30px 34px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.num { display: block; font-size: 14px; color: var(--muted); margin-bottom: 44px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.num::before { content: '0'; }
.step p { color: var(--muted); margin-top: 10px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .num { margin-bottom: 24px; } }

/* витрина клиента */
.showcase { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.ticks { margin-top: 30px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { color: var(--accent-text); margin-top: 2px; }
.showcase-visual { display: flex; justify-content: center; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 56px; } }

/* окно браузера с панелью — целиком, без обрезки */
.browser { max-width: 1000px; margin-inline: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.browser-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; border-bottom: 1px solid var(--line); }
.dots { position: absolute; left: 16px; display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(241, 238, 230, .14); }
.url { padding: 4px 40px; border-radius: 8px; background: rgba(241, 238, 230, .06); font-size: 13px; color: var(--muted); }
.browser img { width: 100%; }
/* длинную страницу панели не режем, а плавно уводим в цвет фона страницы */
.shot { position: relative; }
.shot::after { content: ''; position: absolute; inset: auto 0 0 0; height: 24%; background: linear-gradient(180deg, rgba(250, 247, 242, 0), #faf7f2); pointer-events: none; }

/* возможности */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.grid .card { grid-column: span 2; }
.grid .card:nth-child(-n + 2) { grid-column: span 3; }
.card { padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); transition: border-color .25s var(--ease); }
.card:hover { border-color: rgba(241, 238, 230, .2); }
.card .ic { margin-bottom: 36px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } .grid .card, .grid .card:nth-child(-n + 2) { grid-column: auto; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .card .ic { margin-bottom: 22px; } }

/* финал */
.final { text-align: center; padding: clamp(90px, 12vw, 150px) 0; }
.final h2 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -.035em; }

.foot { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot .logo { height: 18px; }
.foot nav { display: flex; gap: 22px; margin-right: auto; flex-wrap: wrap; }
.foot nav a:hover { color: var(--text); }

/* появление при прокрутке (только когда JS включён) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
