/* ============================================================
   WERWOLF — О компании (page.o-kompanii)
   Page-specific styles. Loaded after all base theme CSS.
   Tokens: var(--bg-*), var(--text-*), var(--accent*), var(--border*), var(--radius-*)
   ============================================================ */

/* ── Breadcrumb ── */

.ww-acc-trigger {
  background: none !important;
  color: var(--text-primary) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 28px 0 !important;
  font-weight: 400 !important;
  font-size: inherit !important;
  font-family: inherit !important;
}
.ww-acc-trigger:hover {
  background: none !important;
}
.ww-about-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted);
}
.ww-about-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ww-about-breadcrumb a:hover { color: var(--accent); }
.ww-about-breadcrumb-sep { opacity: 0.35; }
.ww-about-breadcrumb-current { color: var(--text-secondary); }

/* ── Hero ── */
.ww-about-hero {
  position: relative;
  border-radius: var(--radius-xl);
  height: var(--about-hero-height, 480px);
  overflow: hidden;
  margin-bottom: var(--gap);
}

.ww-about-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.ww-about-hero:hover .ww-about-hero-img { transform: scale(1.07); }

.ww-about-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(10,10,11,0.92) 0%,
      rgba(10,10,11,0.54) 55%,
      rgba(10,10,11,0.08) 100%),
    linear-gradient(to top,
      rgba(10,10,11,0.72) 0%,
      transparent 60%);
  z-index: 1;
}

.ww-about-hero-glow {
  position: absolute;
  top: -100px;
  right: -60px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,145,42,0.10) 0%, transparent 68%);
  pointer-events: none;
  z-index: 2;
}

.ww-about-hero-content {
  position: absolute;
  top: 64px;
  left: 64px;
  right: 35%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ww-about-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,145,42,0.10);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-logo);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  width: fit-content;
  white-space: nowrap; /* запрет переноса на мобильном */
  margin-bottom: 4px;
}

.ww-about-hero-content h1 {
  font-family: var(--font-logo);
  font-size: 72px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.0;
  letter-spacing: -0.04em;
  max-width: 860px;
}

.ww-about-hero-content .ww-about-hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.55;
  font-weight: 400;
}

.ww-about-hero-badges {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* ── Stats row ── */
.ww-about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: 120px;
}

.ww-stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.2,0.8,0.2,1);
  position: relative;
  overflow: hidden;
}

.ww-stat-card:hover {
  background: var(--bg-tertiary);
  border-color: rgba(255,255,255,0.09);
  transform: translateY(-5px);
  box-shadow:
    0 24px 48px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.06);
}

.ww-stat-card:first-child {
  background: var(--bg-elevated);
  border-color: var(--accent-border);
}

/* Первая карточка — янтарный glow при hover */
.ww-stat-card:first-child:hover {
  box-shadow:
    0 24px 48px rgba(0,0,0,0.45),
    0 0 32px rgba(200,145,42,0.12),
    0 0 0 1px rgba(200,145,42,0.3);
  border-color: rgba(200,145,42,0.4);
}

.ww-stat-number {
  font-family: var(--font-logo);
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.ww-stat-plus {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-muted);
}

.ww-stat-label {
  font-family: var(--font-logo);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 6px;
}

.ww-stat-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Shared section labels ── */
.ww-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-logo);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}

.ww-section-title {
  font-family: var(--font-logo);
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

/* ── Philosophy block ── */
.ww-about-philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 120px;
}

.ww-phil-main {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

/* Фоновое фото — затемнённое */
.ww-phil-main-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.ww-phil-main:hover .ww-phil-main-bg { opacity: 0.28; }

/* Градиент поверх фото для читаемости текста */
.ww-phil-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,10,11,0.72) 0%,
    rgba(10,10,11,0.45) 55%,
    rgba(10,10,11,0.65) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Amber glow в углу */
.ww-phil-main::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(200,145,42,0.09) 0%, transparent 68%);
  pointer-events: none;
  z-index: 2;
}

/* Весь контент поверх фото */
.ww-phil-main > * { position: relative; z-index: 3; }

.ww-phil-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.ww-phil-icon svg { width: 32px; height: 32px; }

.ww-phil-main h2 {
  font-family: var(--font-logo);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.ww-phil-main p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.ww-phil-side {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.ww-phil-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.3s ease;
}

.ww-phil-card:hover {
  background: var(--bg-tertiary);
  border-color: rgba(255,255,255,0.06);
  transform: translateX(4px);
}

.ww-phil-card h3 {
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ww-phil-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── History (accordion layout) ── */
.ww-about-history {
  margin-bottom: 120px;
}

.ww-history-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ww-history-left {
  position: sticky;
  top: 40px;
}

.ww-history-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 24px;
  max-width: 440px;
}

/* Accordion */
.ww-history-accordion {
  display: flex;
  flex-direction: column;
}

.ww-acc-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ww-acc-item:first-child {
  border-top: 1px solid var(--border);
}

.ww-acc-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.ww-acc-trigger:hover .ww-acc-icon {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.ww-acc-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ww-acc-year {
  font-family: var(--font-logo);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.ww-acc-title {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ww-acc-short {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 2px;
  transition: opacity 0.25s, max-height 0.3s;
}

.ww-acc-item.is-open .ww-acc-short {
  opacity: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
}

.ww-acc-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  line-height: 1;
  user-select: none;
}

.ww-acc-item.is-open .ww-acc-icon {
  background: var(--bg-elevated);
  border-color: var(--accent-border);
  color: var(--accent);
  transform: rotate(45deg);
}

.ww-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
  padding: 0;
}

.ww-acc-item.is-open .ww-acc-body {
  max-height: 200px;
  padding-bottom: 28px;
}

.ww-acc-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-right: 60px;
  border-left: 2px solid var(--accent-border);
  padding-left: 20px;
}

/* ── Production ── */
.ww-about-production {
  margin-bottom: 120px;
}

.ww-production-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.ww-prod-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 340px;
  transition: all 0.4s cubic-bezier(0.2,0.8,0.2,1);
}

.ww-prod-card:hover {
  background: var(--bg-tertiary);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.ww-prod-card.is-dark {
  background: var(--bg-elevated);
  border-color: var(--accent-border);
}
.ww-prod-card.is-dark:hover { border-color: rgba(200,145,42,0.5); }

.ww-prod-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.ww-prod-card.is-dark .ww-prod-icon {
  background: var(--accent-dim);
  border-color: var(--accent-border);
}

.ww-prod-icon svg { width: 24px; height: 24px; }

.ww-prod-card h3 {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ww-prod-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.ww-mat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.ww-mat-tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-logo);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.ww-mat-tag:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ── Values ── */
.ww-about-values {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px;
  margin-bottom: 120px;
  position: relative;
  overflow: hidden;
}

.ww-about-values::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,145,42,0.055) 0%, transparent 68%);
  pointer-events: none;
}

.ww-values-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.ww-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.ww-value-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.ww-value-num {
  font-family: var(--font-logo);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.ww-value-item h3 {
  font-family: var(--font-logo);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ww-value-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .ww-about-hero { height: 360px; }

  .ww-about-hero-content {
    top: 36px;
    left: 24px;
    right: 24px;
  }

  .ww-about-hero-content h1 {
    font-size: 34px;
    letter-spacing: -0.025em;
  }

  .ww-about-hero-content .ww-about-hero-sub { font-size: 15px; }

  .ww-about-stats {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }

  .ww-stat-card { padding: 28px 24px; }
  .ww-stat-number { font-size: 44px; }

  .ww-about-philosophy { grid-template-columns: 1fr; }
  .ww-phil-main { padding: 40px 32px; min-height: auto; }
  .ww-phil-main h2 { font-size: 26px; }
  .ww-phil-card { padding: 32px; }
  .ww-phil-card:hover { transform: none; }

  .ww-history-layout { grid-template-columns: 1fr; gap: 40px; }
  .ww-history-left { position: static; }
  .ww-acc-trigger { padding: 20px 0; }
  .ww-acc-body p { padding-right: 20px; }

  .ww-production-grid { grid-template-columns: 1fr; }
  .ww-prod-card { padding: 36px 28px; min-height: auto; }
  .ww-prod-card:hover { transform: none; }

  .ww-about-values { padding: 40px 24px; }
  .ww-values-grid { grid-template-columns: 1fr; gap: 36px; }

  .ww-section-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .ww-about-stats { grid-template-columns: 1fr; }
  .ww-stat-number { font-size: 38px; }
  .ww-history-layout { gap: 32px; }
}
