/* PHOTO.ETAT — motion */

:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --bg-3: #1d1d20;
  --fg: #f2efe9;
  --fg-2: #a9a59e;
  --fg-3: #6c6964;
  --line: rgba(242, 239, 233, .12);
  --hot: #ff4d2e;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--hot); color: #fff; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

body[data-auth="0"] .auth-only,
body[data-auth="1"] .guest-only { display: none !important; }

/* ---------- Курсор ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--fg); mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .2s;
  display: grid; place-items: center;
}
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--hot); }
.cursor__label { font-size: 12px; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-big .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Кнопки ---------- */
.big-btn, .pill-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--fg); color: var(--bg); font-weight: 600;
}
.big-btn { height: 64px; padding: 0 36px; font-size: 17px; }
.pill-btn { height: 40px; padding: 0 20px; font-size: 14px; }
.big-btn::before, .pill-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--hot); transform: translateY(101%); transition: transform .5s var(--ease);
}
.big-btn:hover::before, .pill-btn:hover::before { transform: none; }
.big-btn:hover, .pill-btn:hover { color: #fff; }
.big-btn span, .pill-btn span { display: block; transition: transform .5s var(--ease); }
.big-btn--light { background: var(--fg); color: var(--bg); }
.big-btn--wide { width: 100%; }
.magnetic { will-change: transform; }

/* ---------- Шапка ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 32px; height: 72px; padding: 0 var(--pad);
  transition: background .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.bar.is-solid { background: rgba(11, 11, 12, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bar.is-hidden { transform: translateY(-100%); }
.bar__logo { font-weight: 800; font-size: 17px; letter-spacing: .04em; }
.bar__logo i, .foot__logo i { font-style: normal; color: var(--hot); font-size: .55em; vertical-align: middle; margin: 0 .25em; }
.bar__nav { display: flex; gap: 26px; margin-left: auto; }
.bar__nav a { font-size: 14px; color: var(--fg-2); transition: color .2s; }
.bar__nav a:hover { color: var(--fg); }
.bar__right { display: flex; align-items: center; gap: 18px; }
.bar__link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; color: var(--fg-2); }
.bar__link:hover { color: var(--fg); }
.bar__nav .bar__link { display: none; }
.bar__burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.bar__burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--fg); transition: transform .4s var(--ease), top .4s var(--ease); }
.bar__burger i:first-child { top: 15px; }
.bar__burger i:last-child { top: 23px; }
.bar__burger[aria-expanded="true"] i:first-child { top: 19px; transform: rotate(45deg); }
.bar__burger[aria-expanded="true"] i:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 112px var(--pad) 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 72px); align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: 10%; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,77,46,.22), transparent 70%); filter: blur(20px);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-8%, 10%) scale(1.15); } }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-family: var(--mono); font-size: 13px; color: var(--fg-2); letter-spacing: .02em;
}
.hero__live { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(255,77,46,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,77,46,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,46,0); } }
.hero__title { font-size: clamp(48px, 7.4vw, 132px); font-weight: 900; line-height: .9; letter-spacing: -0.055em; }
.line { display: block; overflow: hidden; padding-bottom: .05em; }
.line > span { display: inline-block; will-change: transform; }
.hero__outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.hero__lead { margin-top: 28px; max-width: 30em; font-size: 18px; color: var(--fg-2); }
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 40px; }
.hero__meta { font-size: 14px; color: var(--fg-3); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3);
}
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--fg-3), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Окно генерации */
.gen {
  position: relative; border-radius: 22px; background: rgba(22, 22, 25, .86);
  border: 1px solid rgba(242,239,233,.1);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-family: var(--mono); font-size: 12px; overflow: hidden;
}
.gen__top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.gen__dots { display: flex; gap: 6px; }
.gen__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c30; }
.gen__title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gen__tool { padding: 4px 10px; border-radius: 999px; background: rgba(255,77,46,.14); color: #ff8a73; white-space: nowrap; }
.gen__body { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.gen__side { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-right: 1px solid var(--line); min-width: 0; }
.gen__cap { color: var(--fg-3); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.gen__sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; min-height: 64px; }
.gen__sources img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.gen__sources img.is-single { grid-column: span 2; }
.gen__params { display: flex; flex-wrap: wrap; gap: 6px; min-height: 58px; align-content: flex-start; }
.gen__params span { padding: 5px 9px; border-radius: 7px; background: var(--bg-3); color: var(--fg); border: 1px solid var(--line); white-space: nowrap; }
.gen__params span b { font-weight: 400; color: var(--fg-3); }
.gen__prompt { min-height: 46px; padding: 9px 10px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); line-height: 1.45; }
.gen__prompt::before { content: "› "; color: var(--hot); }
.gen__caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--hot); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.gen__run { margin-top: auto; display: grid; gap: 8px; }
.gen__btn {
  display: grid; place-items: center; height: 40px; border-radius: 10px;
  background: var(--fg); color: var(--bg); font-family: var(--font); font-weight: 700; font-size: 14px;
  transition: transform .15s, background .2s;
}
.gen__btn.is-press { transform: scale(.95); background: var(--hot); color: #fff; }
.gen__btn.is-busy { background: var(--bg-3); color: var(--fg-2); }
.gen__bar { height: 3px; border-radius: 2px; background: var(--bg-3); overflow: hidden; }
.gen__bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--hot), #ffb199); }
.gen__status { display: flex; justify-content: space-between; color: var(--fg-3); }
.gen__out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.tile img, .tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile img { opacity: 0; }
.tile canvas { image-rendering: pixelated; opacity: 0; }
.tile__tag {
  position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 6px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 10px; letter-spacing: .06em; opacity: 0; transition: opacity .3s;
}
.tile.is-done .tile__tag { opacity: 1; }

/* ---------- Scan ---------- */
.scan { position: relative; height: 320vh; }
.scan__pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.scan__words { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scan__word {
  grid-area: 1 / 1; font-size: clamp(120px, 30vw, 520px); font-weight: 900; letter-spacing: -0.07em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(242,239,233,.18);
}
.scan__word--b { color: var(--fg); -webkit-text-stroke: 0; opacity: 0; }
.scan__card {
  position: relative; z-index: 2; width: min(380px, 68vw); aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden;
  box-shadow: 0 60px 120px -30px rgba(0,0,0,.8);
}
.scan__card canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scan__hud {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 11px; color: #fff;
}
.scan__hud span { padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); white-space: nowrap; }
.scan__log {
  position: absolute; z-index: 3; left: var(--pad); bottom: 64px; width: min(420px, 40vw);
  display: grid; gap: 6px; font-family: var(--mono); font-size: 13px;
}
.scan__log li { color: var(--fg-3); opacity: .35; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease), color .3s; }
.scan__log li::before { content: "› "; color: var(--fg-3); }
.scan__log li.is-on { opacity: 1; transform: none; color: var(--fg); }
.scan__log li.is-on::before { color: var(--hot); }
.scan__log li:last-child.is-on { color: #9fe28a; }
.scan__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; height: 2px; background: var(--line); }
.scan__progress i { display: block; height: 100%; width: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* ---------- Tools ---------- */
.tools { position: relative; }
.tools__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.tools__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 0 var(--pad); margin-bottom: 40px; }
.tools__head h2, .work__head h2, .faq h2, .poses__text h2 {
  font-size: clamp(40px, 6.4vw, 104px); font-weight: 800; line-height: .92; letter-spacing: -0.045em;
}
.tools__head p { color: var(--fg-2); }
.tools__track { display: flex; gap: 28px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.tool { width: clamp(280px, 30vw, 440px); flex-shrink: 0; }
.tool__pic { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--bg-3); }
.tool__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), clip-path .8s var(--ease); }
.tool__a { clip-path: inset(0 0 0 0); }
.tool:hover .tool__a, .tool:focus-visible .tool__a { clip-path: inset(0 0 0 100%); }
.tool:hover .tool__b { transform: scale(1.06); }
.tool__meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: baseline; padding-top: 22px; }
.tool__meta h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.03em; }
.tool__meta p { grid-column: 1 / -1; color: var(--fg-2); max-width: 30em; }

/* ---------- Poses ---------- */
.poses { position: relative; height: 300vh; background: var(--fg); color: var(--bg); }
.poses__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--pad); padding: 90px var(--pad) 40px; overflow: hidden; }
.mono-tag { font-family: var(--mono); font-size: 13px; color: #8a867f; margin-bottom: 20px; }
.poses__text p:not(.mono-tag) { margin-top: 24px; max-width: 26em; font-size: 18px; color: #55524d; }
.poses__counter { margin-top: 40px; font-size: 15px; font-weight: 600; color: #55524d; font-variant-numeric: tabular-nums; }
.poses__counter span { font-size: clamp(64px, 8vw, 128px); font-weight: 900; letter-spacing: -0.05em; color: var(--bg); line-height: 1; vertical-align: -0.12em; }
.poses__film { display: grid; justify-items: center; gap: 18px; }
.poses__frame { position: relative; height: min(66svh, 640px); aspect-ratio: 580 / 700; border-radius: 24px; overflow: hidden; background: #e8e5df; }
.poses__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.poses__frame img.is-on { opacity: 1; }
.poses__strip { display: flex; gap: 6px; }
.poses__strip i { width: 22px; height: 4px; border-radius: 2px; background: rgba(11,11,12,.16); transition: background .2s; }
.poses__strip i.is-on { background: var(--bg); }

/* ---------- Work ---------- */
.work { padding: clamp(100px, 14vw, 200px) var(--pad); }
.work__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 96px); }
.work__head p { color: var(--fg-2); }
.work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.work__col { display: grid; gap: clamp(16px, 2.4vw, 36px); will-change: transform; }
.work__col:nth-child(2) { margin-top: 18vh; }
.work__col:nth-child(3) { margin-top: 6vh; }
.shot { position: relative; cursor: pointer; }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.shot__b { position: absolute; inset: 0; clip-path: circle(0% at 50% 50%); transition: clip-path .9s var(--ease); }
.shot:hover .shot__b, .shot.is-flip .shot__b, .shot:focus-visible .shot__b { clip-path: circle(75% at 50% 50%); }
.shot figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 600; }
.ai-badge { font-family: var(--mono); font-size: 10px; font-weight: 500; padding: 3px 6px; border-radius: 5px; background: rgba(255,77,46,.16); color: #ff8a73; }
.shot figcaption span { margin-left: auto; font-weight: 400; color: var(--fg-3); text-align: right; }
.shot .clip-in { clip-path: inset(100% 0 0 0); }

/* ---------- Price ---------- */
.price { padding: clamp(100px, 12vw, 180px) var(--pad); background: var(--bg-2); }
.price__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: end; }
.price__old, .price__new { display: grid; gap: 14px; }
.price__tag { font-size: 14px; color: var(--fg-2); }
.price__strike { position: relative; justify-self: start; font-size: clamp(44px, 7vw, 120px); font-weight: 800; letter-spacing: -0.05em; color: var(--fg-3); line-height: 1; }
.price__strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .07em; background: var(--hot);
  transform: scaleX(var(--strike, 0)); transform-origin: left;
}
.price__num { font-size: clamp(64px, 12vw, 220px); font-weight: 900; letter-spacing: -0.06em; line-height: .9; }
.price__num b { font-weight: 900; font-variant-numeric: tabular-nums; }
.price__note { color: var(--fg-2); }
.price__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(48px, 6vw, 80px); }
.price__list li { padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.price__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 48px; }
.price__cta p { color: var(--fg-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--pad); padding: clamp(100px, 12vw, 180px) var(--pad); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; position: relative; padding: 26px 56px 26px 0;
  font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.015em; transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--hot); }
.qa summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--fg), var(--fg)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--fg), var(--fg)) center / 1.5px 12px no-repeat;
  transition: transform .5s var(--ease), background-color .3s;
}
.qa[open] summary::after { transform: rotate(135deg); background-color: var(--hot); border-color: var(--hot); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 56px 28px 0; color: var(--fg-2); font-size: 17px; }

/* ---------- Final ---------- */
.final {
  min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 48px; text-align: center;
  padding: 120px var(--pad); background: var(--hot); color: #fff; overflow: hidden;
}
.final__title { font-size: clamp(52px, 10vw, 180px); font-weight: 900; line-height: .9; letter-spacing: -0.055em; will-change: transform; }
.final .big-btn { background: #fff; color: var(--bg); }
.final .big-btn::before { background: var(--bg); }

/* ---------- Footer ---------- */
.foot { padding: 48px var(--pad) 32px; display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; border-top: 1px solid var(--line); }
.foot__logo { font-weight: 800; font-size: 17px; letter-spacing: .04em; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; font-size: 14px; color: var(--fg-2); }
.foot__links a:hover { color: var(--fg); }
.foot__copy { grid-column: 1 / -1; font-size: 13px; color: var(--fg-3); }

/* ---------- Окна ---------- */
.modal {
  width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px);
  padding: 0; border: 1px solid var(--line); border-radius: 28px; background: var(--bg-2); color: var(--fg);
}
.modal::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }
.modal[open] { animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.modal__form { position: relative; display: grid; gap: 14px; padding: 40px 32px 28px; }
.modal h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 8px; padding-right: 48px; }
.modal__note { margin: -12px 0 6px; color: var(--fg-2); }
.modal__x { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; }
.modal__x::before, .modal__x::after { content: ""; position: absolute; left: 12px; right: 12px; top: 19px; height: 1.5px; background: var(--fg); transform: rotate(45deg); }
.modal__x::after { transform: rotate(-45deg); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; display: block; }
.field input {
  width: 100%; height: 58px; padding: 22px 16px 6px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--fg); font: inherit; font-size: 16px; transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--fg); }
.field span { position: absolute; left: 17px; top: 19px; color: var(--fg-3); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus + span, .field input:not(:placeholder-shown) + span { top: 9px; font-size: 12px; color: var(--fg-2); }
.tick { display: flex; gap: 10px; font-size: 14px; color: var(--fg-2); }
.tick input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--hot); flex-shrink: 0; }
.tick a, .modal__foot a { text-decoration: underline; text-underline-offset: 3px; }
.modal__foot { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--fg-2); }
.textbtn { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.form-msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(255,77,46,.14); color: #ffb3a5; }
.form-msg.is-ok { background: rgba(120,200,90,.14); color: #bfe6a8; }
.form-msg.is-warn { background: rgba(255,190,60,.14); color: #ffd98a; }
.form-msg .textbtn { display: inline-block; margin-top: 6px; color: inherit; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .bar__nav { display: none; }
  .bar__burger { display: block; }
  .bar__nav.is-open {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: 72px 0 auto; margin: 0;
    padding: 8px var(--pad) 24px; background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .bar__nav.is-open a { padding: 16px 0; font-size: 22px; font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--line); }
  .bar__right .bar__link { display: none; }
  .bar__nav.is-open .bar__link { display: block; text-align: left; padding: 16px 0; font-size: 22px; font-weight: 600; color: var(--fg); }

  .scan__log { width: auto; right: var(--pad); bottom: 48px; font-size: 12px; }
  .scan__card { width: min(320px, 62vw); margin-top: -90px; }

  .poses__pin { grid-template-columns: 1fr; align-content: center; justify-items: start; }
  .poses__film { justify-self: center; }
  .poses__frame { height: 46svh; }
  .poses__text p { display: none; }
  .poses__counter { margin-top: 12px; }

  .faq { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 40px; }
  .hero__title { font-size: clamp(50px, 15vw, 96px); }
  .hero__lead { font-size: 16px; }
  .hero__cta .big-btn { width: 100%; }
  .hero__scroll { display: none; }
  .gen__body { grid-template-columns: 1fr; }
  .gen__side { border-right: 0; border-bottom: 1px solid var(--line); }
  .gen__params { min-height: 0; }
  .big-btn { height: 58px; padding: 0 28px; font-size: 16px; }

  .tools__head { flex-direction: column; gap: 8px; margin-bottom: 28px; }
  .tool { width: 78vw; }

  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__col:nth-child(2) { margin-top: 10vh; }
  .work__col:nth-child(3) { display: contents; }
  .shot figcaption { flex-direction: column; gap: 0; font-size: 14px; }
  .shot figcaption span { text-align: left; }

  .price__wrap { grid-template-columns: 1fr; gap: 40px; }
  .price__cta .big-btn { width: 100%; }

  .pair { grid-template-columns: 1fr; }
  .modal__form { padding: 32px 18px 22px; }
  .foot { grid-template-columns: 1fr; }
  .foot__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .scan, .poses { height: auto; }
  .scan__pin, .tools__pin, .poses__pin { position: relative; height: auto; min-height: 100svh; }
  .tools__track { width: auto; flex-wrap: wrap; }
  .scan__word--b { opacity: 1; }
  .scan__word--a { display: none; }
  .scan__log li { opacity: 1; color: var(--fg); transform: none; }
  .tile img { opacity: 1; }
  .hero__scroll i, .hero::before, .hero__live, .gen__caret { animation: none; }
}
