:root {
  --chocolate: #B8563A;
  --chocolate-hover: #9E462D;
  --oat: #F7EFE4;
  --oat-deep: #EDE0CF;
  --caramel: #D49B6A;
  --peach: #D97757;
  --sage: #8E977E;
  --surface: #FFFDF9;
  --ink: #2E231E;
  --muted: #6B584E;
  --line: #E5D4C3;

  /* WCAG AA semantic status tokens */
  --status-success-bg: #EAF1EA;
  --status-success-fg: #2E5A36;
  --status-warn-bg: #F8ECE1;
  --status-warn-fg: #8C4A17;
  --status-error-bg: #F9E7E5;
  --status-error-fg: #932B23;

  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 28px rgba(53, 44, 39, 0.06);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }

body {
  margin: 0;
  background: var(--oat);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: 5px; }
button, a { touch-action: manipulation; }

h1, h2, h3, .brand {
  font-family: var(--font-display);
}

h1, h2, h3 {
  overflow-wrap: break-word;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  background: var(--surface);
  color: var(--chocolate);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  z-index: 20;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 4px;
}

.wrap {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}

/* Header */
header.wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(224, 212, 200, 0.75);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 22px;
  color: var(--chocolate);
  text-transform: uppercase;
}
.brand img {
  object-fit: contain;
  border-radius: 10px;
}

header nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
header nav a {
  text-decoration: none;
  transition: color 160ms ease;
}
header nav a:hover { color: var(--chocolate); }

.nav-button {
  background: var(--chocolate);
  color: var(--surface);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  transition: background 180ms ease;
}
.nav-button:hover {
  background: var(--chocolate-hover);
  color: var(--surface);
}

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--chocolate);
  flex: 0 0 68px;
  transition: background 160ms ease;
}
.language-picker:hover { background: var(--oat-deep); }
.language-picker .language-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding-right: 13px;
  pointer-events: none;
}
.language-picker::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--chocolate);
  border-bottom: 1.5px solid var(--chocolate);
  transform: rotate(45deg);
  pointer-events: none;
}
.language-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 44px;
  opacity: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.language-picker:has(select:focus-visible) {
  outline: 3px solid var(--peach);
  outline-offset: 4px;
}

/* Buttons & Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--chocolate);
  margin: 0 0 18px;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--peach);
  border-radius: 50%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  background: var(--chocolate);
  color: var(--surface);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.button:hover {
  background: var(--chocolate-hover);
  transform: translateY(-1px);
}

.quiet-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--chocolate);
}

/* Hero Section */
.hero-product {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 44px;
  align-items: center;
  padding-block: 42px 56px;
}

.hero-copy { min-width: 0; }

.hero-product h1 {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 22px;
}

html[lang="ru"] .hero-product h1 {
  font-size: clamp(40px, 4.4vw, 58px);
  letter-spacing: -0.02em;
}

em {
  font-style: normal;
  color: var(--chocolate);
}

.intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 44ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-actions .button {
  white-space: normal;
  text-align: center;
}

.availability {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.6;
}

/* Hero Video + Observation Studio */
.hero-example {
  min-width: 0;
  display: grid;
  grid-template-columns: 0.94fr 1fr;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-film {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--oat-deep);
}

.hero-film video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.film-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: rgba(255, 252, 248, 0.94);
  color: var(--chocolate);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  pointer-events: none;
  max-width: calc(100% - 28px);
}

.behavior-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.head-marker {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, width, height;
}
.head-marker[hidden] { display: none; }
.head-marker i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--oat);
  filter: drop-shadow(0 1px 3px rgba(53, 44, 39, 0.5));
}
.head-marker i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0; }
.head-marker i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.head-marker i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.head-marker i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px; }
.head-marker > span {
  position: absolute;
  top: 6px;
  left: 8px;
  background: rgba(80, 55, 45, 0.92);
  color: var(--surface);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
}

.muzzle-focus {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--peach);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(215, 143, 120, 0.22);
  pointer-events: none;
}
.muzzle-focus[hidden] { display: none; }
.muzzle-focus span {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  background: rgba(80, 55, 45, 0.94);
  color: var(--surface);
  padding: 5px 9px;
  border-radius: 6px;
}

.behavior-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 68px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(53, 44, 39, 0.92);
  border: 1px solid rgba(224, 212, 200, 0.35);
  color: var(--surface);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  min-height: 48px;
  font-variant-numeric: tabular-nums;
}

.observation-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--peach);
}

.behavior-overlay[data-phase="complete"] .behavior-caption {
  border-color: rgba(196, 157, 121, 0.65);
}
.behavior-overlay[data-phase="complete"] .observation-dot {
  background: var(--sage);
}

.video-timeline {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 3px;
  bottom: 58px;
  background: rgba(255, 252, 248, 0.38);
  border-radius: 4px;
  overflow: hidden;
}
.video-timeline i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left;
}

.motion-toggle {
  position: absolute;
  bottom: 10px;
  right: 14px;
  z-index: 3;
  min-height: 40px;
  min-width: 78px;
  border: 1px solid rgba(255, 252, 248, 0.55);
  border-radius: 999px;
  background: rgba(53, 44, 39, 0.88);
  color: var(--surface);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.example-answer {
  min-width: 0;
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.answer-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.answer-heading img { border-radius: 6px; }
.answer-heading strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}
.answer-heading > span {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.owner-question {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 10px 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.behavior-findings {
  list-style: none;
  padding: 0;
  margin: 0;
  min-height: 240px;
}
.behavior-findings li {
  display: flex;
  gap: 10px;
  padding: 12px 10px;
  margin: 2px -10px;
  border-radius: 12px;
  min-height: 80px;
  transition: background 250ms ease;
}
.demo-playing .behavior-findings li:not(.revealed) {
  visibility: hidden;
}
.behavior-findings li.revealed { visibility: visible; }
.behavior-findings li.observed-now {
  background: var(--oat);
}
.behavior-findings time {
  flex: 0 0 46px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--chocolate);
  font-weight: 600;
  padding-top: 2px;
}
.behavior-findings strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.behavior-findings p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 4px 0 0;
}

.behavior-context {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 14px;
}
.behavior-context strong { font-size: 13px; color: var(--chocolate); }
.behavior-context p { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 4px 0 0; }

.answer-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 12px 0 0;
}

.player-note {
  grid-column: 1 / -1;
  background: var(--oat);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  padding: 10px 18px;
}

/* Section Headings */
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
  margin-bottom: 36px;
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
  font-weight: 600;
}
.section-heading > p {
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* App Screens Section (#como) */
.app-section {
  padding-block: 72px 56px;
}

.gallery-controls { display: none; }

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.screen-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.screen-card:nth-child(2) {
  background: #FAF0E6;
}
.screen-card:nth-child(3) {
  background: #F4F2EA;
}

.screen-title {
  min-height: 126px;
}
.screen-title > span {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--chocolate);
}
.screen-title h3 {
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 12px 0 20px;
}

.device {
  position: relative;
  width: min(100%, 256px);
  margin: auto;
  padding: 9px;
  border: 1.5px solid #3A3633;
  border-radius: 38px;
  background: linear-gradient(145deg, #24211F 0%, #151413 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 38px rgba(46, 35, 30, 0.16),
    0 4px 10px rgba(46, 35, 30, 0.08);
}
.device::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 17px;
  border-radius: 999px;
  background: #0B0A0A;
  z-index: 2;
  pointer-events: none;
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 29px;
}

.screen-zoom {
  display: block;
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
  border-radius: 29px;
  overflow: hidden;
}

.screen-card > p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 22px 0 0;
}

.screen-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
.swipe-hint { display: none; }

/* Editorial Features Section (.features) — Asymmetric Layout */
.features {
  padding-block: 72px 84px;
  border-top: 1px solid var(--line);
}

.features-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: start;
}

.editorial-photos {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 28px;
}

.editorial-photos figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--oat-deep);
}

.editorial-photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-lead { aspect-ratio: 4 / 3; }

.editorial-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.editorial-pair figure { aspect-ratio: 4 / 4.2; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 180ms ease;
}
.feature-card:hover {
  border-color: var(--caramel);
}
.feature-number {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--chocolate);
  background: var(--oat);
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.feature-card:nth-child(2n) .feature-number {
  background: rgba(215, 143, 120, 0.16);
  border-color: rgba(215, 143, 120, 0.35);
}
.feature-card:nth-child(3n) .feature-number {
  background: rgba(165, 168, 143, 0.22);
  border-color: rgba(165, 168, 143, 0.4);
}
.feature-card h3 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 6px;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 64px;
  padding-block: 72px;
  border-top: 1px solid var(--line);
}
.faq h2 { font-size: clamp(30px, 3.5vw, 42px); }
.questions details { border-bottom: 1px solid var(--line); }

summary {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  padding: 20px 28px 20px 0;
  list-style: none;
  position: relative;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary:after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 20px;
  color: var(--chocolate);
  top: 17px;
}
details[open] summary:after { content: "−"; }
details p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 20px;
}

/* Beta Signup Form (#piloto) */
.signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--shadow-soft);
}
.signup h2 {
  font-size: clamp(30px, 3.5vw, 42px);
  letter-spacing: -0.025em;
}
.signup-copy > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 38ch;
}

.platform-explanation {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px 12px;
  font-size: 13px;
  line-height: 1.65;
  margin-top: 32px;
}
.platform-explanation span {
  font-weight: 600;
  color: var(--chocolate);
}

form > label, legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
}
form > label span {
  font-weight: 400;
  color: var(--muted);
}

input:not([type="radio"]):not([type="checkbox"]),
textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--oat);
  padding: 14px 16px;
  margin-bottom: 18px;
  resize: vertical;
}

fieldset { border: 0; padding: 0; margin: 0; }

.platform-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.platform-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--oat);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.platform-options label:has(input:checked) {
  background: var(--surface);
  border-color: var(--chocolate);
  box-shadow: inset 0 0 0 1px var(--chocolate);
}
input[type="radio"] {
  accent-color: var(--chocolate);
  width: 17px;
  height: 17px;
  margin: 0;
}

.platform-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 20px;
  min-height: 44px;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.adult-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.55;
}
.adult-consent input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  flex: 0 0 20px;
  accent-color: var(--chocolate);
}

.signup .button {
  width: 100%;
  margin: 10px 0 14px;
}
.signup button:disabled {
  opacity: 0.65;
  cursor: default;
}

.privacy-link {
  font-size: 13px;
  color: var(--chocolate);
}

#form-status {
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.request-preview {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.request-preview[hidden] { display: none; }
.request-preview h3 { font-size: 19px; margin: 0 0 12px; }
.request-preview pre {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  background: var(--oat);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

/* Privacy & Footer */
.privacy { padding-block: 28px; }
.privacy details { max-width: 820px; }
.privacy summary { font-size: 13px; }

footer.wrap {
  border-top: 1px solid var(--line);
  padding-block: 32px 44px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-top .brand { font-size: 19px; }
.footer-top p, .footer-top > a:last-child {
  font-size: 13px;
  color: var(--muted);
}
.credits {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 22px 0 0;
}

/* Screenshot Zoom Dialog */
.dialog-open { overflow: hidden; }
#screen-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(560px, calc(100% - 32px));
  max-height: 90dvh;
  background: var(--surface);
  color: var(--ink);
}
#screen-dialog::backdrop {
  background: rgba(53, 44, 39, 0.72);
  backdrop-filter: blur(6px);
}
.dialog-heading {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.dialog-heading h2 { font-size: 19px; }
.dialog-heading button {
  background: var(--oat);
  color: var(--chocolate);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#screen-detail {
  display: block;
  width: 100%;
  height: auto;
}

.enter { animation: appear 0.55s var(--ease) both; }
.result-change { animation: appear 0.3s var(--ease); }
@keyframes appear {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .button:hover { transform: none; }
}

/* Tablet */
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 50px); }
  header.wrap { flex-wrap: wrap; padding-block: 16px; gap: 16px; }
  header nav { order: 3; width: 100%; justify-content: flex-end; }
  header .language-picker { margin-left: auto; }

  .hero-product { grid-template-columns: 1fr; gap: 30px; }
  .hero-example { grid-template-columns: 0.94fr 1fr; }
  .features-layout { grid-template-columns: 1fr; }
  .editorial-photos { position: static; }
  .signup { gap: 40px; padding: 38px; }
  .faq { gap: 40px; }
}

/* Mobile */
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  header.wrap { min-height: 76px; padding-block: 14px; gap: 12px; }
  .brand { font-size: 19px; letter-spacing: 0.14em; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  nav > a:not(.nav-button) { display: none; }
  header nav { order: 3; width: 100%; justify-content: flex-end; margin: 0; }
  .nav-button { padding: 11px 18px; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }

  .hero-product { padding-block: 18px 32px; gap: 22px; }
  .hero-product h1 { font-size: 38px; }
  html[lang="ru"] .hero-product h1 { font-size: 35px; }
  .intro { font-size: 15px; }
  .hero-example { display: block; }
  .hero-film { min-height: 310px; height: 310px; }
  .example-answer { border-left: 0; border-top: 1px solid var(--line); padding: 20px 18px; }
  .behavior-caption { bottom: 64px; min-height: 44px; font-size: 12px; }
  .video-timeline { bottom: 54px; }

  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading > p { margin-top: 14px; max-width: none; }
  .app-section { padding-block: 48px 28px; }

  .swipe-hint { display: block; font-weight: 600; margin-bottom: 6px; }
  .gallery-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .gallery-controls button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    min-height: 44px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .gallery-controls button[aria-pressed="true"] {
    background: var(--chocolate);
    border-color: var(--chocolate);
    color: var(--surface);
  }

  .screen-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 14px;
    overscroll-behavior-x: contain;
  }
  .screen-card { flex: 0 0 88%; scroll-snap-align: start; padding: 22px 18px; }
  .screen-title { min-height: auto; }
  .device { width: 220px; }

  .features { padding-block: 46px 56px; }
  .feature-card { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .feature-number { grid-row: auto; }

  .faq { display: block; padding-block: 46px; }
  .questions { margin-top: 20px; }

  .signup { display: block; padding: 28px 20px; }
  .signup form { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
  .platform-options { grid-template-columns: 1fr; }
}
