/* ============================================================
   «Помощь с Образованием» — основной стиль
   Палитра A «Государь»: кобальт #16345E, золото #C9973B,
   слоновая кость #F7F5EF, триколор: #FFFFFF/#0D4FA8/#D52B1E
   Шрифты: Manrope (заголовки), Inter (текст) — локальные woff2
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-cyrillic-400.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+2013-2014,U+2018-201A,U+201C-201E,U+2026,U+02DA,U+02DC; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-cyrillic-500.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+2013-2014,U+2018-201A,U+201C-201E,U+2026,U+02DA,U+02DC; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+2013-2014,U+2018-201A,U+201C-201E,U+2026,U+02DA,U+02DC; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-cyrillic-700.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+2013-2014,U+2018-201A,U+201C-201E,U+2026,U+02DA,U+02DC; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+2013-2014,U+2018-201A,U+201C-201E,U+2026,U+02DA,U+02DC; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-cyrillic-700.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+2013-2014,U+2018-201A,U+201C-201E,U+2026,U+02DA,U+02DC; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-cyrillic-800.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-latin-800.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+2013-2014,U+2018-201A,U+201C-201E,U+2026,U+02DA,U+02DC; }

/* ---------- Переменные ---------- */
:root {
  --ink: #1C2733;
  --ink-soft: #4A5768;
  --navy-900: #12294B;
  --navy-700: #16345E;
  --blue-600: #2E6DB4;
  --blue-100: #E4EEF9;
  --gold-500: #C9973B;
  --gold-600: #B07E27;
  --gold-100: #F6EAD3;
  --bg: #F7F5EF;
  --surface: #FFFFFF;
  --line: #E5E0D2;
  --flag-white: #FFFFFF;
  --flag-blue: #0D4FA8;
  --flag-red: #D52B1E;
  --ok: #1E7A5F;
  --shadow-sm: 0 1px 2px rgba(18, 41, 75, .06), 0 2px 8px rgba(18, 41, 75, .05);
  --shadow-md: 0 6px 20px rgba(18, 41, 75, .09);
  --shadow-lg: 0 14px 40px rgba(18, 41, 75, .14);
  --radius: 14px;
  --font-head: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- База ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy-900); margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 20px; font-weight: 700; margin-top: 1.2em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Триколор ---------- */
.tricolor { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 4px; }
.tricolor span:nth-child(1) { background: var(--flag-white); }
.tricolor span:nth-child(2) { background: var(--flag-blue); }
.tricolor span:nth-child(3) { background: var(--flag-red); }
.tricolor--footer { height: 5px; }

/* ---------- Шапка (липкая) ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--surface); box-shadow: 0 2px 14px rgba(18,41,75,.08); transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: 0 8px 26px rgba(18,41,75,.16); }
.header-main__in { display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { border-radius: 12px; box-shadow: var(--shadow-sm); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--navy-900); letter-spacing: -.01em; }
.logo__text small { font-size: 11.5px; color: var(--ink-soft); font-weight: 500; }
.header-usp { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.header-usp li { display: flex; align-items: center; gap: 6px; }
.usp-icon { width: 15px; height: 15px; color: var(--ok); flex: none; }
.header-contact { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.header-contact a, .header-contact__time { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.header-contact a:hover { color: var(--navy-700); }
.hc-icon { width: 16px; height: 16px; color: var(--blue-600); flex: none; }

/* Мессенджеры (в липкой шапке) */
.messengers { display: flex; gap: 8px; }
.msg { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.msg svg { width: 28px; height: 28px; border-radius: 9px; box-shadow: 0 2px 6px rgba(18,41,75,.16); transition: transform .18s ease, box-shadow .18s ease; }
.msg:hover svg { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 14px rgba(18,41,75,.22); }
.msg--wide { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: 13.5px; color: var(--navy-900); }
.msg--wide:hover { border-color: var(--gold-500); background: var(--gold-100); }
.msg--wide .msg-icon { width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }

.header-cta { margin-left: auto; }
.burger { display: none; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; font: 600 14px var(--font-body); color: var(--navy-900); }
.burger__box { display: inline-flex; flex-direction: column; gap: 4px; }
.burger__box i { width: 18px; height: 2px; background: var(--navy-700); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] .burger__box i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Навигация ---------- */
.site-nav { background: var(--navy-700); }
.site-nav__in { display: flex; align-items: center; gap: 16px; }
.nav-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a, .nav-more__btn { display: inline-flex; align-items: center; gap: 5px; padding: 11px 11px; color: #DCE6F4; font: 500 14.5px/1.2 var(--font-body); text-decoration: none; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.nav-list a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-list .is-active > a { color: #fff; box-shadow: inset 0 -3px 0 var(--gold-500); }
.nav-more__btn .chev { width: 13px; height: 13px; transition: transform .2s; }
.nav-more.is-open .nav-more__btn .chev { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; left: 0; min-width: 250px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); display: none; z-index: 70; }
.nav-more.is-open .nav-sub, .nav-more:hover .nav-sub { display: block; }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.nav-sub a:hover { background: var(--blue-100); }
.nav-sub .is-active > a { background: var(--navy-700); color: #fff; }
.nav-search { display: flex; margin-left: auto; }
.nav-search input { width: 150px; border: 0; border-radius: 9px 0 0 9px; padding: 8px 12px; font: 400 14px var(--font-body); background: rgba(255,255,255,.94); }
@media (max-width: 1240px) {
  .nav-search { display: none; }
}
.nav-search button { border: 0; border-radius: 0 9px 9px 0; background: var(--gold-500); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0 12px; }
.nav-search button:hover { background: var(--gold-600); }
.search-icon { width: 17px; height: 17px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 12px 22px; font: 600 15px var(--font-head); cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn--primary { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-900); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--gold-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--gold-600); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy-700); border: 1.5px solid var(--navy-700); }
.btn--ghost:hover { background: var(--blue-100); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn--block { width: 100%; }

/* ---------- Компоновка страницы ---------- */
.layout { padding: 26px 0 50px; }
.layout__grid { display: grid; grid-template-columns: 274px minmax(0, 1fr); gap: 34px; align-items: start; }
/* Контент — в широкой правой колонке, каталог — в узкой левой (SEO: контент первым в DOM) */
.content-col { grid-column: 2; grid-row: 1; min-width: 0; }
.page-content { min-width: 0; }
.page-title { margin: 6px 0 18px; }
.content-col { min-width: 0; }
.lead { font-size: 18.5px; line-height: 1.7; color: var(--ink); }
.note { background: var(--gold-100); border-left: 4px solid var(--gold-500); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 18px 0; }
.note p { margin: 0; }
.figure { margin: 20px 0; }
.figure img { border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.list { padding-left: 22px; margin: 0 0 1em; }
.list li { margin: .35em 0; }
.list--ol { padding-left: 26px; }
.page-btn { margin: 22px 0; }
.section { margin: 34px 0; }
.section__more { margin-top: 18px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--blue-600); }
.link-more:hover { text-decoration: underline; }
.chev { width: 14px; height: 14px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { margin: 4px 0 16px; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink-soft); }
.breadcrumbs__item { display: flex; align-items: center; gap: 10px; }
.breadcrumbs__item + .breadcrumbs__item::before { content: '—'; color: var(--gold-500); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-700); text-decoration: underline; }

/* ---------- Сайдбар ---------- */
.sidebar { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 128px; display: grid; gap: 16px; max-height: calc(100vh - 148px); overflow: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.side-catalog { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.side-catalog__btn { display: flex; align-items: center; gap: 10px; padding: 15px 18px; font: 700 16px var(--font-head); color: var(--navy-900); cursor: pointer; list-style: none; }
.side-catalog__btn::-webkit-details-marker { display: none; }
.side-icon { width: 20px; height: 20px; color: var(--gold-600); }
.side-catalog__body { padding: 4px 10px 14px; }
.side-group { border-top: 1px dashed var(--line); }
.side-group:first-child { border-top: 0; }
.side-group__title { padding: 11px 8px; font: 700 14px var(--font-head); color: var(--navy-700); cursor: pointer; list-style: none; text-transform: uppercase; letter-spacing: .04em; }
.side-group__title::-webkit-details-marker { display: none; }
.side-group__title::before { content: '▸ '; color: var(--gold-500); }
.side-group[open] .side-group__title::before { content: '▾ '; }
.side-list { list-style: none; margin: 0; padding: 0 4px 6px; }
.side-list a { display: block; padding: 6px 10px; font-size: 14.5px; text-decoration: none; border-radius: 8px; color: var(--ink); }
.side-list a:hover { background: var(--blue-100); }
.side-list .is-active > a, .side-list__sub.is-active > a { background: var(--navy-700); color: #fff; font-weight: 600; }
.side-list__sub a { padding-left: 24px; font-size: 13.5px; color: var(--ink-soft); }
.side-list__sub::before { content: ''; margin-left: 14px; }
.side-help { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #DCE6F4; border-radius: var(--radius); padding: 18px; }
.side-help p { font-size: 14.5px; margin: 0 0 14px; }
.side-help__msg { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- Главная: hero ---------- */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px; align-items: center; background: linear-gradient(150deg, #fff 0%, #f2f6fb 60%, var(--blue-100) 100%); border: 1px solid var(--line); border-radius: 22px; padding: 32px 34px; box-shadow: var(--shadow-sm); margin-top: 10px; }
.hero h1 { font-size: clamp(26px, 3.1vw, 36px); margin: 14px 0 12px; }
.hero__lead { font-size: 16.5px; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: nowrap; gap: 12px; margin: 20px 0 22px; }
.hero__actions .btn { white-space: nowrap; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font: 800 22px var(--font-head); color: var(--navy-700); }
.hero__facts span { font-size: 12.5px; color: var(--ink-soft); }
.hero__art { display: grid; place-items: center; min-width: 0; }
.hero__art svg, .hero-svg { width: 100%; max-width: 340px; height: auto; filter: drop-shadow(0 18px 30px rgba(18,41,75,.14)); }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--navy-700); box-shadow: var(--shadow-sm); }
.badge-icon { width: 16px; height: 16px; }

/* УСП-полоса */
.usp-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 26px 0; }
.usp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.usp-card h2 { font-size: 17px; margin: 12px 0 6px; }
.usp-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.usp-card__icon { width: 30px; height: 30px; color: var(--blue-600); }

/* Карточки товаров */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card__photo { display: block; background: #fff; border-bottom: 1px solid var(--line); }
.product-card__photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.product-card__body { padding: 14px 16px 16px; display: grid; gap: 8px; justify-items: start; }
.product-card__name { font: 600 15.5px/1.35 var(--font-head); color: var(--navy-900); text-decoration: none; }
.product-card__name:hover { color: var(--blue-600); }
.product-card__price { font-size: 14px; color: var(--ink-soft); }
.product-card__price span { font: 700 18px var(--font-head); color: var(--navy-900); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); position: relative; }
.step__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-500); color: #fff; font: 700 16px var(--font-head); margin-bottom: 10px; }
.step h3 { font-size: 16.5px; margin: 0 0 6px; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Доверие */
.trust { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 34px; box-shadow: var(--shadow-sm); }
.trust__art { min-width: 0; display: grid; place-items: center; }
.trust__art svg, .trust-svg { width: 100%; max-width: 380px; height: auto; }
.guarantee-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; list-style: none; padding: 0; margin: 16px 0 8px; }
.guarantee-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.li-icon { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }

/* Статьи и отзывы */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article-grid--wide { grid-template-columns: repeat(2, 1fr); }
.article-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card h2, .article-card h3 { font-size: 17px; margin: 0; }
.article-card p { font-size: 14px; color: var(--ink-soft); margin: 0; flex: 1; }
.review-grid, .review-list { display: grid; gap: 16px; }
.review-list { list-style: none; margin: 0; padding: 0; }
.review-grid { grid-template-columns: repeat(2, 1fr); }
.review-card, .review-item figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.review-card blockquote, .review-item blockquote { margin: 0; }
.review-card figcaption, .review-item figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.review-item { margin: 0; padding: 0; }
.review-item__name { font-weight: 700; color: var(--navy-900); }
.review-item__city { background: var(--blue-100); color: var(--navy-700); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }
.review-item__doc { font-style: italic; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub-card { background: linear-gradient(150deg, var(--surface), var(--blue-100)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s; }
.hub-card:hover { transform: translateY(-3px); }
.hub-card h3 { display: flex; align-items: center; gap: 10px; font-size: 16.5px; margin: 0 0 8px; }
.hub-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.hub-icon { width: 22px; height: 22px; color: var(--gold-600); }

/* ---------- Товарная страница ---------- */
.product-view { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); }
.product-gallery__main { width: 100%; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.product-gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.product-gallery__thumb { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 3px; cursor: pointer; }
.product-gallery__thumb:hover { border-color: var(--gold-500); }
.product-gallery__thumb img { display: block; border-radius: 6px; width: 84px; height: auto; }
.product-tags { display: flex; gap: 8px; margin: 0 0 10px; }
.tag { font: 600 12.5px var(--font-body); border-radius: 999px; padding: 4px 12px; }
.tag--ok { background: #E2F3EC; color: var(--ok); }
.tag--gold { background: var(--gold-100); color: var(--gold-600); }
.product-info__price { font-size: 15px; color: var(--ink-soft); margin: 4px 0 14px; }
.product-info__price span { font: 800 30px var(--font-head); color: var(--navy-900); }
.product-info__btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th { text-align: left; width: 38%; padding: 8px 10px 8px 0; color: var(--ink-soft); font-weight: 500; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* Прайс-таблицы */
.table-wrap { overflow-x: auto; margin: 14px 0 20px; }
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { background: var(--navy-700); color: #fff; font: 600 14px var(--font-head); border-bottom: 0; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--blue-100); }
.price-table__group td { background: var(--gold-100); font: 700 14.5px var(--font-head); color: var(--navy-900); text-transform: uppercase; letter-spacing: .03em; }
.price-table__photo img { width: 72px; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.price-table__price { font-weight: 700; white-space: nowrap; color: var(--navy-900); }
.price-table a { text-decoration: none; }
.price-table a:hover { text-decoration: underline; }

/* Иконные списки (доставка/оплата) */
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.icon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.icon-list li { display: flex; gap: 14px; }
.icon-list__icon { width: 34px; height: 34px; flex: none; color: var(--blue-600); background: var(--blue-100); border-radius: 10px; padding: 6px; }
.icon-list h3 { font-size: 15.5px; margin: 0 0 3px; }
.icon-list p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Материалы */
.materials-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.materials-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-sm); }
.materials-list a { font-weight: 600; }
.materials-list span { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 3px; }
.related h2 { margin-top: 30px; }

/* Университеты / специальности */
.uni-list { columns: 2; column-gap: 34px; padding-left: 22px; }
.uni-list--cols { columns: 3; }
.uni-list li { break-inside: avoid; margin: .3em 0; font-size: 15px; }

/* ---------- Формы ---------- */
.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.form-section h2 { margin-top: 0; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; }
.field { display: grid; gap: 5px; margin: 10px 0; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field em { color: var(--flag-red); font-style: normal; }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font: 400 15px var(--font-body); background: #fff; color: var(--ink); width: 100%; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-600); outline: none; box-shadow: 0 0 0 3px rgba(46,109,180,.15); }
.form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.form__hint { font-size: 12.5px; color: var(--ink-soft); margin: 0; max-width: 46ch; }
.form__status { font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--flag-red); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form--inline { display: grid; gap: 0 20px; grid-template-columns: 1.4fr .8fr .8fr; align-items: end; }
.form--inline .form__actions { grid-column: 1 / -1; }

/* ---------- Модальные окна ---------- */
.modal { border: 0; border-radius: 18px; padding: 24px; max-width: 440px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); background: var(--surface); }
.modal::backdrop { background: rgba(18, 41, 75, .45); backdrop-filter: blur(2px); }
.modal--photo { max-width: 900px; width: calc(100% - 32px); background: transparent; padding: 10px; }
.modal--photo img { border-radius: 12px; width: 100%; height: auto; box-shadow: var(--shadow-lg); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.modal__title { font-size: 21px; margin: 0; }
.modal__text { font-size: 14.5px; color: var(--ink-soft); }
.modal__close { border: 0; background: var(--blue-100); color: var(--navy-700); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.modal__close:hover { background: var(--gold-100); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 4px 18px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; font: 600 16px var(--font-head); color: var(--navy-900); padding: 13px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s; color: var(--gold-600); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item__body { padding: 0 0 14px; font-size: 15.5px; }

/* ---------- Прочее ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.contact-card h2 { font-size: 17px; margin: 10px 0 6px; }
.contact-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 4px; }
.contact-card__icon { width: 30px; height: 30px; color: var(--blue-600); }
.contact-card__link { font: 700 18px var(--font-head); }
.contact-card__note { font-size: 13px !important; }
.messengers--contacts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.map-wrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin: 14px 0 22px; }
.map-wrap iframe { display: block; border: 0; }
.done-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; text-align: center; box-shadow: var(--shadow-sm); }
.done-icon { width: 54px; height: 54px; color: var(--ok); }
.done-card h2 { margin-top: 12px; }
.done-card .messengers--contacts { align-items: center; margin-top: 18px; }
.error-links { columns: 2; }
.search-results { list-style: none; padding: 0; display: grid; gap: 8px; }
.search-results li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; }
.search-results__type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-600); margin-right: 12px; }
.search-query { color: var(--ink-soft); }
.longread p { text-align: justify; hyphens: auto; }
.longread h2 { margin-top: 1.7em; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy-900); color: #C7D4E6; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 30px; padding: 40px 20px 30px; }
.footer-col__title { font: 700 15px var(--font-head); color: #fff; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.logo--footer img { box-shadow: none; }
.logo--footer .logo__text strong { color: #fff; }
.logo--footer .logo__text small { color: #9FB2CC; }
.footer-about { font-size: 14px; line-height: 1.6; margin: 14px 0; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.footer-list a { color: #C7D4E6; text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-contacts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.fc-icon { width: 17px; height: 17px; color: var(--gold-500); flex: none; margin-top: 3px; }
.footer-contacts a { color: #fff; text-decoration: none; }
.footer-contacts a:hover { text-decoration: underline; }
.messengers--footer { margin-top: 6px; }
.messengers--footer .msg-icon { width: 22px; height: 22px; border-radius: 7px; box-shadow: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom__in { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; font-size: 13px; color: #9FB2CC; }
.footer-bottom p { margin: 0; }

/* ---------- Анимации ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Класс ставит JS: без скриптов весь контент сразу виден (важно для роботов) */
  .js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .js-reveal .reveal.in-view { opacity: 1; transform: none; }
  .btn:active { transform: translateY(1px); }
}

/* Плавные якоря не прячут контент под липкой шапкой */
[id] { scroll-margin-top: 128px; }

/* Диалоги: страховка для старых браузеров */
dialog:not([open]) { display: none; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1080px) {
  .header-usp { display: none; }
  .hero { grid-template-columns: 1fr; padding: 30px 24px; }
  .products-grid, .article-grid, .review-grid, .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout__grid { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 860px) {
  .layout__grid { grid-template-columns: 1fr; gap: 26px; }
  .content-col { grid-column: 1; grid-row: 1; }
  .sidebar { grid-column: 1; grid-row: 2; position: static; max-height: none; overflow: visible; order: 2; }
  .product-view, .trust, .delivery-grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .uni-list, .uni-list--cols { columns: 1; }
  .error-links { columns: 1; }
  .guarantee-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-contact { display: none; }
  .header-cta { display: none; }
  .header-main__in { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .logo__text small { display: none; }
  .messengers { margin-left: auto; }
  .burger { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav__in { flex-direction: column; align-items: stretch; padding: 8px 14px 14px; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-sub { position: static; box-shadow: none; border: 0; display: block; background: transparent; padding: 0 0 6px 18px; }
  .nav-sub a { color: #B9C9E0; }
  .nav-search { margin: 10px 0 0; }
  .nav-search input { width: 100%; flex: 1; }
  .hero__facts { gap: 18px; }
  .usp-strip, .steps, .products-grid, .article-grid, .review-grid, .hub-grid, .article-grid--wide { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 30px 20px 22px; }
  .form--inline { grid-template-columns: 1fr; }
  .hero { padding: 24px 18px; border-radius: 16px; }
  .product-info__btns .btn { flex: 1; }
}
