/* =========================================================
   Silk Robotics — shared styles (all pages) + home page
   Calm by design: flat surfaces, clear type, no looping motion.
   Base: deep indigo · Accent: saffron · 2nd: Samarkand turquoise
   ========================================================= */

:root {
  --bg: #0D1330;
  --bg-deep: #0A0F28;
  --bg-raise: #131B42;
  --card: #131B42;
  --line: rgba(170, 182, 255, .13);
  --line-strong: rgba(170, 182, 255, .26);

  --text: #EEF1FF;
  --text-dim: #B3BADF;
  --text-faint: #8A94C6;

  --saffron: #FFB61E;
  --saffron-2: #FFC94D;
  --turq: #12B5B0;
  --turq-2: #43E3DA;

  --robo: #FF7A1A;
  --orbit: #3D8BFF;
  --sky: #12B5B0;
  --rocket: #FF3D57;

  --paper: #F5F3EE;
  --ink: #0D1330;
  --ink-dim: #4A5178;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.6, 0, .3, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --nav-h: 68px;
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
::selection { background: var(--saffron); color: var(--ink); }
:focus-visible { outline: 2px solid var(--turq-2); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.art { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; top: 12px; left: 12px; z-index: 300; padding: 12px 18px; border-radius: 10px; background: var(--saffron); color: var(--ink); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
.progress, .cursor, .loader { display: none !important; }

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); }
.eyebrow--ink { color: #8A5E00; }
.h-hero { font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.h-section { max-width: 26ch; font-weight: 300; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; }
.h-hero b, .h-section b, .h-display b { font-weight: 800; }
.h-display { font-weight: 300; font-size: clamp(36px, 5vw, 64px); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.lead { max-width: 58ch; color: var(--text-dim); font-size: 17px; text-wrap: pretty; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--light {
  --text: #0D1330; --text-dim: #4A5178; --text-faint: #6B7194;
  --line: rgba(13,19,48,.10); --line-strong: rgba(13,19,48,.20); --card: #fff;
  background: var(--paper); color: var(--text);
}
.section--light .eyebrow { color: #8A5E00; }
.section--light :focus-visible { outline-color: var(--orbit); }
.section__head { display: grid; gap: 12px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__head--row > div:not(.chips):not(.seg) { display: grid; gap: 14px; }

/* reveal: one short, quiet fade */
.js [data-reveal], .js [data-split] { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--d, 0) * 60ms); }
.js [data-reveal].in, .js [data-split].in { opacity: 1; transform: none; }

/* ---------- buttons & links ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1.1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition-property: background-color, border-color, color, transform; transition-duration: .15s; transition-timing-function: ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--saffron); color: var(--ink); }
.btn--primary:hover { background: var(--saffron-2); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text-dim); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #1F2A5C; }
.btn:disabled { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; font: 600 15px/1.2 var(--font); color: var(--text); }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .15s ease-out; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow:hover span { text-decoration: underline; text-underline-offset: 4px; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge--live { background: color-mix(in srgb, var(--c, var(--saffron)) 16%, transparent); color: color-mix(in srgb, var(--c, var(--saffron)) 55%, #fff); }
.badge--live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--soon { border: 1px solid var(--line-strong); color: var(--text-dim); }
.kit__tag { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.kit__ring { display: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; border-bottom: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.nav.is-scrolled { background: rgba(13,19,48,.96); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 300; letter-spacing: .14em; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; fill: none; stroke-width: 2.6; }
.logo b { font-weight: 800; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-dim); transition: color .15s, background-color .15s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); background: rgba(255,255,255,.06); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); }
.lang button { min-width: 38px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 7px; background: none; cursor: pointer; font: 600 12px var(--mono); color: var(--text-dim); transition: background-color .15s, color .15s; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.cart-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.cart-btn:hover { border-color: var(--line-strong); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--saffron); color: var(--ink); font: 700 11px/20px var(--mono); text-align: center; font-variant-numeric: tabular-nums; display: none; }
.cart-count.has { display: block; }
.cart-count.bump { animation: bump .3s ease-out; }
@keyframes bump { 50% { transform: scale(1.25); } }
.burger { display: none; position: relative; width: 42px; height: 42px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: none; cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .2s ease-out, top .2s ease-out; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 16px) var(--gutter) 28px; background: var(--bg); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__links { display: grid; }
.menu__links a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 24px; font-weight: 600; }
.menu__links small { display: none; }
.menu__foot { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- shared: home-style product card (shop) ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product { --c: var(--orbit); position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: #fff; border: 1px solid rgba(13,19,48,.08); overflow: hidden; color: var(--ink); transition: border-color .15s; }
.product:hover { border-color: rgba(13,19,48,.25); }
.product[hidden] { display: none; }
.product.pop { animation: none; }
.product__img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); }
.product__img .art { width: 50%; height: 50%; stroke-width: 2.2; }
.product__badge { position: absolute; top: 12px; left: 12px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 600 11px/24px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.product__body { display: grid; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.product__cat { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); }
.product__name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.product__name a { text-decoration: none; }
.product__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.product__price { font-weight: 700; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.add { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; transition: background-color .15s, transform .15s; }
.add:hover { background: #1F2A5C; }
.add:active { transform: scale(.94); }

/* ---------- shared: kit page project cards ---------- */
.proj { --c: var(--saffron); position: relative; display: grid; gap: 14px; align-content: start; padding: 12px 12px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .15s, opacity .5s, transform .5s; }
.proj:hover { border-color: var(--c); }
.proj__art { aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.proj__art .art { width: 46%; height: 46%; }
.proj__scan { display: none; }
.proj__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px; }
.proj__kit { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.proj__title { padding: 0 6px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.diff { display: inline-flex; align-items: center; gap: 3px; font: 500 12px var(--mono); color: var(--text-dim); }
.diff i { width: 5px; height: 12px; border-radius: 2px; background: var(--line-strong); }
.diff[data-level="1"] i:nth-child(1), .diff[data-level="2"] i:nth-child(-n+2), .diff[data-level="3"] i { background: var(--c); }
.diff span { margin-left: 6px; }

/* ---------- shared: dark "board" sections, girih accent ---------- */
.how { background: var(--bg-deep); }
.how__pcb { display: none; }
.girih { position: absolute; pointer-events: none; color: var(--saffron); opacity: .05; }
.girih--tr { top: 0; right: 0; width: 40vw; max-width: 480px; height: 360px; }
.girih--bl { bottom: 0; left: 0; width: 40vw; max-width: 480px; height: 360px; color: var(--turq); }
.girih--c { inset: 0; width: 100%; height: 100%; opacity: .04; }

/* ---------- shared: stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: grid; gap: 6px; padding: 28px 20px 28px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { font-size: clamp(36px, 4.4vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-dim); font-size: 15px; }
.vision__orbits { display: none; }

/* ---------- shared: forms ---------- */
.schools { position: relative; overflow: hidden; }
.schools__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.schools__copy { display: grid; gap: 22px; }
.quote { position: relative; padding: clamp(22px, 3vw, 36px); border-radius: 22px; border: 1px solid var(--line-strong); background: var(--bg-raise); }
.quote__form { display: grid; gap: 16px; }
.quote__title { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.quote__sub { margin-top: -6px; color: var(--text-dim); }
.quote__note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-faint); }
.quote__note .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--turq-2); }
.quote__done { display: grid; justify-items: center; gap: 12px; padding: 40px 12px; text-align: center; }
.quote__done[hidden] { display: none; }
.quote__done h3 { font-size: 30px; font-weight: 800; }
.quote__done p { color: var(--text-dim); }
.quote__check { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--turq); color: #fff; }
.quote__check .ic { width: 30px; height: 30px; stroke-width: 2.4; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 500 16px var(--font); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6E78A6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--turq-2); box-shadow: 0 0 0 3px rgba(18,181,176,.25); }
.field input[aria-invalid="true"] { border-color: #FF7085; }
.field__err { font-size: 13px; font-weight: 500; color: #FF95A5; }
.field__err:empty { display: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(13,19,48,.3); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shared: inner pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.crumbs a { padding: 6px 0; color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.faq { margin-top: 8px; display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--text-dim); transition: transform .2s ease-out; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq p { max-width: 60ch; padding: 0 0 18px; color: var(--text-dim); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-rise { animation: none; }
.buy__actions { display: flex; gap: 10px; }
.buy__add { flex: 1; }
.stepper { display: flex; align-items: center; height: 54px; padding: 0 5px; border-radius: 12px; border: 1px solid var(--line-strong); }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; cursor: pointer; transition: background-color .15s; }
.stepper button:hover { background: rgba(255,255,255,.08); }
.stepper output { min-width: 28px; text-align: center; font: 600 16px var(--mono); font-variant-numeric: tabular-nums; }
.select { position: relative; display: block; }
.select select { width: 100%; min-height: 50px; padding: 0 42px 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 500 16px var(--font); cursor: pointer; -webkit-appearance: none; appearance: none; }
.select select:focus { outline: none; border-color: var(--turq-2); box-shadow: 0 0 0 3px rgba(18,181,176,.25); }
.select option { background: var(--bg); color: var(--text); }
.select .ic { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--text-dim); }
.range { --p: .66; width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c, var(--saffron)) calc(var(--p) * 100%), var(--line-strong) 0); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 6px solid var(--c, var(--saffron)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-strong); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--c, var(--saffron)); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--c, var(--saffron)); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--turq-2); }
.range__scale { display: flex; justify-content: space-between; margin-top: -4px; font: 500 11px var(--mono); color: var(--text-faint); }
.qr { width: 72px; height: 72px; flex: none; padding: 6px; border-radius: 10px; background: #fff; }
.qr rect { fill: var(--ink); }

/* ---------- footer, FAB, modal, toast ---------- */
.footer { padding: 56px 0 24px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__brand p { max-width: 32ch; color: var(--text-dim); font-size: 15px; }
.footer__col { display: grid; gap: 2px; align-content: start; }
.footer__col h3 { margin-bottom: 8px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.footer__col a, .footer__col > span { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: var(--text-dim); text-decoration: none; font-size: 15px; }
.footer__col a:hover { color: var(--text); }
.footer__col .ic { width: 16px; height: 16px; }
.footer__word, .socials, .footer__motto { display: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-faint); }

.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 52px; height: 52px; display: none; place-items: center; border-radius: 50%; background: var(--turq); color: #fff; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
.fab .ic { width: 22px; height: 22px; }

.modal { width: min(460px, calc(100vw - 32px)); padding: 0; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--bg-raise); color: var(--text); }
.modal::backdrop { background: rgba(5,8,24,.7); }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-raise); cursor: pointer; }
.modal__close:hover { border-color: var(--line-strong); }

.toast { position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 130; width: fit-content; max-width: calc(100vw - 32px); margin-inline: auto; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: 0 12px 32px -12px rgba(0,0,0,.6); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .nav__cta { display: none; } }
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__right { margin-left: auto; }
}
@media (max-width: 900px) {
  .ask, .schools__grid { grid-template-columns: 1fr; }
  .facts, .stats { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3), .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { padding-top: 20px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .fab { display: grid; }
  .nav__cta { display: none; }
  .ctas .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; }
  .toast { bottom: 84px; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .logo__word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Home (v3): product image, plain columns, no icon cards
   ========================================================= */
/* first screen fills the viewport; the next section starts below the fold */
.hero3 { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 24px) 0 clamp(24px, 3vw, 40px); }
.hero3 > .hero3__grid { flex: 1; align-content: center; }
.hero3__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero3__copy { display: grid; gap: 18px; justify-items: start; }
.hero3__copy .h-hero b { color: var(--saffron); }
.hero3__media { margin: 0; }
.hero3__media img, .platform__media img { width: 100%; height: auto; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.facts > div { padding: 18px 16px 0 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: 20px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.facts dd { margin-top: 4px; font-size: 14px; color: var(--text-dim); }

/* plain columns separated by a hairline — used for why / how / who / model / roadmap */
.cols { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 40px); }
.cols--2 { grid-template-columns: repeat(2, 1fr); }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.col { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.col h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.col p { color: var(--text-dim); font-size: 15px; text-wrap: pretty; }
.col .link-arrow { margin-top: 2px; font-size: 14px; }
.col__n { font: 600 13px var(--mono); color: var(--saffron); }
.section--light .col__n { color: #8A5E00; }
.col__tag { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.col--now { border-top: 2px solid var(--saffron); }
.col--now .col__tag { color: #8A5E00; }
.col__label { margin-bottom: 8px; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.col__label--problem { color: #C2253D; }
.col__label--solution { color: #0B8682; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #0B8682 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ticks--x li::before { background: rgba(194,37,61,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2253D' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M17 7 7 17M7 7l10 10'/%3E%3C/svg%3E") center / 9px no-repeat; }

/* platform: product image + numbered layers */
.platform { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.platform__media { margin: 0; }
.layers { list-style: none; margin: 0; padding: 0; }
.layers li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.layers li:last-child { border-bottom: 1px solid var(--line); }
.layers__n { padding-top: 2px; font: 600 13px var(--mono); color: var(--text-faint); }
.layers__main .layers__n { color: var(--saffron); }
.layers h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.layers h3 em { margin-left: 6px; padding: 2px 7px; border-radius: 5px; background: var(--saffron); color: var(--ink); font: 600 10px/1.6 var(--mono); font-style: normal; letter-spacing: .04em; text-transform: uppercase; vertical-align: 3px; }
.layers p { margin-top: 4px; color: var(--text-dim); font-size: 15px; }
.vs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.vs p { max-width: 64ch; color: var(--text-dim); font-size: 15px; }

/* kits as a simple table-like list */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.rows a { display: grid; grid-template-columns: 1.1fr 1.4fr 70px 170px 20px; gap: 16px; align-items: center; min-height: 64px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .15s; }
.rows a:hover { background: rgba(13,19,48,.04); }
.rows__name { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.rows__name::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.rows__tag { color: var(--text-dim); font-size: 15px; }
.rows__age { font: 600 13px var(--mono); color: var(--text-dim); }
.rows__price { justify-self: end; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.rows__price--soon { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.rows .ic { width: 18px; height: 18px; color: var(--text-faint); }

.ask { display: grid; grid-template-columns: 1.4fr .6fr; gap: 28px; align-items: center; padding: clamp(24px, 3.5vw, 44px); border-radius: 20px; border: 1px solid rgba(255,182,30,.4); }
.ask > div:first-child { display: grid; gap: 12px; }
.ask__btns { display: grid; gap: 10px; }

@media (max-width: 900px) {
  .hero3__grid, .platform, .ask { grid-template-columns: 1fr; }
  .hero3__media { max-width: 520px; }
  .platform__media { max-width: 520px; }
  .cols--2, .cols--3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { padding-top: 16px; }
  .rows a { grid-template-columns: 1fr auto 20px; grid-template-areas: "name price arrow" "tag tag tag"; row-gap: 2px; }
  .rows__name { grid-area: name; } .rows__price { grid-area: price; } .rows .ic { grid-area: arrow; }
  .rows__tag { grid-area: tag; font-size: 14px; } .rows__age { display: none; }
}
@media (max-width: 420px) { .facts dt { font-size: 18px; } }

/* long words (e.g. "микроконтроллерами") must never widen the page */
.hero3__grid > *, .platform > * { min-width: 0; }
.h-hero, .h-section { overflow-wrap: break-word; }
@media (max-width: 480px) { .h-hero { hyphens: auto; } }
@media (max-width: 480px) { .h-hero { font-size: 27px; } }

/* home: 4-step roadmap + learning-partner strip */
.cols--4 { grid-template-columns: repeat(4, 1fr); }
.partner-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(255,182,30,.4); }
.partner-strip p { max-width: 70ch; color: var(--text-dim); font-size: 15px; }
.partner-strip b { color: var(--text); }
@media (max-width: 1100px) { .cols--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cols--4 { grid-template-columns: 1fr; } }
.product__img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* kit rows: small 3D render instead of a colour dot */
.rows a { grid-template-columns: 72px 1.1fr 1.4fr 70px 170px 20px; }
.rows__img { width: 72px; height: 54px; object-fit: contain; }
.rows__img + .rows__name::before { display: none; }
@media (max-width: 900px) {
  .rows a { grid-template-columns: 64px 1fr auto 20px; grid-template-areas: "img name price arrow" "img tag tag tag"; }
  .rows__img { grid-area: img; width: 64px; height: 48px; }
}

/* new logo (PNG lockup): white text on dark, dark text on light */
.logo__img { display: block; height: 52px; width: auto; }
.footer .logo__img { height: 72px; }
.section--light .logo__img, .sheet .logo__img, .on-light .logo__img { content: url("../img/logo-on-light.png"); }
@media (max-width: 760px) { .logo__img { height: 44px; } }

/* hero: Silk Robotics v1 board, looping 3D (assets/js/hero-board.js); the poster shows until it is ready */
.board3d { position: relative; aspect-ratio: 4 / 3; }
.board3d__poster { transition: opacity .6s ease; }
.board3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.board3d.is-live .board3d__canvas { opacity: 1; }
.board3d.is-live .board3d__poster { opacity: 0; }
