/* ================================================================
   СТРАНИЦА «О НАС»

   Отдельная страница вместо модального окна: история бренда требует
   воздуха, крупных фото и прокрутки. Палитра та же, что на сайте:
   тёмный фон, оранжевый акцент, Unbounded в заголовках.

   Раскладка нарочно неровная: фотографии стоят под углом и с разным
   смещением, как разложенные на столе. На узком экране всё выпрямляется
   и идёт в одну колонку.
   ================================================================ */

.about-page {
  background: #0b0b0b;
}

.about-main { overflow: hidden; }

/* ------------------------------- герой -------------------------- */

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 40px;
  min-height: min(88vh, 900px);
  padding: 120px 7vw 90px;
  perspective: 1200px;
  isolation: isolate;
}

.about-hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(760px, 70vw);
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 59, 24, .34), transparent 58%),
    radial-gradient(circle at 70% 60%, rgba(255, 120, 60, .18), transparent 60%);
  filter: blur(20px);
  animation: aboutGlow 16s ease-in-out infinite alternate;
}

@keyframes aboutGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6%, 4%, 0) scale(1.12); }
}

.about-hero-copy { max-width: 780px; }

.about-hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(36px, 6.2vw, 82px);
  line-height: 1;
  letter-spacing: clamp(-3px, -.4vw, -1.6px);
  color: #f4f4f0;
}
.about-hero h1 i { font-style: normal; color: #ff3b18; }

/* Карточка-полароид: фото под углом, подпись снизу. */
.about-hero-card,
.about-photo {
  position: relative;
  margin: 0;
  padding: 12px 12px 14px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  transform: rotate(var(--r, -4deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--py, 0px), 0) scale(var(--sc, 1));
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1),
              border-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}

.about-hero-card img,
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: #0f0f0f;
}

.about-hero-card figcaption,
.about-photo figcaption {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #85857f;
  letter-spacing: .2px;
}

.about-hero-card {
  justify-self: end;
  width: min(420px, 100%);
  --r: 3.5deg;
  animation: aboutFloat 9s ease-in-out infinite;
}
.about-hero-card:hover { border-color: rgba(255, 74, 42, .45); }

/* Плавание — отдельным свойством translate, чтобы не спорить
   с transform: rotate(...) и наклоном от курсора. */
@keyframes aboutFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* ---------------------------- бегущая строка -------------------- */

.about-marquee { border-color: #242424; }

/* ----------------------------- вступление ----------------------- */

.about-intro {
  padding: 100px 7vw 30px;
  max-width: 1180px;
  margin: 0 auto;
}

.about-intro-lead {
  max-width: 900px;
  margin: 18px 0 46px;
  font-family: var(--frz-display);
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.8px;
  color: #e7e7e1;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
}

.about-stat {
  padding: 20px 22px 22px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.about-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 74, 42, .4);
  background: rgba(255, 255, 255, .05);
}

.about-stat dd {
  margin: 0 0 6px;
  font-family: var(--frz-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -2px;
  color: #ff4a2a;
  font-variant-numeric: tabular-nums;
}
.about-stat dt {
  font-size: 11.5px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #8a8a84;
}

/* ------------------------------ главы --------------------------- */

.about-chapters {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 7vw 40px;
}

.about-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 6vw, 90px);
  padding: 60px 0;
  perspective: 1200px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.about-chapter:first-child { border-top: 0; }

.about-chapter--reverse .about-chapter-copy { order: 2; }
.about-chapter--reverse .about-photo { order: 1; justify-self: start; }

.about-chapter-num {
  margin: 0 0 14px;
  font-family: var(--frz-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff4a2a;
}

.about-chapter h2 {
  margin: 0 0 18px;
  max-width: 620px;
  font-size: clamp(28px, 3.9vw, 50px);
  line-height: 1.02;
  letter-spacing: -1.6px;
  color: #f4f4f0;
}

.about-chapter-copy p {
  max-width: 560px;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: #9d9d97;
}
.about-chapter-copy p:last-child { margin-bottom: 0; }

/* Фотографии — не в ряд, а «разбросаны»: у каждой свой угол, сдвиг
   и задержка плавания. Небольшой случайный дополнительный поворот
   добавляет about-page.js. */
.about-photo {
  width: min(360px, 100%);
  justify-self: end;
}
.about-photo--a { --r: -5.5deg; translate: 0 10px; animation: aboutFloat 11s ease-in-out infinite; }
.about-photo--b { --r: 4.5deg; translate: -14px -6px; animation: aboutFloat 9.5s ease-in-out .8s infinite; }
.about-photo--c { --r: -3deg; translate: 18px 14px; animation: aboutFloat 12s ease-in-out .4s infinite; }
.about-photo--d { --r: 6deg; translate: -10px -12px; animation: aboutFloat 10.5s ease-in-out 1.2s infinite; }

.about-photo:hover,
.about-hero-card:hover {
  --sc: 1.03;
  border-color: rgba(255, 74, 42, .4);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .65);
}

/* ---------------------------- таймлайн -------------------------- */

.about-timeline {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 7vw;
}

.about-timeline-head h2 {
  margin: 14px 0 34px;
  font-size: clamp(28px, 3.9vw, 50px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  color: #f4f4f0;
}

.about-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.about-years button {
  position: relative;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: transparent;
  font-family: var(--frz-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #777772;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease,
              transform .2s ease;
}
.about-years button:hover {
  color: #f4f4f0;
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-2px);
}
.about-years button[aria-selected="true"] {
  color: #0b0f14;
  background: #ff4a2a;
  border-color: #ff4a2a;
}

.about-timeline-panel {
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0, rgba(255, 59, 24, .1), transparent 55%),
    rgba(255, 255, 255, .025);
  animation: aboutPanel .4s cubic-bezier(.2, .8, .2, 1);
}
.about-timeline-panel[hidden] { display: none; }

@keyframes aboutPanel {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.about-timeline-tag {
  margin: 0 0 8px;
  font-family: var(--frz-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff4a2a;
}

.about-timeline-panel h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.8px;
  color: #f4f4f0;
}

.about-timeline-panel p:last-child {
  max-width: 720px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #9d9d97;
}

/* ---------------------------- принципы -------------------------- */

.about-principles {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 7vw 90px;
}

.about-principles-head h2 {
  margin: 14px 0 34px;
  font-size: clamp(28px, 3.9vw, 50px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  color: #f4f4f0;
}

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

.about-card {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: rgba(255, 255, 255, .025);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1),
              border-color .3s ease, background .3s ease;
}
.about-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 24, .22), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
}
.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 74, 42, .4);
  background: rgba(255, 255, 255, .05);
}
.about-card:hover::after { opacity: 1; }

.about-card-num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--frz-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff4a2a;
}

.about-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -.5px;
  color: #f4f4f0;
}

.about-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: #97978f;
}

/* ------------------------------ финал --------------------------- */

.about-outro {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 7vw 140px;
  text-align: center;
}

.about-outro-mark {
  margin: 0;
  font-family: var(--frz-display);
  font-size: 76px;
  line-height: .6;
  color: #ff3b18;
  opacity: .8;
}

.about-outro blockquote {
  margin: 18px 0 16px;
  font-family: var(--frz-display);
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -1.2px;
  color: #f4f4f0;
}

.about-outro-sign {
  margin: 0 0 30px;
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #777772;
}

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

/* --------------------------- адаптив ---------------------------- */

@media (max-width: 960px) {
  .about-hero {
    grid-template-columns: 1fr;
    padding: 96px 6vw 70px;
    gap: 34px;
  }
  .about-hero-card {
    justify-self: start;
    width: min(340px, 84%);
    --r: 2deg;
  }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-chapter {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0;
  }
  .about-chapter--reverse .about-chapter-copy,
  .about-chapter--reverse .about-photo { order: initial; }
  .about-photo { justify-self: start; width: min(320px, 78%); }
  .about-cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .about-hero { padding: 84px 22px 56px; }
  .about-hero h1 { letter-spacing: -1.6px; }
  .about-intro { padding: 64px 22px 20px; }
  .about-chapters { padding: 40px 22px 20px; }
  .about-timeline { padding: 64px 22px; }
  .about-principles { padding: 20px 22px 64px; }
  .about-outro { padding: 24px 22px 100px; }
  .about-stats { grid-template-columns: 1fr; }
  .about-years button { padding: 9px 14px; font-size: 13px; }
  .about-timeline-panel { padding: 20px 18px; }
  .about-photo { width: min(300px, 86%); }
}

/* Уважаем настройку «меньше движения»: без плавания, свечения
   и покачивания карточек. */
@media (prefers-reduced-motion: reduce) {
  .about-hero-glow,
  .about-hero-card,
  .about-photo,
  .about-timeline-panel { animation: none !important; }
  .about-photo,
  .about-hero-card,
  .about-card,
  .about-stat { transition: none; }
}

/* Подсказка «листай историю» на этой странице лишняя: сразу под героем
   идёт бегущая строка, и стрелка спорит с карточкой за место. */
.about-page .scroll-hint { display: none; }
