/* =====================================================================
   compartner52.ru — стили прототипа. Направление: сдержанное, инженерное.
   1. Токены  2. Шрифт  3. База  4. Типографика  5. Кнопки  6. Шапка
   7. Первый экран  8. Секции/карточки  9. Блоки  10. Форма  11. Подвал
   12. Служебное  13. Адаптив  14. Доступность
   ===================================================================== */

/* 1. Токены ---------------------------------------------------------- */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F9FC;           /* чередование секций */
  --bg-tint: #EAF2FA;          /* лёгкий холодный оттенок первого экрана (гамма ТЗ, приглушена) */
  --ink: #0F1F3D;              /* заголовки, кнопки */
  --text: #1C2A47;             /* основной текст */
  --muted: #5B6B82;            /* вторичный текст, 5.3:1 на белом */
  --line: #DCE4EE;
  --line-strong: #B9C6D6;
  --accent: #1A5FD8;           /* фирменный синий (из материалов заказчика), 5.7:1 на белом */
  --brand: #1A5FD8; --brand-2: #4F8FE6; --brand-3: #93C6EF;  /* градиент заглушки compartner52.ru */
  --accent-soft: #EEF3FA;
  --signal: #E8772E;           /* одна маленькая точка-сигнал в графике */
  --error: #B3261E;
  --success: #1B6B3A;

  --r: 14px; --r-sm: 10px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", "Century Gothic", "Golos Text", system-ui, Arial, sans-serif;  /* геометрический гротеск из материалов заказчика */
  --container: 1360px; --gutter: 24px; --header-h: 72px; --section-y: 96px;
}

/* 2. Шрифт (SIL OFL, assets/fonts/OFL.txt) -------------------------- */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 3. База ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* 4. Типографика ----------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
h1 { font-size: clamp(32px, 4vw, 54px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 18px; font-weight: 600; }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--brand); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 540px; line-height: 1.6; }
.muted { color: var(--muted); }
.note { font-size: 14px; color: var(--muted); margin-top: 28px; max-width: 900px; }
.note + .note { margin-top: 8px; }
.accent { color: var(--accent); }

/* 5. Кнопки ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: #174FBF; border-color: #174FBF; color: #fff; }
.btn--secondary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--secondary:hover { background: #174FBF; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--accent-soft); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); }
.link-more::after { content: "→"; color: var(--muted); transition: transform .15s ease; }
.link-more:hover { color: var(--accent); } .link-more:hover::after { transform: translateX(3px); }

/* 6. Шапка и навигация ---------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--brand); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 23px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.brand__mark { width: 36px; height: 36px; flex: none; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 2px; list-style: none; }
.nav__link { display: inline-block; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.nav__cta { margin-left: 12px; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; color: var(--ink); }
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle__bar { display: block; width: 22px; height: 1.5px; margin: 6px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(15,31,61,.4); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* 7. Первый экран: фирменный градиент заглушки заказчика и медведь-космонавт -------- */
.hero-wrap { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(100deg, #174FBF 0%, var(--brand) 32%, #3B7FE0 62%, var(--brand-3) 100%); }
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 64px 0 48px; min-height: 620px; }
.hero > div:first-child { padding-bottom: 40px; }
.hero h1 { margin: 10px 0 22px; max-width: 20ch; color: #fff; }
.hero .kicker { color: rgba(255,255,255,.8); } .hero .kicker::before { background: rgba(255,255,255,.5); }
.hero .lead { color: rgba(255,255,255,.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--primary { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn--primary:hover { background: #EAF2FA; border-color: #EAF2FA; color: var(--ink); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero__art { position: relative; align-self: stretch; min-height: 560px; }
.hero__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bear { position: absolute; right: 0; bottom: 0; height: min(600px, 92%); width: auto; filter: drop-shadow(0 24px 40px rgba(10, 40, 100, .45)); animation: bear-float 7s ease-in-out infinite; }
@keyframes bear-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__credit { position: absolute; left: 0; bottom: 14px; }

/* 8. Секции и карточки ---------------------------------------------- */
.section { padding: var(--section-y) 0; scroll-margin-top: calc(var(--header-h) + 8px); }
.section--sky { background: linear-gradient(180deg, #F3F8FD 0%, #EAF2FA 100%); }
/* Секция на фирменном градиенте */
.section--brand { background: linear-gradient(100deg, #174FBF 0%, var(--brand) 45%, #2F6FDC 100%); color: #fff; position: relative; overflow: hidden; }
.section--brand::before { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); right: -300px; top: -500px; pointer-events: none; }
.section--brand::after { content: ""; position: absolute; width: 1300px; height: 1300px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); right: -500px; top: -700px; pointer-events: none; }
.section--brand .container { position: relative; z-index: 1; }
.section__bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.equipment.section--brand::before, .equipment.section--brand::after { display: none; }
.section--brand h2, .section--brand .kicker { color: #fff; } .section--brand .kicker::before { background: rgba(255,255,255,.7); }
.section--brand .section__head { border-top-color: rgba(255,255,255,.25); } .section--brand .section__head > p { color: rgba(255,255,255,.88); }
.section--brand .note { color: rgba(255,255,255,.82); }
.section--brand .card { border-color: rgba(255,255,255,.35); box-shadow: 0 18px 40px rgba(10, 40, 100, .18); }
.section--brand .btn--primary { background: #fff; color: var(--ink); border-color: #fff; } .section--brand .btn--primary:hover { background: #EAF2FA; border-color: #EAF2FA; color: var(--ink); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.section__head > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 16px; justify-self: end; }
.section--sky .section__head { border-top-color: #CFE0F2; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { display: flex; flex-direction: column; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: border-color .15s ease; }
.card:hover { border-color: var(--line-strong); }
.card h3 { margin: 8px 0 10px; }
.format .card__label, .format p { margin-top: 0; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card__label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.card__icon { display: grid; place-items: center; margin-bottom: 20px; color: var(--brand); }
.card__icon svg { width: 44px; height: 44px; }
.card--flat:hover { border-color: var(--line); }

/* 9. Блоки ----------------------------------------------------------- */
.equipment .card__head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.equipment .card__head h3 { margin: 0; padding-top: 2px; }
.card__icon--bare { width: auto; height: auto; margin: 0; border: 0; border-radius: 0; background: none; flex: none; }
.card__icon--bare svg { width: 48px; height: 48px; }
.equipment .card ul { list-style: none; color: var(--muted); font-size: 15px; display: grid; gap: 8px; }
.equipment .card li { padding-left: 22px; position: relative; }
.equipment .card li::before { content: ""; position: absolute; left: 0; top: .75em; width: 12px; height: 2px; background: var(--brand); opacity: .7; }

.format { padding: 30px; position: relative; }
.format--popular { border: 2px solid var(--brand); }
.format__badge { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 6px 12px; border-radius: 100px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.format__scheme { margin: -30px -30px 22px; padding: 22px 28px 18px; border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; background: var(--bg-alt); }
.format--popular .format__scheme { margin: -30px -30px 22px; }
.format__scheme svg { width: 100%; height: auto; display: block; }
.format__head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.format__area { font-family: var(--font-head); font-size: 56px; font-weight: 700; line-height: 1; color: var(--brand); letter-spacing: -0.03em; white-space: nowrap; flex: none; }
.format__area sup { font-size: 18px; font-weight: 600; vertical-align: top; margin-left: 4px; color: var(--muted); }
.format__head h3 { margin: 0; font-size: 21px; line-height: 1.2; overflow-wrap: normal; hyphens: manual; }
.format h4 { margin: 20px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.format ul { list-style: none; color: var(--text); font-size: 15px; display: grid; gap: 5px; }
.format li { padding-left: 18px; position: relative; }
.format li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 2px; background: var(--brand); opacity: .7; }
.format ul:last-of-type { margin-bottom: 26px; }
.format .btn { margin-top: auto; align-self: flex-start; }

.card__diagram, .case__media { margin: -28px -28px 22px; border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; background: #fff; overflow: hidden; }
.card__diagram svg, .case__media svg { width: 100%; height: auto; display: block; color: var(--ink); }
.case__media img { width: 100%; height: auto; aspect-ratio: 320 / 225; object-fit: cover; display: block; }
.case__place { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }


.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.step { padding: 26px; }
.step__num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.step h3 { font-size: 18px; margin: 18px 0 8px; }
.workflow__cta { margin-top: 32px; }
.trajectory { width: 100%; height: auto; margin: -28px 0 12px; display: block; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; list-style: none; border-top: 1px solid var(--line); }
.service { display: flex; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.service__icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; color: var(--brand); }
.service__icon svg { width: 54px; height: 54px; }
.service b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.service small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about__text p { font-size: 17px; }
.details { padding: 30px; }
.details h3 { margin: 0 0 8px; } .details { border-top: 4px solid var(--brand); }
.details dl { margin: 0; font-size: 15px; }
.details dl > div { display: grid; grid-template-columns: minmax(150px, 40%) 1fr; gap: 0 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.case__details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.case__details summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.case__details summary::-webkit-details-marker { display: none; }
.case__details summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.case__details[open] summary::before { transform: rotate(45deg); }
.case__list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14.5px; color: var(--text); }
.case__list li { padding: 7px 0; border-top: 1px solid var(--line); }
.case__list b { color: var(--ink); font-weight: 600; }
.price { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.price th, .price td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); }
.price th { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: .02em; }
.price .price__sum { white-space: nowrap; font-weight: 600; color: var(--ink); }
#pricing .card + .card { margin-top: 20px; }
.details__note { margin-top: 20px; font-size: 13px; color: var(--muted); }

.contacts { display: grid; grid-template-columns: 2fr 3fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; display: grid; margin-top: 28px; font-size: 16px; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { flex: none; width: 30px; height: 30px; color: var(--brand); margin-top: 0; }
.contact-list b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 2px; }
.contact-list a { font-weight: 500; color: var(--ink); }

/* 10. Форма ---------------------------------------------------------- */
.form-card { padding: 36px; border-top: 4px solid var(--brand); }
.form-card:hover { border-color: var(--line); }
.form-card h3 { margin: 0 0 6px; font-size: 22px; }
.form-card > p { font-size: 14px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7A879A; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #DCE7F7; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field__error { font-size: 13px; color: var(--error); font-weight: 500; }
.field--check-wrap { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.field--check-wrap input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--ink); }
.field--check-wrap label { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.field--check-wrap .field__error { grid-column: 1 / -1; }
.form__hint { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.form__status[data-state="info"] { background: var(--bg-alt); color: var(--ink); }
.form__status[data-state="error"] { background: #FDF3F2; color: var(--error); border-color: #F0CFCB; }
.form__status[data-state="success"] { background: #F0F8F3; color: var(--success); border-color: #C6E2D0; }
.form__status:empty { display: none; }

/* 11. Подвал --------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(120deg, #0F1F3D 0%, #143A86 55%, var(--brand) 100%); color: #D5E2F5; padding: 56px 0 28px; font-size: 14px; }
.site-footer::before, .site-footer::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); pointer-events: none; }
.site-footer::before { width: 620px; height: 620px; right: -160px; top: -300px; }
.site-footer::after { width: 980px; height: 980px; right: -340px; top: -520px; border-style: dashed; opacity: .7; }
.site-footer .container { position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: inline-block; margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer__col h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #A9C4EE; font-weight: 600; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: 13px; color: #A9C4EE; }

/* 12. Служебные страницы ------------------------------------------- */

.page-simple { padding: 56px 0 96px; }
.page-simple .container { max-width: 800px; }
.page-simple h2 { font-size: 22px; margin: 36px 0 12px; }
.page-simple ol, .page-simple ul { padding-left: 22px; }
.page-simple li { margin-bottom: 6px; }
.page-simple .back { display: inline-block; margin-bottom: 24px; }

/* 13. Адаптив -------------------------------------------------------- */
@media (max-width: 1100px) { .hero h1 { max-width: none; } }
@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 45; width: min(320px, 86vw); flex-direction: column; align-items: stretch; gap: 8px; padding: 84px 24px 24px; background: #fff; border-left: 1px solid var(--line);
    clip-path: inset(0 0 0 100%); transition: clip-path .24s ease, visibility 0s linear .24s; visibility: hidden; }
  .nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .24s ease; }
  html.no-js .nav { position: static; clip-path: none; visibility: visible; border: 0; padding: 0; width: auto; flex-direction: row; flex-wrap: wrap; }
  .nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .nav__link { display: block; padding: 14px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__link.is-active { border-bottom-color: var(--line); }
  .nav__cta { margin: 20px 0 0; }
  .site-header__inner { position: relative; }
  .nav-toggle { position: relative; z-index: 46; }
}
@media (max-width: 1023px) {
  :root { --section-y: 72px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 28px; min-height: 0; padding: 56px 0 40px; }
  .hero > div:first-child { padding-bottom: 24px; }
  .hero__art { min-height: 480px; }
  .hero__bear { height: 92%; }
  .grid--3, .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contacts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section__head { grid-template-columns: 1fr; gap: 12px; }
  .section__head > p { justify-self: start; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 60px; --section-y: 56px; }
  body { font-size: 16px; }
  .brand { font-size: 19px; } .brand__mark { width: 30px; height: 30px; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 28px; }
  .hero > div:first-child { padding-bottom: 28px; }
  .hero__art { min-height: 340px; margin-top: 0; }
  .hero__bear { height: 330px; right: 8px; }
  .hero__actions .btn { width: 100%; }
  .grid--2, .grid--3, .grid--4, .steps, .services { grid-template-columns: 1fr; }
  .services { gap: 0; }
  .card { padding: 22px; }
  .card__diagram, .case__media { margin: -22px -22px 18px; }
  .trajectory { display: none; }
  .form { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .form-card { padding: 24px; }
  .details { padding: 22px; }
  .details dl > div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .format__area { font-size: 44px; }
  .format__head h3 { font-size: 19px; }
  .format__scheme { margin: -22px -22px 18px; padding: 16px 18px 12px; }
}
@media (min-width: 1024px) { .grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 380px) { h1 { font-size: 30px; } .brand { font-size: 17px; letter-spacing: .04em; } .btn { padding-inline: 16px; } }

/* 13a. Уведомление о cookie ----------------------------------------- */
.cookie-notice { position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(760px, calc(100% - 2 * var(--gutter))); display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px rgba(10, 40, 100, .18); }
.cookie-notice p + p { margin-top: 6px; }
.cookie-notice p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cookie-notice .btn { flex: none; }
@media (max-width: 767px) { .cookie-notice { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; } }
@media print { .cookie-notice { display: none !important; } }

/* 14. Доступность и движение ----------------------------------------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } .hero__bear { animation: none; } }
@media print { .site-header, .hero__art, .form-card, .skip-link { display: none !important; } .section { padding: 24px 0; } .site-footer { background: none; color: #000; } }

/* Таблица цен на узких экранах: строки складываются в карточки */
@media (max-width: 767px) {
  .price, .price tbody, .price tr, .price td { display: block; width: 100%; }
  .price thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price tr { padding: 16px 0; border-top: 1px solid var(--line); }
  .price td { padding: 0 0 8px; border: 0; overflow-wrap: anywhere; }
  .price td:first-child { font-weight: 600; color: var(--ink); }
  .price .price__sum { white-space: normal; padding-bottom: 0; }
}

/* О компании: текст и сведения во всю ширину, каждый блок в две колонки */
.about { grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) {
  .about__text { columns: 2; column-gap: 48px; }
  .about__text p:first-child { margin-top: 0; }
  .details dl { columns: 2; column-gap: 48px; }
  .details dl > div { break-inside: avoid; }
}

/* Декоративная графика не должна давать горизонтальную прокрутку */
.hero-wrap, .section { overflow-x: clip; }
