/* ============================================================
   STYLE — компоненты и layout (читает только tokens.css)
   Иерархия: поверхности + отступы, бордеры — только где нужно
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* под sticky-хедер */
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

p { max-width: var(--measure); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); letter-spacing: -0.01em; }
h1 { font-size: var(--text-3xl); font-weight: 800; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-xl); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Утилиты ---------- */
.container {
  width: min(1160px, 100% - 2 * var(--space-3));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-subtle); }
.section__head { margin-bottom: var(--space-4); }
.section__lead { color: var(--ink-muted); margin-top: var(--space-2); font-size: var(--text-lg); }
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-2);
  inset-block-start: -4rem;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  transition: inset-block-start var(--dur-1) var(--ease-out);
}
.skip-link:focus-visible { inset-block-start: var(--space-2); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: .75rem 1.5rem;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-spring),
              box-shadow var(--dur-2) var(--ease-out),
              background var(--dur-1) var(--ease-out);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-2); }
.btn--primary:hover { background: color-mix(in oklab, var(--accent) 88%, black); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink) 25%, transparent); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--ink);
  text-decoration: none;
}
.brand img { height: 2.2rem; width: auto; }
.brand small { font-weight: 500; font-size: var(--text-xs); color: var(--ink-muted); display: block; }

/* Навигация: details-disclosure (APG-safe, работает без JS) */
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; align-items: center; gap: var(--space-1); list-style: none; padding: 0; }
.site-nav a, .site-nav summary {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem .75rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
}
.site-nav a:hover, .site-nav summary:hover { background: var(--bg-subtle); }
.site-nav summary { cursor: pointer; list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after {
  content: "";
  width: .5em; height: .5em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-1) var(--ease-out);
}
details[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }

.nav-dropdown {
  position: absolute;
  min-width: 16rem;
  margin-top: .5rem;
  padding: var(--space-1);
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
}
.nav-dropdown a { display: block; width: 100%; }
.nav-dropdown ul { flex-direction: column; align-items: stretch; gap: 0; }
details.nav-item { position: relative; }
/* раскрытие по hover+focus на десктопе (дополняет клавиатурное раскрытие summary) */
@media (hover: hover) and (min-width: 900px) {
  details.nav-item:hover > summary,
  details.nav-item:focus-within > summary { background: var(--bg-subtle); }
  details.nav-item[open]:hover, details.nav-item:focus-within { }
}

/* Переключатель темы: одна кнопка с циклической сменой режима */
.theme-switch {
  margin-inline-start: auto;
  order: 10;
}
.theme-switch__btn {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--bg-subtle); border: 0; border-radius: var(--radius-full);
  color: var(--ink-muted);
  cursor: pointer;
  transition: background var(--dur-1), color var(--dur-1);
}
.theme-switch__btn svg { width: 18px; height: 18px; display: none; }
.theme-switch__btn[data-mode="system"] .i-system,
.theme-switch__btn[data-mode="light"] .i-light,
.theme-switch__btn[data-mode="dark"] .i-dark { display: block; }
.theme-switch__btn:hover { color: var(--ink); box-shadow: var(--shadow-1); }

.menu-toggle {
  display: none;
  margin-inline-start: auto;
  padding: .5rem;
  min-width: 44px; min-height: 44px;
  background: none; border: 0; border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; margin-inline: auto; }
.menu-toggle [data-icon-close] { display: none; }
.menu-toggle[aria-expanded="true"] [data-icon-close] { display: block; }
.menu-toggle[aria-expanded="true"] [data-icon-open] { display: none; }

@media (max-width: 899px) {
  .menu-toggle { display: block; order: 11; }
  .site-nav { display: none; width: 100%; }
  .site-nav[data-open="true"] { display: block; max-height: calc(100dvh - 4.5rem); overflow-y: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding-bottom: var(--space-2); }
  .site-nav a, .site-nav summary { min-height: 48px; }
  .nav-dropdown { position: static; box-shadow: none; background: var(--bg-subtle); margin-top: 0; }
  .site-header__inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 110% -10%, color-mix(in oklab, var(--brand-teal) 12%, transparent), transparent 60%),
    radial-gradient(50rem 25rem at -20% 110%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 55%),
    var(--bg-hero);
}
.hero__inner { padding-block: var(--section-y); display: grid; gap: var(--space-4); }
.hero h1 { max-width: 22ch; color: var(--ink); }
.hero__sub { font-size: var(--text-lg); color: var(--ink-muted); max-width: 58ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Карточки продуктов ---------- */
.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-spring);
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card h3 { font-size: var(--text-lg); }
.card p { color: var(--ink-muted); font-size: var(--text-sm); flex-grow: 1; }
.card__icon {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--icon-bg);
  color: var(--icon-ink);
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-xs);
}
.card__link { font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.card__link::after { content: " →"; }

/* ---------- Интерактивные карточки услуг (переворот) ---------- */
.service.flip { padding: 0; cursor: pointer; perspective: 1400px; }
.flip__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform var(--dur-3) var(--ease-out); }
.service.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: relative; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__front { display: flex; flex-direction: column; gap: .5rem; padding: var(--space-3); }
.flip__back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); padding: var(--space-3); background: var(--bg-hero); border-radius: var(--radius-lg); pointer-events: none; }
.service.flip.is-flipped .flip__back { pointer-events: auto; }
.flip__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2) var(--space-3); }
.flip__stats .stat { padding: 0; background: none; box-shadow: none; text-align: left; }
.flip__stats .stat b { font-size: var(--text-lg); }
.flip__note { color: var(--ink-faint); font-size: var(--text-xs); font-style: italic; }
/* Инфографические чипы переворота в углах карточки */
.flip__chip { position: absolute; top: .75rem; width: 36px; height: 36px; display: grid; place-items: center; border: 0; padding: 0; border-radius: var(--radius-full); background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); cursor: pointer; transition: transform var(--dur-1) var(--ease-spring), background var(--dur-1); }
.flip__chip svg { width: 18px; height: 18px; }
.flip__chip:hover, .flip__chip:focus-visible { background: color-mix(in oklab, var(--accent) 24%, transparent); transform: scale(1.08); }
.flip__chip--tr { right: .75rem; }
.flip__chip--tl { left: .75rem; }
.flip__front h3 { padding-inline-end: 2.75rem; }
.flip__title { margin: 0; padding-inline-start: 2.75rem; font-size: var(--text-lg); color: var(--ink); }

/* ---------- Услуги ---------- */
.services-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.service { padding: var(--space-3); background: var(--bg-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
@media (hover: hover) {
  /* выделение карточки при наведении: лёгкий подъём + усиление тени */
  .service:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
  .service:hover .flip__chip { background: color-mix(in oklab, var(--accent) 22%, transparent); }
}
.service ul { margin: var(--space-2) 0 0; padding-inline-start: 1.25rem; color: var(--ink-muted); font-size: var(--text-sm); }
.service li { margin-block: .375rem; }

/* ---------- ЦОД ---------- */
.stats {
  display: grid; gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  margin-bottom: var(--space-4);
}
.stat {
  padding: var(--space-2) var(--space-3);
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.stat b { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--accent); }
.stat span { font-size: var(--text-sm); color: var(--ink-muted); }

/* ---------- Портфолио ---------- */
.works {
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.work { background: var(--bg-raised); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.work figcaption { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); color: var(--ink-muted); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Компания и контакты ---------- */
.two-col { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

/* Раздел «Подрядчикам»: карточка входа на тендерную площадку */
.login-card {
  align-self: start;
  padding: var(--space-4);
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.login-card h3 { margin-block-start: 0; }
.login-card > p { color: var(--ink-muted); font-size: var(--text-sm); }
.login-form { display: grid; gap: var(--space-3); margin-block: var(--space-3); }
.login-form label { display: grid; gap: .375rem; font-size: var(--text-sm); font-weight: 600; }
.login-form input {
  padding: .625rem .75rem;
  font: inherit; font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.login-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.login-form .btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.form-note { color: var(--ink-muted); font-size: var(--text-sm); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.contact-list li { padding: var(--space-3); background: var(--bg-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.contact-list b { font-size: var(--text-sm); color: var(--ink-muted); display: block; font-weight: 500; margin-bottom: .375rem; }
.contact-list span { display: block; margin-bottom: .375rem; }
.contact-list a { font-weight: 600; }
.contact--wide { grid-column: 1 / -1; }

/* ---------- Футер ---------- */
.site-footer {
  padding-block: var(--space-4);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }
.site-footer__inner nav { display: flex; gap: var(--space-2); }

/* ============================================================
   Новая структура: инженерная позиция (SITE-CONCEPT.md)
   ============================================================ */

/* Раскладка героя */
.hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }

/* Инфографика героя: «пончик» жизненного цикла + цифровой двойник (адаптация deepseek_svg) */
.hero-cycle { width: 100%; height: auto; max-width: 560px; margin-inline: auto; display: block; }
.hero-cycle text { font-family: var(--font-body); }
.ht-sec { stroke: var(--bg); stroke-width: 3; }
.ht-s1 { fill: var(--brand-navy); }
.ht-s2 { fill: color-mix(in oklab, var(--brand-navy) 78%, var(--brand-teal)); }
.ht-s3 { fill: color-mix(in oklab, var(--brand-navy) 56%, var(--brand-teal)); }
.ht-s4 { fill: color-mix(in oklab, var(--brand-navy) 34%, var(--brand-teal)); }
.ht-s5 { fill: color-mix(in oklab, var(--brand-navy) 12%, var(--brand-teal)); }
.ht-s6 { fill: var(--brand-teal); }
.ht-num { fill: rgb(255 255 255 / .65); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.ht-lbl { fill: #fff; font-size: 13px; font-weight: 700; }
.ht-center { fill: var(--bg-raised); stroke: var(--brand-navy); stroke-width: 2; }
.ht-c1 { fill: var(--ink); font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.ht-c2 { fill: var(--ink-muted); font-size: 10px; letter-spacing: .1em; }
.ht-back { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.ht-note { fill: var(--accent); font-size: 11.5px; font-weight: 700; }

/* Кнопка в шапке (CTA по концепции не используется) */
.btn--sm { padding: .5rem .875rem; font-size: var(--text-sm); }

/* Услуги: 5 карточек, ЦОД — флагман */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.service .stats { margin-block: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: var(--space-1); }
.service .stats .stat b { font-size: var(--text-lg); white-space: nowrap; }
.service .stat { padding: 0; box-shadow: none; background: none; }

/* Процесс: 5 шагов с крупными номерами */
.process { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.process li { padding: var(--space-3); background: var(--bg-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); counter-increment: step; }
.process li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: var(--space-1); }
.process h3 { font-size: var(--text-base); }
.process p { color: var(--ink-muted); font-size: var(--text-sm); margin-top: .375rem; }

/* Кейсы: заголовок + расшифровка в подписи */
.work figcaption b { display: block; color: var(--ink); font-size: var(--text-base); font-weight: 700; }

/* Технологии: компактная полоса модулей SREDA */
.tech-list { list-style: none; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-block: var(--space-3); }
.tech-list li { padding: var(--space-2) var(--space-3); background: var(--bg-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-1); font-size: var(--text-sm); color: var(--ink-muted); }
.tech-list b { display: block; color: var(--ink); margin-bottom: .25rem; }

@media (max-width: 899px) {
  /* Портрет: сначала текст и CTA, инфографика ниже — важная часть в первом экране */
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-3); }
  .hero-cycle { max-width: min(420px, 88vw); }
  /* Компенсируем масштаб SVG: подписи остаются читаемыми на узком экране */
  .ht-lbl { font-size: 16.5px; }
  .ht-num { font-size: 13px; letter-spacing: .5px; }
  .ht-note { font-size: 14px; }
  .ht-c1 { font-size: 19px; }
  .ht-c2 { font-size: 11.5px; }
  /* Кнопки героя — во всю ширину строки */
  .hero__cta .btn { flex: 1 1 auto; text-align: center; }
}

/* Телефоны в альбомной ориентации: низкий экран — compact-раскладка */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 600px) {
  .hero__inner { grid-template-columns: 1.3fr .9fr; align-items: center; gap: var(--space-3); padding-block: var(--space-4); }
  .hero h1 { max-width: none; }
  .hero-cycle { max-width: 300px; }
  .ht-lbl { font-size: 15px; }
  .ht-num { font-size: 12px; }
  .ht-note { font-size: 12.5px; }
  .ht-c1 { font-size: 16px; }
  .section { padding-block: var(--space-4); }
  .process { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
}

/* Текстовые документы (политика и т.п.) */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--text-xl); margin-block: var(--space-4) var(--space-1); }
.prose p, .prose li { color: var(--ink-muted); }
.prose li { margin-block: .375rem; }
.prose a { color: var(--link); }

/* Узкие экраны: шапка в одну строку, компактные отступы */
@media (max-width: 480px) {
  .brand small { display: none; }
  .brand img { height: 1.7rem; }
  .site-header__inner { gap: var(--space-1); }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* Упрощённая навигация служебных страниц (политика и т.п.) — без бургера */
@media (max-width: 899px) {
  .site-nav.nav-always { display: block; width: auto; }
}

/* ---- Новости (Astro) ---- */
.container--narrow { max-width: 46rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); }
.news-card { background: var(--bg-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-1); overflow: hidden; }
.news-card__cover { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.news-card__body { padding: var(--space-2) var(--space-3) var(--space-3); }
.news-card__meta { color: var(--ink-muted); font-size: var(--text-sm); margin: 0 0 var(--space-1); }
.news-card h3 { margin: 0 0 var(--space-1); font-size: var(--text-lg); }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--link); }
.news-article__cover { width: 100%; height: auto; margin: var(--space-3) 0; border-radius: var(--radius-md); }
.news-article__cover, .prose img { max-width: 100%; }
@media (hover: hover) {
  .news-card { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
  .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
}

/* ── /dev — карта продуктов SREDA ── */
.sreda-map { display: flex; justify-content: center; margin-block: var(--space-4); }
.sreda-map svg { width: min(100%, 640px); height: auto; }
.sreda-map .s-map-word { fill: var(--ink); }
.sreda-map .s-map-link { cursor: pointer; }
.sreda-map .s-map-link .S_map_obj { transition: filter var(--dur-1) var(--ease-out); }
.sreda-map .s-map-link .S_map_obj path { transition: stroke var(--dur-1) var(--ease-out), stroke-width var(--dur-1) var(--ease-out); }
.sreda-map .s-map-link:hover .S_map_obj,
.sreda-map .s-map-link:focus-visible .S_map_obj { filter: drop-shadow(2px 4px 14px color-mix(in oklab, var(--accent) 50%, transparent)) drop-shadow(0 0 14px light-dark(transparent, color-mix(in oklab, var(--accent) 65%, transparent))); }
.sreda-map .s-map-link:hover .S_map_obj path,
.sreda-map .s-map-link:focus-visible .S_map_obj path { stroke: var(--accent); stroke-width: 6; }
.sreda-map .s-map-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sreda-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-3); margin-top: var(--space-2); }
.sreda-mini__item { background: var(--bg-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
/* карточки продуктов — тот же переворот, что у карточек услуг на главной */
.sreda-mini__item.flip-card { padding: 0; cursor: pointer; perspective: 1400px; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.sreda-mini__item.flip-card.is-flipped .flip__inner { transform: rotateY(180deg); }
.sreda-mini__item.flip-card.is-flipped .flip__back { pointer-events: auto; }
.sreda-mini__item .flip__back { border-radius: var(--radius-md); }
.sreda-mini__title { display: flex; align-items: center; gap: .65rem; margin: 0; font-size: var(--text-lg); }
.sreda-mini__title a { color: inherit; text-decoration: none; }
.sreda-mini__title a:hover { color: var(--link); }
.sreda-badge { flex: none; width: 36px; height: 32px; background: var(--hex, var(--accent)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.sreda-mini .flip__front > p { color: var(--ink-muted); font-size: var(--text-sm); margin: 0; }
.sreda-mini .flip__front ul { margin: 0; padding-inline-start: 1.25rem; color: var(--ink-muted); font-size: var(--text-sm); }
.sreda-mini .flip__front ul li { margin-bottom: .25rem; }
.sreda-mini .flip__back .btn { align-self: flex-start; }
@media (hover: hover) {
  .sreda-mini__item.flip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
  .sreda-mini__item.flip-card:hover .flip__chip { background: color-mix(in oklab, var(--accent) 22%, transparent); }
}

.product { scroll-margin-top: 80px; }
.product__status { margin-top: var(--space-2); color: var(--ink-muted); font-size: var(--text-sm); font-style: italic; }
.product__list { margin: var(--space-3) 0 0; padding-inline-start: 1.25rem; max-width: 72ch; }
.product__list li { margin-bottom: .35rem; }
.product__links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
