/* ============================================================
   Trius Labs — дизайн-система 2026
   Шрифты: Unbounded (display) + Manrope (text)
   Палитра: тёмный графит × слоновая кость × фирменная бирюза
   ============================================================ */

:root {
  --ink: #10181b;
  --ink-2: #1a2529;
  --ink-soft: #3d4c52;
  --paper: #f6f4ef;
  --paper-2: #efede6;
  --card: #ffffff;
  --line: rgba(16, 24, 27, .12);
  --line-inv: rgba(255, 255, 255, .14);
  --teal: #0fa3b1;
  --teal-deep: #0b7f8a;
  --teal-ink: #0a5c64;
  --teal-soft: #e1f2f3;
  --gold: #c9a26b;
  --muted: #66767c;
  --muted-inv: #9fb1b7;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-1: 0 6px 24px rgba(16, 24, 27, .07);
  --shadow-2: 0 18px 50px rgba(16, 24, 27, .13);
  --font-display: "Unbounded", "Manrope", sans-serif;
  --font-text: "Manrope", system-ui, sans-serif;
  --container: 1240px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--teal); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--paper2 { background: var(--paper-2); }

/* ---------- типографика ---------- */
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; }
h1, .h1 { font-size: clamp(30px, 4.6vw, 56px); }
h2, .h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3, .h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); line-height: 1.65; }
.section--dark .lead { color: var(--muted-inv); }
.accent { color: var(--teal); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; }
.section--dark .kicker { color: #6fd3dc; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker::before { display: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  border: 2px solid transparent; white-space: nowrap;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 10px 26px rgba(15, 163, 177, .35); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15, 163, 177, .45); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn--outline-inv { border-color: var(--line-inv); color: #fff; }
.btn--outline-inv:hover { border-color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 19px 38px; font-size: 17px; }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.text-link { color: var(--teal-deep); font-weight: 700; border-bottom: 2px solid rgba(15,163,177,.3); transition: border-color .15s; }
.text-link:hover { border-color: var(--teal-deep); }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(246, 244, 239, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(16,24,27,.06); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.header__logo img { height: 38px; width: auto; }
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link, .nav__more {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 10px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--ink-soft); white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav__link:hover, .nav__more:hover { color: var(--ink); background: rgba(16,24,27,.05); }
.nav__link.is-active { color: var(--teal-deep); }
.nav__caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.has-dropdown { position: relative; }
.has-dropdown.is-open .nav__caret { transform: rotate(225deg) translateY(-2px); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: 320px; background: #fff; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow-2); padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: block; padding: 11px 14px; border-radius: 12px;
  font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: background .13s, color .13s;
}
.dropdown a:hover { background: var(--teal-soft); color: var(--teal-ink); }
.header__cta { display: inline-flex; flex-shrink: 0; padding: 12px 22px; font-size: 15px; }
.header__phone { font-weight: 700; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.header__phone span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.header__inner { gap: 18px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; border: 1px solid var(--line); }
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 13px; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .22s, opacity .22s, top .22s;
}
.burger::before { top: 16px; } .burger span { top: 22px; } .burger::after { top: 28px; }
.burger.is-open::before { top: 22px; transform: rotate(45deg); }
.burger.is-open::after { top: 22px; transform: rotate(-45deg); }
.burger.is-open span { opacity: 0; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 89;
  background: var(--paper); padding: 24px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { display: block; padding: 13px 4px; font-weight: 700; font-size: 19px; border-bottom: 1px solid var(--line); }
.mobile-menu .mobile-sub a { font-size: 16px; font-weight: 600; color: var(--muted); padding-left: 14px; }
.mobile-menu__cta { display: grid; gap: 12px; margin-top: 26px; }

/* ---------- хлебные крошки ---------- */
.breadcrumbs { padding: 16px 0 6px; font-size: 13.5px; color: var(--ink-soft); }
.breadcrumbs ol { display: flex; flex-wrap: nowrap; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; white-space: nowrap; min-width: 0; }
.breadcrumbs li + li::before {
  content: ""; width: 5px; height: 5px; margin: 0 10px; flex: none;
  border-right: 1.5px solid rgba(16, 24, 27, .32); border-top: 1.5px solid rgba(16, 24, 27, .32);
  transform: rotate(45deg); border-radius: 1px;
}
.breadcrumbs a {
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.breadcrumbs a:hover { color: var(--teal-ink); border-color: var(--teal-ink); }
.breadcrumbs [aria-current="page"] {
  color: var(--ink); font-weight: 600;
  max-width: 480px; overflow: hidden; text-overflow: ellipsis;
}
.section--dark .breadcrumbs, .breadcrumbs--inv { color: var(--muted-inv); }
.section--dark .breadcrumbs a { color: #fff; }
.section--dark .breadcrumbs li + li::before { border-color: rgba(255, 255, 255, .4); }
.section--dark .breadcrumbs [aria-current="page"] { color: #fff; }
@media (max-width: 720px) {
  .breadcrumbs { font-size: 12.5px; }
  .breadcrumbs li + li::before { margin: 0 7px; }
  .breadcrumbs [aria-current="page"] { max-width: 52vw; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: saturate(.85); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 68% at 82% 18%, rgba(15, 163, 177, .38), transparent 62%),
    radial-gradient(46% 60% at 8% 86%, rgba(11, 127, 138, .3), transparent 64%),
    linear-gradient(180deg, rgba(16,24,27,.58), rgba(16,24,27,.92));
}
.hero__inner { position: relative; z-index: 1; padding: 110px 0 120px; max-width: 860px; }
.hero .kicker { color: #6fd3dc; }
.hero p.lead { color: rgba(255,255,255,.82); margin: 26px 0 38px; max-width: 640px; }
.hero__note { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero--page .hero__inner { padding: 64px 0 72px; max-width: 940px; }

/* бегущая строка категорий */
.marquee { overflow: hidden; background: var(--teal-ink); color: #fff; padding: 14px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 36s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .85; white-space: nowrap; }
.marquee span::after { content: "✳"; margin-left: 48px; color: #6fd3dc; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: rgba(255,255,255,.05); border: 1px solid var(--line-inv); border-radius: var(--radius); padding: 28px 26px; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); color: #6fd3dc; line-height: 1.1; }
.stat__label { margin-top: 8px; font-size: 15px; color: var(--muted-inv); }

/* ---------- карточки ---------- */
.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 {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(15,163,177,.35); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card__icon {
  width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: var(--teal-deep); font-size: 24px; margin-bottom: 20px;
}
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 15px; color: var(--teal-deep); }
.card__link .btn__arrow { transform: none; }
.card__link:hover .btn__arrow { transform: translateX(4px); }

/* карточка-направление с фото */
.dir-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; }
.dir-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dir-card:hover img { transform: scale(1.05); }
.dir-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(185deg, rgba(16,24,27,.05) 30%, rgba(16,24,27,.86) 88%); }
.dir-card__body { position: relative; z-index: 1; padding: 26px; color: #fff; }
.dir-card__body h3 { color: #fff; }
.dir-card__body p { font-size: 14.5px; color: rgba(255,255,255,.75); margin-top: 6px; }
.dir-card__arrow {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s;
}
.dir-card:hover .dir-card__arrow { background: var(--teal); transform: translate(2px,-2px); }

/* чипы-категории */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
  transition: all .16s;
}
.chip:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-2px); }

/* ---------- этапы ---------- */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: stage; }
.stage { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; counter-increment: stage; }
.stage__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #6fd3dc; font-family: var(--font-display); font-weight: 600;
  margin-bottom: 18px;
}
.stage__num::before { content: counter(stage); }
.stage__time { position: absolute; top: 34px; right: 26px; font-size: 12.5px; font-weight: 700; color: var(--teal-deep); background: var(--teal-soft); padding: 5px 12px; border-radius: 999px; }
.stage h3 { font-size: 18.5px; margin-bottom: 8px; }
.stage p { color: var(--muted); font-size: 15px; }

/* ---------- таблица ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { padding: 16px 20px; text-align: left; font-size: 15.5px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--paper-2); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 700; }

/* ---------- списки-галочки ---------- */
.checks li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; flex: 0 0 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--teal-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M6 12.5l4 4L18 8" stroke="%230b7f8a" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/14px no-repeat;
}
.section--dark .checks li { border-color: var(--line-inv); }
.section--dark .checks li::before { background-color: rgba(255,255,255,.1); }

/* ---------- формы ---------- */
.form-card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-1); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea, .field select {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,163,177,.14); }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { color: #c0392b; font-size: 13px; display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0392b; }
.field.is-invalid .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }
.form-card .btn { width: 100%; }
.form-contacts-pref { display: flex; flex-wrap: wrap; gap: 10px; }
.pref-chip { position: relative; }
.pref-chip input { position: absolute; opacity: 0; inset: 0; }
.pref-chip span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .15s;
}
.pref-chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.form-success {
  display: none; text-align: center; padding: 40px 10px;
}
.form-success.is-visible { display: block; }
.form-success__icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--teal-soft); display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--teal-deep);
}
.form.is-sent .form-body { display: none; }

/* CTA-секция */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 90% 10%, rgba(15,163,177,.4), transparent 60%), radial-gradient(40% 70% at 4% 96%, rgba(11,127,138,.35), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted-inv); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0; margin-bottom: 12px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 22px 26px; font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 500;
  transition: transform .2s, background .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--teal); color: #fff; }
.faq__body { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; }

/* ---------- партнёры ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; }
.partners img { height: 30px; width: auto; filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s; }
.partners img:hover { filter: none; opacity: 1; }

/* ---------- кейсы ---------- */
.case-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/3.4; background: var(--ink-2); }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; opacity: .92; }
.case-card:hover img { transform: scale(1.06); opacity: 1; }
.case-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(185deg, transparent 40%, rgba(16,24,27,.88) 96%); }
.case-card__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; }
.case-card__brand { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.25; }
.case-card__cat { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6fd3dc; }
.case-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.case-filters button {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14px; color: var(--muted); transition: all .15s;
}
.case-filters button:hover { border-color: var(--teal); color: var(--teal-ink); }
.case-filters button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* галерея кейса */
.case-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.case-gallery a { border-radius: 16px; overflow: hidden; aspect-ratio: 1; display: block; }
.case-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-gallery a:hover img { transform: scale(1.05); }

/* ---------- статья / база знаний ---------- */
.prose { max-width: 800px; font-size: 17px; }
.prose p { margin: 18px 0; color: var(--ink-soft); }
.prose h2 { margin: 40px 0 14px; font-size: 27px; }
.prose h3 { margin: 30px 0 10px; font-size: 20px; }
.prose ul { margin: 16px 0; }
.prose ul li { padding: 8px 0 8px 34px; position: relative; color: var(--ink-soft); }
.prose ul li::before {
  content: ""; position: absolute; left: 6px; top: 15px; width: 9px; height: 9px; border-radius: 3px;
  background: var(--teal); transform: rotate(45deg);
}
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 14px; font-size: 15px; }
.prose blockquote {
  margin: 26px 0; padding: 20px 26px; border-left: 4px solid var(--teal);
  background: var(--teal-soft); border-radius: 0 16px 16px 0; color: var(--teal-ink); font-weight: 600;
}

/* карточки статей */
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.post-card__img { aspect-ratio: 16/9; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }
.post-card p { color: var(--muted); font-size: 15px; flex: 1; }

/* ---------- глоссарий / база знаний ---------- */
.kb-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.kb-item__img {
  display: block; width: calc(100% + 60px); max-width: none; margin: -30px -30px 24px;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.kb-item__btn { margin-top: 22px; }
.btn--sm { padding: 11px 22px; font-size: 14.5px; }
.kb-item h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.kb-item h3 .abbr { font-family: var(--font-display); color: var(--teal-deep); font-size: 21px; }
.kb-item p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
.kb-item { overflow-wrap: break-word; }
@media (max-width: 920px) {
  .kb-item h3 { display: block; }
  .kb-item h3 .abbr { display: block; margin-bottom: 4px; }
}

/* ---------- калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.calc__form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.calc__result {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 36px; overflow: hidden;
}
.calc__result::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 0%, rgba(15,163,177,.45), transparent 65%); }
.calc__result > * { position: relative; }
.calc__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-inv); font-size: 15px; color: var(--muted-inv); }
.calc__row b { color: #fff; text-align: right; }
.calc__total { padding: 22px 0 6px; }
.calc__total .num { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); color: #6fd3dc; }
.calc__total .per { font-size: 14px; color: var(--muted-inv); }
.calc__note { margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.calc__result .btn { margin-top: 22px; }
.calc-group { margin-bottom: 26px; }
.calc-group > .label { font-weight: 700; font-size: 15px; margin-bottom: 12px; display: block; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span {
  display: block; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px;
  font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .14s; color: var(--ink-soft); text-align: center;
}
.opt input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
.opt:hover span { border-color: var(--teal); }
.range-wrap { display: flex; align-items: center; gap: 18px; }
input[type="range"] { flex: 1; accent-color: var(--teal); height: 4px; }
.range-val { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--teal-ink); min-width: 130px; text-align: right; }
.range-hint { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- о компании / таймлайн ---------- */
.timeline { position: relative; max-width: 760px; margin-left: auto; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal), rgba(15,163,177,.1)); }
.timeline li { position: relative; padding: 0 0 38px 0; }
.timeline li::before {
  content: ""; position: absolute; left: -40px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--teal);
}
.timeline .year { font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); font-size: 22px; display: block; margin-bottom: 6px; }
.timeline p { color: var(--muted); max-width: 620px; }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.team-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.team-card .role { color: var(--teal-deep); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.team-card p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------- контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.contact-tile { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-tile:last-child { border-bottom: 0; }
.contact-tile .ico { flex: 0 0 50px; height: 50px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; font-size: 21px; }
.contact-tile .lbl { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.contact-tile a.big, .contact-tile .big { font-weight: 700; font-size: 18px; color: var(--ink); }
.contact-tile a.big:hover { color: var(--teal-deep); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.socials a { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; transition: all .15s; }
.socials a:hover { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-soft); }

/* ---------- подвал ---------- */
.footer { background: var(--ink); color: #cfdadd; padding: 72px 0 36px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-inv); }
.footer__brand img { height: 38px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer__brand p { color: var(--muted-inv); font-size: 14.5px; max-width: 300px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer li { padding: 5px 0; }
.footer li a { color: #cfdadd; }
.footer__req { color: var(--muted-inv); font-size: 13.5px; line-height: 1.7; margin-top: 14px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 30px; font-size: 13.5px; color: var(--muted-inv); }
.footer__bottom a { color: var(--muted-inv); text-decoration: underline; }
.footer__credit { flex-basis: 100%; padding-top: 2px; font-size: 13px; opacity: .85; }
.footer__credit a { text-decoration: none; border-bottom: 1px solid rgba(159,177,183,.4); transition: color .15s, border-color .15s; }
.footer__credit a:hover { color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- мини-CTA полоса на подложке ---------- */
.banner-quote { border-radius: var(--radius-lg); background: var(--teal-ink); color: #fff; padding: 52px 56px; font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 2.4vw, 28px); line-height: 1.4; }
.banner-quote span { color: #6fd3dc; }

/* ---------- появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1320px) {
  .header__phone { display: none; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; margin-left: auto; }
  .header__cta { display: none; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
}
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 44px 30px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .calc__form { padding: 24px 18px; }
  .opt-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__inner { padding: 72px 0 84px; }
  .banner-quote { padding: 34px 24px; }
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 80;
  width: min(430px, calc(100vw - 24px)); padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(16, 24, 27, .10), 0 28px 64px rgba(16, 24, 27, .14);
  display: grid; gap: 14px;
  animation: cookie-in .4s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.cookie-banner a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner a:hover { color: var(--teal-deep); }
.cookie-banner .btn { justify-self: start; padding: 11px 22px; font-size: 14px; }
.cookie-banner.is-hiding { opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 720px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* SEO: семантика заголовков без изменения вида */
.footer .footer__h { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.h-look { font-size: clamp(19px, 2vw, 24px); line-height: 1.3; font-family: var(--font-display); font-weight: 600; }
.post-card h2 { font-size: clamp(19px, 2vw, 24px); line-height: 1.3; }
.kb-item h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }

/* Mobile: формы и кнопки не должны распирать сетки — при любой ширине и размере системного шрифта */
.grid > *, .cta-band > *, .calc__result > *, .calc__form, .stats > * { min-width: 0; }
.btn { white-space: normal; text-align: center; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.calc__result { padding: clamp(18px, 5vw, 36px); }
.calc__row { flex-wrap: wrap; row-gap: 2px; }
.calc__row b { max-width: 62%; }
.range-wrap { flex-wrap: wrap; }
.range-hint { flex-wrap: wrap; gap: 2px 12px; }
@media (max-width: 360px) {
  .calc__form { padding: 16px 12px; }
}
@media (max-width: 620px) {
  .cta-band { padding: 34px 20px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 16px; }
  .range-val { min-width: 0; font-size: 15px; }
}
@media (max-width: 400px) {
  .dir-card__body h3 { font-size: 17px; overflow-wrap: break-word; }
}

/* reCAPTCHA: компактно на узких экранах */
.g-captcha { margin: 6px 0 2px; }
@media (max-width: 400px) {
  .g-captcha { transform: scale(.86); transform-origin: 0 0; margin-bottom: -14px; }
}

/* Кнопка-флоат «Тесты и расчёты» */
.tests-fab {
  position: fixed; left: 16px; top: 58%; z-index: 85;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #0fa3b1, #0b7f8a);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(15, 163, 177, .45);
  transition: transform .18s ease;
  animation: fab-pulse 2.4s ease-out infinite;
}
.tests-fab svg { width: 30px; height: 30px; display: block; }
.tests-fab:hover { transform: scale(1.08); animation-play-state: paused; }
@keyframes fab-pulse {
  0%   { box-shadow: 0 10px 26px rgba(15,163,177,.45), 0 0 0 0 rgba(15,163,177,.5); }
  70%  { box-shadow: 0 10px 26px rgba(15,163,177,.45), 0 0 0 20px rgba(15,163,177,0); }
  100% { box-shadow: 0 10px 26px rgba(15,163,177,.45), 0 0 0 0 rgba(15,163,177,0); }
}
@media (max-width: 900px) {
  .tests-fab { left: 12px; top: auto; bottom: 90px; width: 56px; height: 56px; }
}

/* Страница «Тесты и расчёты»: карточки инструментов */
.tool-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tool-card__icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 6px;
  background: linear-gradient(135deg, #0fa3b1, #0b7f8a);
  display: flex; align-items: center; justify-content: center;
}
.tool-card__icon svg { width: 32px; height: 32px; }
.tool-card p { color: var(--muted); font-size: 15px; flex: 1; }

/* Квиз: шаги */
.q-step { display: none; }
.q-step.is-active { display: block; }
.q-step h3 { margin-bottom: 4px; }
.q-progress { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.q-progress i { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .3s ease; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opt {
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: border-color .14s, background .14s, color .14s; text-align: center; color: var(--ink-soft);
}
.q-opt:hover { border-color: var(--teal); color: var(--teal-ink); }
.q-opt.is-on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
@media (max-width: 620px) {
  .q-nav { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .q-nav .btn { width: 100%; }
  .q-nav #q-back { order: 3; }
}

/* Тест маркетплейсов */
.mp-q {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; margin-bottom: 10px; flex-wrap: wrap;
}
.mp-q > span:first-child { flex: 1; min-width: 200px; font-weight: 600; font-size: 15px; }
.mp-btns { display: flex; gap: 8px; }
.mp-btn {
  padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 700; font-size: 14px; background: #fff; color: var(--ink-soft); cursor: pointer;
  transition: all .14s;
}
.mp-btn.is-yes { background: var(--teal); border-color: var(--teal); color: #fff; }
.mp-btn.is-no { background: #f6e7e4; border-color: #ddb3ac; color: #a24038; }
.mp-bar { height: 14px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.mp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #6fd3dc); transition: width .5s ease; }

/* План запуска */
.plan-list li { display: flex; gap: 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.plan-date { font-family: var(--font-display); font-weight: 600; color: var(--teal-ink); min-width: 110px; }
input[type="date"], select { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; color: var(--ink); width: 100%; }
@media (max-width: 480px) {
  .q-opts { grid-template-columns: 1fr; }
}

/* Чёрный текст в полях (даже на тёмных секциях) + читаемый placeholder */
.field input, .field textarea, .field select { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #8a9aa0; opacity: 1; }

/* Заметное подтверждение отправки заявки */
.form-success.is-visible, #calc-ok:not([hidden]), #vyg-ok:not([hidden]) {
  display: block;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(111,211,220,.16), rgba(15,163,177,.10));
  border: 1.5px solid rgba(111,211,220,.45);
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  animation: success-pop .35s ease;
}
#calc-ok:not([hidden]), #vyg-ok:not([hidden]) { color: #d9f6f9; }
#calc-ok:not([hidden])::before, #vyg-ok:not([hidden])::before, .form-success.is-visible::before {
  content: "✓";
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  background: #0fa3b1; color: #fff; font-size: 28px; font-weight: 700;
}
@keyframes success-pop { from { opacity: 0; transform: scale(.94); } }

/* ============================================================
   Отзывы, прайс-таблица (SEO-блоки) — 2026-09
   ============================================================ */
.review { padding: 26px; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.review figcaption { font-weight: 800; font-size: 15px; }
.review__tag { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.review blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.data--prices td:last-child { white-space: nowrap; font-weight: 800; color: var(--teal-deep); text-align: right; }
.data--prices td:first-child { min-width: 0; }
@media (max-width: 640px) {
  .data--prices td:last-child { white-space: normal; }
}
.sim-case { display: flex; flex-direction: column; gap: 8px; padding: 26px; }
.sim-case__cat { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sim-case h3 { margin: 0; }
.sim-case__more { margin-top: auto; font-weight: 700; color: var(--teal-deep); font-size: 14.5px; }
