/* Entercore Systems — site styles.
   Brand: Data E (deep green · lime · mint). Fonts: Outfit (Latin display), Inter (body), Onest (Cyrillic display).
   Rules for this file: no inline styles in HTML (strict CSP), mobile menu below 1024px, every interactive element
   needs a visible focus state on both light and dark backgrounds. */

/* ---------- fonts (self-hosted, versioned file names) ---------- */
@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit.v2.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+0160-0161, U+0178, U+017D-017E, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.v2.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+0160-0161, U+0178, U+017D-017E, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-cyrillic.v2.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0493, U+049A-049B, U+04A2-04A3, U+04AE-04B3, U+04BA-04BB, U+04E8-04E9, U+2116, U+20BD; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest.v2.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --deep: #06302B; --deep-2: #0B3B35; --deep-3: #124740; --line-dark: #1F5249;
  --lime: #C6F432; --mint: #7BC4AC; --mint-soft: #A9D6C6;
  --teal: #0F7A63; --sage: #2F6B5E; --mist: #EEF5F2; --paper: #FFFFFF;
  --ink: #0B1F1C; --muted: #4A5F5A; --line: #DCE7E2;
  --radius: 18px; --max: 1160px; --header: 72px;
  --display: "Outfit", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
:lang(ru) { --display: "Onest", "Inter", system-ui, sans-serif; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--deep); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* Focus: dark ring on light surfaces (14:1), lime ring inside dark containers (11:1). */
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 6px; }
:where(.site-header, .hero, .results, .product, .cta, .case-hero, .side-box.dark, .site-footer) :focus-visible,
.skip:focus-visible { outline-color: var(--lime); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn-lime, .btn-lime:hover { background: var(--lime); color: var(--deep); }
.btn-lime:hover { background: #D4FA5C; }
.btn-ghost { border-color: #3D6B62; color: #fff; }
.btn-ghost:hover { border-color: var(--mint); color: #fff; }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--deep-3); color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 48, 43, 0.94); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-dark); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 38px; height: auto; }
.brand-name { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; font-size: 19px; letter-spacing: 0.05em; line-height: 1; }
.brand-name small { display: block; font-weight: 400; font-size: 9.5px; letter-spacing: 0.55em; color: var(--mint); margin-top: 4px; }
.nav .btn { min-height: 42px; padding: 9px 18px; font-size: 15px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.nav-links a:not(.btn) { color: #D7EAE3; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; }

/* language switcher (header, case pages, footer) */
.lang { display: inline-flex; gap: 2px; border: 1px solid #3D6B62; border-radius: 999px; padding: 3px; }
.lang a { display: inline-flex; align-items: center; min-height: 28px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: #B9D8CD; text-decoration: none; }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: var(--lime); color: var(--deep); }

/* desktop: hide secondary links where space is short (they stay in the footer) */
@media (min-width: 1024px) {
  .nav-links li:nth-child(3), .nav-links li:nth-child(6) { display: none; }
}
@media (min-width: 1280px) {
  html:lang(en) .nav-links { gap: 26px; }
  html:lang(en) .nav-links li:nth-child(3), html:lang(en) .nav-links li:nth-child(6) { display: list-item; }
}

/* mobile and tablet menu */
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid #3D6B62; background: transparent; color: #fff; cursor: pointer; }
  .nav-links { display: none; position: absolute; top: var(--header); left: -24px; right: -24px; flex-direction: column; align-items: stretch; gap: 0; background: var(--deep); border-bottom: 1px solid var(--line-dark); padding: 8px 24px 20px; max-height: calc(100vh - var(--header)); max-height: calc(100dvh - var(--header)); overflow-y: auto; overscroll-behavior: contain; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 14px 4px; font-size: 17px; }
  .nav-links .lang-item { order: -1; margin: 8px 0; }
  .nav-links .lang a { min-height: 40px; padding: 8px 14px; font-size: 15px; }
  .nav-links .btn { display: flex; margin-top: 8px; padding: 12px 22px; }
}

/* ---------- hero ---------- */
.hero { background: var(--deep); color: #fff; padding: 88px 0 96px; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; margin-top: 22px; }
:lang(ru) .hero h1 { font-size: clamp(36px, 5.2vw, 60px); }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { font-size: 19px; color: var(--mint-soft); margin-top: 24px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; color: #B9D8CD; font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.stream { width: 100%; height: auto; }
/* One gentle pass (under 5 s), then still — WCAG 2.2.2. */
.stream .d { animation: pulse 3.2s ease-in-out 1 both; }
.stream .d[cx="62"] { animation-delay: .15s; } .stream .d[cx="104"] { animation-delay: .3s; } .stream .d[cx="146"] { animation-delay: .45s; }
.stream .d[cx="188"] { animation-delay: .6s; } .stream .d[cx="230"] { animation-delay: .75s; }
@keyframes pulse { 50% { opacity: .12; } }

/* ---------- results strip ---------- */
.results { background: var(--deep-2); color: #fff; border-top: 1px solid var(--line-dark); }
.results-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 34px 24px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--display); font-size: 40px; font-weight: 600; color: var(--lime); line-height: 1; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 10px; font-size: 15px; color: var(--mint-soft); line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 52px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; max-width: 640px; }
.section-head p { max-width: 460px; color: var(--muted); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; display: block; }
.mt-lg { margin-top: 56px; }
.mt-md { margin-top: 28px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 22px; font-weight: 600; }
.card p { color: var(--muted); font-size: 16px; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--deep); display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; }

/* case cards */
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { position: relative; background: var(--paper); border: 1px solid #D3E2DC; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.case:hover { border-color: var(--teal); color: var(--ink); }
.case .metric { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--teal); line-height: 1.1; }
.case h3 { font-size: 22px; font-weight: 600; }
.case p { color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tag { font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--mist); color: var(--sage); }
.case .more { font-weight: 600; font-size: 15px; color: var(--teal); }

/* product */
.product { background: var(--deep); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.product h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; }
.product p { color: var(--mint-soft); margin-top: 18px; }
.product .kicker { color: var(--lime); }
.agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.agent { border: 1px solid var(--line-dark); background: var(--deep-2); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: #E3F1EC; display: flex; align-items: center; gap: 10px; }
.agent::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }
.agent.core { grid-column: 1 / -1; border-color: var(--lime); color: #fff; font-weight: 600; }
.agent.core::before { background: var(--lime); }
.agent.core-span { grid-column: 1 / -1; }

/* process */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { border-top: 3px solid var(--deep); padding-top: 24px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--teal); letter-spacing: 0.1em; }
.step h3 { font-size: 24px; font-weight: 600; margin-top: 12px; }
.step p { color: var(--muted); margin-top: 10px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.trust span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; background: var(--paper); }

/* why */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why > div { background: var(--paper); border-radius: var(--radius); padding: 26px; border: 1px solid #D3E2DC; }
.why h3 { font-size: 20px; font-weight: 600; }
.why p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* stack */
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack span { font-family: var(--display); font-size: 16px; font-weight: 500; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); }

/* faq */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; background: var(--paper); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; color: var(--teal); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; content: "–" / ""; }
.faq details p { color: var(--muted); margin-top: 12px; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; align-items: start; }
.about h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; margin-bottom: 22px; }
.about p { color: var(--muted); margin-bottom: 14px; }
.facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; }
.facts-list div { border-top: 2px solid var(--deep); padding-top: 12px; }
.facts-list dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); font-weight: 600; }
.facts-list dd { margin: 6px 0 0; font-family: var(--display); font-size: 20px; font-weight: 600; }
.founder { display: flex; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: var(--deep); color: var(--lime); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 22px; }
.founder h3 { font-size: 21px; font-weight: 600; }
.founder span { display: block; color: var(--teal); font-weight: 600; font-size: 14px; margin-top: 2px; }
.founder p { color: var(--muted); font-size: 15px; margin: 10px 0 12px; }
.founder a { font-weight: 600; font-size: 15px; }

/* ---------- contact ---------- */
.cta { background: var(--deep); color: #fff; padding: 96px 0; }
.cta-box { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; }
.cta h2 em { font-style: normal; color: var(--lime); }
.cta p { color: var(--mint-soft); margin-top: 18px; font-size: 18px; }
.contact-form { color-scheme: dark; display: grid; gap: 14px; background: var(--deep-2); border: 1px solid var(--line-dark); border-radius: 20px; padding: 28px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #DCEEE7; }
.contact-form input, .contact-form textarea, .contact-form select { font: inherit; font-weight: 400; font-size: 16px; color: #fff; background: var(--deep); border: 1px solid #6AA597; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form select:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
.contact-form .f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form .opt, .contact-form .hint { font-weight: 400; color: var(--mint-soft); }
.contact-form .hint { font-size: 13px; }
.contact-form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--mint-soft); }
.contact-form label.check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--lime); }
.contact-form .consent, .contact-form .alt-contact { font-size: 14px; color: var(--mint-soft); }
.contact-form a { color: var(--lime); }
.contact-form .btn { justify-self: start; }
.contact-form :focus-visible { outline-color: var(--lime); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: #042420; color: #9FC4B8; padding: 40px 0; font-size: 14px; }
.site-footer a { color: #D7EAE3; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr)); gap: 32px; padding-bottom: 28px; border-bottom: 1px solid #12403A; }
.foot-logo { width: 200px; height: auto; margin-bottom: 14px; }
.site-footer nav { display: grid; gap: 4px; align-content: start; }
.site-footer nav b { color: #fff; font-size: 14px; margin-bottom: 4px; }
.site-footer nav a { text-decoration: none; padding: 3px 0; }
.site-footer nav a:hover { color: var(--lime); }
.foot-langs { padding-top: 22px; }
.foot-legal { padding-top: 16px; }

/* ---------- case study pages ---------- */
.case-hero { background: var(--deep); color: #fff; padding: 72px 0 80px; }
.case-hero a.back { color: var(--mint); text-decoration: none; font-size: 15px; }
.case-hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 600; margin-top: 22px; max-width: 900px; }
.case-hero .lead { color: var(--mint-soft); font-size: 19px; margin-top: 20px; max-width: 760px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--line-dark); }
.facts div { padding: 22px 24px 0 0; min-width: 0; }
.facts small { display: block; color: var(--mint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.facts b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; margin-top: 8px; color: #fff; overflow-wrap: break-word; hyphens: auto; }
.facts b.hl { color: var(--lime); font-size: 28px; }
.body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding: 80px 0 96px; }
.body h2 { font-size: 28px; font-weight: 600; margin: 44px 0 14px; }
.body h2:first-child { margin-top: 0; }
.body p { color: #22332F; }
.body ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; color: #22332F; }
.flow { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.flow > li { border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 12px 16px; font-size: 15.5px; }
.flow > li.k { border-left-color: var(--lime); background: var(--mist); font-weight: 600; }
aside.side { align-self: start; position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 16px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.body .side-box h2.side-h { margin: 0; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-family: var(--body); font-weight: 700; line-height: 1.3; }
.side-box .tags { padding-top: 14px; }
.side-box p.note { margin-top: 10px; color: var(--muted); font-size: 15px; }
.side-box.dark { background: var(--deep); color: #fff; border: 0; }
.body .side-box.dark h2.side-h { color: var(--lime); }
.side-box.dark p { color: var(--mint-soft); margin: 10px 0 18px; font-size: 15px; }
.next-cases { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 28px 0 0; margin-top: 48px; flex-wrap: wrap; }

/* ---------- simple pages (privacy, thanks, 404) ---------- */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 600; margin-bottom: 18px; }
.page h2 { font-size: 24px; font-weight: 600; margin: 36px 0 10px; }
.page p, .page li { color: #22332F; }
.page ul { padding-left: 20px; display: grid; gap: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .product, .cta-box, .body, .about, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 460px; }
  .cards, .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-grid, .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  aside.side { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links { left: -16px; right: -16px; padding-left: 16px; padding-right: 16px; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 72px 0; }
  .cards, .case-grid, .steps, .why, .agents, .facts, .results-grid, .contact-form .f2 { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat:nth-child(3) { border-left: 0; padding: 22px 0; border-top: 1px solid var(--line-dark); }
  .stat:first-child { border-top: 0; }
  .product { padding: 32px 22px; }
  .case { padding: 24px; }
  .body { padding: 56px 0 72px; gap: 40px; }
  .contact-form { padding: 20px; }
  .contact-form .btn { justify-self: stretch; }
}
@media (max-width: 560px) { .nav-right .btn { display: none; } }
@media (max-width: 380px) {
  .nav { gap: 10px; }
  .brand-name { font-size: 16px; }
  .brand img { width: 32px; }
  .nav-right .lang a { padding: 4px 7px; }
  .hero h1, :lang(ru) .hero h1, .case-hero h1 { font-size: 30px; }
  .page h1 { font-size: min(30px, 8.5vw); }
  .section-head h2, .about h2, .cta h2 { font-size: 28px; }
  .stat b { font-size: 34px; }
}

/* ---------- interaction preferences ---------- */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .case:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stream .d { animation: none; }
  .btn, .case { transition: none; }
  .btn:hover, .case:hover { transform: none; }
}
@media (forced-colors: active) {
  .lang a[aria-current="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; outline: 2px solid CanvasText; }
  .agent.core { border-style: double; border-width: 3px; }
  .btn { border-color: ButtonText; }
}
@media print {
  .site-header, .hero-visual, .contact-form, .menu-toggle, .skip { display: none !important; }
  .hero, .results, .product, .cta, .case-hero, .site-footer { background: #fff !important; color: #000 !important; }
  .hero *, .results *, .product *, .cta *, .case-hero * { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
