/* ==========================================================================
   РУСОФАРМ — дизайн-система
   Токены в oklch, как в бойлере (packages/tailwind-config).
   Темы переключаются атрибутом data-theme на <html>.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-normal-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-normal-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Prata";
  src: url("/assets/fonts/prata-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Prata";
  src: url("/assets/fonts/prata-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-cyrillic.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}

:root {
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-caps: "Oswald", "Arial Narrow", sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.03rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.28rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 4rem);
  --step-5: clamp(2.6rem, 1.7rem + 3.2vw, 4.4rem);

  --container: 1220px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 24px 60px -30px oklch(0.2 0.02 150 / 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Светлые темы -------------------------------------------------------- */
:root,
:root[data-theme="pharma"] {
  --bg: oklch(0.968 0.008 96);
  --surface: oklch(0.993 0.004 96);
  --surface-2: oklch(0.94 0.012 96);
  --ink: oklch(0.22 0.028 154);
  --muted: oklch(0.46 0.022 154);
  --line: oklch(0.86 0.014 110);
  --brand: oklch(0.47 0.115 154);
  --brand-2: oklch(0.62 0.13 152);
  --brand-ink: oklch(0.99 0.005 96);
  --accent: oklch(0.74 0.12 78);
  --hero-bg: oklch(0.22 0.035 154);
  --hero-ink: oklch(0.97 0.008 96);
  --dark-bg: oklch(0.25 0.04 154);
  --dark-ink: oklch(0.96 0.01 96);
  --font-display: "Prata", Georgia, serif;
}

:root[data-theme="clinic"] {
  --bg: oklch(0.972 0.008 195);
  --surface: oklch(0.995 0.003 195);
  --surface-2: oklch(0.94 0.014 195);
  --ink: oklch(0.21 0.03 205);
  --muted: oklch(0.45 0.025 205);
  --line: oklch(0.85 0.02 200);
  --brand: oklch(0.46 0.09 210);
  --brand-2: oklch(0.62 0.11 195);
  --brand-ink: oklch(0.995 0.003 195);
  --accent: oklch(0.72 0.1 175);
  --hero-bg: oklch(0.23 0.035 210);
  --hero-ink: oklch(0.98 0.005 195);
  --dark-bg: oklch(0.26 0.04 210);
  --dark-ink: oklch(0.97 0.006 195);
  --font-display: "Manrope", sans-serif;
}

:root[data-theme="heritage"] {
  --bg: oklch(0.962 0.014 82);
  --surface: oklch(0.986 0.008 82);
  --surface-2: oklch(0.935 0.02 82);
  --ink: oklch(0.23 0.035 22);
  --muted: oklch(0.46 0.025 30);
  --line: oklch(0.84 0.028 80);
  --brand: oklch(0.36 0.1 15);
  --brand-2: oklch(0.5 0.12 18);
  --brand-ink: oklch(0.985 0.01 82);
  --accent: oklch(0.66 0.1 76);
  --hero-bg: oklch(0.25 0.05 18);
  --hero-ink: oklch(0.97 0.015 82);
  --dark-bg: oklch(0.28 0.055 18);
  --dark-ink: oklch(0.96 0.018 82);
  --font-display: "Prata", Georgia, serif;
}

:root[data-theme="graphite"] {
  --bg: oklch(0.17 0.012 155);
  --surface: oklch(0.21 0.015 155);
  --surface-2: oklch(0.25 0.018 155);
  --ink: oklch(0.95 0.008 120);
  --muted: oklch(0.74 0.012 130);
  --line: oklch(0.33 0.018 155);
  --brand: oklch(0.72 0.13 155);
  --brand-2: oklch(0.82 0.14 150);
  --brand-ink: oklch(0.17 0.012 155);
  --accent: oklch(0.86 0.16 110);
  --hero-bg: oklch(0.14 0.012 155);
  --hero-ink: oklch(0.96 0.008 120);
  --dark-bg: oklch(0.13 0.012 155);
  --dark-ink: oklch(0.96 0.008 120);
  --font-display: "Oswald", sans-serif;
}

:root[data-theme="navy"] {
  --bg: oklch(0.958 0.01 255);
  --surface: oklch(0.99 0.004 255);
  --surface-2: oklch(0.93 0.016 255);
  --ink: oklch(0.2 0.035 258);
  --muted: oklch(0.44 0.03 258);
  --line: oklch(0.83 0.02 255);
  --brand: oklch(0.34 0.09 258);
  --brand-2: oklch(0.52 0.12 250);
  --brand-ink: oklch(0.99 0.004 255);
  --accent: oklch(0.7 0.1 230);
  --hero-bg: oklch(0.22 0.05 258);
  --hero-ink: oklch(0.98 0.005 255);
  --dark-bg: oklch(0.25 0.05 258);
  --dark-ink: oklch(0.97 0.006 255);
  --font-display: "Oswald", sans-serif;
}

:root[data-theme="forest"] {
  --bg: oklch(0.955 0.012 140);
  --surface: oklch(0.988 0.006 140);
  --surface-2: oklch(0.925 0.016 140);
  --ink: oklch(0.2 0.03 150);
  --muted: oklch(0.44 0.025 150);
  --line: oklch(0.82 0.02 140);
  --brand: oklch(0.32 0.07 155);
  --brand-2: oklch(0.48 0.08 150);
  --brand-ink: oklch(0.99 0.005 140);
  --accent: oklch(0.66 0.09 70);
  --hero-bg: oklch(0.2 0.035 155);
  --hero-ink: oklch(0.97 0.008 140);
  --dark-bg: oklch(0.24 0.04 155);
  --dark-ink: oklch(0.96 0.01 140);
  --font-display: "Prata", Georgia, serif;
}

:root[data-theme="sand"] {
  --bg: oklch(0.958 0.016 78);
  --surface: oklch(0.99 0.008 78);
  --surface-2: oklch(0.93 0.022 78);
  --ink: oklch(0.24 0.03 45);
  --muted: oklch(0.47 0.028 45);
  --line: oklch(0.84 0.026 78);
  --brand: oklch(0.48 0.11 45);
  --brand-2: oklch(0.6 0.12 50);
  --brand-ink: oklch(0.99 0.006 78);
  --accent: oklch(0.62 0.08 160);
  --hero-bg: oklch(0.26 0.04 45);
  --hero-ink: oklch(0.97 0.01 78);
  --dark-bg: oklch(0.29 0.05 45);
  --dark-ink: oklch(0.96 0.012 78);
  --font-display: "Manrope", sans-serif;
}

:root[data-font="prata"] { --font-display: "Prata", Georgia, serif; }
:root[data-font="manrope"] { --font-display: "Manrope", sans-serif; }

/* ---- Базовый слой -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
::selection { background: var(--brand-2); color: var(--brand-ink); }
.container { width: min(calc(100% - 2 * var(--gutter)), var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  padding: 0.7rem 1rem; background: var(--brand); color: var(--brand-ink);
}
.skip-link:focus { top: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--paper { background: var(--surface-2); }
.section--dark { background: var(--dark-bg); color: var(--dark-ink); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.section-head h2 { margin-bottom: 0.35em; }
.section-head p { margin: 0; color: var(--muted); font-size: var(--step-1); }
.section--dark .section-head p { color: color-mix(in oklch, var(--dark-ink) 70%, transparent); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row {
  display: flex; align-items: end; justify-content: space-between; gap: 2rem;
  max-width: none;
}
.section-head--row > div { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-caps); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--dark { color: var(--brand); }
.eyebrow--light { color: var(--brand-2); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow--dark { color: var(--brand); }
.lead { font-size: var(--step-1); color: var(--ink); }
.note { font-size: var(--step--1); color: var(--muted); }

/* ---- Кнопки и ссылки ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: 0.94rem; line-height: 1.1;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-2); }
.btn--ghost { border-color: color-mix(in oklch, var(--ink) 30%, transparent); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: var(--surface); color: var(--ink); }
.btn--light:hover { background: var(--brand-2); color: var(--brand-ink); }
.btn--sm { min-height: 40px; padding: 0.55rem 1rem; font-size: 0.86rem; }
.btn--lg { min-height: 54px; padding: 0.9rem 1.7rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; color: var(--brand);
  border-bottom: 1px solid color-mix(in oklch, var(--brand) 40%, transparent);
  padding-bottom: 0.15rem;
}
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: var(--brand-2); border-color: color-mix(in oklch, var(--brand-2) 50%, transparent); }

/* ---- Шапка --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.logo__mark {
  display: grid; place-items: center;
  width: 38px; height: 55px;
  padding: 0;
  background: transparent;
}
.logo__mark img { width: 100%; height: 100%; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong {
  font-family: var(--font-caps); font-size: 1.18rem; font-weight: 600;
  letter-spacing: 0.12em;
}
.logo__text small {
  margin-top: 0.32em; font-size: 0.61rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.main-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.main-nav a {
  position: relative; padding: 0.4rem 0; font-size: 0.9rem; font-weight: 600;
  color: var(--muted); transition: color 0.2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--brand); transition: right 0.25s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after, .main-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.header-phone .icon { color: var(--brand); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; border-radius: var(--radius);
}
.menu-btn .icon { margin: auto; }

/* ---- Герой --------------------------------------------------------------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: stretch; overflow: hidden; background: var(--hero-bg); }
.hero__media { position: absolute; inset: 0 0 0 42%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--hero-bg) 0%, color-mix(in oklch, var(--hero-bg) 90%, transparent) 36%, color-mix(in oklch, var(--hero-bg) 18%, transparent) 64%, color-mix(in oklch, var(--hero-bg) 38%, transparent) 100%),
    linear-gradient(0deg, color-mix(in oklch, var(--hero-bg) 50%, transparent), transparent 45%);
}
.hero__inner {
  position: relative; z-index: 2; align-self: center; min-width: 0;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3.5rem, 6vw, 4.5rem);
  color: var(--hero-ink);
}
.hero h1 { max-width: 15ch; color: var(--hero-ink); }
.hero .eyebrow { color: color-mix(in oklch, var(--hero-ink) 80%, transparent); }
.hero__lead { max-width: 54ch; margin: 0 0 2rem; font-size: var(--step-1); color: color-mix(in oklch, var(--hero-ink) 82%, transparent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero .btn--ghost { border-color: color-mix(in oklch, var(--hero-ink) 45%, transparent); color: var(--hero-ink); }
.hero .btn--ghost:hover { border-color: var(--hero-ink); color: var(--hero-ink); background: color-mix(in oklch, var(--hero-ink) 10%, transparent); }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem; max-width: 760px;
  padding-top: 1.6rem; border-top: 1px solid color-mix(in oklch, var(--hero-ink) 22%, transparent);
}
.stat b {
  display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 400; line-height: 1; color: var(--hero-ink);
}
.stat span { display: block; margin-top: 0.45rem; font-size: 0.78rem; line-height: 1.35; color: color-mix(in oklch, var(--hero-ink) 70%, transparent); }

.trust-bar { background: var(--brand); color: var(--brand-ink); }
.trust-bar__inner { display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; padding: 0.9rem 0; }
.trust-bar span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; font-weight: 600; }
.trust-bar .icon { width: 1.05em; height: 1.05em; }

/* ---- Направления --------------------------------------------------------- */
.directions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.direction-card {
  position: relative; display: flex; flex-direction: column; gap: 0.6rem;
  padding: clamp(1.4rem, 2.4vw, 2.2rem); min-height: 330px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.direction-card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.direction-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in oklch, var(--brand) 40%, var(--line)); }
.direction-card:hover::before { transform: scaleX(1); }
.direction-card__icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: auto;
  border: 1px solid var(--line); border-radius: 50%; color: var(--brand); background: var(--surface-2);
}
.direction-card__icon .icon { width: 26px; height: 26px; }
.direction-card h3 { font-size: var(--step-2); margin: 1.4rem 0 0.2rem; }
.direction-card p { color: var(--muted); margin: 0; }
.direction-card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.2rem; font-weight: 700; color: var(--brand); font-size: 0.9rem; }
.direction-card__more .icon { transition: transform 0.25s var(--ease); }
.direction-card:hover .direction-card__more .icon { transform: translateX(5px); }

/* ---- Две колонки --------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.split__media::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid color-mix(in oklch, var(--brand) 45%, transparent);
  border-radius: var(--radius-lg); z-index: -1;
}
.split__text h2 { margin-top: 0.2em; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; margin: 1.6rem 0 1.8rem; }
.fact-grid small { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fact-grid b { display: block; margin-top: 0.2rem; font-size: var(--step-1); font-weight: 700; }

/* ---- Преимущества -------------------------------------------------------- */
.advantages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.advantage { padding: 2rem 1.8rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.advantage:nth-child(3n+2), .advantage:nth-child(3n+3) { padding-left: 1.8rem; border-left: 1px solid var(--line); }
.advantage__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1.1rem; color: var(--brand); background: var(--surface-2); border-radius: 50%; }
.advantage h3 { font-family: var(--font-body); font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; }
.advantage p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Госзакупки ---------------------------------------------------------- */
.procurement-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.procurement-band h2 { color: var(--dark-ink); }
.procurement-band p { max-width: 52ch; color: color-mix(in oklch, var(--dark-ink) 78%, transparent); }
.mini-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin: 2rem 0; }
.mini-stats b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; color: var(--brand-2); }
.mini-stats span { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: color-mix(in oklch, var(--dark-ink) 65%, transparent); }
.procurement-list { padding: 1.6rem; border: 1px solid color-mix(in oklch, var(--dark-ink) 18%, transparent); background: color-mix(in oklch, var(--surface) 8%, transparent); }
.procurement-list h3 { font-family: var(--font-caps); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in oklch, var(--dark-ink) 70%, transparent); }
.procurement-row { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; padding: 0.75rem 0; border-top: 1px solid color-mix(in oklch, var(--dark-ink) 14%, transparent); }
.procurement-row span { font-size: 0.9rem; }
.procurement-row small { color: color-mix(in oklch, var(--dark-ink) 60%, transparent); font-size: 0.76rem; text-align: right; }
.procurement-row b { grid-column: 2; text-align: right; color: var(--brand-2); font-size: 0.88rem; }
.procurement-list .link-arrow { margin-top: 1rem; }

/* ---- Публикации ---------------------------------------------------------- */
.pubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.pub-card {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.6rem; background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--brand); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pub-card__meta { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-caps); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pub-card h3 { font-family: var(--font-body); font-size: var(--step-1); font-weight: 800; line-height: 1.25; margin: 0; }
.pub-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.pub-card a { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; padding-top: 0.8rem; font-size: 0.82rem; font-weight: 700; color: var(--brand); }
.pubs--all { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- Награды ------------------------------------------------------------- */
.award-list { margin-top: 1.4rem; }
.award-list li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.2rem 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.award-list b { grid-row: span 2; font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); }
.award-list span { font-weight: 700; }
.award-list small { color: var(--muted); font-size: 0.82rem; }
.award-list--inline li { border-color: var(--line); }
.awards-visual {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 360px; padding: 2.4rem; background: var(--brand); color: var(--brand-ink);
  overflow: hidden;
}
.awards-visual span { font-family: var(--font-caps); font-size: 0.85rem; letter-spacing: 0.25em; opacity: 0.7; }
.awards-visual b { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 400; line-height: 1.05; margin-top: 0.4rem; }
.awards-visual i { position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border: 1px solid color-mix(in oklch, var(--brand-ink) 40%, transparent); border-radius: 50%; }

/* ---- Партнёры ------------------------------------------------------------ */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.partner-card { display: flex; gap: 1rem; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); }
.partner-card__mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--brand); }
.partner-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin: 0 0 0.2rem; }
.partner-card__role { margin: 0 0 0.6rem; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); }
.partner-card p { color: var(--muted); font-size: 0.9rem; }
.partner-card a { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 700; color: var(--brand); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-intro h2 { margin-top: 0.2em; }
.faq-intro p { color: var(--muted); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font-weight: 700; list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--brand); transition: transform 0.25s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 0 1.2rem; margin: 0; color: var(--muted); max-width: 70ch; }

/* ---- Контакты ------------------------------------------------------------ */
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 2.4rem; }
.office-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); }
.office-card__city { font-family: var(--font-caps); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); }
.office-card h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; margin: 0.5rem 0 0.4rem; }
.office-card p { color: var(--muted); font-size: 0.92rem; }
.office-card a { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; font-weight: 700; color: var(--brand); }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 0.6rem; }
.contact-line { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); }
.contact-line .icon { width: 22px; height: 22px; color: var(--brand); }
.contact-line small { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-line b { display: block; font-size: 0.98rem; }
.contact-form { padding: clamp(1.4rem, 3vw, 2.4rem); background: var(--surface); border: 1px solid var(--line); }

/* ---- Форма --------------------------------------------------------------- */
.request-form { display: grid; gap: 0.9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.request-form label { display: grid; gap: 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.request-form input, .request-form select, .request-form textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.request-form input:focus, .request-form select:focus, .request-form textarea:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand-2) 20%, transparent);
}
.request-form textarea { resize: vertical; min-height: 96px; }
.request-form .consent { display: flex; align-items: flex-start; gap: 0.55rem; font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.request-form .consent input { width: 18px; height: 18px; margin-top: 0.1rem; flex: none; accent-color: var(--brand); }
.request-form .consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.request-form .btn { justify-self: start; }
.form-status { min-height: 1.2em; margin: 0; font-size: 0.85rem; color: var(--muted); }
.form-status.is-error { color: oklch(0.55 0.19 25); }
.form-status.is-ok { color: var(--brand); }

/* ---- Внутренние страницы ------------------------------------------------ */
.page-hero { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.2rem); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; }
.page-hero__lead { max-width: 68ch; margin: 1rem 0 0; font-size: var(--step-1); color: var(--muted); }
.page-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.page-stats b { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.page-stats span { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.8rem; font-size: 0.8rem; color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs b { color: var(--ink); font-weight: 600; }
.prose-grid { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 72ch; }
.prose p { font-size: var(--step-1); color: var(--muted); }
.prose h2 { margin-top: 2rem; font-size: var(--step-2); }
.prose--narrow { max-width: 74ch; }
.prose--narrow p { font-size: var(--step-0); color: var(--muted); }
.steps { counter-reset: step; margin-top: 1.2rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--font-display); font-size: 1.4rem; color: var(--brand); }
.steps b { font-size: 1rem; }
.steps span { color: var(--muted); font-size: 0.9rem; }
.side-card { padding: 1.8rem; background: var(--surface); border: 1px solid var(--line); }
.side-card h2 { font-size: var(--step-1); }
.side-fact { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.side-fact small { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.side-fact b { display: block; margin-top: 0.15rem; font-size: 1rem; }
.side-card .btn { width: 100%; margin-top: 1.2rem; }
.side-link { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.8rem; font-weight: 700; font-size: 0.9rem; color: var(--brand); }
.side-card--accent { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.side-card--accent h2 { color: var(--brand-ink); }
.side-card--accent p, .side-card--accent .side-link { color: color-mix(in oklch, var(--brand-ink) 82%, transparent); }
.side-card--accent .btn--primary { background: var(--surface); color: var(--ink); }
.side-card--accent .btn--primary:hover { background: var(--brand-2); color: var(--brand-ink); }
.side-card__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 1rem; border: 1px solid color-mix(in oklch, var(--brand-ink) 35%, transparent); border-radius: 50%; }

/* ---- Каталог направлений ------------------------------------------------ */
.cat-list { display: grid; gap: 1.6rem; }
.cat-wide { display: grid; grid-template-columns: 0.9fr 1.1fr; background: var(--surface); border: 1px solid var(--line); }
.cat-wide:nth-child(even) .cat-wide__media { order: 2; }
.cat-wide__media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.cat-wide__text { padding: clamp(1.6rem, 4vw, 3rem); align-self: center; }
.cat-wide__text h2 { font-size: var(--step-3); }
.cat-wide__text p { color: var(--muted); }
.check-list li { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.3rem 0; font-size: 0.94rem; }
.check-list .icon { width: 1.1em; height: 1.1em; margin-top: 0.28em; color: var(--brand); }
.check-list--big li { font-size: 1.05rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.check-list--compact li { font-size: 0.84rem; color: color-mix(in oklch, var(--brand-ink) 82%, transparent); border: 0; }
.check-list--compact .icon { color: var(--brand-2); }
.cat-wide .btn { margin-top: 1.2rem; }
.category-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.category-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.split--category { align-items: start; }
.direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.direction-tile { padding: 1.5rem; background: var(--surface); }
.direction-tile span { font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--brand); }
.direction-tile h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin: 0.6rem 0 0.3rem; }
.direction-tile p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.other-cats h2 { font-size: var(--step-2); }
.other-cats__list { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.other-cats__list a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 0.88rem; }
.other-cats__list a:hover { border-color: var(--brand); color: var(--brand); }

/* ---- Госзакупки ---------------------------------------------------------- */
.split--proc { grid-template-columns: 1.3fr 0.7fr; align-items: start; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.92rem; }
.data-table caption { caption-side: top; padding: 0.9rem 1rem; text-align: left; font-weight: 800; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:last-child { white-space: nowrap; }

/* ---- Источники ----------------------------------------------------------- */
.source-note { margin-top: 2.4rem; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); }
.source-note h2 { font-size: var(--step-1); }
.source-note p { color: var(--muted); max-width: 70ch; }
.source-links { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.source-links a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.8rem; border: 1px solid var(--line); font-size: 0.8rem; font-weight: 700; color: var(--brand); }

/* ---- 404 ----------------------------------------------------------------- */
.not-found { padding: clamp(5rem, 12vw, 9rem) 0; }
.not-found h1 { margin-top: 0.2em; }

/* ---- Подвал -------------------------------------------------------------- */
.site-footer { padding: clamp(3rem, 6vw, 5rem) 0 1.5rem; background: var(--dark-bg); color: var(--dark-ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid color-mix(in oklch, var(--dark-ink) 18%, transparent); }
.footer-brand .brand { color: var(--dark-ink); }
.footer-brand .logo__mark { background: transparent; }
.footer-brand .logo__mark img { filter: none; }
.footer-brand .logo__text small { color: color-mix(in oklch, var(--dark-ink) 65%, transparent); }
.footer-brand p { max-width: 34ch; margin-top: 1rem; color: color-mix(in oklch, var(--dark-ink) 72%, transparent); font-size: 0.9rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.footer-badges span { padding: 0.3rem 0.6rem; border: 1px solid color-mix(in oklch, var(--dark-ink) 25%, transparent); font-size: 0.7rem; letter-spacing: 0.04em; }
.footer-col h2 { font-family: var(--font-caps); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in oklch, var(--dark-ink) 55%, transparent); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; margin: 0 0 0.55rem; font-size: 0.9rem; color: color-mix(in oklch, var(--dark-ink) 82%, transparent); }
.footer-col a:hover { color: var(--brand-2); }
.footer-contacts a:first-of-type { font-size: 1.05rem; font-weight: 800; color: var(--dark-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; font-size: 0.76rem; color: color-mix(in oklch, var(--dark-ink) 58%, transparent); }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 1.2rem; }
.footer-bottom a:hover { color: var(--brand-2); }

/* ---- Плавающие панели ---------------------------------------------------- */
.ui-dock { position: fixed; bottom: 1.1rem; z-index: 120; }
.ui-dock--left { left: 1.1rem; }
.ui-dock--right { right: 1.1rem; }
.dock-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 44px; padding: 0 1rem;
  background: var(--ink); color: var(--bg);
  border: 1px solid transparent; border-radius: 50px;
  box-shadow: 0 10px 30px -12px oklch(0.2 0.02 150 / 0.5);
  font-size: 0.8rem; font-weight: 700;
  transition: transform 0.2s var(--ease);
}
.dock-toggle:hover { transform: translateY(-2px); }
.dock-toggle .icon { width: 18px; height: 18px; }
.dock-toggle--ai { background: var(--brand); color: var(--brand-ink); }
.dock-panel {
  position: absolute; bottom: 56px; left: 0;
  width: min(320px, calc(100vw - 2.2rem));
  padding: 1rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.dock-title { margin: 0 0 0.6rem; font-family: var(--font-caps); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; margin-bottom: 1rem; }
.swatch { display: grid; gap: 0.2rem; padding: 0.2rem; background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: 0.58rem; color: var(--muted); }
.swatch i { display: block; height: 28px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--s1) 50%, var(--s2) 50%); }
.swatch[aria-pressed="true"] { border-color: var(--brand); color: var(--ink); }
.font-opts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.font-opts button { padding: 0.35rem 0.55rem; border: 1px solid var(--line); background: var(--bg); font-size: 0.72rem; font-weight: 600; }
.font-opts button[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); }
.dock-reset { margin-top: 0.8rem; padding: 0; border: 0; background: none; font-size: 0.72rem; color: var(--muted); text-decoration: underline; }

/* ---- ИИ-чат -------------------------------------------------------------- */
.ai-panel {
  position: absolute; bottom: 56px; right: 0;
  display: flex; flex-direction: column;
  width: min(380px, calc(100vw - 2.2rem)); height: min(540px, calc(100vh - 8rem));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; background: var(--brand); color: var(--brand-ink); }
.ai-head strong { display: block; font-size: 0.95rem; }
.ai-head small { display: block; font-size: 0.68rem; opacity: 0.75; }
.ai-head .icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: transparent; color: inherit; }
.ai-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ai-msg { max-width: 88%; padding: 0.65rem 0.8rem; border-radius: 10px; font-size: 0.85rem; line-height: 1.45; white-space: pre-wrap; }
.ai-msg--bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 2px; }
.ai-msg--user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 2px; }
.ai-msg--error { background: color-mix(in oklch, oklch(0.6 0.18 25) 12%, var(--surface)); }
.ai-quick { display: flex; gap: 0.35rem; padding: 0 1rem 0.6rem; overflow-x: auto; }
.chip { flex: none; padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: 50px; background: var(--bg); font-size: 0.72rem; white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.ai-form { display: flex; gap: 0.4rem; padding: 0.6rem 0.7rem; border-top: 1px solid var(--line); }
.ai-form input { flex: 1; min-width: 0; padding: 0.55rem 0.7rem; border: 1px solid var(--line); background: var(--bg); font-size: 0.85rem; }
.ai-form button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: var(--brand); color: var(--brand-ink); }
.ai-note { margin: 0; padding: 0 0.9rem 0.7rem; font-size: 0.64rem; color: var(--muted); }
.ai-typing { display: inline-flex; gap: 3px; }
.ai-typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1s infinite alternate; }
.ai-typing i:nth-child(2) { animation-delay: 0.2s; }
.ai-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { to { opacity: 0.2; } }

/* ---- Анимация появления -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Адаптив ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .main-nav { gap: 1rem; }
  .header-phone span { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contacts { grid-column: 2 / 4; }
}
@media (max-width: 980px) {
  .main-nav {
    position: fixed; inset: 76px 0 auto; z-index: 80;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.2rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav a::after { display: none; }
  .menu-btn { display: block; }
  .header-actions .btn--sm { display: none; }
  .hero { min-height: 0; }
  .hero__media { position: relative; inset: auto; height: 46vh; min-height: 300px; order: 2; }
  .hero { flex-direction: column; }
  .hero__veil { display: none; }
  .hero__inner { order: 1; background: var(--hero-bg); padding-bottom: 2.5rem; }
  .directions, .advantages, .partners, .offices, .pubs { grid-template-columns: 1fr 1fr; }
  .advantage:nth-child(3n+2), .advantage:nth-child(3n+3) { padding-left: 0; border-left: 0; }
  .advantage:nth-child(even) { padding-left: 1.8rem; border-left: 1px solid var(--line); }
  .split, .category-hero, .procurement-band, .faq-wrap, .prose-grid, .contact-grid, .split--proc { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media::after { display: none; }
  .cat-wide, .cat-wide:nth-child(even) { grid-template-columns: 1fr; }
  .cat-wide:nth-child(even) .cat-wide__media { order: 0; }
  .cat-wide__media img { min-height: 240px; }
  .direction-grid { grid-template-columns: 1fr 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contacts { grid-column: auto; }
}
@media (max-width: 640px) {
  .logo__text small { display: none; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .directions, .advantages, .partners, .offices, .pubs, .form-grid, .direction-grid { grid-template-columns: 1fr; }
  .advantage { padding-left: 0 !important; border-left: 0 !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-stats { gap: 1.4rem; }
  .ui-dock--left { bottom: 0.75rem; left: 0.75rem; }
  .ui-dock--right { bottom: 0.75rem; right: 0.75rem; }
  .dock-toggle span { display: none; }
  .dock-panel { left: -0.5rem; }
  .ai-panel { right: -0.5rem; height: min(70vh, 520px); }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
