/* ============================================================
   Averon Insurance — страница «О нас».

   Макет — Figma, страница «О нас», фрейм «О нас» (node 2837:695):
     Desktop  ≥ 1024px  (макет 1440, контент 1080)
     Tablet   768–1023  (макет 1023, поля 40px)
     Mobile   ≤ 767px   (макет 360, поля 20px)

   Типографика и цвета — как на главной (main.css): Hanken Grotesk, тёплая
   палитра из core/css/tokens.css. Правила скоупятся классом .about.
   ============================================================ */

/* --- Токены страницы ---------------------------------------- */
.about-page {
  --a-pad-y: 120px;
  --a-pad-x: 80px;
  --a-hero-pad: 112px;
  --a-fs-h1: 48px;
  --a-lh-h1: 58px;
  --a-fs-h2: 36px;
  --a-lh-h2: 44px;
  --a-fs-h4: 22px;
  --a-lh-h4: 30px;
  --a-fs-lead: 18px;
  --a-lh-lead: 28px;
  --a-fs-body: 16px;
  --a-lh-body: 24px;
  --a-fs-small: 14px;
  --a-lh-small: 20px;
  --a-fs-cap: 13px;
  --a-lh-cap: 18px;
  --a-fs-eyebrow: 18px;
  --a-lh-eyebrow: 28px;
  --a-ls-eyebrow: 0.2em;
  --a-gap: 56px;
  --a-shadow: 0 16px 40px color-mix(in srgb, var(--c-ink) 8%, transparent);

  background-color: var(--c-page);
}

@media (max-width: 1023px) {
  .about-page {
    --a-pad-y: 96px;
    --a-pad-x: 40px;
    --a-hero-pad: 88px;
    --a-fs-h1: 40px;
    --a-lh-h1: 48px;
    --a-fs-h2: 28px;
    --a-lh-h2: 36px;
    --a-fs-h4: 18px;
    --a-lh-h4: 26px;
    --a-fs-lead: 17px;
    --a-lh-lead: 26px;
    --a-fs-body: 15px;
    --a-lh-body: 22px;
    --a-fs-small: 13px;
    --a-lh-small: 18px;
    --a-fs-cap: 12px;
    --a-lh-cap: 16px;
    --a-fs-eyebrow: 16px;
    --a-lh-eyebrow: 26px;
    --a-gap: 48px;
  }
}

@media (max-width: 767px) {
  .about-page {
    --a-pad-y: 72px;
    --a-pad-x: 20px;
    --a-hero-pad: 64px;
    --a-fs-h1: 28px;
    --a-lh-h1: 34px;
    --a-fs-h2: 22px;
    --a-lh-h2: 28px;
    --a-fs-h4: 16px;
    --a-lh-h4: 22px;
    --a-fs-lead: 16px;
    --a-lh-lead: 24px;
    --a-fs-body: 14px;
    --a-lh-body: 20px;
    --a-fs-small: 12px;
    --a-lh-small: 16px;
    --a-fs-cap: 11px;
    --a-lh-cap: 14px;
    --a-fs-eyebrow: 14px;
    --a-lh-eyebrow: 22px;
    --a-ls-eyebrow: 0.16em;
    --a-gap: 28px;
  }
}

/* --- Нейтрализация глобальных стилей (base.css) -------------- */
.about *,
.about *::before,
.about *::after {
  box-sizing: border-box;
}

.about section,
.about figure {
  margin: 0;
  padding: 0;
  overflow: visible;
}

.about h1,
.about h2,
.about h3,
.about p,
.about span,
.about ul,
.about ol,
.about li,
.about dl,
.about dt,
.about dd {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
  list-style: none;
}

.about a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

.about img {
  display: block;
  max-width: 100%;
}

/* --- Каркас ------------------------------------------------- */
.about {
  color: var(--c-body);
  font-family: var(--font-sans);
  font-size: var(--a-fs-body);
  line-height: var(--a-lh-body);
  -webkit-font-smoothing: antialiased;
}

.about .about__section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--a-gap);
  padding: var(--a-pad-y) var(--a-pad-x);
  background-color: var(--c-page);
}

.about .about__section--surface {
  background-color: var(--c-surface);
}

.about .about__section--white {
  background-color: var(--c-white);
}

.about .about__inner {
  width: 100%;
  max-width: 1080px;
}

/* --- Типографика -------------------------------------------- */
.about .about__eyebrow {
  color: var(--c-primary);
  font-size: var(--a-fs-eyebrow);
  line-height: var(--a-lh-eyebrow);
  font-weight: 700;
  letter-spacing: var(--a-ls-eyebrow);
  text-transform: uppercase;
}

.about .about__h1 {
  max-width: 760px;
  font-size: var(--a-fs-h1);
  line-height: var(--a-lh-h1);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.about .about__h2 {
  font-size: var(--a-fs-h2);
  line-height: var(--a-lh-h2);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.about .about__h4 {
  color: var(--c-ink);
  font-size: var(--a-fs-h4);
  line-height: var(--a-lh-h4);
  font-weight: 500;
}

.about .about__lead {
  font-size: var(--a-fs-lead);
  line-height: var(--a-lh-lead);
}

.about .about__lead--narrow {
  max-width: 720px;
}

.about .about__text--muted {
  color: var(--c-secondary);
}

.about .about__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about .about__head--center {
  align-items: center;
  gap: 12px;
  text-align: center;
}

.about .about__link {
  color: var(--c-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.about .about__link:hover {
  color: var(--c-primary-hover);
}

/* --- Кнопки ------------------------------------------------- */
.about .about__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border: 1.5px solid var(--c-primary);
  border-radius: 8px;
  background-color: var(--c-primary);
  color: var(--c-white);
  font-size: var(--a-fs-body);
  line-height: 22px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.about .about__btn:hover {
  border-color: var(--c-primary-hover);
  background-color: var(--c-primary-hover);
}

.about .about__btn--outline {
  background-color: transparent;
  color: var(--c-primary);
}

.about .about__btn--outline:hover {
  background-color: var(--c-primary);
  color: var(--c-white);
}

.about .about__btn:focus-visible,
.about .about__link:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

/* --- Первый экран ------------------------------------------- */
.about .about__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: var(--a-hero-pad) var(--a-pad-x);
  background: linear-gradient(to bottom, var(--c-page) 55%, var(--c-surface));
  text-align: center;
}

.about .about__hero-lead {
  max-width: 680px;
  font-size: var(--a-fs-lead);
  line-height: var(--a-lh-lead);
}

.about .about__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.about .about__fact {
  padding: 8px 16px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background-color: var(--c-white);
  font-size: var(--a-fs-small);
  line-height: var(--a-lh-small);
}

.about .about__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
}

.about .about__note {
  color: var(--c-muted);
  font-size: var(--a-fs-cap);
  line-height: var(--a-lh-cap);
}

/* --- История ------------------------------------------------ */
.about .about__story-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: center;
  gap: 80px;
}

.about .about__founder {
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 24px;
  background-color: var(--c-white);
  box-shadow: var(--a-shadow);
}

.about .about__founder-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 420 / 460;
  object-fit: cover;
}

.about .about__founder-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 28px 24px;
}

.about .about__founder-name {
  color: var(--c-ink);
  font-size: var(--a-fs-h4);
  line-height: var(--a-lh-h4);
  font-weight: 500;
}

.about .about__founder-role {
  color: var(--c-secondary);
  font-size: var(--a-fs-small);
  line-height: var(--a-lh-small);
}

.about .about__story-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about .about__milestone {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  color: var(--c-ink);
}

.about .about__milestone + .about__milestone {
  border-top: 1px solid var(--c-border);
}

.about .about__year {
  flex: none;
  width: 104px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
}

.about .about__year--now {
  background-color: var(--c-primary);
  color: var(--c-white);
}

/* --- Чем мы помогаем ---------------------------------------- */
.about .about__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about .about__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background-color: var(--c-white);
}

.about .about__card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about .about__marker {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

/* --- Как мы зарабатываем ------------------------------------ */
.about .about__split {
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: 80px;
}

.about .about__split-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.about .about__notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border-radius: 16px;
  background-color: var(--c-surface);
}

.about .about__notice-title {
  color: var(--c-ink);
  font-weight: 500;
}

.about .about__notice-text {
  color: var(--c-secondary);
  font-size: var(--a-fs-small);
  line-height: var(--a-lh-small);
}

.about .about__receipt {
  padding: 36px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background-color: var(--c-white);
  box-shadow: var(--a-shadow);
}

.about .about__receipt-title {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about .about__payment {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-border);
}

.about .about__payment-route {
  color: var(--c-ink);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.about .about__arrow {
  margin: 0 4px;
  color: var(--c-primary);
  font-weight: 700;
}

.about .about__payment-what {
  color: var(--c-secondary);
}

.about .about__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.about .about__total-label {
  color: var(--c-ink);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.about .about__total-sum {
  color: var(--c-primary);
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
}

/* --- Лицензии ----------------------------------------------- */
.about .about__license-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  align-items: center;
  gap: 64px;
}

.about .about__license-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about .about__license {
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background-color: var(--c-page);
}

.about .about__license-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
}

.about .about__license-row:first-child {
  padding-top: 0;
}

.about .about__license-row:last-child {
  padding-bottom: 0;
}

.about .about__license-row + .about__license-row {
  border-top: 1px solid var(--c-border);
}

.about .about__license dt {
  color: var(--c-muted);
  font-size: var(--a-fs-cap);
  line-height: var(--a-lh-cap);
}

.about .about__license dd {
  color: var(--c-ink);
  font-size: 17px;
  line-height: 22px;
  font-weight: 500;
}

.about .about__license .about__npn {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about .about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

/* Подсказка с названием штата: позиционируется относительно рамки карты (us-map.js). */
.about .about__map {
  position: relative;
  display: flex;
  justify-content: center;
}

.about .about__map-img {
  width: 100%;
}

.about .about__map-tip {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background-color: var(--c-ink);
  color: var(--c-white);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  translate: -50% calc(-100% - 12px);
  opacity: 0;
  transition: opacity 140ms ease;
}

.about .about__map-tip.is-on {
  opacity: 1;
}

/* --- Куда мы идём ------------------------------------------- */
.about .about__hub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  max-width: 1080px;
}

.about .about__pill {
  padding: 14px 20px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background-color: var(--c-white);
  color: var(--c-ink);
  font-weight: 500;
}

.about .about__pill--center {
  padding: 18px 28px;
  border-color: var(--c-primary);
  background-color: var(--c-primary);
  color: var(--c-white);
  font-size: 18px;
  font-weight: 700;
}

.about .about__goal {
  max-width: 720px;
  font-size: var(--a-fs-h4);
  line-height: var(--a-lh-h4);
  font-weight: 500;
  text-align: center;
}

/* --- Контакты ----------------------------------------------- */
.about .about__contacts {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.about .about__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background-color: var(--c-white);
}

.about .about__contact-label {
  color: var(--c-muted);
  font-size: var(--a-fs-cap);
  line-height: var(--a-lh-cap);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about .about__contact-value {
  color: var(--c-ink);
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.about .about__contact-note {
  color: var(--c-secondary);
  font-size: var(--a-fs-small);
  line-height: var(--a-lh-small);
}

.about a.about__contact-value:hover,
.about a.about__contact-note:hover {
  color: var(--c-primary);
}

/* --- Призыв ------------------------------------------------- */
.about .about__final {
  padding-top: 96px;
  padding-bottom: 96px;
}

.about .about__final-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 64px;
  border: 1px solid var(--c-border);
  border-radius: 28px;
  background-color: var(--c-white);
  text-align: center;
}

.about .about__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: 12px;
}

/* --- Tablet ------------------------------------------------- */
@media (max-width: 1023px) {
  .about .about__story-grid {
    grid-template-columns: 360px 1fr;
    gap: 48px;
  }

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

  .about .about__split {
    grid-template-columns: 1fr 400px;
    gap: 48px;
  }

  .about .about__receipt {
    padding: 28px;
  }

  .about .about__license-grid {
    grid-template-columns: 400px 1fr;
    gap: 40px;
  }

  .about .about__contact-value {
    font-size: 18px;
    line-height: 24px;
  }

  .about .about__final {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .about .about__final-card {
    padding: 48px;
  }
}

/* --- Mobile ------------------------------------------------- */
@media (max-width: 767px) {
  .about .about__hero {
    gap: 20px;
  }

  .about .about__fact {
    padding: 6px 14px;
  }

  .about .about__cta {
    width: 100%;
    padding-top: 0;
  }

  .about .about__cta .about__btn,
  .about .about__buttons .about__btn {
    width: 100%;
  }

  .about .about__story-grid,
  .about .about__split,
  .about .about__license-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about .about__founder {
    border-radius: 20px;
  }

  .about .about__founder-photo {
    aspect-ratio: 1;
  }

  .about .about__founder-caption {
    padding: 14px 20px 16px;
  }

  .about .about__story-text,
  .about .about__split-text,
  .about .about__license-text {
    gap: 24px;
  }

  .about .about__milestone {
    gap: 14px;
    padding: 14px 0;
  }

  .about .about__year {
    width: 84px;
    padding: 5px 0;
    font-size: 13px;
    line-height: 18px;
  }

  .about .about__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about .about__card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: 16px;
  }

  .about .about__marker {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* На телефоне чек идёт перед пояснением «Мы не страховая…», как в макете. */
  .about .about__split-text {
    display: contents;
  }

  .about .about__split > .about__split-text > .about__head {
    order: 1;
  }

  .about .about__split > .about__split-text > .about__lead {
    order: 2;
  }

  .about .about__receipt {
    order: 3;
    padding: 24px;
    border-radius: 16px;
  }

  .about .about__split > .about__split-text > .about__notice {
    order: 4;
  }

  .about .about__split > .about__split-text > .about__link {
    order: 5;
  }

  .about .about__payment {
    gap: 4px;
    padding: 16px 0;
  }

  .about .about__payment-route,
  .about .about__total-label {
    font-size: 16px;
    line-height: 22px;
  }

  .about .about__total-sum {
    font-size: 36px;
    line-height: 44px;
  }

  .about .about__license {
    padding: 20px;
    border-radius: 16px;
  }

  .about .about__license .about__npn {
    font-size: 26px;
    line-height: 32px;
  }

  /* На телефоне карта идёт сразу под заголовком, до карточки лицензии. */
  .about .about__license-text {
    display: contents;
  }

  .about .about__license-grid > .about__license-text > .about__head {
    order: 1;
  }

  .about .about__map {
    order: 2;
  }

  .about .about__license-grid > .about__license-text > :not(.about__head) {
    order: 3;
  }

  .about .about__links {
    flex-direction: column;
  }

  .about .about__hub {
    gap: 8px;
  }

  .about .about__pill {
    padding: 10px 16px;
    font-size: 14px;
    line-height: 20px;
  }

  .about .about__pill--center {
    flex-basis: 100%;
    max-width: max-content;
    margin: 0 auto;
    padding: 14px 24px;
    font-size: 16px;
  }

  .about .about__contacts {
    gap: 16px;
  }

  .about .about__contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about .about__contact {
    padding: 18px;
    border-radius: 16px;
  }

  .about .about__contact-value {
    font-size: 17px;
    line-height: 22px;
  }

  .about .about__final {
    padding: 56px var(--a-pad-x);
  }

  .about .about__final-card {
    gap: 14px;
    padding: 36px 24px;
    border-radius: 20px;
  }

  .about .about__buttons {
    width: 100%;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about .about__map-tip {
    transition: none;
  }
}
