/* ==========================================================
   about-page.css
   Стилі для сторінки «Про нас» (Сімпа)
   Використовує CSS-змінні та базові класи з основного styles.css
   ========================================================== */


/* === HERO сторінки «Про нас» ============================== */
.about-hero {
  padding: 50px 0 30px;
  position: relative;
}

/* Хлібні крихти */
.about-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.about-hero .breadcrumbs a { color: var(--muted); transition: color .2s; }
.about-hero .breadcrumbs a:hover { color: var(--rose-deep); }
.about-hero .breadcrumbs .sep { opacity: 0.4; }
.about-hero .breadcrumbs .current {
  color: var(--ink);
  font-weight: 600;
}

.about-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 900px;
}
.about-hero h1 em {
  font-style: italic;
  color: var(--rose);
}
.about-hero .subtitle {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 680px;
  margin-bottom: 36px;
}

/* Швидкі цифри */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.about-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.about-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.about-stat .big {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 58px);
  color: var(--rose);
  line-height: 1;
  letter-spacing: -1.5px;
}
.about-stat .lbl {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
}


/* === Вступ ================================================ */
.about-intro {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 56px 60px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}
.about-intro::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-pale), transparent 65%);
  pointer-events: none;
}
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.about-intro h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.about-intro h2 em {
  font-style: italic;
  color: var(--rose);
}
.about-intro p {
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.about-intro p:last-child { margin-bottom: 0; }
.about-intro-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(217,114,8,0.25);
}
.about-intro-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* === Таймлайн історії ===================================== */
.timeline {
  position: relative;
  padding: 40px 0;
}

/* Центральна вертикальна лінія */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--rose-soft) 6%,
    var(--rose-soft) 94%,
    transparent 100%);
  transform: translateX(-50%);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 70px;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Маркер по центру */
.timeline-marker {
  grid-column: 2;
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  z-index: 2;
}
.timeline-marker::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose) 0%, #ffb56b 100%);
  box-shadow: 0 10px 24px -8px rgba(217,114,8,0.5);
}
.timeline-marker::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(242,139,28,0.35);
  animation: spinSlow 16s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.timeline-marker .year {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.3px;
  z-index: 1;
}

/* Картка контенту */
.timeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 12px 28px -16px rgba(31,26,38,0.15);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Стрілочка-хвостик до маркера */
.timeline-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
  margin-right: 32px;
}
.timeline-item:nth-child(odd) .timeline-card::after {
  right: -8px;
  border-left: 0;
  border-bottom: 0;
}
.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
  margin-left: 32px;
}
.timeline-item:nth-child(even) .timeline-card::after {
  left: -8px;
  border-right: 0;
  border-top: 0;
}

.timeline-card .when {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 8px;
}
.timeline-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}
.timeline-card h3 a {
  color: var(--ink);
  background-image: linear-gradient(transparent 70%, var(--rose-soft) 70%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: color .2s;
}
.timeline-card h3 a:hover { color: var(--rose-deep); }
.timeline-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.timeline-card p:last-child { margin-bottom: 0; }
.timeline-card .timeline-photo {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--rose-pale);
}
.timeline-card .timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.timeline-card:hover .timeline-photo img {
  transform: scale(1.04);
}

/* Закриті перукарні — приглушений вигляд */
.timeline-item.is-closed .timeline-marker::before {
  background: linear-gradient(135deg, var(--muted) 0%, #c6b8bf 100%);
  box-shadow: 0 10px 24px -8px rgba(31,26,38,0.2);
}
.timeline-item.is-closed .timeline-marker::after {
  border-color: rgba(154,134,147,0.3);
  animation: none;
}
.timeline-item.is-closed .timeline-card { background: #fafafa; }
.timeline-item.is-closed .timeline-card .when {
  color: var(--muted);
}
.timeline-item.is-closed .timeline-photo { opacity: 0.78; filter: saturate(0.85); }
.timeline-item.is-closed .closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(154,134,147,0.15);
  color: var(--ink-2);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}


/* === Цінності («Що нас відрізняє») ======================== */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.about-value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.about-value:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.about-value .vicon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-soft), var(--rose-pale));
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: transform .35s;
}
.about-value:hover .vicon {
  transform: rotate(-6deg) scale(1.06);
}
.about-value h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
}
.about-value p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}


/* === Фінальний CTA ======================================= */
.about-cta {
  background: linear-gradient(135deg, #ffe4bf 0%, #ffd0a3 60%, #fcc391 100%);
  border-radius: var(--r-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}
.about-cta::before {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 30px solid rgba(255,255,255,0.4);
  pointer-events: none;
}
.about-cta::after {
  content: '';
  position: absolute;
  left: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  pointer-events: none;
}
.about-cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.about-cta h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.about-cta h2 em {
  font-style: italic;
  color: var(--rose-deep);
}
.about-cta p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.about-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* === Адаптив ============================================= */
@media (max-width: 1060px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-intro {
    padding: 40px 36px;
  }
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile timeline — все ліворуч */
  .timeline::before {
    left: 32px;
  }
  .timeline-item {
    grid-template-columns: 64px 1fr;
    margin-bottom: 44px;
  }
  .timeline-marker {
    grid-column: 1 !important;
    width: 64px;
    height: 64px;
  }
  .timeline-marker .year { font-size: 15px; }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
    margin-left: 16px;
    margin-right: 0;
  }
  .timeline-item:nth-child(odd) .timeline-card::after,
  .timeline-item:nth-child(even) .timeline-card::after {
    left: -8px;
    right: auto;
    border-right: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .about-hero { padding: 24px 0 12px; }
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .about-stat { padding: 20px 14px; }
  .about-intro {
    padding: 28px 22px;
    border-radius: 28px;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .about-cta {
    padding: 40px 24px;
    border-radius: 28px;
  }
  .about-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .timeline-card {
    padding: 22px 20px;
  }
  .timeline-card h3 { font-size: 20px; }
  .timeline-marker {
    width: 52px;
    height: 52px;
  }
  .timeline-marker .year { font-size: 13px; }
  .timeline::before { left: 26px; }
  .timeline-item {
    grid-template-columns: 52px 1fr;
    margin-bottom: 36px;
  }
}