/* «О компании» (/about/) и документы (/offer/, /privacy/). База, шапка, фон, язык — из gateway.css.
   Сигнатура: заряд. На первом экране кольцо вокруг логотипа заполняется до 100%,
   индикатор «••••» загорается — тот же язык, что у слотов на приветствии. */

body[data-page="about"], body[data-page="legal"] { display: block; }
main { width: 100%; max-width: 1400px; margin-inline: auto; padding: 0 var(--gutter); }

/* ── Шапка ── */
.ab-top__right { display: flex; align-items: center; gap: 10px; }
.ab-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02);
  font-size: .875rem; font-weight: 600; color: var(--muted); text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.ab-back:hover { color: var(--text); border-color: var(--line-strong); }
.ab-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── 1. Первый экран ── */
.ab-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 80px);
  min-height: calc(100vh - 110px); min-height: calc(100dvh - 110px); padding: clamp(24px, 4vh, 56px) 0 clamp(40px, 6vh, 80px);
}
.ab-hero > * { min-width: 0; }
.ab-hero__title { margin: 0; font: 800 clamp(2.1rem, .8rem + 3.6vw, 4.6rem)/1.04 var(--font-display); letter-spacing: -.03em; }
.ab-hero__lead { margin-top: clamp(18px, 3vh, 28px); max-width: 36rem; font-size: clamp(1rem, .9rem + .45vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.ab-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(24px, 4vh, 36px) 0 0; padding: 0; list-style: none; }
.ab-hero__facts li { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); font-size: .875rem; color: var(--muted); }
.ab-hero__facts b { font: 800 1.125rem/1 var(--font-display); color: var(--gold-light); }

/* Сцена: логотип в кольце заряда */
.ab-hero__stage { position: relative; display: grid; place-items: center; width: min(100%, 560px); aspect-ratio: 1; justify-self: end; }
.ab-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ab-ring circle { fill: none; stroke-width: 2.2; }
.ab-ring__track { stroke: rgba(212, 175, 55, .14); }
.ab-ring__fill {
  stroke: url(#ab-ring-g); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, .55));
  animation: ab-ring 2.2s cubic-bezier(.65, 0, .35, 1) .5s forwards;
}
.ab-hero__glow {
  position: absolute; inset: 14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 175, 55, .3), rgba(212, 175, 55, .08) 60%, transparent);
  animation: ab-breathe 5s ease-in-out 2.7s infinite;
}
.ab-hero__logo {
  position: relative; width: 58%; height: auto;
  filter: drop-shadow(0 18px 50px rgba(212, 175, 55, .35));
  animation: ab-logo 1.4s var(--ease) .35s backwards;
}
.ab-hero__charge {
  position: absolute; left: 50%; bottom: 7%; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(5, 5, 5, .75);
}
.ab-hero__charge i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .16); animation: ab-led .4s ease forwards; }
.ab-hero__charge i:nth-child(1) { animation-delay: .9s; }
.ab-hero__charge i:nth-child(2) { animation-delay: 1.35s; }
.ab-hero__charge i:nth-child(3) { animation-delay: 1.8s; }
.ab-hero__charge i:nth-child(4) { animation-delay: 2.25s; }
.ab-hero__charge b { margin-left: 6px; font: 700 .75rem/1 var(--font-display); letter-spacing: .06em; color: var(--gold-light); opacity: 0; animation: gw-fade-in .4s ease 2.6s forwards; }

/* ── Секции ── */
.ab-sec { padding: clamp(64px, 10vw, 136px) 0 0; }
.ab-h2 { margin: 0 0 clamp(24px, 4vw, 48px); max-width: 22ch; font: 800 clamp(1.75rem, 1rem + 2.6vw, 3.25rem)/1.06 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }

/* 2. Миссия — главный тезис страницы, самый крупный текст после первого экрана */
.ab-mission__title {
  margin: 0; max-width: 20ch; font: 800 clamp(2rem, .9rem + 3.9vw, 4.75rem)/1.04 var(--font-display); letter-spacing: -.03em; text-wrap: balance;
  background: linear-gradient(165deg, #fff4c4 0%, #e8c96a 28%, #c9a227 52%, #f0d878 78%, #a67c00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ab-mission__text { margin-top: clamp(20px, 3vw, 32px); max-width: 44rem; font-size: clamp(1.0625rem, .95rem + .5vw, 1.375rem); line-height: 1.6; color: var(--text); }
.ab-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.ab-pillar { padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--bg-card); }
.ab-pillar__n { font: 600 .8125rem/1 var(--font-display); letter-spacing: .14em; color: var(--gold); }
.ab-pillar__t { margin: 16px 0 10px; font: 700 clamp(1.25rem, 1rem + .7vw, 1.625rem)/1.15 var(--font-display); letter-spacing: -.02em; }
.ab-pillar__d { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }

/* 3. Что даём */
.ab-give { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ab-side { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: var(--bg-card); }
.ab-side--gold { border-color: rgba(212, 175, 55, .42); background: radial-gradient(600px circle at 100% 0%, rgba(212, 175, 55, .12), transparent 60%), var(--bg-card); }
.ab-side__t { margin: 0 0 22px; }
.ab-side__tag { display: inline-block; font: 800 clamp(1.5rem, 1.1rem + 1vw, 2rem)/1 var(--font-display); letter-spacing: -.02em; }
.ab-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ab-list li { position: relative; padding-left: 28px; font-size: 1rem; line-height: 1.5; color: var(--text); }
.ab-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.ab-list--sm li { font-size: .9375rem; color: var(--muted); }
.ab-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 18px; font-weight: 600; color: var(--gold-light); text-decoration: none; }
.ab-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 4. Шаги — каждый «заряжает» полосу на 25% больше */
.ab-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ab-step { position: relative; display: grid; align-content: space-between; gap: 32px; min-height: 200px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-card); }
.ab-step__n {
  font: 800 clamp(2.75rem, 1.8rem + 1.6vw, 3.75rem)/.9 var(--font-display);
  background: linear-gradient(165deg, #fff4c4 0%, #e8c96a 28%, #c9a227 52%, #f0d878 78%, #a67c00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ab-step__t { font-size: 1rem; font-weight: 600; line-height: 1.45; }
.ab-step::after {
  content: ""; position: absolute; left: 92px; right: 22px; top: 32px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) calc((var(--i) + 1) * 25%), rgba(255, 255, 255, .1) 0);
}

/* 5. Тарифы */
.ab-tariffs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .9fr); gap: 12px; align-items: stretch; }
.ab-tariff { padding: clamp(24px, 2.8vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--bg-card); }
.ab-tariff__card { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ab-tariff__price { margin: 14px 0 22px; font: 800 clamp(2.25rem, 1.4rem + 2vw, 3.25rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--text); white-space: nowrap; }
.ab-tariff__price small { display: block; margin-top: 8px; font: 600 .9375rem/1 var(--font-body); letter-spacing: 0; color: var(--muted); }
.ab-cap { display: grid; align-content: center; gap: 14px; padding: clamp(24px, 2.8vw, 36px); border: 1px solid rgba(212, 175, 55, .42); border-radius: 22px; background: radial-gradient(400px circle at 0% 0%, rgba(212, 175, 55, .14), transparent 65%), var(--bg-card); }
.ab-cap__v { margin: 0; font: 800 clamp(2rem, 1.3rem + 1.6vw, 2.75rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--gold-light); white-space: nowrap; }
.ab-cap__v small { font: 700 .45em/1 var(--font-display); color: var(--gold); }
.ab-cap__d { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.ab-note { margin: 18px 0 0; font-size: .9375rem; color: var(--muted); }
.ab-note a { color: var(--gold-light); }

/* 6. Где работаем */
.ab-where__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.ab-where__head .ab-link { margin: 0 0 clamp(24px, 4vw, 48px); }
.ab-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; outline-offset: 6px; }
.ab-shot { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-card); }
.ab-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .ab-shot:hover img { transform: scale(1.05); } }

/* 7. Документы и реквизиты */
.ab-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 12px; }
.ab-doc {
  position: relative; display: grid; align-content: start; gap: 12px; min-height: 240px; padding: 26px 26px 76px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--bg-card); color: var(--text); text-decoration: none;
  transition: transform .45s var(--ease), border-color .35s var(--ease);
}
.ab-doc:hover, .ab-doc:focus-visible { transform: scale(1.02); border-color: rgba(212, 175, 55, .55); }
.ab-doc__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(212, 175, 55, .1); color: var(--gold-light); }
.ab-doc__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-doc__t { margin-top: 8px; font: 700 clamp(1.0625rem, .9rem + .35vw, 1.25rem)/1.2 var(--font-display); letter-spacing: -.02em; }
.ab-doc__d { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.ab-doc__go { position: absolute; left: 26px; bottom: 24px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold-light); transition: transform .4s var(--ease); }
.ab-doc:hover .ab-doc__go { transform: translateX(4px); }
.ab-req { display: grid; gap: 0; margin: 0; padding: 10px 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .015); }
.ab-req > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ab-req > div:last-child { border-bottom: 0; }
.ab-req dt { font-size: .8125rem; color: var(--muted); }
.ab-req dd { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.ab-req a { color: var(--text); text-decoration-color: rgba(212, 175, 55, .5); text-underline-offset: 3px; }
.ab-req a:hover { color: var(--gold-light); }
.ab-req__mute { color: var(--muted); }

/* 8. Финал */
.ab-end {
  position: relative; overflow: hidden; margin: clamp(64px, 10vw, 136px) 0 clamp(40px, 6vw, 72px); padding: clamp(36px, 6vw, 80px);
  border: 1px solid rgba(212, 175, 55, .45); border-radius: 28px;
  background: radial-gradient(800px circle at 90% 0%, rgba(212, 175, 55, .16), transparent 60%), var(--bg-card);
}
.ab-end__logo { position: absolute; right: clamp(-40px, -2vw, 0px); bottom: -14%; width: clamp(220px, 30vw, 440px); height: auto; opacity: .12; pointer-events: none; }
.ab-end__title { position: relative; margin: 0; max-width: 15ch; font: 800 clamp(2rem, 1rem + 3.4vw, 4rem)/1.04 var(--font-display); letter-spacing: -.03em; }
.ab-end__text { position: relative; margin-top: 16px; max-width: 34rem; font-size: clamp(1rem, .9rem + .4vw, 1.1875rem); line-height: 1.55; color: var(--muted); }
.ab-end__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vw, 40px); }
.ab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #0a0a0a; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px -10px var(--gold-glow); transition: transform .3s var(--ease);
}
.ab-btn:hover { transform: translateY(-2px); }
.ab-btn--ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text); box-shadow: none; }

/* Подвал */
.ab-foot { align-items: center; flex-wrap: wrap; }
.ab-foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ab-foot__links a { color: var(--muted); text-decoration: none; }
.ab-foot__links a:hover, .ab-foot__links a[aria-current="page"] { color: var(--gold-light); }

/* Появление при прокрутке */
.ab-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.ab-reveal.is-in { opacity: 1; transform: none; }

@keyframes ab-ring { to { stroke-dashoffset: 0; } }
@keyframes ab-logo { from { opacity: 0; transform: scale(.82); filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)) blur(6px); } }
@keyframes ab-led { to { background: var(--gold-light); box-shadow: 0 0 8px var(--gold-glow); } }
@keyframes ab-breathe { 50% { opacity: .65; transform: scale(1.06); } }

/* ── Планшет ── */
@media (max-width: 1100px) {
  .ab-hero { grid-template-columns: 1fr minmax(0, 380px); }
  .ab-pillars { grid-template-columns: 1fr; }
  .ab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-cap { grid-column: 1 / -1; }
  .ab-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-req { grid-column: 1 / -1; }
}

/* ── Телефон: отдельная постановка ── */
@media (max-width: 760px) {
  .ab-back span { display: none; }
  .ab-back { padding: 0 12px; }
  .ab-hero { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-top: 8px; }
  .ab-hero__stage { order: -1; justify-self: center; width: min(86vw, 340px); }
  .ab-hero__facts li { padding: 8px 12px; font-size: .8125rem; }
  .ab-give { grid-template-columns: 1fr; }
  .ab-steps { grid-template-columns: 1fr; gap: 8px; }
  .ab-step { grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 0; padding: 16px 16px 22px; }
  .ab-step::after { left: 84px; right: 16px; top: auto; bottom: 14px; height: 2px; }
  .ab-tariffs { grid-template-columns: 1fr; }
  .ab-where__head { display: block; }
  .ab-where__head .ab-link { margin: -12px 0 16px; }
  .ab-gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .ab-gallery::-webkit-scrollbar { display: none; }
  .ab-shot { flex: 0 0 72%; scroll-snap-align: start; }
  .ab-gallery .ab-shot.ab-reveal { opacity: 1; transform: none; }
  .ab-docs { grid-template-columns: 1fr; }
  .ab-doc { min-height: 0; padding: 20px 64px 20px 20px; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .ab-doc__ic { width: 44px; height: 44px; grid-row: 1 / span 2; }
  .ab-doc__t { margin-top: 0; font-size: 1.125rem; }
  .ab-doc__go { left: auto; right: 16px; bottom: auto; top: 50%; translate: 0 -50%; }
  .ab-req { padding: 6px 18px; }
  .ab-req > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .ab-end { padding: 28px 20px; border-radius: 22px; }
  .ab-end__actions { flex-direction: column; }
  .ab-btn { width: 100%; }
  .ab-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 400px) {
  .ab-hero__title { font-size: 1.875rem; }
  .ab-mission__title { font-size: 1.75rem; }
  .ab-doc__t { font-size: 1rem; hyphens: auto; overflow-wrap: break-word; }
  .ab-h2, .ab-pillar__t, .ab-side__tag { hyphens: auto; overflow-wrap: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-reveal { opacity: 1; transform: none; transition: none; }
  .ab-ring__fill { stroke-dashoffset: 0; }
  .ab-hero__charge i { background: var(--gold-light); }
  .ab-hero__charge b { opacity: 1; }
}
