:root {
  --blue: #0099ff;
  --blue-hover: #007acc;
  --blue-soft: #e8f6ff;
  --blue-soft-2: #d4efff;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --bg: #fdfdfe;
  --bg-2: #ffffff;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.10);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-card: 26px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --text-h1: clamp(2.4rem, 5.6vw, 4.2rem);
  --text-h2: clamp(1.9rem, 3.4vw, 2.75rem);
  --text-h3: 1.5rem;
  --text-lead: 1.05rem;
  --text-body: 0.9375rem;
  --text-sm: 0.875rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-glide: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(0, 153, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #f5faff 0%, var(--bg) 32%, #fdfdfe 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ── AgentPeek-style navigation (+ scroll collapse) ── */
:root {
  --nav-h: 70px;
  --nav-pad-top: 16px;
  --nav-total-h: calc(var(--nav-h) + var(--nav-pad-top) + 16px);
  --t-open: 0.46s;
  --ease-open: cubic-bezier(0.34, 1.28, 0.42, 1);
  --home-nav-inset: 0.6875rem;
  --home-nav-group-gap: 1.5rem;
  --home-nav-link-gap: 0.65rem;
}
.site-header,
.topbar {
  position: relative;
  z-index: 80;
  height: 102px;
}
.nav-root {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  pointer-events: none;
  --nav-notch-overhang: 16px;
  --nav-notch-radius: 35px;
  --nav-lens-blur: 3px;
}
.nav-bar {
  position: relative;
  width: 100%;
  max-width: min(1240px, calc(100% - 200px));
  margin-inline: auto;
  padding: 0 0 16px;
  pointer-events: auto;
  transition: padding var(--t-open) var(--ease-open);
}
@media (min-width: 768px) {
  .nav-root[data-scrolled="true"] .nav-bar {
    padding-inline: 24px;
  }
}
.nav-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: calc(var(--nav-h) + var(--nav-pad-top));
  margin-inline: auto;
  contain: layout;
  background: transparent;
  transition: height var(--t-open) var(--ease-open), max-width var(--t-open) var(--ease-open);
}
.nav-root[data-scrolled="true"] .nav-shell {
  height: var(--nav-h);
}
@media (min-width: 768px) {
  .nav-root[data-scrolled="true"] .nav-shell {
    max-width: var(--nav-collapsed-width, 44rem);
  }
}
.nav-shell .glass-filter,
.nav-shell .glass-overlay,
.nav-shell .nav-notch-sheen {
  clip-path: var(--nav-notch-clip);
}
.nav-shell .glass-filter,
.nav-shell .glass-overlay,
.nav-shell .nav-notch-rim,
.nav-shell .nav-notch-shadow,
.nav-shell .nav-notch-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-open) var(--ease-open);
}
.nav-root[data-scrolled="true"] .nav-shell .glass-filter,
.nav-root[data-scrolled="true"] .nav-shell .glass-overlay,
.nav-root[data-scrolled="true"] .nav-shell .nav-notch-rim,
.nav-root[data-scrolled="true"] .nav-shell .nav-notch-shadow,
.nav-root[data-scrolled="true"] .nav-shell .nav-notch-sheen {
  opacity: 1;
}
.nav-shell .glass-filter {
  z-index: 0;
  -webkit-backdrop-filter: blur(var(--nav-lens-blur, 3px)) saturate(180%);
  backdrop-filter: blur(var(--nav-lens-blur, 3px)) saturate(180%);
  transform: translateZ(0);
}
.nav-shell .glass-overlay {
  z-index: 1;
  background: linear-gradient(180deg, rgba(253, 253, 254, 0.78), rgba(232, 246, 255, 0.55));
}
.nav-shell .nav-notch-sheen {
  z-index: 2;
  background:
    linear-gradient(-58deg, transparent 34%, rgba(255, 255, 255, 0.45) 47% 51%, transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(0, 153, 255, 0.06) 48%, transparent);
}
.nav-shell .nav-notch-rim {
  z-index: 3;
  clip-path: var(--nav-notch-clip);
  width: 100%;
  height: 100%;
  overflow: visible;
}
.nav-shell .nav-notch-shadow {
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
@supports (-webkit-hyphens: none) {
  .nav-shell .glass-filter {
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
  .nav-shell .glass-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(232, 242, 255, 0.5));
  }
}
.glass-content {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  align-items: center;
  padding: calc(1rem + var(--nav-pad-top)) 0 0.9rem;
  transition: padding var(--t-open) var(--ease-open);
}
.nav-root[data-scrolled="true"] .glass-content {
  height: 100%;
  /* Optical center inside notch: bottom curve eats visual space */
  padding-block: 2px 8px;
  padding-inline: calc(1.35rem + var(--nav-notch-overhang, 16px));
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2.25rem;
  min-height: 48px;
  transition: gap var(--t-open) var(--ease-open);
}
.nav-root[data-scrolled="true"] .nav-row {
  gap: 20px;
}
.nav-brand {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  height: 36px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-brand-icon { display: none !important; }
.brand-dot {
  color: var(--blue);
  font-weight: 700;
  opacity: 1;
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--home-nav-link-gap);
  min-width: 0;
  transition: gap var(--t-open) var(--ease-open);
}
.nav-root[data-scrolled="true"] .nav-links {
  gap: 0.55rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 9px 14px;
  margin: 0;
  border-radius: 9999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: transparent;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.nav-ico {
  display: none;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  pointer-events: none;
}
.nav-link-text { display: inline; }
.nav-root[data-scrolled="true"] .nav-link {
  padding: 7px 12px;
}
@media (hover: hover) {
  .nav-link:hover {
    color: var(--blue);
    background: var(--blue-soft);
  }
}
.nav-link.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}
.nav-link:active {
  transform: scale(0.96);
}
.nav-end {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.btn-nav-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 9999px;
  background: linear-gradient(145deg, #33adff, var(--blue));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(0, 153, 255, 0.32);
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-root[data-scrolled="true"] .btn-nav-cta {
  height: 40px;
  box-shadow: 0 8px 18px rgba(0, 153, 255, 0.28);
}
@media (hover: hover) {
  .btn-nav-cta:hover {
    background: linear-gradient(145deg, #47b3ff, var(--blue-hover));
    color: #fff;
    transform: translateY(-1px);
  }
}
.btn-nav-cta:active { transform: translateY(0) scale(0.98); }
@media (min-width: 1100px) {
  .nav-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
  }
  .nav-root[data-scrolled="true"] .nav-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
  }
  .nav-brand {
    justify-self: start;
    grid-column: 1;
  }
  .nav-links {
    display: flex;
    justify-content: center;
    justify-self: center;
    grid-column: 2;
    flex-wrap: nowrap;
    min-width: 0;
  }
  .nav-end {
    justify-self: end;
    grid-column: 3;
  }
  .btn-nav-cta { display: inline-flex; }
}

@media (max-width: 1099px) {
  .nav-bar { max-width: calc(100% - 28px); }
  .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .nav-brand { flex: 0 0 auto; }
  .nav-links {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    gap: 2px;
  }
  .nav-link {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
  }
  .nav-link-text { display: none; }
  .nav-ico {
    display: block;
    width: 20px;
    height: 20px;
  }
  .nav-link.is-active,
  .nav-link:hover {
    color: var(--blue);
    background: rgba(0, 153, 255, 0.1);
    box-shadow: none;
  }
  .nav-end { flex: 0 0 auto; }
  .btn-nav-cta {
    display: inline-flex;
    height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
  }
  .nav-shell .glass-filter {
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
  .nav-shell .glass-overlay {
    background: linear-gradient(180deg, rgba(253, 253, 254, 0.84), rgba(232, 246, 255, 0.55));
  }
  .site-header,
  .topbar { height: 88px; }
  .nav-root[data-scrolled="true"] .nav-shell {
    max-width: min(480px, calc(100vw - 20px));
  }
  .nav-root[data-scrolled="true"] .nav-row { gap: 6px; }
  .nav-root[data-scrolled="true"] .nav-link {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .nav-root[data-scrolled="true"] .nav-ico {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 767px) {
  .nav-brand { font-size: 1.02rem; }
  .nav-bar { max-width: calc(100% - 16px); }
  .nav-row { gap: 6px; }
  .nav-links { gap: 1px; }
  .nav-link {
    width: 38px;
    height: 38px;
  }
  .site-header,
  .topbar { height: 84px; }
  .btn-nav-cta {
    height: 36px;
    padding: 0 12px;
    font-size: 0.84rem;
  }
  .glass-content {
    padding-inline: calc(0.85rem + var(--nav-notch-overhang, 16px));
  }
  .nav-root[data-scrolled="true"] .glass-content {
    padding-inline: calc(0.75rem + var(--nav-notch-overhang, 16px));
  }
  .nav-root[data-scrolled="true"] .nav-shell {
    max-width: min(100vw - 16px, 400px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-shell,
  .nav-shell .glass-filter,
  .nav-shell .glass-overlay,
  .nav-shell .nav-notch-rim,
  .nav-shell .nav-notch-shadow,
  .nav-shell .nav-notch-sheen,
  .glass-content,
  .nav-bar,
  .nav-row,
  .nav-links,
  .btn-nav-cta {
    transition: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: #191919;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 153, 255,0.28);
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.btn-soft {
  background: var(--blue-soft);
  color: var(--blue);
}
.btn-lg { padding: 15px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 0.88rem; }

/* ── Hero (vpezid-inspired stage) ── */
.hero-stage {
  margin: 8px auto 12px;
  width: min(1120px, calc(100% - 24px));
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: radial-gradient(120% 100% at 30% 0%, #66c2ff, #0099ff 48%, #0066c2 100%);
  box-shadow: 0 28px 70px rgba(22, 56, 168, 0.32);
  color: #fff;
  min-height: min(70vh, 640px);
  display: grid;
  align-items: center;
}
.hero-stage.hero-kant::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 12%, rgba(255,255,255,0.28), transparent 42%);
  pointer-events: none;
  z-index: 0;
}
/* Halftone dots — dense on sides, clear center (like ref) */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.hero-dots::before,
.hero-dots::after {
  content: "";
  position: absolute;
  top: -2%;
  bottom: -2%;
  width: 46%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.85) 1.25px, transparent 1.45px);
  background-size: 12px 12px;
  background-position: 0 0;
}
.hero-dots::before {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 35%, transparent 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 35%, transparent 100%);
}
.hero-dots::after {
  right: 0;
  background-position: 6px 6px;
  -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 35%, transparent 100%);
  mask-image: linear-gradient(270deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 35%, transparent 100%);
}

/* Apple-style hero entrance */
.hero-enter {
  opacity: 0;
  transform: translateY(36px) scale(0.965);
  animation: heroPlateIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}
.hero-enter-item {
  opacity: 0;
  transform: translateY(22px);
  animation: heroItemIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) var(--hero-delay, 0.2s) forwards;
}
@keyframes heroPlateIn {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.965);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes heroItemIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-enter,
  .hero-enter-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.hero {
  position: relative;
  z-index: 1;
  padding: 78px 28px 40px;
  text-align: center;
}
.hero-clean {
  padding: 88px 28px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(64vh, 560px);
}
.hero-kicker {
  margin: 0 auto 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hero-kicker .tg-e { border-radius: 6px; }
.hero h1,
.hero-title {
  margin: 0 auto;
  max-width: 16ch;
  font-size: var(--text-h1);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.28em;
  text-align: center;
}
.hero-title-static {
  display: inline;
}
.goo-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.goo-morph {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 5.2em;
  height: 1.12em;
  vertical-align: baseline;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.goo-morph.melting {
  filter: url(#hero-melt);
}
.goo-w {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  white-space: nowrap;
  will-change: filter, opacity;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .goo-morph.melting { filter: none; }
  .goo-w { transition: opacity 0.35s ease; }
}
.hero-lead {
  margin: 18px auto 0;
  max-width: 32rem;
  color: rgba(255,255,255,0.88);
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 1.5;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-stage .btn-primary {
  background: #fff;
  color: #0a5ae0;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}
.hero-stage .btn-primary:hover { background: #fdfdfe; }
.hero-cta {
  gap: 10px;
  padding-inline: 22px 18px;
}
.hero-cta .btn-arrow {
  flex: 0 0 auto;
  display: block;
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.hero-cta:hover .btn-arrow {
  transform: translateX(3px);
}
.hero-cta:active .btn-arrow {
  transform: translateX(1px);
}
.hero-stage .btn-ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-meta .tg-title {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  gap: 8px;
}
.hero-meta .tg-e { border-radius: 6px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7CFFB2;
  box-shadow: 0 0 0 4px rgba(124,255,178,0.18);
}
.hero-phone {
  position: relative;
  z-index: 1;
  width: min(320px, 78vw);
  margin: 18px auto 0;
  aspect-ratio: 9 / 17.5;
  border-radius: 36px;
  background: linear-gradient(160deg, #1b2433, #0b1220);
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-phone-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(26,109,255,0.35), transparent 45%),
    #121826;
  color: #f8fafc;
  padding: 28px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 700;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(124,255,178,0.12);
  color: #7CFFB2;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.7rem;
}
.live-pill i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7CFFB2;
  box-shadow: 0 0 0 3px rgba(124,255,178,0.2);
}
.phone-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.phone-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.phone-apps img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.hero-phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  background: #0b1220;
  border-radius: 20px;
  z-index: 2;
}
.phone-card {
  margin-top: 4px;
  background: linear-gradient(145deg, #3ecf8e, #2bb673);
  border-radius: 18px;
  padding: 14px;
  color: #062a1a;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.phone-card strong { display: block; font-size: 1rem; margin-bottom: 4px; color: #062a1a; }
.phone-card span { color: rgba(6,42,26,0.75); font-size: 0.8rem; font-weight: 600; }
.phone-row { display: flex; gap: 8px; margin-top: auto; }
.phone-row i {
  flex: 1;
  text-align: center;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
}

/* ── Sections ── */
section { padding: 72px 0; position: relative; z-index: 1; }
.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 36px;
}
.section-head h2 {
  margin: 0;
  font-size: var(--text-h2);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
}
.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 1.5;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-glide), transform 0.85s var(--ease-glide);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Работает само — сертификаты разработчика Apple ── */
.works-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.works-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
  min-height: 0;
}
.works-step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.works-step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.works-step p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
  font-size: 0.95rem;
}
/* ── Works / преимущества ── */
#works {
  background: transparent;
  padding: 56px 0 48px;
  scroll-margin-top: 90px;
}
.works-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 36px;
}
.works-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.works-head h2 {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}
.works-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 1.5;
}

.works-bento {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1fr);
  grid-template-rows: auto max-content;
  gap: 20px;
  align-items: stretch;
}

/* Shared light/dark tile chrome */
.works-tile:not(.works-tile-ipa) {
  border-radius: var(--radius-card);
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}
.works-tile:not(.works-tile-ipa):not(.works-tile-dark) {
  background: #fff;
  border: 1px solid var(--line);
}
.works-tile:not(.works-tile-ipa) .works-tile-top { flex: 0 0 auto; }
.works-tile:not(.works-tile-ipa) .works-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border: 1px solid rgba(0, 153, 255, 0.12);
  color: var(--blue);
}
.works-tile:not(.works-tile-ipa) .works-card-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}
.works-tile:not(.works-tile-ipa) h3 {
  margin: 17px 0 11px;
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--ink);
}
.works-tile:not(.works-tile-ipa) .works-tile-top p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
  font-size: var(--text-body);
  max-width: 420px;
}

/* IPA card — same chrome as light tiles, demo layout intact */
.works-tile-ipa {
  grid-column: 2;
  grid-row: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: visible;
}
.works-tile-ipa .works-tile-top { flex: 0 0 auto; }
.works-tile-ipa .works-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border: 1px solid rgba(0, 153, 255, 0.12);
  color: var(--blue);
}
.works-tile-ipa .works-card-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  overflow: visible;
  shape-rendering: geometricPrecision;
}
.works-tile-ipa h3 {
  margin: 17px 0 11px;
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--ink);
}
.works-tile-ipa .works-tile-top p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
  font-size: var(--text-body);
  max-width: 36ch;
}

.works-tile-tall {
  grid-column: 1;
  grid-row: 1 / 3;
}
.works-tile-resign {
  grid-column: 2;
  grid-row: 1;
}
.works-tile.works-tile-dark:not(.works-tile-ipa) {
  background:
    radial-gradient(ellipse at 50% 85%, #1a4162 0, transparent 67%),
    linear-gradient(150deg, #0c1422, #17263d);
  color: #fff;
  border: 1px solid #18283e;
}
.works-tile.works-tile-dark:not(.works-tile-ipa) .works-card-icon {
  background: #ffffff0c;
  border-color: #ffffff20;
  color: #d5e8f9;
}
.works-tile.works-tile-dark:not(.works-tile-ipa) h3 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 22px 0 16px;
}
.works-tile.works-tile-dark:not(.works-tile-ipa) .works-tile-top p {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.55;
  max-width: 330px;
}

.works-hero-art {
  position: relative;
  flex: 1 1 248px;
  height: 248px;
  margin: 14px -10px 2px;
  min-height: 0;
}
.works-art-phone {
  position: absolute;
  top: 50%;
  left: calc(50% - 32px);
  width: 122px;
  height: 228px;
  background: linear-gradient(155deg, #345571, #1e3047 75%);
  border: 3px solid #8ca4b9;
  border-radius: 27px;
  transform: translateY(-50%) rotate(9deg);
  box-shadow: 0 18px 38px #00000030;
}
.works-art-phone::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 35px;
  width: 45px;
  height: 11px;
  background: #15263a;
  border-radius: 20px;
}
.works-art-phone::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 36px;
  width: 42px;
  height: 3px;
  background: #adbdcb;
  border-radius: 5px;
}
.works-art-apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 44px 17px 10px;
}
.works-art-apps span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff1b;
  display: grid;
  place-items: center;
  color: #c1d6e7;
}
.works-art-apps svg { width: 17px; height: 17px; }
.works-art-file {
  position: absolute;
  left: calc(50% - 128px);
  top: calc(50% - 58px);
  width: 136px;
  height: 145px;
  border: 1px solid #7690aa60;
  border-radius: 18px;
  background: linear-gradient(145deg, #294764, #20364c);
  transform: rotate(-9deg);
  box-shadow: 0 15px 28px #00000025;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px;
}
.works-art-file svg { width: 28px; height: 28px; flex-shrink: 0; color: #a2d9fa; }
.works-art-file b {
  font-size: 28px;
  line-height: normal;
  letter-spacing: -1px;
  margin-top: 16px;
  font-weight: 600;
  color: #ecf5ff;
}
.works-art-file span {
  font-size: 9px;
  line-height: normal;
  letter-spacing: 0.8px;
  color: #b7c8d9;
  margin-top: 3px;
}
.works-art-check {
  position: absolute;
  left: calc(50% + 64px);
  top: calc(50% + 60px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #38ce82;
  color: #073e2b;
  border: 4px solid #1a344d;
  display: grid;
  place-items: center;
  transform: rotate(9deg);
}
.works-art-check svg { width: 19px; height: 19px; }
.works-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.works-pills span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ffffff1c;
  background: #ffffff09;
  color: #deebf7;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 400;
}

.works-tile.works-tile-resign {
  justify-content: flex-start;
  min-height: 256px;
}
.works-note {
  margin: auto 0 0;
  padding-top: 15px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
}

/* ── IPA demo ── */
.works-demo {
  --fill-2: rgba(0, 153, 255, 0.045);
  --fill-3: rgba(0, 153, 255, 0.16);
  --text: #0f172a;
  --muted: #64748b;
  --arc: #0099ff;
  --inverse: #0f172a;
  --on-inverse: #fff;

  position: relative;
  margin-top: auto;
  height: 196px;
  padding-top: 18px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  color: var(--text);
}
.works-demo .zone {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 100%;
  height: 176px;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  overflow: hidden;
  will-change: transform;
  pointer-events: none;
  background: rgba(0, 153, 255, 0.035);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.works-demo .zone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 153, 255, 0.07);
  opacity: var(--h, 0);
  pointer-events: none;
  border-radius: inherit;
}
.works-demo .core {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  border-radius: 50%;
  background: var(--fill-2);
  border: 1px solid rgba(0, 153, 255, 0.12);
  z-index: 1;
  will-change: transform;
}
.works-demo-dark .core {
  border-color: rgba(255, 255, 255, 0.12);
}
.works-demo .g {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #4ade80, #22c55e);
  transform: scale(0);
  will-change: transform;
}
.works-demo .ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  opacity: 0;
}
.works-demo .trk { stroke: var(--fill-3); }
.works-demo .arc { stroke: var(--arc); }
.works-demo .ic {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  will-change: transform, opacity;
}
.works-demo .ic svg { width: 22px; height: 22px; display: block; }
.works-demo .pct {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  color: var(--arc);
}
.works-demo .ok { color: #fff; opacity: 0; }
.works-demo .ok svg { width: 26px; height: 26px; }
.works-demo .ok path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.works-demo .line {
  position: absolute;
  left: 14px;
  right: 14px;
  z-index: 1;
  overflow: hidden;
  text-align: center;
  pointer-events: none;
}
.works-demo .line span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  will-change: transform, opacity;
}
.works-demo .t { top: 98px; height: 22px; }
.works-demo .t span {
  line-height: 22px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.works-demo .s { top: 120px; height: 18px; }
.works-demo .s span {
  line-height: 18px;
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.works-demo .file {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px 0 11px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
  color: var(--on-inverse);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.works-demo .file svg { width: 18px; height: 18px; flex: none; }

#works .section-head.reveal:not(.in),
#works .works-head.reveal:not(.in),
#works .works-flow.reveal:not(.in),
#works .works-grid.reveal:not(.in),
#works .works-bento.reveal:not(.in) {
  opacity: 1;
  transform: none;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  grid-column: span 6;
  border-radius: 28px;
  background: #f3f4f6;
  border: 1px solid rgba(15,23,42,0.06);
  padding: 26px 24px 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(15,23,42,0.04);
}
.bento-span-4 { grid-column: span 4; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }
.bento-span-7 { grid-column: span 7; }
.bento-span-8 { grid-column: span 8; }
.bento-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.15;
  max-width: 18ch;
}
.bento-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
  max-width: 34ch;
}
.bento-dark {
  background: #0b1220;
  color: #f8fafc;
  border-color: rgba(255,255,255,0.06);
  min-height: 300px;
}
.bento-dark p { color: rgba(248,250,252,0.68); }
.bento-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.55;
  pointer-events: none;
}
.bento-streaks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bento-streaks i {
  position: absolute;
  height: 2px;
  width: 48%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
  animation: streak 3.8s linear infinite;
  opacity: 0.75;
}
.bento-streaks i:nth-child(1) { top: 42%; left: -8%; }
.bento-streaks i:nth-child(2) { top: 58%; left: 8%; width: 56%; animation-delay: -1.4s; }
@keyframes streak {
  0% { transform: translateX(-20%); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: translateX(140%); opacity: 0; }
}
.bento-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.bento-metric {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.bento-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  font-weight: 600;
}
.bento-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.18);
  animation: pulse-dot 1.6s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.7; }
}
.bento-status-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.bento-status {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.bento-status span { color: var(--muted); font-weight: 600; font-size: 0.78rem; }
.bento-status strong { font-weight: 700; letter-spacing: -0.02em; }
.bento-status em { font-style: normal; font-weight: 700; font-size: 0.78rem; color: var(--muted); }
.bento-status em.ok { color: #16a34a; }
.bento-status.best {
  background: #111827;
  color: #fff;
  border-color: transparent;
}
.bento-status.best span { color: rgba(255,255,255,0.55); }
.bento-devices {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bento-devices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 280px; }
.bento-devices > div {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
}
.dev-ico {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 1.25rem;
  box-shadow: var(--shadow);
}
.dev-ico .tg-e { border-radius: 8px; }
.bento-devices i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
.bento-dark .tg-title { max-width: none; }
.bento-card .tg-title {
  max-width: none;
  gap: 10px;
}
.bento-card .tg-e { border-radius: 8px; }
.section-head .tg-title {
  gap: 12px;
}
.section-head h2.tg-title {
  display: inline-flex;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink);
}
.bento-stat h3 { max-width: none; }
.bento-stat h3 strong { display: block; font-size: 1.35em; }
.bento-bar {
  margin-top: auto;
  height: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.08);
  overflow: hidden;
}
.bento-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5aa7ff, var(--blue));
}
.bento-family {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}
.bento-family-copy h3 { max-width: none; }
.bento-avatars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.bento-avatars span {
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
}
.bento-family-meta {
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.bento-cert-card {
  min-height: 150px;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(145deg, #ff8a4c, #e11d48 60%, #7c2d12);
  color: #fff;
  box-shadow: 0 18px 40px rgba(225,29,72,0.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
.bcc-chip {
  width: 34px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.15));
  margin-bottom: auto;
}
.bento-cert-card strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.bento-cert-card em { font-style: normal; opacity: 0.8; font-size: 0.82rem; font-weight: 600; }
.bento-zero .bento-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
  max-width: 100%;
}
.bento-zero h3 { max-width: none; }
.bento-zero h3 strong { font-size: 1.6em; }
.bento-cta-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 140px;
}
.bento-cta-row h3 { max-width: none; margin: 0; }
.bento-cta-row p { margin-top: 6px; }
.bento-channels .bento-channel-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.bento-channel-icons img,
.bci-web {
  width: 44px; height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: #fff;
}
.bci-web {
  display: grid; place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
  border: 1px solid var(--line);
}

/* ── Plans picker ── */
.plans-pick {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: start;
}
.plans-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.plans-cols {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0 18px 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.plans-cols span:last-child {
  justify-self: end;
}
.plans-rows {
  display: grid;
  gap: 10px;
}
.plan-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.plan-row:hover {
  border-color: rgba(0, 153, 255, 0.28);
  transform: translateY(-1px);
}
.plan-row.is-active {
  border-color: rgba(0, 153, 255, 0.55);
  background: linear-gradient(180deg, #f2f9ff, #eaf6ff);
  box-shadow: 0 12px 28px rgba(0, 153, 255, 0.12);
}
.plan-row-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.plan-row.is-active .plan-row-check {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.14);
}
.plan-row.is-active .plan-row-check::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.plan-row-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-row-warranty {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.plan-row-price {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  justify-self: end;
}
.plans-summary {
  position: sticky;
  top: calc(var(--nav-h, 64px) + 18px);
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.plans-summary-top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.plans-summary-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.plans-summary-icon .tg-e {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.plans-summary-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.plans-summary-title {
  margin-top: 2px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.plans-summary-sub {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.plans-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.plans-summary-total span {
  color: var(--muted);
  font-weight: 600;
}
.plans-summary-total strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.plans-summary-btn {
  width: 100%;
}
.plans-summary-perks-title {
  margin-bottom: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-2);
}
.plans-summary-perks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.plans-summary-perks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.35;
}
.plans-summary-perks li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-soft);
}
.plans-sticky {
  display: none;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
}
.feature-list i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  flex: 0 0 auto;
  font-style: normal;
  font-size: 0.75rem;
  margin-top: 1px;
}
.plan-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.slider-wrap { margin: 8px 0 10px; }
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--pct, 0%), #dbe7f5 var(--pct, 0%));
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  box-shadow: 0 8px 18px rgba(0, 153, 255,0.25);
  cursor: pointer;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 12px;
}
.slider-labels button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
}
.slider-labels button.active { color: var(--blue); }
.price-block { margin: 24px 0 16px; }
.price-block .price {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.price-block .hint {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.plan-actions { display: grid; gap: 10px; }
.plan-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Example apps (not a store) ── */
.apps-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.app-example {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.app-example:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.app-example img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15,23,42,0.12);
}
.app-example strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.app-example span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── FAQ hover gallery (from video) ── */
.faq-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.faq-gallery {
  display: flex;
  gap: 12px;
  min-height: 320px;
  align-items: stretch;
}
.faq-card {
  position: relative;
  flex: 0.55;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
  cursor: pointer;
  transition: flex 0.45s var(--ease-glide), background 0.3s, box-shadow 0.3s;
  min-width: 72px;
}
.faq-card .num {
  position: absolute;
  right: 10px;
  bottom: -18px;
  font-size: 9rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: rgba(0, 153, 255,0.10);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.faq-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 240px;
}
.faq-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 500;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.35s ease;
}
.faq-card.active,
.faq-card:hover {
  flex: 2.4;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #fff, #f5faff);
}
.faq-card.active h3,
.faq-card:hover h3 {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 1.25rem;
  max-height: none;
}
.faq-card.active p,
.faq-card:hover p {
  opacity: 1;
  max-height: 180px;
}
.faq-hint {
  text-align: center;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.faq-support {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.faq-support p { margin: 0; color: var(--muted); font-weight: 600; max-width: 36rem; }

/* ── Support CTA panel ── */
.support-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  min-height: 280px;
}
.support-copy {
  padding: 36px 32px;
  position: relative;
  z-index: 1;
}
.support-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 16ch;
}
.support-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  max-width: 34rem;
}
.support-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.support-art {
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, rgba(10,90,224,0.35), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(124,200,255,0.45), transparent 50%),
    linear-gradient(135deg, #e8f1ff, #c9dcff 40%, #9ec2ff);
  overflow: hidden;
}
.support-art::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: rotate(-12deg);
  opacity: 0.55;
  animation: gridDrift 18s linear infinite;
}
@keyframes gridDrift {
  from { transform: rotate(-12deg) translateY(0); }
  to { transform: rotate(-12deg) translateY(-28px); }
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
}
.step:hover { transform: translateY(-5px); }
.step-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 {
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  font-weight: 800;
}
.step p { margin: 0; color: var(--muted); font-weight: 500; }


/* ── Footer / pages ── */
.footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a { font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--blue); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer a { font-weight: 600; }
.footer a:hover { color: var(--blue); }

.legal-page {
  max-width: 760px;
}
.legal-page h1 { margin-bottom: 8px; }
.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.legal-page p, .legal-page li {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
}
.legal-page ul { padding-left: 1.2rem; }
.legal-page blockquote {
  margin: 12px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 14px 14px 0;
  color: var(--ink-2);
  font-weight: 500;
}

.page { padding: 40px 0 80px; }
.page-title {
  font-size: var(--text-h2);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.page-sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 500;
  font-size: var(--text-lead);
  line-height: 1.5;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(0, 153, 255,0.45);
  box-shadow: 0 0 0 4px rgba(0, 153, 255,0.12);
}
.stack { display: grid; gap: 14px; }
[hidden],
.card[hidden],
.stack[hidden],
.udid-card[hidden] {
  display: none !important;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; word-break: break-all; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(15,23,42,0.06);
}
.badge.ok { background: rgba(34,197,94,0.12); color: #15803d; }
.badge.warn { background: rgba(245,158,11,0.14); color: #b45309; }
.badge.bad { background: rgba(239,68,68,0.12); color: #b91c1c; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s var(--ease);
  z-index: 100;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
  .plans-grid, .steps, .grid-2, .cab-grid {
    grid-template-columns: 1fr;
  }
  .works-flow { grid-template-columns: 1fr; }
  .works-bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .works-tile-tall,
  .works-tile-resign,
  .works-tile-ipa {
    grid-column: auto;
    grid-row: auto;
  }
  .works-tile:not(.works-tile-ipa),
  .works-tile-ipa {
    height: auto;
  }
  .works-tile:not(.works-tile-ipa) { padding: 24px; }
  .works-hero-art {
    flex: 0 0 240px;
    height: 240px;
    margin: 12px -8px 0;
  }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento-span-4, .bento-span-5, .bento-span-6, .bento-span-7, .bento-span-8 { grid-column: span 6; }
  .bento-family { grid-template-columns: 1fr; }
  .bento-cta-row { flex-direction: column; align-items: stretch; }
  .bento-devices,
  .bento-devices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-steps { grid-template-columns: 1fr; }
  .plans-pick {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .plans-cols { display: none; }
  .plan-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    grid-template-areas:
      "check name price"
      "check warranty price";
    column-gap: 12px;
    row-gap: 2px;
    padding: 14px 14px;
    border-radius: 16px;
  }
  .plan-row-check { grid-area: check; align-self: center; }
  .plan-row-name { grid-area: name; font-size: 1rem; }
  .plan-row-warranty {
    grid-area: warranty;
    font-size: 0.86rem;
  }
  .plan-row-price {
    grid-area: price;
    align-self: center;
    font-size: 1.02rem;
  }
  .plans-summary {
    position: static;
    padding: 18px;
    border-radius: 20px;
    gap: 14px;
  }
  .plans-summary-title { font-size: 1.28rem; }
  .plans-summary-total strong { font-size: 1.35rem; }
  .plans-summary-btn { display: none; }
  .plans-sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    margin-top: 8px;
    padding: 10px 10px 10px 14px;
    border-radius: 18px;
    background: rgba(11, 18, 32, 0.92);
    color: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .plans-sticky-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .plans-sticky-meta strong {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .plans-sticky-meta span {
    color: rgba(255,255,255,0.7);
    font-size: 0.84rem;
    font-weight: 600;
  }
  .plans-sticky .btn {
    flex: 0 0 auto;
    padding-inline: 14px;
    white-space: nowrap;
  }
  .apps-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-clean { padding: 56px 20px 48px; min-height: auto; }
  .hero-stage { min-height: auto; margin-top: 22px; }
}

@media (max-width: 640px) {
  .bento-card { min-height: 0; padding: 22px 18px; }
}

@media (max-width: 760px) {
  #works { padding: 40px 0 36px; }
}

@media (max-width: 560px) {
  #works { padding: 36px 0 32px; }
  .works-head { margin-bottom: 28px; }
  .works-tile.works-tile-dark:not(.works-tile-ipa) h3 { font-size: 1.75rem; }
  .works-tile.works-tile-resign { min-height: 270px; }
}

/* ── TG emoji (Ui Icon Bot static) ── */
img.tg-e,
.tg-e {
  display: inline-block;
  width: var(--e-size, 28px);
  height: var(--e-size, 28px);
  max-width: none;
  object-fit: contain;
  margin: 0;
  border: 0;
  border-radius: 7px;
  flex: 0 0 auto;
  vertical-align: middle;
  line-height: 0;
}
.tg-title,
.tg-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tg-label { font-weight: 700; font-size: 0.9rem; }
.cab-login h1.tg-title {
  justify-content: center;
  width: 100%;
}
.cab-device-icon .tg-e {
  display: block;
}

/* ── Promo hint ── */
.promo-hint {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5faff, #eaf7ff);
  border: 1px solid rgba(0, 153, 255,0.12);
}
.promo-hint .tg-e { margin-top: 1px; }
.promo-hint strong { display: block; font-size: 0.92rem; letter-spacing: -0.02em; }
.promo-hint span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.84rem; font-weight: 500; }

.pay-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 8px;
}
.pay-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f5f8fd;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.pay-step span {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15,23,42,0.08);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink);
  flex: 0 0 auto;
}
.pay-step.is-active {
  background: var(--blue-soft);
  border-color: rgba(0, 153, 255,0.22);
  color: var(--blue);
}
.pay-step.is-active span { background: var(--blue); color: #fff; }
.udid-panel {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, #f5faff, #eaf7ff);
  border: 1px solid rgba(0, 153, 255,0.14);
  display: grid;
  gap: 14px;
}
.udid-wrap { max-width: 720px; }
.udid-card { margin-top: 8px; }
.udid-h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.udid-result-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.udid-result-head strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.udid-value {
  appearance: none;
  border: 1px solid var(--line);
  background: #f5faff;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.udid-value .mono {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  word-break: break-all;
  color: var(--ink);
  font-weight: 700;
}

/* Copy Button — DesignBookmark motion, site colors */
.udid-cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  padding: 8px 8px 8px 16px;
  border-radius: 18px;
  background: #f5faff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.udid-cmd-code {
  flex: 1 1 0;
  width: 0; /* Safari: button/flex item must shrink */
  min-width: 0;
  max-width: 100%;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  user-select: all;
  -webkit-user-select: all;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}
.udid-cmd .cp { flex: 0 0 auto; }
@media (max-width: 700px) {
  .udid-cmd {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }
  .udid-cmd-code {
    width: auto;
    flex: 1 1 auto;
    white-space: normal;
    word-break: break-all;
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .udid-cmd .cp {
    width: 100%;
    justify-content: center;
    height: 42px;
  }
}
.cp {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 153, 255, 0.1);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  overflow: hidden;
  flex: none;
  transition: background 0.18s var(--ease);
}
.cp:hover { background: rgba(0, 153, 255, 0.16); }
.cp:active { transform: scale(0.98); }
.cp .ic {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}
.cp .ic svg {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  will-change: transform, opacity;
}
.cp .i-ok {
  color: #15803d;
  stroke-width: 2.4;
  opacity: 0;
}
.cp .cp-roll {
  position: relative;
  height: 18px;
  overflow: hidden;
  display: block;
}
.cp .cp-words {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.cp .cp-words b {
  display: block;
  height: 18px;
  line-height: 18px;
  font-weight: 650;
  white-space: nowrap;
}
.cp .cp-words b + b { color: #15803d; }

.udid-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.udid-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
}
.udid-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.udid-warn { border-color: rgba(220, 38, 38, 0.18); background: #fff8f8; }
.udid-desk {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.udid-qr {
  width: 168px;
  height: 168px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.udid-qr svg { width: 100%; height: 100%; display: block; }
.udid-url-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
}
.udid-url-box .mono {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  color: var(--muted);
  word-break: break-all;
}
.udid-steps {
  margin: 4px 0 0;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
}
.udid-steps li { margin: 6px 0; }
.udid-steps strong { color: var(--ink); font-weight: 700; }
.udid-panel-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.udid-panel-head strong { display: block; font-size: 1.02rem; letter-spacing: -0.02em; }
.udid-panel-head p { margin: 4px 0 0; color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.udid-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── FAQ split layout ── */
#faq {
  background: transparent;
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 40px 72px;
  align-items: start;
}
.faq-side {
  padding-top: 8px;
}
.faq-side h2 {
  margin: 0 0 14px;
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}
.faq-side p {
  margin: 0 0 24px;
  max-width: 28ch;
  color: var(--muted);
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 1.5;
}
.faq-side-btn {
  min-height: 48px;
  padding-inline: 24px;
  text-decoration: none;
}
.faq-panel {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 8px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.faq-item {
  border: 0;
  border-bottom: 1px solid #ededed;
  background: transparent;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  user-select: none;
  transition: padding-bottom 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.3;
  padding-right: 8px;
}
.faq-toggle {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  position: relative;
  color: #111;
  transition: color 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transition:
    transform 0.55s cubic-bezier(0.32, 0.72, 0, 1),
    width 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    height 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.faq-toggle::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}
/* Icon state only via .is-open — so ×→+ can morph while panel still collapses */
.faq-item.is-open .faq-toggle {
  color: #3b82f6;
}
.faq-item.is-open .faq-toggle::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%) rotate(45deg);
}
.faq-item.is-open .faq-toggle::after {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.faq-item.is-open summary {
  padding-bottom: 14px;
}
.faq-a {
  overflow: hidden;
  height: 0;
  opacity: 0;
  color: #8a8a8a;
  font-weight: 450;
  will-change: height, opacity;
}
.faq-a p {
  margin: 0;
  padding: 0 36px 22px 0;
  max-width: none;
  line-height: 1.5;
  font-size: 1rem;
}
@media (prefers-reduced-motion: reduce) {
  .faq-a,
  .faq-toggle,
  .faq-toggle::before,
  .faq-toggle::after {
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .faq-side { padding-top: 0; }
  .faq-side p { max-width: 28ch; }
  .faq-panel { padding: 6px 22px; border-radius: 24px; }
  .faq-item summary { padding: 20px 0; }
  .faq-q { font-size: 1.02rem; }
}

/* ── Cabinet ── */
.cab-wrap { padding-bottom: 48px; }
.cab-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cab-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cab-rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.cab-rise.in { opacity: 1; transform: none; }

.cab-device-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  margin-bottom: 14px;
}
.cab-device-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 280px; height: 180px;
  background: radial-gradient(circle, rgba(0,153,255,0.18), transparent 70%);
  pointer-events: none;
}
.cab-device-row {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cab-device-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  flex: none;
}
.cab-device-meta { min-width: 0; flex: 1; }
.cab-device-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.cab-device-card .udid-cmd {
  max-width: min(100%, 560px);
  background: #f5faff;
  border-color: var(--line);
}
.cab-device-card .udid-cmd-code { color: var(--ink); }
.cab-device-card .cp {
  background: rgba(0, 153, 255, 0.1);
  color: var(--ink);
}
.cab-device-card .cp .i-ok,
.cab-device-card .cp .cp-words b + b { color: #15803d; }

.cab-help {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #e8f6ff, #f8fbff);
  border: 1px solid rgba(0,153,255,0.14);
  margin-bottom: 14px;
}
.cab-help-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cab-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}
.cab-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.cab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.cab-panel-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.cab-certs { display: grid; gap: 12px; }
.cert-card {
  padding: 16px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid var(--line);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
  animation: certIn 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.cert-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(0,153,255,0.22);
}
@keyframes certIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.cert-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 12px;
}
.cert-card-top strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.cert-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.86rem;
}
.cert-pwd {
  padding: 6px 8px 6px 12px !important;
  width: auto;
  min-width: 160px;
  background: #fff !important;
  flex-wrap: wrap;
  align-items: center;
}
.cert-pwd-label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}
.cert-pwd-val {
  flex: 0 0 auto !important;
  font-size: 1.05rem !important;
  padding-right: 4px !important;
}
.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cab-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 8px 2px 4px;
}
.cab-order {
  display: block;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fafcff;
  transition: transform 0.22s var(--ease), border-color 0.22s;
}
.cab-order + .cab-order { margin-top: 10px; }
.cab-order:hover {
  transform: translateY(-1px);
  border-color: rgba(0,153,255,0.25);
}
.cab-order-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.cab-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cab-hero h1 { margin: 0; }
.cab-device {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 26px;
  background: linear-gradient(145deg, #0b1220, #1a2740);
  color: #fff;
  box-shadow: var(--shadow-lg);
  margin-bottom: 18px;
}
.cab-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.cab-card h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cab-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfe;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cab-item + .cab-item { margin-top: 10px; }
.cab-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cab-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cab-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
@media (max-width: 860px) {
  .cab-grid { grid-template-columns: 1fr; }
  .cert-pwd { width: 100%; min-width: 0; }
}

.cab-login {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.cab-login h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-align: center;
}
.cab-login .page-sub { text-align: center; margin-bottom: 22px; }

/* ── Cabinet gate login ── */
/* [hidden] must beat .cab-gate { display:grid } — иначе экран входа остаётся поверх кабинета */
#login-screen[hidden],
#cabinet-page[hidden],
.cab-gate[hidden] {
  display: none !important;
}
body.cab-gate-body {
  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
}
body.cab-gate-body .site-header,
body.cab-gate-body .topbar { display: none; }
body.cab-ready .site-header,
body.cab-ready .topbar { display: block; }
.cab-page {
  animation: cabIn 0.45s var(--ease-glide) both;
}
@keyframes cabIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.cab-gate {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px 40px;
  overflow: hidden;
}
.cab-gate-inner {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  text-align: center;
}
.cab-gate h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.cab-gate-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 1rem;
}
.cab-gate .si-wrap {
  margin-top: 22px;
  gap: 6px;
}
.cab-gate .si-help:empty {
  display: none;
}
.cab-gate-link {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
}
.cab-gate-link:hover { text-decoration: underline; }
.cab-gate-legal {
  margin: 12px auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}
.cab-gate-legal a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.promo-ok {
  margin-top: 8px;
  color: #15803d;
  font-weight: 700;
  font-size: 0.9rem;
}
.price-was {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 8px;
}

/* ── 404 (light) ── */
.nf-body {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nf-glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 55vh;
  background:
    radial-gradient(55% 70% at 50% 0%, rgba(0, 153, 255, 0.16), transparent 70%),
    radial-gradient(40% 50% at 18% 30%, rgba(125, 211, 252, 0.18), transparent 72%),
    radial-gradient(36% 46% at 82% 22%, rgba(186, 230, 253, 0.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.nf-ring {
  position: fixed;
  left: 50%;
  top: 42%;
  width: min(920px, 120vw);
  height: min(920px, 120vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      transparent 0,
      transparent 28px,
      rgba(15, 23, 42, 0.035) 28px,
      rgba(15, 23, 42, 0.035) 29px
    );
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle, #000 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: nfRing 18s linear infinite;
}
@keyframes nfRing {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.nf-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 20px 64px;
  position: relative;
  z-index: 1;
}
.nf-stage {
  position: relative;
  width: min(720px, 100%);
  text-align: center;
  padding: 48px 12px 24px;
}
.nf-giant {
  position: absolute;
  left: 50%;
  top: -2%;
  transform: translateX(-50%);
  margin: 0;
  font-size: clamp(9rem, 32vw, 18rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.85;
  color: transparent;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.045) 55%, transparent 88%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}
.nf-title {
  position: relative;
  z-index: 1;
  margin: 88px auto 0;
  max-width: 14ch;
  font-size: clamp(2.2rem, 5.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.048em;
  font-weight: 800;
  color: var(--ink);
}
.nf-lead {
  position: relative;
  z-index: 1;
  margin: 16px auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.5;
}
.nf-actions {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.nf-cta {
  gap: 10px;
  padding-inline: 22px 18px;
}
.nf-cta .btn-arrow {
  display: block;
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.nf-cta:hover .btn-arrow { transform: translateX(3px); }
.nf-hints {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 42px auto 0;
  padding: 0;
  width: min(420px, 100%);
  display: grid;
  gap: 8px;
}
.nf-hints a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nf-hints a span {
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 1.6rem;
}
.nf-hints a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 153, 255, 0.28);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}
.nf-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: heroItemIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0.15s) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .nf-fade,
  .nf-ring {
    animation: none !important;
  }
  .nf-fade {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 640px) {
  .nf-title { margin-top: 64px; }
  .nf-giant { top: -4%; font-size: clamp(8rem, 46vw, 12rem); }
  .nf-actions { flex-direction: column; align-items: stretch; }
  .nf-actions .btn { width: 100%; }
}

/* ── Checkout payment ── */
.checkout-page { padding-bottom: 72px; }
.checkout-wrap { max-width: 560px; }
.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.checkout-back:hover { color: var(--blue); }

.checkout-sheet {
  padding: 22px 22px 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
}
.checkout-order {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.checkout-title {
  margin: 4px 0 0;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1.12;
}
.checkout-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.checkout-order-price {
  text-align: right;
  flex: 0 0 auto;
}
.checkout-price {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--blue);
  line-height: 1;
}
.checkout-order-price .price-was {
  display: block;
  margin-bottom: 2px;
  text-align: right;
}
.checkout-price-hint {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c47a10;
  background: #fff6e8;
  border-radius: 999px;
  padding: 3px 8px;
}
.receipt-discount {
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #15803d;
}
.checkout-divider {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2px 0;
}

.pay-methods-head strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pay-method {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #f7fbff;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  min-height: 64px;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.pay-method:hover {
  border-color: rgba(0, 153, 255, 0.3);
  background: #eef7ff;
}
.pay-method.is-selected {
  border-color: var(--blue);
  background: #e8f5ff;
  box-shadow: 0 8px 24px rgba(0, 153, 255, 0.14);
}
.pay-method-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
.pay-method-text {
  min-width: 0;
  display: grid;
  align-items: center;
}
.pay-method-text strong {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.pay-method-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.14);
  background: #fff;
}
.pay-method.is-selected .pay-method-check {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
}
.checkout-promo { margin-top: 2px; }
.checkout-pay-btn {
  width: 100%;
  margin-top: 2px;
  border-radius: 16px;
  min-height: 52px;
  font-size: 1.02rem;
}
.checkout-secure {
  margin: 0;
  font-size: 0.84rem;
  text-align: center;
}
.pay-methods-empty { margin: 0; font-size: 0.9rem; }

@media (max-width: 560px) {
  .checkout-sheet { padding: 18px 16px 20px; border-radius: 24px; }
  .pay-methods { grid-template-columns: 1fr; }
  .checkout-order { flex-direction: column; gap: 12px; }
  .checkout-order-price { text-align: left; }
  .checkout-order-price .price-was { text-align: left; }
}
