/* ===========================================================================
   ЛогоИгры — base design system
   Fonts injected via vars; palette via [data-palette]; tokens below.
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }

/* ---- Default palette: Coral (warm) -------------------------------------- */
.lg-root {
  --bg:            oklch(0.976 0.012 62);
  --bg-2:          oklch(0.958 0.018 56);
  --surface:       oklch(0.995 0.004 70);
  --surface-2:     oklch(0.982 0.010 62);
  --ink:           oklch(0.285 0.022 52);
  --ink-soft:      oklch(0.485 0.025 52);
  --ink-faint:     oklch(0.62 0.02 52);
  --primary:       oklch(0.70 0.152 38);
  --primary-strong:oklch(0.62 0.162 35);
  --primary-ink:   oklch(0.99 0.01 60);
  --primary-soft:  oklch(0.935 0.05 46);
  --secondary:     oklch(0.70 0.10 205);
  --secondary-soft:oklch(0.935 0.04 205);
  --border:        oklch(0.905 0.013 60);
  --border-strong: oklch(0.85 0.016 60);
  --shadow-rgb: 60 38 24;
}
.lg-root[data-palette="blue"] {
  --bg:            oklch(0.975 0.010 250);
  --bg-2:          oklch(0.958 0.014 250);
  --surface:       oklch(0.996 0.003 250);
  --surface-2:     oklch(0.982 0.008 250);
  --ink:           oklch(0.285 0.022 262);
  --ink-soft:      oklch(0.485 0.022 262);
  --ink-faint:     oklch(0.62 0.018 262);
  --primary:       oklch(0.605 0.135 252);
  --primary-strong:oklch(0.535 0.145 255);
  --primary-ink:   oklch(0.99 0.006 250);
  --primary-soft:  oklch(0.93 0.045 252);
  --secondary:     oklch(0.74 0.115 55);
  --secondary-soft:oklch(0.94 0.045 62);
  --border:        oklch(0.905 0.011 250);
  --border-strong: oklch(0.85 0.014 250);
  --shadow-rgb: 24 34 60;
}
.lg-root[data-palette="mint"] {
  --bg:            oklch(0.975 0.012 165);
  --bg-2:          oklch(0.957 0.016 165);
  --surface:       oklch(0.996 0.003 165);
  --surface-2:     oklch(0.982 0.009 165);
  --ink:           oklch(0.275 0.022 162);
  --ink-soft:      oklch(0.475 0.022 162);
  --ink-faint:     oklch(0.61 0.018 162);
  --primary:       oklch(0.625 0.118 162);
  --primary-strong:oklch(0.545 0.128 162);
  --primary-ink:   oklch(0.99 0.01 165);
  --primary-soft:  oklch(0.93 0.045 165);
  --secondary:     oklch(0.72 0.13 38);
  --secondary-soft:oklch(0.94 0.045 40);
  --border:        oklch(0.905 0.013 165);
  --border-strong: oklch(0.85 0.016 165);
  --shadow-rgb: 24 50 38;
}
.lg-root[data-palette="lavender"] {
  --bg:            oklch(0.975 0.012 300);
  --bg-2:          oklch(0.957 0.016 300);
  --surface:       oklch(0.996 0.003 300);
  --surface-2:     oklch(0.982 0.009 300);
  --ink:           oklch(0.285 0.022 300);
  --ink-soft:      oklch(0.485 0.022 300);
  --ink-faint:     oklch(0.62 0.018 300);
  --primary:       oklch(0.615 0.132 300);
  --primary-strong:oklch(0.545 0.142 300);
  --primary-ink:   oklch(0.99 0.008 300);
  --primary-soft:  oklch(0.935 0.045 300);
  --secondary:     oklch(0.72 0.11 205);
  --secondary-soft:oklch(0.94 0.045 205);
  --border:        oklch(0.905 0.013 300);
  --border-strong: oklch(0.85 0.016 300);
  --shadow-rgb: 44 30 60;
}

/* ---- Fonts (defaults; overridden by inline vars from Tweaks) ------------- */
.lg-root {
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
}

.lg-root {
  position: relative;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 640px at 86% -10%, color-mix(in oklab, var(--primary-soft) 72%, transparent), transparent 58%),
    radial-gradient(820px 560px at -8% 12%, color-mix(in oklab, var(--secondary-soft) 58%, transparent), transparent 60%),
    radial-gradient(rgb(var(--shadow-rgb) / 0.05) 1.1px, transparent 1.3px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  background-repeat: no-repeat, no-repeat, repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Typography --------------------------------------------------------- */
.lg-root h1, .lg-root h2, .lg-root h3, .lg-root h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 800; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--primary);
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.6;
  text-wrap: pretty;
  margin: 0;
}
p { margin: 0 0 1em; text-wrap: pretty; }

/* ---- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section > .wrap { position: relative; z-index: 1; }
.section.alt { background: var(--bg-2); overflow: hidden; }
.section.alt::before { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; filter: blur(95px); pointer-events: none; z-index: 0; opacity: 0.55; background: var(--primary-soft); top: -170px; right: -150px; }
.section.alt::after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(95px); pointer-events: none; z-index: 0; opacity: 0.5; background: var(--secondary-soft); bottom: -170px; left: -160px; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s cubic-bezier(.3,.7,.4,1), box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 10px 26px -10px rgb(var(--shadow-rgb) / 0.5);
}
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgb(var(--shadow-rgb) / 0.55); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ink-faint); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }
.btn-white { background: var(--surface); color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(0,0,0,.35); }

/* ---- Chips / pills ------------------------------------------------------ */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink-soft);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ---- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / 0.04), 0 18px 40px -28px rgb(var(--shadow-rgb) / 0.22);
}

/* ===========================================================================
   NAV
   =========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--primary);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgb(var(--shadow-rgb) / 0.5);
  position: relative; overflow: hidden;
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.94rem;
  padding: 9px 12px; border-radius: 10px; transition: color .15s, background .15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* language switch */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.lang-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.82rem;
  color: var(--ink-faint); padding: 6px 12px; border-radius: 999px; transition: color .15s;
  letter-spacing: 0.02em;
}
.lang-switch button[data-on="1"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(var(--shadow-rgb) / 0.18); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

@media (max-width: 1040px) {
  .nav-links { display: none; }
}

/* ===========================================================================
   HERO
   =========================================================================== */
.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(60px, 8vw, 110px); position: relative; overflow: hidden; }
.hero-bg-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; pointer-events: none; z-index: 0;
}
.hero-bg-blob.a { width: 520px; height: 520px; background: var(--primary-soft); top: -160px; right: -120px; }
.hero-bg-blob.b { width: 420px; height: 420px; background: var(--secondary-soft); bottom: -160px; left: -140px; opacity: 0.4; }
.hero-inner { position: relative; z-index: 1; }

/* Variant: split (default) */
.hero-split { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--primary-strong); }
.hero-lead { margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px 34px; margin-top: 40px; }
.hero-meta .stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.hero-meta .stat .l { font-size: 0.9rem; color: var(--ink-faint); margin-top: 6px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 480px; }

/* Variant: centered */
.hero.variant-centered .hero-split { grid-template-columns: 1fr; text-align: center; }
.hero.variant-centered .hero-copy { max-width: 760px; margin: 0 auto; }
.hero.variant-centered .hero-lead { margin-left: auto; margin-right: auto; }
.hero.variant-centered .hero-cta { justify-content: center; }
.hero.variant-centered .hero-meta { justify-content: center; }
.hero.variant-centered .eyebrow { justify-content: center; }
.hero.variant-centered .hero-visual { margin-top: 56px; min-height: 0; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 640px; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-meta, .eyebrow { justify-content: center; }
  .hero-visual { margin-top: 48px; min-height: 0; }
}

/* ===========================================================================
   DEVICE FRAMES
   =========================================================================== */
.device-stage { position: relative; }

/* Shared graphite frame look (neutral, complements every palette) */
.tablet, .phone {
  --frame-1: oklch(0.34 0.012 290);
  --frame-2: oklch(0.20 0.010 290);
  --lens: radial-gradient(circle at 35% 30%, oklch(0.46 0.03 270), oklch(0.13 0.01 270) 72%);
}

/* Tablet */
.tablet {
  position: relative;
  width: 460px; max-width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--frame-1), var(--frame-2));
  border-radius: 28px;
  padding: 11px;
  box-shadow:
    0 1px 2px rgba(0,0,0,.35),
    0 40px 80px -30px rgb(var(--shadow-rgb) / 0.5),
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 1.5px 1px rgba(255,255,255,.16),
    inset 0 -2px 2px rgba(0,0,0,.25);
}
.tablet-screen {
  width: 100%; height: 100%;
  border-radius: 17px; overflow: hidden;
  background: var(--surface);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45);
}
/* front camera — centered on the top bezel */
.tablet::before {
  content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; z-index: 6;
  background: var(--lens);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 0 1px rgba(0,0,0,.4);
}

/* Phone */
.phone {
  position: relative;
  width: 190px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(150deg, var(--frame-1), var(--frame-2));
  border-radius: 34px;
  padding: 6px;
  box-shadow:
    0 1px 2px rgba(0,0,0,.35),
    0 34px 60px -26px rgb(var(--shadow-rgb) / 0.55),
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 1.5px 1px rgba(255,255,255,.16),
    inset 0 -2px 2px rgba(0,0,0,.25);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 28px; overflow: hidden;
  background: var(--surface); position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45);
}
/* dynamic-island style camera pill, seated inside the screen */
.phone-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 15px; background: #0c0c10; border-radius: 999px; z-index: 6;
  display: flex; align-items: center; justify-content: flex-end;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.phone-notch::after {
  content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;
  background: var(--lens);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

/* hero composition: tablet with phone overlapping */
.hero-devices { position: relative; }
.hero-devices .phone {
  position: absolute; right: -26px; bottom: -52px; z-index: 3;
  animation: floaty 6s ease-in-out infinite;
}
.hero-devices .tablet { animation: floaty 7s ease-in-out infinite reverse; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-devices .phone, .hero-devices .tablet { animation: none; } }

@media (max-width: 560px) {
  .tablet { width: 100%; }
  .hero-devices .phone { width: 140px; right: -8px; bottom: -36px; }
}

/* floating sticker badges around hero devices */
.sticker {
  position: absolute; z-index: 5;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 11px 14px;
  box-shadow: 0 16px 30px -16px rgb(var(--shadow-rgb) / 0.4);
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.86rem; color: var(--ink);
  animation: floaty 5.5s ease-in-out infinite;
}
.sticker .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.sticker .ico svg { width: 17px; height: 17px; }
.sticker small { display: block; font-weight: 500; font-size: 0.74rem; color: var(--ink-faint); }
.sticker.s1 { top: 6px; left: -36px; }
.sticker.s2 { bottom: 30px; left: -50px; animation-delay: 1.4s; }
@media (max-width: 1080px) { .sticker.s1, .sticker.s2 { display: none; } }

/* ---- App-screen mockups (inside device frames) -------------------------- */
.screen-ui { width: 100%; height: 100%; font-family: var(--font-body); position: relative; display: flex; flex-direction: column; }
.scr-pad { padding: 34px 16px 0; }
.scr-topbar { display: flex; align-items: center; justify-content: space-between; }
.scr-title { font-family: var(--font-display); font-weight: 800; font-size: 0.92rem; color: var(--ink); }
.scr-sub { font-size: 0.62rem; color: var(--ink-faint); }
.scr-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); border: 1.5px solid var(--surface); }

/* Tablet hero screen: therapist sidebar + live game */
.tscreen { background: var(--bg-2); }
.tscreen-side { width: 42%; background: var(--surface); border-right: 1px solid var(--border); padding: 13px; display: flex; flex-direction: column; gap: 11px; }
.tscreen-side-top { }
.tscreen .mini-patient .pa { width: 30px; height: 30px; border-radius: 9px; font-size: 0.8rem; }
.tscreen .mini-patient .pn { font-size: 0.72rem; }
.tscreen .mini-patient .pm { font-size: 0.58rem; }
.tscreen-lesson { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tscreen-lesson .cn-chip { padding: 7px 8px; border-radius: 9px; }
.tscreen-lesson .cn-chip .nm { font-size: 0.64rem; }
.tscreen-lesson .cn-chip .dur { font-size: 0.56rem; }
.tscreen-lesson .cn-chip.active { border-color: var(--primary); background: var(--primary-soft); }
.tscreen-lesson .cn-chip .h { height: 18px; }
.tscreen-rec { display: flex; align-items: center; gap: 7px; font-size: 0.6rem; font-weight: 700; color: var(--ink-soft); padding: 7px 9px; background: var(--surface-2); border-radius: 9px; }
.tscreen-rec .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5a5a; animation: recpulse 1.4s infinite; }
.tscreen-play { flex: 1; position: relative; }

/* Phone hero screen: progress journal */
.pscreen-body { padding: 6px 16px 18px; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.pscreen-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin: 12px 0 9px; }
.pscreen .mini-bar-row { font-size: 0.66rem; }
.pscreen .mini-bar-row .sc { width: 22px; font-size: 0.72rem; }
.pscreen .mini-bar { height: 7px; }
.pscreen .mini-bar-row .pct { width: 28px; font-size: 0.62rem; }
.pscreen .mini-waveform { height: 40px; }
.pscreen .tc { font-size: 0.56rem; padding: 2px 6px; }

/* ===========================================================================
   MOBILE COMPOSITION
   =========================================================================== */
@media (max-width: 640px) {
  .lg-root {
    font-size: 16px;
    background-size: 100% 100%, 100% 100%, 18px 18px;
  }

  .wrap { padding: 0 20px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head.center { text-align: left; }
  .section-head.center .eyebrow { justify-content: flex-start; }

  .display {
    font-size: clamp(2.45rem, 12vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
  }
  .h2 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
    line-height: 1.08;
  }
  .lead {
    font-size: 1.02rem;
    line-height: 1.55;
  }
  .eyebrow {
    font-size: 0.72rem;
    gap: 8px;
    margin-bottom: 14px;
  }
  .eyebrow::before { width: 18px; }

  .btn {
    min-height: 50px;
    padding: 13px 20px;
    font-size: 0.98rem;
  }
  .btn-lg {
    padding: 15px 22px;
    font-size: 1rem;
  }

  .nav {
    position: sticky;
    background: color-mix(in oklab, var(--bg) 90%, transparent);
  }
  .nav-inner {
    height: 64px;
    gap: 10px;
    padding-inline: 14px;
  }
  .brand { gap: 9px; min-width: 0; }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .brand-name {
    font-size: clamp(1.12rem, 6vw, 1.32rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-right { gap: 8px; }
  .nav-right > .btn { display: none; }
  .lang-switch { padding: 2px; }
  .lang-switch button {
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .hero {
    padding: 42px 0 40px;
    overflow: clip;
  }
  .hero-split {
    gap: 26px;
    text-align: center;
  }
  .hero h1 { margin-bottom: 18px; }
  .hero-lead {
    max-width: 34ch;
    margin-bottom: 24px;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 330px;
    margin: 0 auto;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-meta {
    margin-top: 28px;
    justify-content: center;
    gap: 16px 22px;
  }
  .hero-meta .stat .n { font-size: 1.45rem; }
  .hero-meta .stat .l { font-size: 0.78rem; }
  .hero-visual {
    margin-top: 18px;
    min-height: 310px;
    align-items: flex-start;
  }
  .hero-devices {
    width: min(100%, 340px);
    margin: 0 auto;
    transform: translateY(4px);
  }
  .hero-devices .tablet {
    width: min(82vw, 300px);
    margin-left: 0;
    border-radius: 24px;
    padding: 8px;
  }
  .hero-devices .tablet-screen { border-radius: 15px; }
  .hero-devices .phone {
    width: clamp(108px, 34vw, 132px);
    right: 6px;
    bottom: -28px;
    border-radius: 28px;
    padding: 5px;
  }
  .hero-devices .phone-screen { border-radius: 23px; }
  .hero-devices .phone-notch {
    top: 9px;
    width: 40px;
    height: 12px;
  }
  .scr-pad { padding: 28px 12px 0; }
  .pscreen-body { padding: 4px 12px 14px; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding-inline: 12px; }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-mark svg {
    width: 20px;
    height: 20px;
  }
  .brand-name { max-width: 145px; }
  .lang-switch button {
    padding: 5px 8px;
    font-size: 0.72rem;
  }
  .hero-visual { min-height: 292px; }
  .hero-devices .tablet { width: 286px; }
  .hero-devices .phone { right: 0; }
}
