/* AI-сервисы ВШМ — стили.
 * Дизайн-система: стиль gsom.spbu.ru / owl.gsom.spbu.ru (белый фон, тёмно-бирюзовые
 * блоки, красный акцент), шрифт Euclid Circular B, контраст WCAG AA.
 */

/* ---------- Шрифт ---------- */
@font-face {
  font-family: "Euclid Circular B";
  src: url("../fonts/EuclidCircularB-Regular.woff2") format("woff2"), url("../fonts/EuclidCircularB-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Euclid Circular B";
  src: url("../fonts/EuclidCircularB-Medium.woff2") format("woff2"), url("../fonts/EuclidCircularB-Medium.woff") format("woff");
  font-weight: 500 700; font-style: normal; font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --red: #d33f44;          /* фирменный акцент ВШМ: кнопки, акценты */
  --red-hover: #b9343a;
  --red-ink: #c0353a;      /* мелкий красный текст на белом (AA 5.5:1) */
  --teal: #0a8796;         /* второй акцент ВШМ */
  --teal-ink: #077480;     /* бирюзовый текст на белом (AA 5.5:1) */
  --night: #163b46;        /* тёмно-бирюзовый, как на owl.gsom.spbu.ru */
  --night-2: #10303a;
  --ink: #100506;          /* основной текст, как на gsom.spbu.ru */
  --ink-2: #3d4247;
  --muted: #5b6670;
  --line: #e4e7ea;
  --soft: #f7f7f8;
  --white: #ffffff;
  --on-night: rgba(255, 255, 255, .84);
  --on-night-2: rgba(255, 255, 255, .68);

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 5, 6, .05);
  --shadow: 0 1px 2px rgba(16, 5, 6, .04), 0 8px 24px rgba(22, 59, 70, .07);
  --shadow-lg: 0 2px 6px rgba(16, 5, 6, .06), 0 18px 48px rgba(22, 59, 70, .14);

  --font: "Euclid Circular B", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='450' viewBox='0 0 520 450'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.4'%3E%3Cpath d='M0 450 130 225 260 450 390 225 520 450M130 225 260 0 390 225M0 0h520M0 225h520M130 225 0 0M390 225 520 0M260 0 130 225'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.012em; }
button { font-family: inherit; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
#main:focus { outline: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .18s var(--ease), border-color .18s, color .18s, transform .18s var(--ease), box-shadow .18s;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .18s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(211, 63, 68, .22); }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfd4d8; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .42); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn-lg { min-height: 52px; padding: 13px 24px; font-size: 17px; }
.link-plain { background: none; border: 0; padding: 8px 0; color: var(--teal-ink); font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-plain:hover { color: var(--red-ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { position: relative; display: block; width: 168px; height: 44px; flex: none; margin-right: auto; text-decoration: none; }
.brand-logo { width: 168px; height: 44px; }
/* Вторая строка логотипа, как «OWL LMS» в логотипе OWL */
.brand-sub {
  position: absolute; left: 49px; top: 23px; color: #be1e2d; font-size: 13.6px; font-weight: 500;
  line-height: 1; letter-spacing: .005em; white-space: nowrap;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 500; white-space: nowrap;
}
.site-nav a:hover { color: var(--red-ink); background: var(--soft); }
.site-nav .nav-current { color: var(--red-ink); }
.site-nav .nav-current[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .site-nav.open { display: block; animation: drop .22s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; max-width: var(--container); margin: 0 auto; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .nav-current[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; background-color: var(--night); color: #fff; overflow: hidden;
  background-image: var(--pattern), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  background-size: 520px 450px, auto; background-position: right -120px top -40px, 0 0;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); }
.hero-grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 64px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 64px; padding-top: 80px; padding-bottom: 88px; } }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-2); }
.hero h1 { margin: 0 0 18px; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -.02em; }
.hero-lead { margin: 0; max-width: 620px; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: var(--on-night); }
.hero-ask { margin: 32px 0 12px; font-size: 14px; font-weight: 500; color: var(--on-night-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px; color: #fff; text-decoration: none;
  font-size: 15px; line-height: 1.3; background: rgba(255, 255, 255, .04);
  transition: background-color .18s, border-color .18s, transform .18s var(--ease);
}
.chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); color: #fff; transform: translateY(-1px); }
.chip .icon { color: #ff9a9d; }

/* Быстрый вход */
.quick { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.quick-h { margin: 0 0 14px; font-size: 20px; }
.quick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quick-item {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .18s, background-color .18s, transform .18s var(--ease);
}
.quick-item:hover { border-color: var(--ink); color: var(--ink); background: var(--soft); }
.quick-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.quick-txt strong { font-weight: 500; font-size: 16px; }
.quick-txt small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-go { width: 20px; height: 20px; color: var(--muted); transition: transform .18s var(--ease), color .18s; }
.quick-item:hover .quick-go { color: var(--red); transform: translate(2px, -2px); }
.quick-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 2px 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.quick-note .icon { margin-top: 1px; }

/* Плашки логотипов */
.logo-tile {
  display: inline-grid; place-items: center; flex: none; background: var(--logo-bg, #fff);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.logo-tile img { width: 70%; height: 70%; object-fit: contain; }
.logo-sm { width: 44px; height: 44px; border-radius: 10px; }
.logo-md { width: 60px; height: 60px; border-radius: 14px; }
.logo-lg { width: 84px; height: 84px; border-radius: 20px; border-color: transparent; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-head { margin-bottom: 28px; max-width: 760px; }
.section-title { margin: 0 0 8px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.section-sub { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.section-head .section-sub { margin-bottom: 0; }
@media (min-width: 960px) { .section { padding: 88px 0; } }

/* ---------- Плитки ---------- */
.tiles { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 26px 22px; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
@supports (grid-template-rows: subgrid) {
  .tile { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tile-logo { display: block; border-radius: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.3; background: #e8f4f5; color: var(--teal-ink); white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge-warn { background: #fdeeee; color: var(--red-ink); }
.tile-name { margin: 0; font-size: 24px; line-height: 1.2; }
.tile-name a { color: var(--ink); text-decoration: none; }
.tile-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.tile-name a:hover { color: var(--red-ink); }
.tile-sub { margin: 2px 0 12px; font-size: 14.5px; color: var(--muted); }
.tile-desc { margin: 0 0 16px; color: var(--ink-2); }
.tile-meta { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--soft); font-size: 14.5px; color: var(--ink-2); line-height: 1.45; align-self: start; }
.tile-meta .icon { margin-top: 2px; color: var(--teal-ink); }
.tile-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; align-self: start; }
.tile-links { position: relative; z-index: 1; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); align-self: start; }
.tile-links-h { margin: 0 0 8px; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile-links ul { list-style: none; margin: 0; padding: 0; }
.tile-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0;
  color: var(--ink); text-decoration: none; font-size: 15px; border-bottom: 1px dashed transparent;
}
.tile-links a .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .18s var(--ease), color .18s; }
.tile-links a:hover { color: var(--red-ink); }
.tile-links a:hover .icon { color: var(--red); transform: translateX(3px); }
.flash { animation: flash 1.6s var(--ease) 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(10, 135, 150, .45); } 100% { box-shadow: 0 0 0 18px rgba(10, 135, 150, 0); } }

/* ---------- Сценарии ---------- */
.scenarios { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.scenario {
  height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease);
}
.scenario:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.scenario-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fdeeee; color: var(--red); }
.scenario-ic .icon { width: 22px; height: 22px; }
.scenario-task { font-size: 17px; font-weight: 500; line-height: 1.35; }
.scenario-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--red-ink); font-weight: 500; }
.scenario-go .icon { transition: transform .18s var(--ease); }
.scenario:hover .scenario-go .icon { transform: translateX(3px); }
.scenario-alt { background: var(--night); border-color: var(--night); color: #fff; background-image: var(--pattern); background-size: 300px 260px; background-position: right -80px top -40px; }
.scenario-alt:hover { color: #fff; border-color: var(--night); }
.scenario-alt .scenario-ic { background: rgba(255, 255, 255, .12); color: #fff; }
.scenario-alt .scenario-go { color: #fff; }

/* ---------- Правила работы с данными ---------- */
.rules-intro { margin: 0 0 24px; max-width: 820px; font-size: 17px; color: var(--ink-2); }
.rules-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.svc-content .rules-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rule-card { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.rule-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; }
.rule-card h3 .icon { width: 24px; height: 24px; }
.rule-dont h3 .icon { color: var(--red); }
.rule-do h3 .icon { color: var(--teal); }
.rule-remember h3 .icon { color: #a15c00; }
.rule-dont { border-top: 4px solid var(--red); }
.rule-do { border-top: 4px solid var(--teal); }
.rule-remember { border-top: 4px solid #e2a23b; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rule-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rule-list .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--muted); }
.rule-dont .rule-list .icon { color: var(--red); }
.rule-do .rule-list .icon { color: var(--teal); }
.rules-extra { margin-top: 16px; padding: 18px 22px; border-radius: var(--radius); background: #e8f4f5; color: var(--ink-2); }
.rules-extra h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.rules-extra h3 .icon { color: var(--teal-ink); }
.rules-extra ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }

/* ---------- FAQ (аккордеон с плавным раскрытием) ---------- */
.two-col { display: grid; gap: 48px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; } }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); border-radius: 0; scroll-margin-top: calc(var(--header-h) + 24px); }
.acc-h { margin: 0; font-size: inherit; }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  font-size: 17px; font-weight: 500; line-height: 1.4; border-radius: 8px;
}
.acc-btn:hover .acc-q { color: var(--red-ink); }
.acc-q { transition: color .15s; }
.acc-chev {
  width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--soft); color: var(--ink);
  transition: transform .35s var(--ease), background-color .2s, color .2s;
}
.section-soft .acc-chev { background: #fff; }
.acc-btn:hover .acc-chev { background: #fdeeee; color: var(--red); }
.is-open > .acc-h .acc-chev { transform: rotate(180deg); background: var(--red); color: #fff; }

.acc-panel {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .38s var(--ease), visibility 0s linear .38s;
}
.is-open > .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .38s var(--ease), visibility 0s; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-body {
  padding: 0 4px 22px; color: var(--ink-2); opacity: 0; transform: translateY(-6px);
  transition: opacity .25s ease, transform .38s var(--ease);
}
.is-open > .acc-panel .acc-body { opacity: 1; transform: none; transition: opacity .3s ease .08s, transform .38s var(--ease); }
.no-anim .acc-panel, .no-anim .acc-body, .no-anim .acc-chev { transition: none !important; }
.acc-tools { margin: 14px 0 0 !important; }
.acc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.acc-link .icon { width: 14px; height: 14px; }
.acc-link:hover { color: var(--teal-ink); text-decoration: underline; }
.acc-item.flash { animation: flash-bg 2.2s var(--ease) 1; }
@keyframes flash-bg { 0%, 30% { background: #e8f4f5; } 100% { background: transparent; } }

/* Текст с разметкой из config.js */
.rich p { margin: 0 0 12px; }
.rich p:last-child { margin-bottom: 0; }
.rich ol, .rich ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.rich code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.rich strong { font-weight: 500; color: var(--ink); }
.lead { font-size: 19px; color: var(--ink) !important; line-height: 1.55; }

/* ---------- Поддержка ---------- */
.support-card {
  display: flex; gap: 18px; padding: 28px; border-radius: var(--radius-lg); color: #fff;
  background: var(--night) var(--pattern) no-repeat right -160px top -120px; background-size: 520px 450px;
}
.support-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .12); flex: none; }
.support-ic .icon { width: 26px; height: 26px; }
.support-main { min-width: 0; }
.support-text { margin: 0 0 16px; color: var(--on-night); }
.support-mail {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: clamp(18px, 2.2vw, 22px); font-weight: 500;
  text-decoration: none; border-bottom: 1.5px solid rgba(255, 255, 255, .4); padding-bottom: 2px; word-break: break-all;
}
.support-mail:hover { color: #fff; border-color: #fff; }
.support-meta { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--on-night-2); font-size: 15px; }
.support-extra { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); color: var(--on-night); font-size: 15px; }
.support-extra a { color: #fff; }
@media (max-width: 520px) { .support-card { flex-direction: column; padding: 22px; } }

/* ---------- Страница сервиса ---------- */
.hero-service .container { padding-top: 22px; padding-bottom: 56px; }
@media (min-width: 960px) { .hero-service .container { padding-bottom: 72px; } }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--on-night-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--on-night); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.svc-hero-grid { display: grid; gap: 22px; }
@media (min-width: 960px) {
  .svc-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 64px; align-items: start; }
  .svc-hero-grid > :not(.facts) { grid-column: 1; }
  .facts { grid-column: 2; grid-row: 1 / span 3; }
}
.svc-head { display: flex; align-items: center; gap: 20px; }
.svc-head h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -.02em; }
.svc-sub { margin: 6px 0 0; font-size: 18px; color: var(--on-night-2); }
.svc-lead { max-width: 640px; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  margin: 0; padding: 8px 22px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(4px);
}
.facts > div { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-night-2); margin-bottom: 4px; }
.facts dt .icon { width: 15px; height: 15px; }
.facts dd { margin: 0; font-size: 16px; color: #fff; }
.facts small { color: var(--on-night-2); font-size: 14px; }

.svc-layout { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 88px; }
@media (min-width: 1024px) { .svc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 64px; } }
.toc { display: none; }
@media (min-width: 1024px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.toc-h { margin: 0 0 10px; font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a {
  display: block; margin-left: -2px; padding: 8px 0 8px 16px; border-left: 2px solid transparent;
  color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.35; transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--ink); border-left-color: #b9c0c6; }
.toc a[aria-current="true"] { color: var(--red-ink); border-left-color: var(--red); font-weight: 500; }
.svc-content { min-width: 0; max-width: 860px; }
.svc-section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.svc-section > .section-title { margin-bottom: 20px; }

.features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--soft); }
.feature-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--teal-ink); flex: none; box-shadow: var(--shadow-sm); }
.feature h3 { margin: 0 0 4px; font-size: 16.5px; }
.feature p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.fit { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fit-col { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.fit-col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 16.5px; }
.fit-yes h3 .icon { color: var(--teal); }
.fit-no h3 .icon { color: var(--red); }
.fit-col ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }

.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 0; counter-reset: s; }
.step { position: relative; display: flex; gap: 18px; padding-bottom: 24px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: #fff; border: 2px solid var(--red); color: var(--red-ink); font-weight: 500; font-size: 16px;
}
.step h3 { margin: 6px 0 4px; font-size: 17.5px; }
.step p { margin: 0; color: var(--ink-2); }

.faq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.faq-head .section-title { margin: 0; }

.others { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.other {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .18s, transform .18s var(--ease);
}
.other:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.other > span:not(.logo-tile) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.other strong { font-weight: 500; }
.other small { color: var(--muted); font-size: 14px; }
.other > .icon { color: var(--muted); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--night-2); color: var(--on-night); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.footer-brand img { width: 168px; height: 44px; }
.footer-brand p { margin: 16px 0 0; max-width: 360px; color: var(--on-night-2); line-height: 1.5; }
.footer-h { margin: 0 0 12px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--on-night-2); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: var(--on-night-2); }

/* ---------- Уведомления, cookie ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; font-size: 15px; color: var(--ink-2); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.noscript { padding: 48px 16px; }

/* ---------- Появление при загрузке ---------- */
@media (prefers-reduced-motion: no-preference) {
  .is-ready .hero-copy > *, .is-ready .quick, .is-ready .svc-hero-grid > * { animation: rise .6s var(--ease) both; }
  .is-ready .hero-copy > :nth-child(2), .is-ready .svc-hero-grid > :nth-child(2) { animation-delay: .05s; }
  .is-ready .hero-copy > :nth-child(3), .is-ready .svc-hero-grid > :nth-child(3) { animation-delay: .1s; }
  .is-ready .hero-copy > :nth-child(n+4), .is-ready .quick, .is-ready .svc-hero-grid > :nth-child(n+4) { animation-delay: .15s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
@media print {
  .site-header, .consent, .toast, .toc, .nav-toggle { display: none !important; }
  .hero { background: #fff !important; color: var(--ink); }
  .acc-panel { grid-template-rows: 1fr !important; visibility: visible !important; }
  .acc-body { opacity: 1 !important; transform: none !important; }
}
