/* ============================================================
   about.css — страница «О компании» (/about).
   Подключается только на ней, поверх site.css (каркас, шапка, подвал,
   кнопки .btn, карточка CTA .info-cta-card). Палитра и шрифты — те же,
   что у «Контактов» и «Доставки»: заголовки Onest 600, глубокий зелёный.
   Тёмной темы у сайта нет.
   ============================================================ */

:root {
  --ab-deep: #21473A;
  --ab-g: #2E5E4E;
  --ab-soft: #E9F0E4;
  --ab-line: rgba(33, 71, 58, 0.14);
  --ab-shadow: 0 24px 50px -34px rgba(33, 71, 58, 0.55);
}

.about-page h1, .about-page h2, .about-page h3 {
  font-family: 'Onest', 'Manrope', sans-serif; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ab-deep);
}
.about-page .breadcrumbs { margin-bottom: 0; }
/* Якорь встаёт под нижний край липкой шапки (высоту ставит скрипт страницы;
   на телефоне — видимая высота сжатой шапки из topbar.js). */
.about-page [id] { scroll-margin-top: var(--az-hdr-vis, var(--ab-hdr, 180px)); }

/* ── Секции ── */
.ab-sec { padding: 46px 0; }
.ab-sec--tint {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
/* Шапка раздела — одной колонкой: заголовок, под ним пояснение. Раньше
   пояснение стояло справа через полстраницы, и глаз их не связывал
   (владелец 25.09.2026). */
.ab-sec__head { max-width: 720px; margin-bottom: 28px; }
.ab-sec__title { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.ab-sec__lead { margin-top: 10px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.ab-sec__lead a, .ab-text a {
  color: var(--sage-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.ab-sec__lead a:hover, .ab-text a:hover { color: var(--ab-deep); }

/* Иконки — двухтонные значки сайта (assets/icons: nav + about, генератор
   scripts/gen_feature_icons.py --set=about), на мятной плашке. Тонкие
   линейные SVG заменены 25.09.2026 по просьбе владельца. */
.ab-ic {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px;
  background: var(--ab-soft); display: grid; place-items: center;
}
.ab-ic img { display: block; width: 30px; height: 30px; }
.ab-fact__ic { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
.ab-ic svg {
  width: 21px; height: 21px; stroke: var(--ab-deep); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Хиро ── */
.ab-hero { padding: 18px 0 14px; }
.ab-hero .container {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center;
}
.ab-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font: 700 12.5px 'Manrope', sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage-dark);
}
.ab-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sage); border-radius: 2px; }
.ab-hero__title { margin-top: 12px; font-size: clamp(31px, 4.2vw, 50px); line-height: 1.06; }
.ab-hero__title em { font-style: normal; color: var(--sage); }
.ab-hero__sub { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ab-g); max-width: 540px; }
.ab-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.ab-hero__actions .btn { min-height: 46px; }
.ab-hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--ab-line);
}
.ab-fact { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px 'Manrope', sans-serif; color: var(--ink); }
.ab-fact svg { width: 17px; height: 17px; stroke: var(--sage-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.ab-hero__photo { position: relative; }
.ab-hero__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 22px; box-shadow: 0 24px 60px rgba(43, 43, 38, 0.12);
}
.ab-hero__badge {
  position: absolute; left: 18px; bottom: 18px; max-width: calc(100% - 36px);
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.96); border-radius: 14px; padding: 11px 14px;
  box-shadow: 0 12px 30px -12px rgba(27, 36, 32, 0.4); color: var(--ink);
  transition: transform .18s, box-shadow .18s;
}
.ab-hero__badge:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(27, 36, 32, 0.45); }
.ab-hero__badge .ab-ic { width: 38px; height: 38px; border-radius: 10px; }
.ab-hero__badge .ab-ic svg { width: 19px; height: 19px; }
.ab-hero__badge .ab-ic img { width: 26px; height: 26px; }
.ab-hero__badge-t { display: block; font: 700 13.5px 'Manrope', sans-serif; line-height: 1.3; }
.ab-hero__badge-s { display: block; margin-top: 2px; font: 600 12.5px 'Manrope', sans-serif; color: var(--sage-dark); }

/* ── Что для нас важно ── */
.ab-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.ab-principle { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.ab-principle h3 { font-size: 16.5px; line-height: 1.3; padding-top: 3px; }
.ab-principle p { margin-top: 6px; font-size: 14px; line-height: 1.58; color: var(--ink-soft); }

/* ── Кому помогаем ── */
.ab-who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ab-who__card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hair);
  border-radius: 18px; padding: 24px 22px 22px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ab-who__card:hover { transform: translateY(-3px); border-color: rgba(122, 148, 113, 0.5); box-shadow: 0 18px 40px -20px rgba(27, 36, 32, 0.3); }
.ab-who__card h3 { margin-top: 16px; font-size: 18px; line-height: 1.25; }
.ab-who__card p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.ab-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; min-height: 32px;
  font: 700 14px 'Manrope', sans-serif; color: var(--sage-dark); transition: color .15s;
}
.ab-link::after { content: "→"; transition: transform .15s; }
.ab-link:hover { color: var(--ab-deep); }
.ab-link:hover::after { transform: translateX(3px); }

/* ── Как проходит покупка ── */
.ab-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ab-step {
  position: relative; background: #fff; border: 1px solid var(--hair); border-radius: 18px; padding: 22px 20px 20px;
}
.ab-step__num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ab-deep); color: #fff;
  font: 700 15px 'Manrope', sans-serif; display: grid; place-items: center;
}
.ab-step h3 { margin-top: 14px; font-size: 17px; line-height: 1.25; }
.ab-step p { margin-top: 6px; font-size: 14px; line-height: 1.58; color: var(--ink-soft); }
.ab-step p a { color: var(--sage-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ab-step p a:hover { color: var(--ab-deep); }

/* ── Поставщики и сертификаты ── */
.ab-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ab-logo {
  display: grid; place-items: center; height: 78px; padding: 14px 20px;
  background: #fff; border: 1px solid var(--hair); border-radius: 14px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ab-logo img { max-height: 42px; width: auto; max-width: 100%; object-fit: contain; }
.ab-logo:hover { transform: translateY(-2px); border-color: var(--sage); box-shadow: 0 14px 30px -18px rgba(27, 36, 32, 0.35); }

/* Три документа в ряд: картинка сверху, текст снизу. На планшете — по одному
   в строку горизонтально, на телефоне — снова столбиком (см. медиазапросы). */
.ab-certs { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ab-cert {
  display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; background: #fff;
  border: 1px solid var(--hair); border-radius: 18px; overflow: hidden;
}
.ab-cert__pic {
  display: grid; place-items: center; padding: 18px; min-height: 236px;
  background: linear-gradient(160deg, var(--sand), var(--sand-2)); cursor: zoom-in;
}
.ab-cert__pic img {
  max-height: 200px; width: auto; max-width: 100%; border-radius: 4px;
  box-shadow: 0 10px 24px -6px rgba(27, 36, 32, 0.35); transition: transform .2s;
}
.ab-cert__pic:hover img { transform: scale(1.03); }
.ab-cert__pic:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: -4px; }
.ab-cert__body { display: flex; flex-direction: column; padding: 22px 22px 20px; }
.ab-cert__role {
  font: 700 12px 'Manrope', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-dark);
}
.ab-cert__org { margin-top: 6px; font-size: 19px; line-height: 1.25; }
.ab-cert__text { margin-top: 8px; font-size: 14px; line-height: 1.58; color: var(--ink-soft); flex: 1; }
.ab-cert__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin-top: 16px; font-size: 13px; color: var(--ink-soft);
}
.ab-cert__until:empty { display: none; }
.ab-cert__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 15px;
  border: 1px solid var(--ab-line); border-radius: 10px; background: #fff; color: var(--ab-deep);
  font: 700 13.5px 'Manrope', sans-serif; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.ab-cert__btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ab-cert__btn:hover { background: var(--ab-deep); border-color: var(--ab-deep); color: #fff; }

/* ── Регистрационные удостоверения: строка мелких первых страниц под письмами.
   Лист «выглядывает» из кармана: карман 4:5, лист шире кармана по высоте и
   обрезается снизу — так превью читается как документ, а не как картинка. ── */
.ab-ru { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--hair); }
.ab-ru__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 28px; margin-bottom: 18px;
}
.ab-ru__title { font-size: 19px; line-height: 1.3; }
.ab-ru__lead { margin: 0; max-width: 620px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.ab-ru__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 14px 12px; }
.ab-ru__item { display: block; color: inherit; text-decoration: none; }
.ab-ru__paper {
  display: block; aspect-ratio: 4 / 5; padding: 10px 10px 0; overflow: hidden;
  background: linear-gradient(160deg, var(--sand), var(--sand-2));
  border: 1px solid var(--hair); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s;
}
.ab-ru__paper img {
  display: block; width: 100%; height: auto; border-radius: 3px 3px 0 0;
  box-shadow: 0 8px 18px -6px rgba(27, 36, 32, 0.35); transition: transform .2s;
}
.ab-ru__item:hover .ab-ru__paper { border-color: var(--sage); box-shadow: 0 14px 30px -18px rgba(27, 36, 32, 0.35); }
.ab-ru__item:hover .ab-ru__paper img { transform: translateY(-6px); }
.ab-ru__item:focus-visible { outline: 2px solid var(--ab-deep); outline-offset: 3px; border-radius: 12px; }
.ab-ru__cap { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.3; }
.ab-ru__cap b { display: block; font-weight: 700; color: var(--ink); }
.ab-ru__cap span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Продавец и реквизиты ── */
.ab-req { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: start; }
.ab-text p { margin-top: 12px; font-size: 15.5px; line-height: 1.65; color: #45453F; }
.ab-text p:first-child { margin-top: 0; }
.ab-req__card {
  background: #fff; border: 1px solid var(--hair); border-radius: 20px; padding: 24px 26px 22px;
  box-shadow: var(--ab-shadow);
}
.ab-req__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ab-req__title { font-size: 19px; }
.ab-req__copy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 15px;
  border: 1px solid var(--ab-line); border-radius: 10px; background: var(--ab-soft); color: var(--ab-deep);
  font: 700 13.5px 'Manrope', sans-serif; cursor: pointer; transition: background .15s, color .15s;
}
.ab-req__copy svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ab-req__copy:hover { background: var(--ab-deep); color: #fff; }
.ab-req__copy.is-done { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.ab-req__list { margin-top: 14px; }
.ab-req__row {
  display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; padding: 10px 2px;
  border-bottom: 1px solid var(--hair); font-size: 14.5px;
}
.ab-req__row:last-child { border-bottom: 0; }
.ab-req__row dt { color: var(--ink-soft); }
.ab-req__row dd { margin: 0; font-weight: 700; color: var(--ink); word-break: break-all; font-variant-numeric: tabular-nums; }
.ab-req__note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.ab-req__note a { color: var(--sage-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── CTA: карточка из site.css, здесь только часы и кнопки ── */
.ab-cta-hours { display: block; margin-top: 8px; font-weight: 600; opacity: 1; }

/* ── Адаптив ── */
@media (max-width: 1024px) {
  .ab-hero .container { grid-template-columns: 1fr; gap: 28px; }
  .ab-hero__sub { max-width: none; }
  .ab-steps { grid-template-columns: 1fr 1fr; }
  .ab-certs { grid-template-columns: 1fr; }
  .ab-cert { grid-template-columns: 236px 1fr; grid-template-rows: none; }
  .ab-req { grid-template-columns: 1fr; gap: 22px; }
  .ab-ru__row { grid-template-columns: repeat(5, 1fr); gap: 18px 14px; }
}
@media (max-width: 600px) {
  /* Телефон: строка остаётся строкой — листается вбок, лист чуть крупнее. */
  .ab-ru__row {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: thin;
  }
  .ab-ru__row > li { flex: 0 0 132px; scroll-snap-align: start; }
}
@media (max-width: 768px) {
  .ab-sec { padding: 36px 0; }
  .ab-principles { grid-template-columns: 1fr; gap: 18px; }
  .ab-who { grid-template-columns: 1fr; }
  .ab-logos { grid-template-columns: repeat(3, 1fr); }
  .ab-cert { grid-template-columns: 1fr; }
  .ab-cert__pic { min-height: 0; padding: 16px; }
  .ab-cert__pic img { max-height: 180px; }
}
@media (max-width: 480px) {
  .about-page main .container { padding: 0 16px; }
  .ab-hero { padding-top: 10px; }
  .ab-hero__title { font-size: 30px; }
  .ab-hero__sub { font-size: 16px; }
  .ab-hero__actions .btn { flex: 1 1 100%; }
  .ab-hero__badge { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .ab-steps { grid-template-columns: 1fr; }
  .ab-logos { grid-template-columns: repeat(2, 1fr); }
  .ab-logos > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ab-logo { height: 68px; padding: 12px 16px; }
  .ab-req__card { padding: 20px 18px; }
  .ab-req__row { grid-template-columns: 1fr; gap: 2px; }
  .ab-req__head { align-items: stretch; }
  .ab-req__copy { justify-content: center; width: 100%; }
  .ab-cert__meta { flex-direction: column; align-items: stretch; }
  .ab-cert__btn { justify-content: center; }
  .about-page .info-section--sage .info-cta-card { padding: 30px 20px; }
}

/* ── Написать нам: мессенджеры и почта под кнопкой телефона ── */
.ab-msgrs {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; margin-top: 18px;
}
.ab-msgrs__label { font: 600 14px 'Manrope', sans-serif; color: rgba(255, 255, 255, 0.78); margin-right: 2px; }
.ab-msgr {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 999px;
  font: 700 14.5px 'Manrope', sans-serif; color: #fff; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.ab-msgr:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.ab-msgr:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ab-msgr svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.ab-msgr svg.ab-msgr__line { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) {
  .ab-msgrs__label { flex-basis: 100%; text-align: center; margin: 0 0 2px; }
  .ab-msgr { padding: 0 14px; font-size: 14px; }
}
