/* ============ Web page ============ */

/* ---------- Hero ---------- */

.w-hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.field { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.w-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: calc(100% / 12) 120px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.w-hero-bottom {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  padding-bottom: clamp(32px, 5vw, 64px);
  pointer-events: none;
}
.w-hero-bottom > * { pointer-events: auto; }
.w-title { font-size: clamp(34px, 4vw, 60px); letter-spacing: -0.04em; line-height: 1; }
.w-hero-side { display: flex; flex-direction: column; gap: 24px; max-width: 440px; }
.w-hero-side p { font-size: 18px; color: var(--muted); }
.w-hint {
  position: absolute; top: 108px; right: var(--gutter);
  font-size: 16px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.w-hint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (hover: none) { .w-hint { display: none; } }

/* ---------- Showcase ---------- */

/* ---------- Showcase: one wide display ---------- */

.display { position: relative; margin-top: clamp(28px, 3vw, 44px); transform-origin: 50% 85%; will-change: transform; }

.monitor {
  position: relative;
  padding: 14px 14px 0;
  border-radius: 18px;
  background: linear-gradient(#1D1D21, #131316);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 70px 120px -50px rgba(168, 69, 47, .3),
    0 40px 80px -40px rgba(0,0,0,.9);
}
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #0E0E10;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  perspective: 1500px;
}
.chin {
  height: 34px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; color: rgba(255,255,255,.28);
}
.chin .led { width: 5px; height: 5px; border-radius: 50%; background: #2A2A2E; transition: background .4s, box-shadow .4s; }
.chin .led.on { background: var(--accent); box-shadow: 0 0 8px rgba(210,102,74,.8); }

.stand { position: relative; display: flex; flex-direction: column; align-items: center; }
.stand i {
  width: 150px; height: 34px;
  background: linear-gradient(100deg, #26262B, #141417 55%, #1E1E23);
  clip-path: polygon(33% 0, 67% 0, 78% 100%, 22% 100%);
}
.stand b {
  width: 264px; height: 9px; border-radius: 0 0 8px 8px;
  background: linear-gradient(#232328, #111114);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 34px -20px rgba(0,0,0,.9);
}
.stand::after {
  content: ''; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  width: min(420px, 86%); height: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168,69,47,.22), transparent);
  filter: blur(6px);
}

/* the samples turn past one another inside the screen */
.reel {
  display: flex; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.62, .02, .16, 1);
}
.pane {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  background: #0E0E10;
  transform-origin: center center;
  transform: rotateY(calc(var(--off, 0) * -20deg)) scale(var(--s, 1));
  opacity: var(--o, 1);
  transition: transform 1s cubic-bezier(.62, .02, .16, 1), opacity .8s, filter .8s;
  filter: brightness(var(--b, 1));
}
.pane iframe {
  position: absolute; top: 0; left: 0;
  border: 0; max-width: none;
  transform-origin: 0 0;
  background: #fff;
}
.glare {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 38%);
  opacity: .45;
}
.glare.sweep { animation: glareSweep 1s cubic-bezier(.5, 0, .2, 1); }
@keyframes glareSweep {
  0% { transform: translateX(-60%); opacity: 0; }
  35% { opacity: .9; }
  100% { transform: translateX(60%); opacity: .5; }
}

/* ---------- Name, address, controls ---------- */

.show-foot {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.show-id h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.show-id p { margin-top: 8px; color: var(--muted); font-size: 18px; }
.show-id h3.swap, .show-id p.swap { animation: idSwap .6s var(--ease); }
@keyframes idSwap { from { opacity: 0; transform: translateY(14px); } }
.show-go { display: flex; align-items: center; gap: 22px; }
.concept {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(210, 102, 74, .45);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.dom { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.dom.typing::after { content: '▌'; color: var(--accent); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.open { font-size: 17px; color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .25s; }
.open:hover { border-color: var(--fg); }

.reel-bar { margin-top: 26px; display: flex; align-items: center; gap: 18px; }
.reel-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted);
  display: grid; place-items: center;
  transition: color .25s, border-color .25s, transform .3s var(--ease);
}
.reel-arrow:hover { color: var(--fg); border-color: var(--fg); }
.reel-arrow:first-child:hover { transform: translateX(-3px); }
.reel-arrow:last-child:hover { transform: translateX(3px); }
.reel-nav { flex: 1; list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.reel-nav li { flex: 1; }
.reel-nav button { position: relative; display: block; width: 100%; height: 22px; }
.reel-nav button::before {
  content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2px;
  background: var(--line); transition: background .3s;
}
.reel-nav button:hover::before { background: var(--muted); }
.reel-nav button[aria-selected=true]::before { background: rgba(255,255,255,.22); }
.reel-nav .prog {
  position: absolute; left: 0; right: 0; top: 9px; height: 4px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}

.stage-meta {
  margin: clamp(30px, 3.4vw, 46px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stage-meta div { padding: 18px 16px 0 0; }
.stage-meta div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stage-meta dt { color: var(--muted); font-size: 16px; }
.stage-meta dd { margin: 4px 0 0; font-size: 18px; letter-spacing: -0.01em; }
.stage-meta dd.swap { animation: metaSwap .55s var(--ease); }
@keyframes metaSwap { from { opacity: 0; transform: translateY(8px); } }

/* four meta fields need two rows before the phone layout takes over */
@media (max-width: 1000px) {
  .stage-meta { grid-template-columns: repeat(2, 1fr); }
  .stage-meta div:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 700px) {
  .monitor { padding: 8px 8px 0; border-radius: 14px; }
  .screen { aspect-ratio: 3 / 4; }
  .chin { height: 26px; font-size: 11px; }
  .stand i { width: 92px; height: 22px; }
  .stand b { width: 170px; }
  .show-foot { align-items: flex-start; }
  .stage-meta { grid-template-columns: 1fr; }
  .stage-meta div, .stage-meta div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .reel, .pane { transition: none; }
  .reel-nav .prog, .glare.sweep { display: none; }
  .show-id h3.swap, .show-id p.swap, .stage-meta dd.swap { animation: none; }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px) 0;
}
.marquee-track {
  display: flex; align-items: center; gap: clamp(24px, 3vw, 48px);
  width: max-content;
  font-size: clamp(36px, 5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  will-change: transform;
}
.marquee-track span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.marquee-track i { font-style: normal; color: var(--accent); font-weight: 300; }

/* ---------- Included ---------- */

.inc {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.inc li {
  position: relative;
  padding: 36px 28px 44px 0;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.inc li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.inc li::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.inc li:hover::after { transform: scaleX(1); }
/* a hairline instead of a number: it stretches when the card is hovered */
.inc li > i { width: 22px; height: 1px; background: var(--accent); opacity: .7; transition: width .5s var(--ease), opacity .3s; }
.inc li:hover > i { width: 56px; opacity: 1; }
.inc h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.02em; line-height: 1.15; }
.inc p { color: var(--muted); max-width: 360px; }
@media (max-width: 960px) {
  .inc { grid-template-columns: 1fr 1fr; }
  .inc li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .inc li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .inc { grid-template-columns: 1fr; }
  .inc li:nth-child(even) { padding-left: 0; border-left: 0; }
}

.bundle {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 240px 1fr auto; gap: 24px; align-items: center;
  padding: 28px 32px;
  background: var(--paper);
  color: var(--ink);
  transition: background .3s;
}
.bundle span { font-weight: 600; font-size: 18px; }
.bundle b { font-weight: 400; font-size: 18px; line-height: 1.4; }
.bundle em { font-style: normal; color: var(--accent); font-weight: 500; white-space: nowrap; }
.bundle:hover { background: #fff; }
@media (max-width: 860px) { .bundle { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Misc ---------- */

.process-sec { background: var(--ink-2); }
.offer-sec { padding-top: 0; }
.faq-sec { padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .show-list .prog, .browser .load { display: none; }
  .stage-meta dd.swap { animation: none; }
}

/* Надзаголовок с локальностью живёт в колонке-флексе — свой отступ ему не нужен */
.w-hero-side .place { margin-bottom: 0; }
