/* About page bundle: only selectors used by about.html */

:root {
  --shadow-xs: 0 10px 18px -18px rgba(85, 52, 27, 0.34), 0 2px 8px -7px rgba(208, 93, 38, 0.18);
  --shadow-sm: 0 14px 24px -20px rgba(85, 52, 27, 0.36), 0 4px 10px -8px rgba(208, 93, 38, 0.2);
  --shadow-md: 0 20px 32px -22px rgba(85, 52, 27, 0.42), 0 8px 14px -10px rgba(208, 93, 38, 0.22);
  --shadow-lg: 0 24px 36px -20px rgba(85, 52, 27, 0.48), 0 12px 20px -12px rgba(208, 93, 38, 0.28);
  --shadow-xl: 0 30px 44px -20px rgba(85, 52, 27, 0.54), 0 16px 24px -12px rgba(208, 93, 38, 0.3);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.section__header {
  max-width: 760px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.section__title {
  margin-bottom: var(--space-md);
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__subtitle {
  color: var(--color-text-light);
  font-size: 1.08rem;
  line-height: 1.62;
}

.section-badge,
.cta--home .cta-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 1102;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: #fff;
}

body.about-page .page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: var(--space-3xl);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.page-hero__title {
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.page-hero__subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: 1.12rem;
  line-height: 1.72;
}

body.about-page .story {
  position: relative;
  overflow: visible;
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    'content visual'
    'stats visual';
  align-items: start;
  column-gap: var(--space-2xl);
  row-gap: var(--space-lg);
}

.story__content {
  grid-area: content;
}

.story__visual {
  grid-area: visual;
  position: relative;
}

.story__stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(229, 229, 229, 0.75);
}

.story__text {
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
  font-size: 1.06rem;
  line-height: 1.74;
}

.story__image-placeholder {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.story__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-stat {
  text-align: left;
}

.story-stat__number {
  display: block;
  color: var(--color-primary);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.story-stat__label {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-text-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.about-page .values {
  position: relative;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

.value-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--color-accent-light);
  background: rgba(254, 254, 254, 0.9);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(235, 146, 56, 0.06), rgba(208, 93, 38, 0.03));
}

.value-card::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 68px;
  height: 3px;
  border-radius: 0 0 999px 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(235, 146, 56, 0.35);
  background: linear-gradient(135deg, rgba(235, 146, 56, 0.16), rgba(208, 93, 38, 0.12));
  color: var(--color-primary);
}

.value-card__icon svg {
  width: 23px;
  height: 23px;
  display: block;
  stroke: currentColor;
}

.value-card__title {
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.value-card__description {
  position: relative;
  z-index: 1;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.62;
}

.cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  position: relative;
  overflow: hidden;
}

.cta--home .cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta--home .cta-badge {
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: none;
  letter-spacing: 0;
}

.cta__title {
  color: white;
  margin-bottom: var(--space-md);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cta__description {
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.cta__actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  transition: all var(--transition-base);
}

.btn--large {
  min-height: 56px;
  padding: 0.95rem 2.25rem;
  border-radius: var(--radius-full);
}

.cta--home .btn--primary {
  background: white;
  color: var(--color-primary);
  border: 1px solid white;
  border-radius: var(--radius-full);
  padding: 0.95rem 2.25rem;
}

.cta--home .btn--primary:hover,
.cta--home .btn--primary:focus {
  background: transparent;
  color: white;
}

.cta__trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta__trust span::before {
  content: '✓';
  color: var(--color-accent-light);
  font-weight: 700;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(235, 146, 56, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(235, 146, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(235, 146, 56, 0); }
}

.pulse {
  animation: pulse 2s infinite;
}

@media (max-width: 1024px) {
  .story__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'content'
      'visual'
      'stats';
  }

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

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

@media (max-width: 768px) {
  .story {
    margin-top: 30px;
  }

  body.about-page .page-hero {
    padding-top: calc(max(80px, env(safe-area-inset-top) + 66px));
    padding-bottom: 20px;
  }

  .page-hero__title {
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .page-hero__subtitle {
    max-width: none;
    padding: 0 4px;
    font-size: 1rem;
  }

  .story.section {
    padding: 0 0 40px;
  }

  .story__grid {
    gap: 0;
  }

  .story__text {
    margin-bottom: 18px;
    font-size: 0.98rem;
  }

  .story__visual {
    margin-top: 24px;
  }

  .story__image-placeholder {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
  }

  .story__stats {
    margin: 12px 0;
    padding-top: 24px;
    gap: 16px;
  }

  .story-stat__number {
    font-size: 2rem;
  }

  .story-stat__label {
    margin-top: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .value-card {
    display: block;
    padding: 18px 16px 18px 82px;
    min-height: 96px;
    border-radius: var(--radius-lg);
  }

  .value-card::after {
    display: none;
  }

  .value-card:hover {
    transform: none;
  }

  .value-card__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    border-radius: 14px;
    padding: 9px;
  }

  .value-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .value-card__title {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .value-card__description {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .cta__title {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .cta__description {
    font-size: 1rem;
    margin-bottom: var(--space-xl);
  }

  .cta__actions {
    flex-direction: column;;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .cta__trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: center;
    gap: 0.55rem 1rem;
    font-size: 1rem;
  }

  .cta__trust span {
    justify-self: center;
    line-height: 1.15;
    white-space: nowrap;
  }

  .cta__trust span:first-child {
    grid-column: 1 / -1;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .header,
  .footer,
  .cta {
    display: none;
  }

  .section {
    break-inside: avoid;
    padding: 2rem 0;
  }

  .page-hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
