@import url('/fonts/inter/inter.css');

:root {
  --bg: #0b0b0f;
  --surface: #14141b;
  --surface-2: #1c1c25;
  --line: rgba(255, 255, 255, .09);
  --text: #f3f3f6;
  --muted: #a3a3b2;
  --accent: #d7ff1f;
  --accent-ink: #0b0b0f;
  --hot: #ff4f8b;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --prose: 720px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.03em; font-weight: 850; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 32px; height: 32px; flex: none; }
.logo__txt { font-weight: 850; font-size: 19px; letter-spacing: -.03em; white-space: nowrap; }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 750; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #e6ff6a; }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .22); }
.btn--ghost:hover { border-color: var(--text); }
.btn--soon { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: default; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; line-height: 1.2;
  background: rgba(11, 11, 15, .72); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chip--accent { background: var(--accent); color: var(--accent-ink); }
.chip--hot { background: var(--hot); color: #fff; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 750;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(215, 255, 31, .16), transparent 70%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 900; }
.hero h1 mark { background: none; color: var(--accent); }
.hero__lead { margin: 22px 0 30px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero__facts li::before { content: '✓'; color: var(--accent); font-weight: 800; margin-right: 8px; }

/* phone frame */
.phone {
  position: relative; width: min(100%, 320px); margin: 0 auto; aspect-ratio: 9 / 16;
  border-radius: 36px; padding: 10px; background: #1b1b22;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .55), 0 0 120px rgba(215, 255, 31, .10);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: #000; }
.phone .chip { position: absolute; left: 22px; top: 22px; }

/* ---------- sections ---------- */
.sec { padding: 56px 0; }
.sec--tight { padding-top: 24px; }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec__head h2 { font-size: clamp(28px, 4vw, 42px); }
.sec__head p { margin: 10px 0 0; color: var(--muted); max-width: 40em; }

/* template catalog */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tpl { display: flex; flex-direction: column; gap: 12px; }
.tpl__media {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.tpl__media video, .tpl__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tpl:hover .tpl__media video, .tpl:hover .tpl__media img { transform: scale(1.03); }
.tpl__tl { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tpl__br { position: absolute; right: 12px; bottom: 12px; }
.tpl h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.tpl p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.tpl__act { margin-top: auto; display: grid; gap: 8px; }
.tpl__link { display: inline-block; margin-top: 2px; font-size: 14px; font-weight: 650; color: var(--accent); text-decoration: none; }
.tpl__link:hover { text-decoration: underline; }
.tpl--next .tpl__media {
  display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px;
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px);
  border-style: dashed;
}
.tpl--next .tpl__media b { font-size: 46px; line-height: 1; color: var(--accent); }

/* steps (how it works) */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: how; margin: 0; padding: 0; list-style: none; }
.how li {
  counter-increment: how; position: relative; padding: 26px 24px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.how li::before {
  content: counter(how); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 19px;
}
.how h3 { font-size: 20px; margin-bottom: 8px; }
.how p { margin: 0; color: var(--muted); font-size: 15px; }

/* article cards */
.post { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.post:hover { border-color: rgba(215, 255, 31, .5); }
.post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.post h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 10px 0 10px; }
.post p { color: var(--muted); margin: 0 0 14px; }
.post__more { font-weight: 750; color: var(--accent); }

/* ---------- article ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.art { padding: 40px 0 24px; }
.art__head { max-width: var(--prose); margin: 0 auto 30px; }
.art__head h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 900; }
.art__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.art__lead { margin-top: 20px; font-size: 19px; color: #d6d6de; }
.prose { max-width: var(--prose); margin: 0 auto; }
.prose h2 { font-size: clamp(25px, 3.4vw, 34px); margin: 2.1em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.6em 0 .5em; letter-spacing: -.02em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: #fff; }
.prose code {
  font: 600 .88em ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  padding: 2px 7px; border-radius: 7px; background: var(--surface-2); color: #fff; white-space: nowrap;
}
.kbd { display: inline-block; padding: 1px 8px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .25); font-weight: 650; font-size: .92em; white-space: nowrap; }

.media-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; margin: 0 auto 10px; }
.media-duo figure { margin: 0; }
.media-duo figcaption, .shot figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.45; text-align: center; }

.need { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.need li { margin: 0; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.need b { display: block; margin-bottom: 4px; font-size: 16px; color: #fff; }

.step { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; margin: 2.2em 0; padding-top: 2em; border-top: 1px solid var(--line); }
.step--noshot { grid-template-columns: 1fr; }
.step__n { display: inline-block; margin-bottom: 10px; color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.step h2 { margin-top: 0; }
.step p:last-child { margin-bottom: 0; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }

.note { margin: 1.4em 0; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border-left: 4px solid var(--accent); font-size: 16px; }
.note--warn { border-left-color: var(--hot); }
.note p:last-child { margin: 0; }

.prompt { margin: 1.2em 0 1.4em; border-radius: var(--radius-sm); background: #08080b; border: 1px solid var(--line); overflow: hidden; }
.prompt__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); font-weight: 600; }
.prompt pre { margin: 0; padding: 16px; max-height: 340px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 14px/1.6 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; color: #e8e8ee; }
.copy { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.copy[data-done] { background: #fff; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 750; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 28px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: #d6d6de; }

.cta {
  max-width: var(--prose); margin: 3em auto 0; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(215, 255, 31, .14), rgba(255, 79, 139, .10)); border: 1px solid rgba(215, 255, 31, .3);
}
.cta h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 10px; }
.cta p { color: #d6d6de; }

/* ---------- 404 ---------- */
.nf { padding: 90px 0; text-align: center; }
.nf b { display: block; font-size: clamp(90px, 18vw, 180px); line-height: 1; font-weight: 900; color: var(--accent); letter-spacing: -.05em; }
.nf h1 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 14px; }
.nf p { color: var(--muted); }
.nf .hero__cta { justify-content: center; margin-top: 26px; }

/* ---------- footer ---------- */
.ftr { margin-top: 56px; border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: 15px; }
.ftr__in { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; }
.ftr__brand .logo__txt { color: var(--text); }
.ftr__brand p { margin: 6px 0 0; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: start; }
.ftr__nav a { text-decoration: none; }
.ftr__nav a:hover { color: var(--text); }
.ftr__note { grid-column: 1 / -1; margin: 0; font-size: 13px; opacity: .8; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .how { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .shot { max-width: 300px; }
  .shot--wide { max-width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .logo__txt { font-size: 17px; }
  .nav a { padding: 7px 11px; font-size: 14px; }
  .hero__cta .btn { width: 100%; }
  .sec { padding: 40px 0; }
  .sec__head { display: block; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tpl h3 { font-size: 16px; }
  .tpl p { font-size: 13px; }
  .tpl__tl .chip, .tpl__br .chip { font-size: 11px; padding: 4px 8px; }
  .post { grid-template-columns: 1fr; }
  .post img { aspect-ratio: 16 / 10; }
  .media-duo { grid-template-columns: 1fr; max-width: 340px; }
  .need { grid-template-columns: 1fr; }
  .art__lead { font-size: 17px; }
  .ftr__in { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.sr-copy { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---------- страница шаблона ---------- */
.tp { padding: 36px 0 10px; }
.tp__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.tp__video { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.tp__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.tp__chips .chip { background: var(--surface-2); }
.tp h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 900; }
.tp__lead { margin: 16px 0 22px; color: #d6d6de; font-size: 18px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; }
.price b { font-size: 40px; font-weight: 900; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 15px; }
.box { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.box h2 { font-size: 22px; margin-bottom: 8px; }
.box p { color: #d6d6de; font-size: 16px; }
.box p:last-child { margin-bottom: 0; }
.box--accent { border-color: rgba(215, 255, 31, .35); }
[hidden] { display: none !important; }

/* загрузка фото */
.upl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.upl__tile {
  position: relative; display: grid; place-content: center; gap: 6px; aspect-ratio: 3 / 4; padding: 12px;
  border-radius: 16px; border: 2px dashed rgba(255, 255, 255, .2); background: var(--surface-2);
  text-align: center; cursor: pointer; overflow: hidden; transition: border-color .15s;
}
.upl__tile:hover, .upl__tile:focus-within { border-color: var(--accent); }
.upl__tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upl__tile b { font-size: 15px; }
.upl__tile small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.upl__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upl__tile.is-set { border-style: solid; border-color: var(--accent); }
.upl__tile.is-set b, .upl__tile.is-set small { display: none; }
.upl__plus { font-size: 34px; line-height: 1; color: var(--accent); font-weight: 300; }
.field { display: grid; gap: 6px; margin: 12px 0; font-size: 15px; }
.field input[type=email] {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; outline: none;
}
.field input[type=email]:focus { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { margin: 10px 0 0; color: #ff8fb0; font-weight: 600; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: wait; }

.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tips li { padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: #d6d6de; }
.tips b { display: block; margin-bottom: 6px; color: #fff; font-size: 16px; }

/* ---------- страница заказа ---------- */
.ord { padding: 40px 0 10px; }
.ord__in { max-width: 820px; margin: 0 auto; }
.ord h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; }
.ord__sub { color: var(--muted); margin: 10px 0 26px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: st; }
.steps li {
  counter-increment: st; position: relative; padding: 14px 14px 14px 46px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 650; font-size: 15px;
}
.steps li::before {
  content: counter(st); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px;
  background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 800;
}
.steps li.is-done { color: var(--text); }
.steps li.is-done::before { content: '✓'; background: var(--accent); color: var(--accent-ink); }
.steps li.is-now { color: var(--text); border-color: var(--accent); }
.steps li.is-now::before { background: var(--accent); color: var(--accent-ink); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.ord__video { border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); margin-bottom: 18px; }
.ord__video video { width: 100%; aspect-ratio: 16 / 9; }
.ord__act { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ord__link { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.ord__link code { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); color: #fff; word-break: break-all; }

@media (max-width: 900px) {
  .tp__grid { grid-template-columns: 1fr; gap: 26px; }
  .tips { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
a.tpl__media { display: block; }
