/* ==========================================================================
   Рекрутинговое агентство — лендинг
   Строгий деловой стиль: синий / серый
   ========================================================================== */

:root {
  /* Палитра */
  --navy-900: #0b2545;
  --navy-800: #11325c;
  --navy-700: #1a4480;
  --blue-600: #1f5fa9;
  --blue-500: #2b74c9;
  --blue-50: #eef4fb;

  --gray-900: #16202b;
  --gray-700: #3d4a59;
  --gray-600: #5a6877;
  --gray-400: #9aa5b1;
  --gray-300: #cbd3db;
  --gray-200: #e2e8ee;
  --gray-100: #f1f4f8;
  --white: #ffffff;

  --accent: var(--blue-600);
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --border: var(--gray-200);
  --bg: var(--white);
  --bg-alt: var(--gray-100);

  /* Типографика и размеры */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 4px 14px rgba(11, 37, 69, 0.08);
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   Сброс и база
   -------------------------------------------------------------------------- */

*,
*::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.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(30px, 4.6vw, 48px);
}

h2 {
  font-size: clamp(25px, 3.2vw, 34px);
}

h3 {
  font-size: 19px;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.4em;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Утилиты разметки
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 84px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

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

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--navy-700);
}

.btn--outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--gray-300);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light {
  background: var(--white);
  color: var(--navy-900);
}

.btn--light:hover {
  background: var(--blue-50);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-900);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--navy-800);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-weight: 700;
  font-size: 17px;
}

.logo__tagline {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li + li {
  margin-top: 0;
}

.nav__link {
  color: var(--gray-700);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--accent);
  text-decoration: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__phone {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--navy-900);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Кнопка внутри выпадающего меню — только на мобильных */
.nav__cta {
  display: none;
}

/* Бургер */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span {
  margin: 0 auto;
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger[aria-expanded="true"] span {
  background: transparent;
}

.burger[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(11, 37, 69, 0.92) 0%, rgba(17, 50, 92, 0.97) 100%),
    var(--navy-900);
  overflow: hidden;
}

.hero::after {
  /* Деликатная сетка на фоне */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 92px 0 72px;
  max-width: 820px;
}

.hero .eyebrow {
  color: #8fb6e8;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero__lead {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 680px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.hero__note {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* Полоса с цифрами */
.stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 30px 0 42px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   Сетки карточек
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text-muted);
  font-size: 16px;
}

.card__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  color: var(--gray-700);
}

.card__list li {
  position: relative;
  padding-left: 22px;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Этапы работы
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 24px 0 24px 74px;
  border-bottom: 1px solid var(--border);
}

.steps li:first-child {
  border-top: 1px solid var(--border);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  display: grid;
  place-items: center;
}

.steps h3 {
  margin-bottom: 4px;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Отрасли — теги
   -------------------------------------------------------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  margin: 0;
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  font-size: 15.5px;
  color: var(--gray-700);
}

/* --------------------------------------------------------------------------
   Преимущества (двухколоночный блок)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.features li {
  margin: 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
}

.features__check {
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.features__check svg {
  width: 13px;
  height: 13px;
}

.features h3 {
  font-size: 17.5px;
  margin-bottom: 3px;
}

.features p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Условия / цены
   -------------------------------------------------------------------------- */

.terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.term {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.term__name {
  font-size: 18px;
  margin-bottom: 8px;
}

.term__price {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.term__price small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.term p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 12px 0 0;
}

/* --------------------------------------------------------------------------
   Реквизиты
   -------------------------------------------------------------------------- */

.details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.details__row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
}

.details__row:last-child {
  border-bottom: 0;
}

.details__row:nth-child(odd) {
  background: #fafbfd;
}

.details__key {
  color: var(--text-muted);
  font-size: 15.5px;
}

.details__val {
  font-weight: 600;
  color: var(--navy-900);
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   Контакты
   -------------------------------------------------------------------------- */

.contacts {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 36px;
}

.contact {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.contact__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact__value {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-900);
  word-break: break-word;
}

a.contact__value:hover {
  color: var(--accent);
  text-decoration: none;
}

.contact__note {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-800);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.chip svg {
  width: 16px;
  height: 16px;
}

/* CTA-полоса */
.cta {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  color: var(--white);
  margin: 0 0 8px;
  font-size: 26px;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16.5px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */

.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 52px 0 28px;
  font-size: 15.5px;
}

.footer a {
  color: rgba(255, 255, 255, 0.86);
}

.footer a:hover {
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer .logo__name,
.footer h4 {
  color: var(--white);
}

.footer h4 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer__about {
  margin: 16px 0 0;
  max-width: 420px;
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list li {
  margin: 0 0 9px;
}

.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Текстовая страница (политика конфиденциальности)
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--navy-900);
  color: var(--white);
  padding: 56px 0;
}

.page-head h1 {
  color: var(--white);
  margin: 0;
  font-size: clamp(27px, 3.6vw, 38px);
}

.page-head p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 22px;
  margin-top: 40px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose ul {
  padding-left: 22px;
  color: var(--gray-700);
}

.prose p,
.prose li {
  color: var(--gray-700);
  font-size: 16.5px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .grid--3,
  .terms,
  .contacts {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1000px) {
  .burger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list li {
    border-bottom: 1px solid var(--gray-100);
  }

  .nav__link {
    display: block;
    padding: 13px 0;
    font-size: 17px;
  }

  .nav__cta {
    display: block;
    margin-top: 16px;
  }

  .nav__cta .btn {
    width: 100%;
  }

  .header__actions {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16.5px;
  }

  .section {
    padding: 58px 0;
  }

  .hero__inner {
    padding: 64px 0 52px;
  }

  .grid--3,
  .grid--2,
  .terms,
  .contacts {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat__value {
    font-size: 28px;
  }

  .card,
  .term,
  .contact {
    padding: 22px;
  }

  .steps li {
    padding: 20px 0 20px 58px;
  }

  .steps li::before {
    width: 36px;
    height: 36px;
    font-size: 15px;
    top: 20px;
  }

  .details__row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 20px;
  }

  .cta {
    padding: 28px 22px;
  }

  .cta__actions .btn,
  .hero__actions .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --------------------------------------------------------------------------
   Печать
   -------------------------------------------------------------------------- */

@media print {
  .header,
  .hero__actions,
  .cta,
  .burger {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero,
  .footer,
  .page-head {
    background: none !important;
    color: #000 !important;
  }
}

/* ==========================================================================
   ДОПОЛНЕНИЕ: блоки по образцу сильных сайтов рынка + фиксы мобильной вёрстки
   ========================================================================== */

/* --------------------------------------------------------------------------
   Боли клиента
   -------------------------------------------------------------------------- */

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

.pain {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid #c0392b;
  border-radius: var(--radius);
  padding: 22px 24px;
}

.pain h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.pain p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-muted);
}

.pains-outro {
  margin: 34px 0 0;
  padding: 24px 28px;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  font-size: 17.5px;
  color: var(--navy-900);
}

.pains-outro strong {
  color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   Сравнение «сами / с нами»
   -------------------------------------------------------------------------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
}

.compare th,
.compare td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare thead th {
  background: var(--navy-800);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.compare thead th:first-child {
  background: var(--navy-900);
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:first-child {
  font-weight: 600;
  color: var(--navy-900);
  width: 34%;
}

.compare td:nth-child(2) {
  color: var(--text-muted);
}

.compare td:last-child {
  color: var(--navy-900);
  background: #f7fafe;
}

.compare__note {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Мобильная раскладка таблицы — карточками */
.compare__mobile-label {
  display: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 3px;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  max-width: 860px;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__item summary {
  padding: 18px 54px 18px 22px;
  font-size: 17.5px;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -6px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq__item summary:hover {
  color: var(--accent);
}

.faq__body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 16.5px;
}

.faq__body p:last-child,
.faq__body ul:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Фиксы мобильной вёрстки
   -------------------------------------------------------------------------- */

/* Длинное название бренда не должно выдавливать бургер за край экрана */
.header__inner {
  gap: 16px;
}

.logo {
  min-width: 0;
  flex-shrink: 1;
}

.logo__text {
  min-width: 0;
}

.logo__name,
.logo__tagline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Шапка на внутренних страницах: кнопка «На главную» нужна и на телефоне */
@media (max-width: 1000px) {
  .header__actions--compact {
    display: flex;
  }

  .header__actions--compact .header__phone {
    display: none;
  }
}

@media (max-width: 1000px) {
  .pains {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .pains {
    grid-template-columns: 1fr;
  }

  .pains-outro {
    padding: 20px;
    font-size: 16.5px;
  }

  /* Таблица сравнения превращается в карточки */
  .compare,
  .compare tbody,
  .compare tr,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare thead {
    display: none;
  }

  .compare {
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .compare tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    padding: 6px 0;
    box-shadow: var(--shadow-sm);
  }

  .compare td {
    border-bottom: 0;
    padding: 10px 18px;
  }

  .compare td:first-child {
    width: 100%;
    font-size: 17px;
    padding-bottom: 4px;
  }

  .compare td:last-child {
    background: transparent;
  }

  .compare td:not(:first-child) {
    border-top: 1px solid var(--gray-100);
    padding-top: 12px;
  }

  .compare__mobile-label {
    display: block;
  }

  .faq__item summary {
    font-size: 16.5px;
    padding: 16px 46px 16px 18px;
  }

  .faq__body {
    padding: 0 18px 18px;
    font-size: 16px;
  }

  .logo__tagline {
    display: none;
  }

  .logo__name {
    font-size: 16px;
  }
}

/* Совсем узкие экраны (iPhone SE и подобные) */
@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .logo__mark {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .stat__value {
    font-size: 25px;
  }

  h1 {
    font-size: 27px;
  }
}

/* ==========================================================================
   ХАРАКТЕР: типографика Unbounded + Manrope, второй акцент, детали
   ========================================================================== */

:root {
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Unbounded", "Manrope", -apple-system, Arial, sans-serif;

  /* Второй акцент — тёплый янтарь. Держит на себе всё «живое» на странице */
  --amber: #f0a02a;
  --amber-dark: #d4861a;
  --amber-soft: #fdf3e2;
}

body {
  font-family: var(--font);
  font-feature-settings: "ss01", "cv01";
}

/* --------------------------------------------------------------------------
   Заголовки — узкий дисплейный гротеск
   -------------------------------------------------------------------------- */

h1,
h2,
.stat__value,
.term__price,
.logo__name,
.cta h2,
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1,
.page-head h1 {
  font-size: clamp(27px, 3.5vw, 43px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h2,
.cta h2 {
  font-size: clamp(23px, 2.7vw, 31px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.logo__name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo__tagline {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn {
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 8px;
}

.btn--primary:hover {
  box-shadow: 0 6px 18px rgba(31, 95, 169, 0.28);
  transform: translateY(-1px);
}

.btn--light:hover,
.btn--ghost-light:hover {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Надзаголовки с нумерацией разделов
   -------------------------------------------------------------------------- */

main {
  counter-reset: sect;
}

.eyebrow {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.section .eyebrow::before {
  counter-increment: sect;
  content: counter(sect, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--amber);
  margin-right: 10px;
  letter-spacing: 0;
}

.section--alt .eyebrow::before {
  color: var(--amber-dark);
}

/* --------------------------------------------------------------------------
   Hero: диагонали вместо сетки, акцент под ключевым словом
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(46, 108, 184, 0.5) 0%, rgba(11, 37, 69, 0) 62%),
    linear-gradient(165deg, #0d2b51 0%, #0b2545 48%, #0a1f3b 100%);
}

.hero::after {
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.032) 0px,
    rgba(255, 255, 255, 0.032) 1px,
    transparent 1px,
    transparent 13px
  );
  background-size: auto;
}

.hero .eyebrow {
  color: var(--amber);
}

/* Акцентная подсветка ключевых слов в заголовке */
.mark {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.04em;
  height: 0.32em;
  background: var(--amber);
  opacity: 0.85;
  border-radius: 2px;
}

.stat__value {
  color: var(--amber);
  letter-spacing: -0.04em;
}

.stats__grid .stat {
  padding-left: 16px;
  border-left: 2px solid rgba(240, 160, 42, 0.35);
}

/* --------------------------------------------------------------------------
   Карточки: живее на наведении
   -------------------------------------------------------------------------- */

.card,
.term,
.contact,
.pain {
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover,
.contact:hover {
  transform: translateY(-3px);
  border-color: var(--gray-300);
  box-shadow: 0 10px 28px rgba(11, 37, 69, 0.1);
}

.card__icon {
  background: linear-gradient(140deg, var(--navy-800), var(--blue-600));
  color: var(--white);
  border-radius: 11px;
}

.pain {
  border-left-color: var(--amber);
}

.pain:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11, 37, 69, 0.08);
}

.pains-outro {
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  border-radius: 0 14px 14px 0;
}

/* --------------------------------------------------------------------------
   Этапы: крупные контурные цифры
   -------------------------------------------------------------------------- */

.steps li::before {
  background: transparent;
  color: var(--navy-800);
  border: 2px solid var(--gray-300);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.steps li:hover::before {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   Теги направлений
   -------------------------------------------------------------------------- */

.tags li {
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
  cursor: default;
}

.tags li:hover {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   Таблица сравнения: наша колонка выделена
   -------------------------------------------------------------------------- */

.compare thead th:last-child {
  background: var(--blue-600);
}

.compare td:last-child {
  background: #f4f9ff;
  box-shadow: inset 3px 0 0 var(--amber);
}

/* --------------------------------------------------------------------------
   Цены
   -------------------------------------------------------------------------- */

.term {
  border-top-color: var(--amber);
}

.term__price {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.term__price small {
  font-family: var(--font);
  letter-spacing: 0;
}

.term:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11, 37, 69, 0.1);
}

/* --------------------------------------------------------------------------
   FAQ и реквизиты
   -------------------------------------------------------------------------- */

.faq__item {
  border-radius: 12px;
  transition: border-color 0.16s ease;
}

.faq__item[open] {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.faq__item summary::after {
  border-color: var(--amber-dark);
}

.details {
  border-radius: 14px;
}

.details__key {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   CTA и подвал
   -------------------------------------------------------------------------- */

.cta {
  border-radius: 16px;
  background:
    radial-gradient(700px 300px at 88% 0%, rgba(46, 108, 184, 0.55) 0%, rgba(17, 50, 92, 0) 70%),
    var(--navy-800);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--amber);
}

.footer h4 {
  font-family: var(--font);
  font-weight: 800;
  color: var(--amber);
}

.footer .logo__mark {
  background: var(--blue-600);
}

.logo__mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Узкие экраны: дисплейный шрифт не должен ломать строки
   -------------------------------------------------------------------------- */

@media (max-width: 680px) {
  h1,
  .page-head h1 {
    font-size: 25px;
    letter-spacing: -0.03em;
  }

  h2,
  .cta h2 {
    font-size: 21px;
  }

  .stat__value {
    font-size: 26px;
  }

  .section .eyebrow::before {
    margin-right: 7px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 22px;
  }

  .logo__name {
    font-size: 14.5px;
  }
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .contact:hover,
  .term:hover,
  .pain:hover,
  .btn--primary:hover,
  .btn--light:hover,
  .btn--ghost-light:hover {
    transform: none;
  }
}
