/* ============================================================
   ОПТИМУС — страница «О компании»
   ab-hero, story, timeline, values, team, certs
   ============================================================ */

/* ---------- Hero (тёмный, с водой) ---------- */
.ab-hero { position: relative; min-height: 76vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--ink-d); }
.ab-hero #water-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.ab-hero .veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(3,11,15,.55) 0%, transparent 32%, transparent 48%, rgba(2,9,12,.86) 100%); }
.ab-hero .wrap { position: relative; z-index: 2; padding-top: clamp(140px,18vh,200px); padding-bottom: clamp(50px,7vw,86px); }
.ab-hero .eyebrow-row { color: var(--aqua-pale); margin-bottom: 24px; }
.ab-hero h1 { color: #fff; font-size: clamp(46px,8vw,128px); line-height: .98; }
.ab-hero h1 em { font-style: italic; color: var(--accent); }
.ab-hero .lead { color: rgba(255,255,255,.84); margin-top: 26px; max-width: 56ch; }

/* лента-метрики поверх низа hero */
.ab-hero-stats { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 40px; }
.ab-hero-stats .s .n { font-family: var(--font-display); font-size: clamp(34px,3.6vw,52px); line-height: 1; color: #fff; }
.ab-hero-stats .s .n em { color: var(--accent); font-style: normal; }
.ab-hero-stats .s .l { font-size: 13px; color: rgba(255,255,255,.66); margin-top: 7px; letter-spacing: .02em; }

/* ---------- История / миссия ---------- */
.ab-story { background: var(--paper); }
.ab-story .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.ab-story h2 { font-size: clamp(34px,4.5vw,68px); }
.ab-story .lead { margin-top: 22px; }
.ab-story p.body { margin-top: 18px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.ab-story .sign { margin-top: 30px; display: flex; align-items: center; gap: 16px; }
.ab-story .sign .av { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--aqua), var(--aqua-deep)); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-size: 24px; flex: none; }
.ab-story .sign .nm { font-weight: 800; font-size: 16px; color: var(--ink); }
.ab-story .sign .ro { font-size: 13.5px; color: var(--ink-dim); }
.ab-story-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-card); }
.ab-story-media .ph { position: absolute; inset: 0; }
.ab-story-media .tagline { position: absolute; left: 26px; bottom: 26px; right: 26px; z-index: 2; color: #fff; font-family: var(--font-display); font-size: 24px; line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,.4); }

/* ---------- Таймлайн истории ---------- */
.ab-timeline { background: var(--mist); overflow: hidden; }
.tl { margin-top: 64px; position: relative; }
.tl::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--aqua), var(--hair-2)); transform: translateX(-50%); }
.tl-row { position: relative; display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; margin-bottom: 30px; }
.tl-row:last-child { margin-bottom: 0; }
.tl-dot { grid-column: 2; justify-self: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--aqua); box-shadow: 0 0 0 6px var(--mist), 0 0 18px -2px var(--aqua); z-index: 1; }
.tl-card { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-md); padding: 26px 28px; box-shadow: var(--shadow-soft); transition: transform .5s var(--ease), box-shadow .5s; }
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tl-row:nth-child(odd) .tl-card { grid-column: 1; }
.tl-row:nth-child(even) .tl-card { grid-column: 3; }
.tl-card .yr { font-family: var(--font-display); font-size: 30px; color: var(--aqua-deep); line-height: 1; }
.tl-card h4 { font-family: var(--font-body); font-weight: 800; font-size: 18px; margin-top: 8px; color: var(--ink); }
.tl-card p { font-size: 14.5px; color: var(--ink-soft); margin-top: 9px; line-height: 1.55; }

/* ---------- Ценности ---------- */
.ab-values { background: var(--paper); }
.val-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.val-card { background: var(--mist); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 36px 32px; transition: transform .5s var(--ease), box-shadow .5s, background .4s; }
.val-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); background: #fff; }
.val-card .ic { width: 58px; height: 58px; border-radius: 15px; background: linear-gradient(150deg, rgba(22,188,212,.16), rgba(22,188,212,.06)); display: flex; align-items: center; justify-content: center; color: var(--aqua-deep); margin-bottom: 22px; }
.val-card .ic svg { width: 28px; height: 28px; }
.val-card h4 { font-family: var(--font-body); font-weight: 800; font-size: 20px; }
.val-card p { font-size: 15px; color: var(--ink-soft); margin-top: 11px; line-height: 1.55; }

/* ---------- Команда ---------- */
.ab-team { background: var(--mist); }
.team-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.team-card { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.team-card .photo { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.team-card .photo .ph { position: absolute; inset: 0; transition: transform 1s var(--ease-out); }
.team-card:hover .photo .ph { transform: scale(1.06); }
.team-card .photo::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(6,34,43,.5)); }
.team-card .body { padding: 22px 24px 26px; }
.team-card .nm { font-family: var(--font-display); font-size: 23px; color: var(--ink); }
.team-card .ro { font-size: 13.5px; color: var(--aqua-deep); margin-top: 5px; font-weight: 700; }
.team-card .ex { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Гарантии / сертификаты ---------- */
.ab-certs { background: var(--paper); }
.ab-certs .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.certs-copy h2 { font-size: clamp(32px,4vw,56px); }
.certs-copy .lead { margin-top: 20px; }
.certs-copy .guarantee-badges { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.certs-copy .gb { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--mist); border: 1px solid var(--hair); font-size: 14px; font-weight: 700; color: var(--ink); }
.certs-copy .gb svg { width: 18px; height: 18px; color: var(--aqua-deep); }
.certs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cert-card { background: var(--mist); border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; }
.cert-card .doc { position: relative; aspect-ratio: 3/4; overflow: hidden; background: linear-gradient(160deg, #f2f8fa, #e2eef1); display: flex; align-items: center; justify-content: center; }
.cert-card .doc svg { width: 54px; height: 54px; color: var(--aqua-deep); opacity: .6; }
.cert-card .doc .seal { position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--aqua), var(--aqua-deep)); box-shadow: 0 6px 16px -6px var(--aqua-deep); }
.cert-card .cap { padding: 16px 18px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cert-card .cap span { display: block; font-weight: 500; color: var(--ink-dim); font-size: 12.5px; margin-top: 3px; }

@media (max-width: 1080px) {
  .ab-story .wrap { grid-template-columns: 1fr; gap: 40px; }
  .ab-story-media { aspect-ratio: 16/10; max-height: 460px; }
  .val-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .ab-certs .wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .ab-hero-stats { gap: 18px 32px; }
  .tl::before { left: 18px; }
  .tl-row { grid-template-columns: 38px 1fr; }
  .tl-dot { grid-column: 1; justify-self: start; }
  .tl-row:nth-child(odd) .tl-card, .tl-row:nth-child(even) .tl-card { grid-column: 2; }
  .val-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .team-grid { grid-template-columns: 1fr; }
}
