/* About page — matches Zipline main site tokens */
:root {
  --color-text: #232323;
  --color-bg: #fcfbfb;
  --color-white: #ffffff;
  --color-accent: #2a84d3;
  --color-border: #e6e5e5;
  --font-heading: 'Inter', Arial, sans-serif;
  --font-body: 'Manrope', Arial, sans-serif;
  --radius-card: 13px;
  --radius-pill: 30px;
  --radius-btn: 50px;
  --container: 1200px;
  --gutter: 35px;
}

html:has(.about-page) {
  overflow-x: clip;
}

.about-page {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
}

.about-page *,
.about-page *::before,
.about-page *::after {
  box-sizing: border-box;
}

.about-page a:not(.about-btn) {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.about-page a.about-btn {
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.about-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.about-page main {
  width: 100%;
  overflow-x: clip;
}

/* Сетка как на главной: контейнер 1200px + боковые отступы */
.about-container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */
.about-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  padding: 20px 0;
  transition: background-color 0.4s cubic-bezier(0, 0, 0.8, 1), backdrop-filter 0.4s;
}

.about-header.is-scrolled {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.about-header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.about-header__logo {
  flex-shrink: 0;
}

.about-header__logo img {
  height: 60px;
  width: auto;
  max-width: 100%;
}

.about-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  min-width: 0;
  flex: 1 1 auto;
}

.about-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  color: #ffffff;
  padding: 4px 0;
  white-space: nowrap;
}

.about-nav a:hover,
.about-nav a.is-active {
  color: #bdbdbd;
}

.about-nav a.is-active {
  font-weight: 600;
}

.about-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.about-header__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border-radius: var(--radius-btn);
  padding: 12px 20px 12px 16px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--color-text);
  white-space: nowrap;
}

.about-header__phone img {
  width: 20px;
  flex-shrink: 0;
}

.about-header__social {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.about-header__social a {
  display: block;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.about-header__social img {
  width: 100%;
  height: 100%;
}

.about-burger {
  display: none;
  width: 76px;
  max-width: 76px;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.about-burger img {
  width: 100%;
}

/* Hero */
.about-hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  padding: 140px 0 80px;
  background: #121212 url('../img/bg_c5dc9d6b.jpg') center top / cover no-repeat;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.2) 100%);
}

.about-hero .about-container {
  position: relative;
  z-index: 1;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 0 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  font-size: 8px;
  font-weight: 600;
  color: #ffffff;
}

.about-hero h1 {
  margin: 0 0 20px;
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: clamp(26px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #ffffff;
  overflow-wrap: break-word;
}

.about-hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.about-hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: clamp(13px, 2vw, 20px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.about-section {
  width: 100%;
  padding: 80px 0;
}

.about-section--rounded {
  margin-top: -20px;
  padding-top: 100px;
  background: var(--color-bg);
  border-radius: 20px 20px 0 0;
}

.about-section--cta {
  padding-top: 0;
  padding-bottom: 80px;
}

.about-section__head {
  margin-bottom: 48px;
  max-width: 640px;
}

.about-section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about-section h2 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;
  overflow-wrap: break-word;
}

.about-section h2 em {
  font-style: italic;
  font-weight: 400;
}

.about-section__text {
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  width: 100%;
}

.about-intro__content {
  min-width: 0;
}

.about-intro__content p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
}

.about-intro__content p:last-child {
  margin-bottom: 0;
}

.about-intro__image {
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 360px;
}

.about-intro__image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.about-stat {
  min-width: 0;
  container-type: inline-size;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px 20px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-stat__value {
  font-family: var(--font-heading);
  font-size: clamp(36px, 26cqi, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--color-accent);
  white-space: nowrap;
}

.about-stat__label {
  font-family: var(--font-heading);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1px;
}

.about-stat__hint {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--color-text);
  opacity: 0.85;
}

/* Gallery */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.about-gallery__item {
  grid-column: span 4;
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-white);
  aspect-ratio: 4 / 3;
}

.about-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-gallery__item--wide {
  grid-column: span 8;
}

/* CTA */
.about-cta {
  width: 100%;
  padding: 48px;
  background: var(--color-accent);
  border-radius: 12px;
  color: #ffffff;
}

.about-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.about-cta h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -1px;
  color: #ffffff;
}

.about-cta p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  max-width: 100%;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -1px;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
  max-width: 100%;
  text-align: center;
}

.about-cta a.about-btn--white {
  background-color: var(--color-white);
  color: var(--color-text);
}

.about-cta a.about-btn--white:hover {
  color: var(--color-accent);
}

/* Footer */
.about-footer {
  width: 100%;
  padding: 40px 0 60px;
  border-top: 1px solid var(--color-border);
}

.about-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.about-footer__copy {
  margin: 0;
  font-size: 12px;
  opacity: 0.7;
}

.about-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.about-footer__links a {
  font-size: 14px;
}

.about-footer__links a:hover {
  color: var(--color-accent);
}

/* Mobile menu */
.about-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.about-mobile-nav.is-open {
  pointer-events: auto;
}

.about-mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.about-mobile-nav.is-open .about-mobile-nav__overlay {
  opacity: 1;
}

.about-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 100%);
  height: 100%;
  background: #fcfbfb;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
}

.about-mobile-nav.is-open .about-mobile-nav__panel {
  transform: translateX(0);
}

.about-mobile-nav__close {
  display: block;
  margin-left: auto;
  margin-bottom: 24px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.about-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-mobile-nav li {
  margin-bottom: 16px;
}

.about-mobile-nav a {
  font-size: 20px;
  color: var(--color-text);
}

@media (max-width: 1199px) {
  :root {
    --gutter: 20px;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-gallery__item {
    grid-column: span 6;
  }

  .about-gallery__item--wide {
    grid-column: span 12;
  }
}

@media (max-width: 1024px) {
  .about-nav,
  .about-header__phone span,
  .about-header__social {
    display: none;
  }

  .about-burger {
    display: block;
  }

  .about-mobile-nav {
    display: block;
  }
}

@media (max-width: 959px) {
  .about-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .about-intro__image {
    min-height: 280px;
  }

  .about-intro__image img {
    min-height: 280px;
  }

  .about-header__phone {
    padding: 10px 14px;
  }

  .about-cta {
    padding: 32px 24px;
  }
}

@media (max-width: 639px) {
  :root {
    --gutter: 16px;
  }

  .about-hero {
    min-height: 360px;
    padding: 120px 0 60px;
  }

  .about-section {
    padding: 60px 0;
  }

  .about-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-stat {
    min-height: 160px;
  }

  .about-gallery__item,
  .about-gallery__item--wide {
    grid-column: span 12;
  }

  .about-header__logo img {
    height: 48px;
  }

  .about-header__actions {
    gap: 8px;
  }

  .about-btn {
    width: 100%;
  }

  .about-cta__inner {
    flex-direction: column;
    align-items: stretch;
  }
}
