/* Module — О нас. Builds on styleguide.css. */

.about-wrap { background: var(--snow); }

/* ===================== HERO ===================== */
.ab-hero {
  background: var(--midnight);
  color: var(--snow);
  position: relative;
  overflow: hidden;
}
.ab-hero::after {
  content: ""; position: absolute;
  width: 760px; height: 760px;
  left: -260px; top: -320px;
  background: radial-gradient(circle, rgba(0,200,150,0.20) 0%, rgba(0,200,150,0) 70%);
  pointer-events: none;
}
.ab-hero-inner {
  width: var(--container); max-width: var(--container);
  margin: 0 auto; padding: 84px 24px 88px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 2;
}
.ab-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter'; font-weight: 600; font-size: 13px;
  color: var(--voltage); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.ab-hero-eyebrow svg { stroke: var(--voltage); }
.ab-hero h1 {
  font-family: 'Manrope'; font-weight: 800; font-size: 56px; line-height: 1.06;
  letter-spacing: -0.03em; color: var(--snow); margin: 0; max-width: 560px;
}
.ab-hero h1 em { color: var(--voltage); font-style: normal; }
.ab-hero-lead {
  font-family: 'Inter'; font-size: 19px; line-height: 30px;
  color: rgba(233,240,244,0.82); margin: 24px 0 36px; max-width: 520px; text-wrap: pretty;
}
.ab-hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.ab-hero-stat .n {
  font-family: 'Manrope'; font-weight: 800; font-size: 40px; line-height: 1;
  color: var(--snow); letter-spacing: -0.03em; font-feature-settings: 'tnum' 1;
}
.ab-hero-stat .n span { color: var(--voltage); }
.ab-hero-stat .c { font-size: 13px; color: rgba(233,240,244,0.6); margin-top: 8px; }

/* Photo collage — different angles */
.ab-collage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 168px 168px 168px;
  gap: 14px;
  position: relative;
}
.ab-collage .c-tall { grid-row: span 2; }
.ab-collage .c-wide { grid-column: span 1; }
.ab-collage-tag {
  position: absolute; right: -8px; bottom: -22px;
  background: var(--voltage); color: var(--midnight);
  font-family: 'Manrope'; font-weight: 700; font-size: 13px;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,200,150,0.35);
  display: inline-flex; align-items: center; gap: 8px;
}

/* ===================== UTP MANIFESTO ===================== */
.ab-utp { padding: 96px 0; }
.ab-utp-head { max-width: 920px; }
.ab-utp-head .kicker {
  font-family: 'Inter'; font-weight: 600; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--voltage); margin-bottom: 18px;
}
.ab-utp-head h2 {
  font-family: 'Manrope'; font-weight: 700; font-size: 46px; line-height: 1.12;
  letter-spacing: -0.025em; color: var(--midnight); margin: 0; text-wrap: balance;
}
.ab-utp-head h2 mark { background: none; color: var(--voltage); }
.ab-utp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px;
}
.ab-utp-card {
  background: var(--snow); border: 1px solid var(--stone); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ab-utp-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.ab-utp-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--mint); color: #00876C;
  display: flex; align-items: center; justify-content: center;
}
.ab-utp-card h3 { font-family: 'Manrope'; font-weight: 700; font-size: 20px; color: var(--midnight); margin: 0; letter-spacing: -0.01em; }
.ab-utp-card p { font-size: 15px; line-height: 23px; color: var(--grey); margin: 0; }
.ab-utp-card .accent { font-family: 'Manrope'; font-weight: 700; color: var(--midnight); }

/* ===================== FOUNDER ===================== */
.ab-founder { background: var(--mist); padding: 96px 0; }
.ab-founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.ab-founder-photo { position: relative; }
.ab-founder-badge {
  position: absolute; left: -20px; bottom: 28px;
  background: var(--snow); border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
}
.ab-founder-badge .yr { font-family: 'Manrope'; font-weight: 800; font-size: 34px; color: var(--voltage); line-height: 1; }
.ab-founder-badge .lbl { font-size: 13px; line-height: 18px; color: var(--grey); }
.ab-founder-letter .kicker {
  font-family: 'Inter'; font-weight: 600; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--voltage); margin-bottom: 16px;
}
.ab-founder-letter h2 {
  font-family: 'Manrope'; font-weight: 700; font-size: 38px; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--midnight); margin: 0 0 24px; text-wrap: balance;
}
.ab-founder-letter p { font-size: 17px; line-height: 28px; color: var(--graphite); margin: 0 0 18px; max-width: 600px; }
.ab-founder-letter p.q { font-size: 20px; line-height: 30px; color: var(--midnight); font-family: 'Manrope'; font-weight: 600; }
.ab-sign { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.ab-sign-name { font-family: 'Manrope'; font-weight: 700; font-size: 17px; color: var(--midnight); }
.ab-sign-role { font-size: 14px; color: var(--grey); }
.ab-sign-mark {
  font-family: 'Manrope'; font-weight: 800; font-size: 26px; color: var(--midnight);
  letter-spacing: -0.02em; padding-right: 18px; border-right: 1px solid var(--stone);
  font-style: italic;
}

/* ===================== GALLERY ===================== */
.ab-gallery { padding: 96px 0; }
.ab-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-top: 48px;
}
.ab-g-2w { grid-column: span 2; }
.ab-g-2h { grid-row: span 2; }
.ab-g-cap {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 13px; color: var(--grey);
}
.ab-g-item { display: flex; flex-direction: column; }
.ab-g-item.ab-g-2w { grid-column: span 2; }
.ab-g-item.ab-g-2h { grid-row: span 2; }

/* ===================== OFFICES + MAP ===================== */
.ab-offices { background: var(--midnight); padding: 96px 0; color: var(--snow); }
.ab-offices .sec-h2 { color: var(--snow); }
.ab-offices .sec-sub { color: rgba(255,255,255,0.7); }

.ab-map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 12% 30%, rgba(0,200,150,0.10) 0%, rgba(0,200,150,0) 45%),
    radial-gradient(120% 140% at 88% 70%, rgba(0,200,150,0.10) 0%, rgba(0,200,150,0) 45%),
    #0B2030;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  margin-top: 48px;
}
.ab-map { display: block; width: 100%; height: auto; }
.ab-map .dotgrid { fill: rgba(255,255,255,0.07); }
.ab-map .route {
  fill: none; stroke: var(--voltage); stroke-width: 2.5;
  stroke-dasharray: 3 9; stroke-linecap: round;
  opacity: 0.85;
  animation: ab-dash 2.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .ab-map .route { animation: none; } }
@keyframes ab-dash { to { stroke-dashoffset: -120; } }
.ab-map .hub { fill: rgba(255,255,255,0.55); }
.ab-map .hub-label { fill: rgba(255,255,255,0.55); font-family: 'Inter'; font-size: 13px; font-weight: 500; }
.ab-map .hq-ring { fill: rgba(0,200,150,0.16); animation: ab-pulse 2.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@media (prefers-reduced-motion: reduce) { .ab-map .hq-ring { animation: none; } }
@keyframes ab-pulse { 0%,100% { opacity: 0.7; } 50% { opacity: 0.25; } }
.ab-map .hq-dot { fill: var(--voltage); }
.ab-map .hq-name { fill: var(--snow); font-family: 'Manrope'; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.ab-map .hq-sub { fill: var(--voltage); font-family: 'Inter'; font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.ab-map-legend {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  margin-top: 20px;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.ab-map-legend .lg { display: inline-flex; align-items: center; gap: 8px; }
.ab-map-legend .d-hq { width: 10px; height: 10px; border-radius: 50%; background: var(--voltage); box-shadow: 0 0 0 4px rgba(0,200,150,0.2); }
.ab-map-legend .d-hub { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.ab-map-legend .d-route { width: 22px; height: 0; border-top: 2.5px dashed var(--voltage); }

.ab-office-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.ab-office-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid; grid-template-columns: 200px 1fr;
}
.ab-office-body { padding: 28px; }
.ab-office-flag { font-size: 26px; line-height: 1; }
.ab-office-card h3 { font-family: 'Manrope'; font-weight: 700; font-size: 24px; color: var(--snow); margin: 14px 0 4px; letter-spacing: -0.015em; }
.ab-office-card .role { font-family: 'Inter'; font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--voltage); }
.ab-office-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.ab-office-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; color: rgba(255,255,255,0.8); }
.ab-office-row svg { color: var(--voltage); flex-shrink: 0; margin-top: 1px; }

/* ===================== REVIEWS WITH PHOTOS ===================== */
.ab-reviews { padding: 96px 0; }
.ab-rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.ab-rev-card {
  border: 1px solid var(--stone); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--snow); display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ab-rev-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.ab-rev-photo { position: relative; }
.ab-rev-photo .badge { position: absolute; left: 14px; top: 14px; }
.ab-rev-body { padding: 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.ab-rev-stars { display: flex; gap: 2px; color: var(--caution); }
.ab-rev-text { font-size: 15px; line-height: 23px; color: var(--graphite); }
.ab-rev-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--stone); margin-top: auto; }
.ab-rev-name { font-family: 'Manrope'; font-weight: 600; font-size: 15px; color: var(--midnight); }
.ab-rev-bought { font-size: 12px; color: var(--grey-light); margin-top: 2px; }
.ab-rev-verify {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--success); margin-left: auto;
}

/* ===================== FINAL CTA (reuse from homepage vocabulary) ===================== */
.ab-final {
  background: var(--midnight); position: relative; overflow: hidden;
  padding: 120px 0; text-align: center; color: var(--snow);
}
.ab-final::after {
  content: ""; position: absolute; width: 720px; height: 720px;
  right: -240px; bottom: -240px;
  background: radial-gradient(circle, rgba(0,200,150,0.25) 0%, rgba(0,200,150,0) 70%);
  pointer-events: none;
}
.ab-final-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.ab-final h2 { font-family: 'Manrope'; font-weight: 700; font-size: 52px; line-height: 1.1; letter-spacing: -0.025em; color: var(--snow); margin: 0; }
.ab-final p { font-size: 19px; line-height: 30px; color: rgba(255,255,255,0.85); margin: 22px 0 38px; }
.ab-final-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ======================================================================
   RESPONSIVE — scoped to .about-wrap so shared modules stay fixed-width
   ====================================================================== */

/* Make the fixed 1280 containers fluid below desktop */
.about-wrap .sec,
.about-wrap .trust-grid { width: min(1280px, 100%); }
.about-wrap .ab-hero-inner { width: min(1280px, 100%); }

/* ---------- Tablet ≤ 1024px ---------- */
@media (max-width: 1024px) {
  .about-wrap .ab-hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 60px 24px 64px; }
  .about-wrap .ab-hero h1 { font-size: 46px; }
  .about-wrap .ab-collage { max-width: 620px; grid-template-rows: 156px 156px 156px; }

  .about-wrap .ab-utp { padding: 72px 0; }
  .about-wrap .ab-utp-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap .ab-utp-head h2 { font-size: 36px; }

  .about-wrap .ab-founder { padding: 72px 0; }
  .about-wrap .ab-founder-grid { grid-template-columns: 1fr; gap: 44px; max-width: 720px; }

  .about-wrap .ab-gallery { padding: 72px 0; }
  .about-wrap .ab-office-cards { grid-template-columns: 1fr; }
  .about-wrap .ab-rev-grid { grid-template-columns: 1fr; max-width: 560px; }

  .about-wrap .sec-h2 { font-size: 36px; line-height: 1.15; }
}

/* ---------- Phone ≤ 640px ---------- */
@media (max-width: 640px) {
  /* Header: drop nav + phone, keep logo + compact CTA */
  .about-wrap .site-header { height: 60px; padding: 0 16px; gap: 12px; }
  .about-wrap .site-nav { display: none; }
  .about-wrap .site-header .phone { display: none; }
  .about-wrap .site-header .right { gap: 10px; }
  .about-wrap .site-header .right .btn { height: 40px; padding: 0 14px; font-size: 13px; }
  .about-wrap .site-header .tg-btn { width: 36px; height: 36px; }

  /* Hero */
  .about-wrap .ab-hero-inner { padding: 40px 16px 48px; gap: 36px; }
  .about-wrap .ab-hero h1 { font-size: 31px; line-height: 1.1; }
  .about-wrap .ab-hero-lead { font-size: 16px; line-height: 25px; margin: 20px 0 30px; }
  .about-wrap .ab-hero-stats { gap: 22px; }
  .about-wrap .ab-hero-stat .n { font-size: 28px; }
  .about-wrap .ab-collage {
    max-width: none;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 124px 124px;
  }
  .about-wrap .ab-collage .c-tall { grid-row: span 1; }
  .about-wrap .ab-collage-tag { right: 0; bottom: -16px; font-size: 11px; padding: 8px 12px; }

  /* УТП */
  .about-wrap .ab-utp { padding: 56px 0; }
  .about-wrap .ab-utp-head h2 { font-size: 26px; }
  .about-wrap .ab-utp-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .about-wrap .ab-utp-card { padding: 24px; }

  /* Stats strip */
  .about-wrap .trust-strip { padding: 40px 0; }
  .about-wrap .trust-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .about-wrap .trust-num { font-size: 36px; }

  /* Founder */
  .about-wrap .ab-founder { padding: 56px 0; }
  .about-wrap .ab-founder-badge { left: 0; bottom: 16px; padding: 14px 16px; }
  .about-wrap .ab-founder-badge .yr { font-size: 28px; }
  .about-wrap .ab-founder-letter h2 { font-size: 25px; }
  .about-wrap .ab-founder-letter p { font-size: 16px; line-height: 25px; }
  .about-wrap .ab-founder-letter p.q { font-size: 18px; line-height: 27px; }

  /* Gallery — 2-up; full-width spanning items become single column */
  .about-wrap .ab-gallery { padding: 56px 0; }
  .about-wrap .ab-gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 12px; }
  .about-wrap .ab-g-cap { font-size: 12px; margin-top: 10px; }

  /* Section heads */
  .about-wrap .sec-h2 { font-size: 27px; }
  .about-wrap .sec-sub { font-size: 16px; line-height: 25px; }
  .about-wrap .sec-head { margin-bottom: 32px; }

  /* Offices + map (scrollable so labels stay legible) */
  .about-wrap .ab-offices { padding: 56px 0; }
  .about-wrap .ab-map-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .about-wrap .ab-map { min-width: 700px; }
  .about-wrap .ab-office-card { grid-template-columns: 1fr; }
  .about-wrap .ab-office-body { padding: 24px; }

  /* Reviews */
  .about-wrap .ab-reviews { padding: 56px 0; }

  /* Final CTA */
  .about-wrap .ab-final { padding: 72px 0; }
  .about-wrap .ab-final h2 { font-size: 30px; }
  .about-wrap .ab-final p { font-size: 16px; line-height: 26px; margin: 18px 0 30px; }
  .about-wrap .ab-final-buttons { flex-direction: column; }
  .about-wrap .ab-final-buttons .btn { width: 100%; }

  /* Footer */
  .about-wrap .site-footer { padding: 48px 16px 28px; }
  .about-wrap .site-footer .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .about-wrap .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===== Замена image-slot → .ab-photo ===== */
.ab-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(15,42,61,0.04), rgba(15,42,61,0.0)),
    repeating-linear-gradient(135deg, #DCE3E8 0 14px, #E5EBEF 14px 28px);
}
.ab-collage .ab-photo { width: 100%; height: 100%; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.ab-founder-photo .ab-photo { width: 100%; height: 540px; box-shadow: 0 30px 70px rgba(15,42,61,0.22); }
.ab-gallery-grid .ab-photo { width: 100%; height: 100%; }
.ab-office-card .ab-photo { width: 200px; height: 100%; min-height: 240px; border-radius: 0; }
.ab-rev-photo .ab-photo { width: 100%; height: 220px; border-radius: 0; }
.ab-rev-author .ab-photo { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }

@media (max-width: 1024px) {
  .about-wrap .ab-founder-photo .ab-photo { height: 480px; }
}
@media (max-width: 640px) {
  .about-wrap .ab-founder-photo .ab-photo { height: 380px; }
  .about-wrap .ab-office-card .ab-photo { width: 100%; height: 200px; min-height: 0; }
}

/* Mint утилитарный цвет (используется для иконок UTP) */
.ab-utp-ico { background: #E6F7F1 !important; color: #00876C !important; }
