/*
Theme Name: VNIIV Cert Pro
Theme URI: https://vniivshe.ru/
Author: Codex
Description: Lightweight commercial WordPress theme for VNIIV certification center.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: vniiv-cert-pro
*/

:root {
  --navy: #102A43;
  --navy-2: #1E293B;
  --ocean: #0E8A73;
  --blue: #1664A5;
  --teal: #2979C7;
  --orange: #D68A1F;
  --bg: #F7F9FB;
  --light: #EDF5FC;
  --text: #1D2939;
  --muted: #667085;
  --line: #DCE4EA;
  --white: #fff;
  --violet-light: #EAF8F4;
  --shadow: 0 18px 45px rgba(16, 28, 44, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Arial", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; }
.skip-link:focus { left: 16px; z-index: 1000; background: var(--white); padding: 12px 16px; border-radius: 6px; }

.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--navy); color: rgba(255,255,255,.86); font-size: 14px; }
.topbar .wrap, .mainbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar .wrap { min-height: 40px; }
.topbar__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar__links span, .topbar__links a { display: inline-flex; align-items: center; gap: 7px; }
.mainbar { background: var(--white); border-bottom: 1px solid var(--line); }
.mainbar .wrap { min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 244px; }
.brand__logo { width: 244px; height: 58px; display: block; }
.brand__mark { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; color: var(--white); background: linear-gradient(135deg, var(--blue), var(--ocean)); box-shadow: var(--shadow); }
.brand__name { display: block; font-size: 22px; line-height: 1.05; font-weight: 850; color: var(--navy); letter-spacing: 0; }
.brand__tag { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

.header-search { flex: 1; max-width: 560px; min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; color: var(--blue); }
.header-search input { width: 100%; min-height: 48px; border: 0; outline: 0; background: transparent; color: var(--text); }
.header-search svg { width: 20px; height: 20px; }
.catalogbar { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: var(--white); }
.catalogbar .wrap { min-height: 56px; display: flex; align-items: center; }
.catalogbar .nav__link { color: rgba(255,255,255,.9); }
.catalogbar .nav__link:hover, .catalogbar .nav__item:focus-within .nav__link { background: rgba(255,255,255,.1); color: var(--white); }
.catalogbar .nav__icon { color: #b8c7ff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link { min-height: 44px; padding: 10px 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 6px; color: var(--navy); font-weight: 700; font-size: 15px; transition: .2s ease; }
.nav__link:hover, .nav__item:focus-within .nav__link { background: var(--light); color: var(--blue); }
.nav__icon { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; }
.mega { position: absolute; top: calc(100% + 12px); left: -20px; width: min(980px, calc(100vw - 40px)); background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 22px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.mega--compact { width: min(760px, calc(100vw - 40px)); }
.nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega__grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
.mega__group h3 { margin: 0 0 10px; color: var(--navy); font-size: 15px; }
.mega__group p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mega__group a { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--muted); font-size: 14px; }
.mega__group a:hover { color: var(--blue); }
.mega__group--intro { padding: 18px; border-radius: 8px; background: linear-gradient(135deg, var(--light), var(--violet-light)); border: 1px solid var(--line); }
.mega__cta { min-height: 40px; justify-content: center; padding: 9px 12px !important; border-radius: 6px; background: var(--navy); color: var(--white) !important; font-weight: 900; }
.mega__products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mega__products a { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; border: 1px solid transparent; color: var(--navy); font-weight: 800; font-size: 13px; line-height: 1.25; }
.mega__products a:hover { background: var(--bg); border-color: var(--line); color: var(--blue); }
.mega__products span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--blue); background: var(--light); }
.nav__item--search svg { width: 20px; height: 20px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--navy); }

.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 6px; border: 0; cursor: pointer; font-weight: 800; transition: .2s ease; }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 12px 30px rgba(233, 120, 32, .25); }
.btn--primary:hover { transform: translateY(-1px); background: #B96B16; }
.btn--ghost { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--dark { background: var(--navy); color: var(--white); }

.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(circle at 88% 12%, rgba(91,75,219,.42), transparent 30%), linear-gradient(135deg, var(--navy) 0%, #1E293B 58%, #2979C7 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(to bottom, transparent, rgba(11,31,51,.28)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 42px; align-items: center; min-height: 610px; padding: 64px 0 92px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.86); font-weight: 700; font-size: 14px; }
.hero h1 { margin: 22px 0 18px; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: 0; max-width: 780px; }
.hero p { color: rgba(255,255,255,.86); font-size: 20px; max-width: 720px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; }
.hero-point { padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); font-size: 14px; }
.hero-panel { background: rgba(255,255,255,.96); color: var(--text); border-radius: 8px; padding: 24px; box-shadow: var(--shadow); }
.hero-panel h2 { margin: 0 0 8px; color: var(--navy); font-size: 24px; }
.check-form { display: grid; gap: 12px; margin-top: 18px; }
.field, .select, .textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: 12px 14px; color: var(--text); }
.textarea { min-height: 104px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }

.section { padding: 76px 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section__head h2, .section h2 { margin: 0; color: var(--navy); font-size: clamp(28px, 3.5vw, 42px); line-height: 1.12; letter-spacing: 0; }
.section--navy .section__head h2, .section--navy h2 { color: var(--white); }
.section__lead { color: var(--muted); max-width: 680px; margin: 10px 0 0; }
.section--navy .section__lead { color: rgba(255,255,255,.74); }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: 0 8px 28px rgba(11, 31, 51, .05); transition: .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(29,111,184,.35); }
.card__icon { width: 42px; height: 42px; border-radius: 7px; display: grid; place-items: center; color: var(--blue); background: var(--light); margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; line-height: 1.25; }
.card p { margin: 0 0 14px; color: var(--muted); }
.card a { color: var(--blue); font-weight: 800; }
.pathway { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pathway__item { position: relative; padding: 20px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); }
.pathway__num { color: var(--orange); font-weight: 900; font-size: 14px; }
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 34px; align-items: start; }
.info-panel { border-radius: 8px; padding: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.checklist { display: grid; gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.checklist li::before { content: "✓"; color: var(--teal); font-weight: 900; }
.calc { background: var(--white); border-radius: 8px; padding: 26px; border: 1px solid var(--line); }
.calc__result { padding: 18px; border-radius: 8px; background: var(--light); color: var(--navy); font-weight: 800; margin-top: 14px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.faq p { color: var(--muted); margin-bottom: 0; }

.page-hero { background: linear-gradient(135deg, var(--navy), var(--ocean)); color: var(--white); padding: 76px 0; }
.breadcrumbs { font-size: 14px; color: rgba(255,255,255,.72); margin-bottom: 18px; }
.page-hero h1 { margin: 0 0 14px; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; }
.page-hero p { max-width: 760px; color: rgba(255,255,255,.82); font-size: 19px; margin: 0; }
.content { background: var(--white); padding: 52px 0; }
.content__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.entry { font-size: 18px; max-width: 780px; }
.entry h2 { color: var(--navy); line-height: 1.18; margin-top: 34px; }
.entry table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.entry th, .entry td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.entry th { background: var(--light); color: var(--navy); }
.sidebar { position: sticky; top: 150px; display: grid; gap: 16px; }
.sidebar-box { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.sidebar-box h3 { margin: 0 0 10px; color: var(--navy); }

.site-footer { background: #071827; color: rgba(255,255,255,.78); padding: 58px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 28px; }
.site-footer h3 { color: var(--white); margin: 0 0 14px; font-size: 17px; }
.site-footer a { display: block; color: rgba(255,255,255,.72); padding: 5px 0; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; }

.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(7,24,39,.68); }
.modal.is-open { display: flex; }
.modal__dialog { width: min(560px, 100%); background: var(--white); border-radius: 8px; padding: 26px; box-shadow: var(--shadow); position: relative; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border: 0; border-radius: 6px; background: var(--light); cursor: pointer; }
.site-message { display: none; padding: 12px 14px; border-radius: 6px; margin-top: 12px; background: #e8f7ee; color: #0f5f2c; }

.service-hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(circle at 78% 18%, rgba(228,154,45,.24), transparent 28%), radial-gradient(circle at 18% 92%, rgba(91,75,219,.34), transparent 32%), linear-gradient(135deg, #081827 0%, #132944 58%, #213a7b 100%); }
.service-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 78px; background: linear-gradient(to bottom, transparent, rgba(7,24,39,.36)); pointer-events: none; }
.service-hero__grid { position: relative; z-index: 1; min-height: 590px; padding: 72px 0 86px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .72fr); gap: 42px; align-items: center; }
.service-hero .breadcrumbs { color: rgba(255,255,255,.68); }
.service-hero h1 { margin: 18px 0 16px; font-size: clamp(38px, 5vw, 66px); line-height: 1.02; max-width: 780px; }
.service-hero p { margin: 0 0 26px; color: rgba(255,255,255,.84); font-size: 19px; max-width: 760px; }
.service-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; max-width: 820px; }
.service-hero__facts div { min-height: 96px; padding: 16px; border-radius: 8px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); }
.service-hero__facts strong { display: block; color: #f3b95f; font-size: 14px; margin-bottom: 8px; }
.service-hero__facts span { display: block; color: rgba(255,255,255,.88); font-weight: 700; line-height: 1.35; }
.service-lead-card { background: rgba(255,255,255,.98); color: var(--text); border: 1px solid rgba(255,255,255,.5); border-radius: 8px; padding: 26px; box-shadow: var(--shadow); }
.service-lead-card__badge { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 999px; background: var(--violet-light); color: var(--ocean); font-size: 13px; font-weight: 900; margin-bottom: 12px; }
.service-lead-card h2 { margin: 0 0 10px; color: var(--navy); font-size: 28px; line-height: 1.12; }
.service-lead-card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); flex: 0 0 auto; }
.service-strip { margin-top: -44px; position: relative; z-index: 2; }
.service-strip__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-mini { min-height: 124px; padding: 18px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 14px 32px rgba(16, 28, 44, .12); }
.service-mini__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; background: var(--light); color: var(--blue); margin-bottom: 12px; }
.service-mini strong { display: block; color: var(--navy); font-size: 16px; line-height: 1.2; margin-bottom: 6px; }
.service-mini span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.service-layout { padding-top: 62px; background: linear-gradient(180deg, var(--white), #f8fbff 34%, var(--white)); }
.service-entry { max-width: none; }
.service-toc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 22px; position: sticky; top: 144px; z-index: 5; }
.service-toc a { min-height: 38px; display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 6px; color: var(--navy); font-weight: 800; font-size: 14px; background: var(--white); border: 1px solid transparent; }
.service-toc a:hover { color: var(--blue); border-color: rgba(37,99,235,.28); }
.service-content-card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 12px 30px rgba(11,31,51,.05); }
.service-section { margin-top: 26px; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 12px 30px rgba(11,31,51,.05); }
.service-section--blue { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr); gap: 24px; background: linear-gradient(135deg, #f4f7ff, #eef6ff); border-color: #cfe1ff; }
.service-section--dark { background: linear-gradient(135deg, var(--navy), #1e2f54); color: var(--white); border: 0; }
.service-section--dark h2, .service-section--dark .section-kicker { color: var(--white); }
.service-section--dark p { color: rgba(255,255,255,.74); }
.service-section h2 { margin-top: 0; }
.section-kicker { display: inline-flex; margin-bottom: 8px; color: var(--blue); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.document-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.document-list li { min-height: 58px; display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 8px; background: rgba(255,255,255,.86); border: 1px solid rgba(37,99,235,.14); color: var(--navy); font-weight: 700; line-height: 1.35; }
.document-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; background: var(--orange); box-shadow: 0 0 0 5px rgba(228,154,45,.16); flex: 0 0 auto; }
.service-quiz { display: grid; grid-template-columns: minmax(0, .95fr) minmax(260px, .75fr); gap: 18px; align-items: stretch; }
.service-quiz__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-quiz__options button { min-height: 72px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--navy); cursor: pointer; padding: 14px; text-align: left; font-weight: 900; transition: .2s ease; }
.service-quiz__options button:hover, .service-quiz__options button.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-1px); }
.service-quiz__result { border-radius: 8px; background: var(--violet-light); color: var(--navy); padding: 18px; font-weight: 800; display: flex; align-items: center; border: 1px solid rgba(91,75,219,.18); }
.service-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.service-step { min-height: 170px; padding: 18px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.service-step__num { color: #f3b95f; font-weight: 900; margin-bottom: 12px; }
.service-step strong { color: var(--white); display: block; margin-bottom: 8px; }
.service-step p { margin: 0; font-size: 14px; }
.service-calc { box-shadow: none; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-grid--articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-card { min-height: 96px; padding: 16px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: flex; gap: 12px; align-items: center; transition: .2s ease; }
.related-card:hover { transform: translateY(-2px); border-color: rgba(37,99,235,.35); background: var(--white); box-shadow: 0 10px 26px rgba(11,31,51,.08); }
.related-card span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; background: var(--light); color: var(--blue); flex: 0 0 auto; }
.related-card strong { color: var(--navy); line-height: 1.25; }
.sidebar-box--accent { background: linear-gradient(135deg, var(--navy), var(--ocean)); color: var(--white); border: 0; }
.sidebar-box--accent h3 { color: var(--white); }
.sidebar-box--accent p { color: rgba(255,255,255,.78); }
.service-sidebar .sidebar-box a { display: block; padding: 8px 0; color: var(--blue); font-weight: 800; }
.content-cta { padding: 26px; border-radius: 8px; background: linear-gradient(135deg, #EDF5FC, #fff7ec); border: 1px solid #DCE4EA; margin-top: 26px; }
.catalog-hero, .quiz-hero, .product-hero { background: radial-gradient(circle at 82% 16%, rgba(228,154,45,.22), transparent 28%), linear-gradient(135deg, var(--navy), #203b76); color: var(--white); padding: 74px 0; }
.product-hero { padding: 62px 0 74px; }
.product-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .55fr); gap: 36px; align-items: center; }
.product-hero h1, .catalog-hero h1, .quiz-hero h1 { margin: 18px 0 14px; font-size: clamp(36px, 4.8vw, 62px); line-height: 1.05; }
.product-hero p, .catalog-hero p, .quiz-hero p { max-width: 780px; color: rgba(255,255,255,.82); font-size: 19px; }
.catalog-search { display: flex; gap: 12px; max-width: 820px; margin-top: 24px; }
.catalog-search input { flex: 1; min-height: 52px; border: 0; border-radius: 6px; padding: 0 16px; }
.filter-panel { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); margin-bottom: 24px; }
.filter-panel__head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.filter-panel h2 { margin: 0; color: var(--navy); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filter-chips button { min-height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 8px 14px; cursor: pointer; color: var(--navy); font-weight: 800; transition: .2s ease; }
.filter-chips button:hover, .filter-chips button.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filter-search { min-height: 50px; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; color: var(--blue); }
.filter-search input { width: 100%; min-height: 48px; border: 0; outline: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(11,31,51,.05); transition: .2s ease; }
.catalog-card.is-hidden { display: none; }
.catalog-card:hover { transform: translateY(-2px); border-color: rgba(37,99,235,.34); box-shadow: var(--shadow); }
.catalog-card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: var(--light); color: var(--blue); }
.catalog-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 19px; line-height: 1.25; }
.catalog-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.catalog-card__links { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-card__links a, .catalog-card__links button { border: 0; padding: 0; background: transparent; color: var(--blue); font-weight: 900; cursor: pointer; }
.catalog-empty { display: none; margin-top: 22px; padding: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--light), #fff7ec); border: 1px solid var(--line); }
.catalog-empty.is-visible { display: block; }
.doc-quiz { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.doc-quiz__steps, .doc-quiz__result { padding: 26px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(11,31,51,.06); }
.doc-quiz__step { display: none; }
.doc-quiz__step.is-active { display: grid; gap: 12px; }
.doc-quiz__step h2 { margin: 0 0 6px; color: var(--navy); }
.doc-quiz__step button { min-height: 58px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--navy); padding: 14px; text-align: left; font-weight: 900; cursor: pointer; transition: .2s ease; }
.doc-quiz__step button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.doc-quiz__result { position: sticky; top: 150px; }
.doc-quiz__result h2 { margin-top: 0; color: var(--navy); }
.decision-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.decision-matrix div { padding: 16px; border-radius: 8px; background: rgba(255,255,255,.82); border: 1px solid rgba(37,99,235,.12); }
.decision-matrix strong { display: block; color: var(--navy); margin-bottom: 6px; }
.decision-matrix span { color: var(--muted); font-size: 14px; }
.lead-magnet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr); gap: 24px; align-items: center; background: linear-gradient(135deg, var(--navy), var(--ocean)); color: var(--white); border: 0; }
.lead-magnet h2, .lead-magnet .section-kicker { color: var(--white); }
.lead-magnet p { color: rgba(255,255,255,.78); }
.case-hero { background: radial-gradient(circle at 80% 18%, rgba(228,154,45,.22), transparent 28%), linear-gradient(135deg, #071827, #233469); }
.content-cta { margin: 34px 0 0; padding: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--light), var(--violet-light)); border: 1px solid var(--line); }
.content-cta h2 { margin-top: 0; }
.content-cta .check-form { max-width: 680px; }

@media (max-width: 1040px) {
  .mobile-toggle { display: inline-grid; place-items: center; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 12px; }
  .nav { position: fixed; inset: 146px 0 auto; background: var(--white); border-bottom: 1px solid var(--line); padding: 16px; flex-direction: column; align-items: stretch; display: none; max-height: calc(100vh - 146px); overflow: auto; }
  .catalogbar .wrap { min-height: 0; }
  .catalogbar .nav__link { color: var(--navy); }
  .catalogbar .nav__icon { color: var(--blue); }
  body.nav-open .nav { display: flex; }
  .nav__link { width: 100%; justify-content: flex-start; }
  .mega { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin-top: 6px; display: none; }
  .nav__item.is-open .mega, .nav__item:focus-within .mega { display: block; }
  .mega__grid, .mega__products { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .hero .wrap, .split, .content__grid { grid-template-columns: 1fr; }
  .hero .wrap { min-height: auto; }
  .sidebar { position: static; }
  .grid--4, .pathway { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-hero__grid, .service-section--blue, .service-quiz { grid-template-columns: 1fr; }
  .service-strip__grid, .service-steps, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-toc { position: static; }
  .product-hero__grid, .doc-quiz, .lead-magnet { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-quiz__result { position: static; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .topbar__links { gap: 10px; }
  .topbar__links .hide-mobile { display: none; }
  .mainbar .wrap { min-height: 72px; }
  .brand__name { font-size: 18px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand { min-width: 174px; }
  .brand__logo { width: 174px; height: auto; }
  .topbar { display: none; }
  .header-search { display: none; }
  .nav { inset: 72px 0 auto; max-height: calc(100vh - 72px); }
  .hero .wrap { padding: 42px 0 58px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 18px; }
  .hero-points, .grid--3, .grid--4, .grid--2, .pathway, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section__head { display: block; }
  .service-hero__grid { min-height: auto; padding: 42px 0 70px; }
  .service-hero h1 { font-size: 37px; }
  .service-hero p { font-size: 17px; }
  .service-hero__facts, .service-strip__grid, .service-steps, .related-grid, .related-grid--articles, .document-list, .service-quiz__options { grid-template-columns: 1fr; }
  .service-strip { margin-top: -28px; }
  .service-section, .service-content-card, .service-lead-card { padding: 20px; }
  .service-toc { overflow-x: auto; flex-wrap: nowrap; }
  .service-toc a { flex: 0 0 auto; }
  .catalog-search, .filter-panel__head { display: block; }
  .catalog-search .btn { width: 100%; margin-top: 10px; }
  .catalog-grid, .decision-matrix { grid-template-columns: 1fr; }
  .product-hero, .catalog-hero, .quiz-hero { padding: 46px 0; }
}
