/* About and Services pages. Builds on base.css and home.css (nav, contact, footer).
   Desktop values first; the phone layout (below 1220px) is at the bottom. */

.line { border-color: rgba(61, 91, 135, 0.12); }

/* ---------- Page hero ---------- */
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 160px 0 140px;
}
.eyebrow {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}
.page-hero__title {
  max-width: 980px;
  font-size: 72px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-hero__title span { color: var(--name); }
.page-hero__lead {
  max-width: 720px;
  font-size: 20px;
  line-height: 32px;
  color: var(--muted);
}

/* ---------- Generic section ---------- */
.block {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-bottom: 160px;
}
.block--split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.block__heading { font-size: 40px; line-height: 48px; font-weight: 700; color: var(--ink); }
.block__text { margin-top: 16px; max-width: 360px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.tags--wrap { flex-wrap: wrap; }
.toolkit { display: flex; flex-direction: column; gap: 16px; }

/* ---------- About: intro ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: center;
  padding-bottom: 140px;
}
.portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #eef2f8 0%, #dbe3ef 100%);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait__initials { font-size: 160px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: rgba(61, 91, 135, 0.14); }
.portrait__note {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 24px;
  color: var(--muted);
}
.about-intro__text { display: flex; flex-direction: column; gap: 24px; font-size: 20px; line-height: 34px; color: var(--muted); }
.about-intro__text strong { font-weight: 600; color: var(--ink); }

/* ---------- About: numbers ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 160px;
  border-top: 1px solid rgba(61, 91, 135, 0.12);
  border-bottom: 1px solid rgba(61, 91, 135, 0.12);
}
.stat { display: flex; flex-direction: column; gap: 8px; padding: 48px 32px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid rgba(61, 91, 135, 0.12); }
.stat__value { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.stat__label { font-size: 16px; line-height: 24px; color: var(--muted); }

/* ---------- About: experience rows ---------- */
.rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(61, 91, 135, 0.12); }
.row {
  display: grid;
  grid-template-columns: 200px 1fr 1.3fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(61, 91, 135, 0.12);
}
.row__meta { font-size: 16px; line-height: 32px; font-weight: 600; color: var(--label); }
.row__title { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.row__sub { font-size: 16px; line-height: 28px; color: var(--muted); }
.row__desc { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Cards (principles) ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  border-radius: 16px;
  background: #f6f8fb;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 20px 40px rgba(39, 49, 64, 0.08); }
.card__num { margin-bottom: 40px; font-size: 14px; line-height: 24px; font-weight: 600; color: var(--label); }
.card__title { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.card__text { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Services list ---------- */
.services { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(61, 91, 135, 0.12); }
.service {
  display: grid;
  grid-template-columns: 80px 1fr 340px;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid rgba(61, 91, 135, 0.12);
}
.service__num { font-size: 16px; line-height: 48px; font-weight: 600; color: var(--label); }
.service__main { display: flex; flex-direction: column; gap: 12px; }
.service__title { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); transition: transform 0.3s ease; }
.service:hover .service__title { transform: translateX(8px); }
.service__text { max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.service__tags { justify-content: flex-end; padding-top: 8px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 2px solid var(--ghost);
  transition: border-color 0.3s ease;
}
.step:hover { border-color: var(--ink); }
.step__num { font-size: 14px; line-height: 24px; font-weight: 600; color: var(--label); }
.step__title { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.step__text { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Plans ---------- */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border: 1px solid rgba(61, 91, 135, 0.12);
  border-radius: 16px;
  background: #fff;
}
.plan__name { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--label); }
.plan__price { margin-top: 24px; font-size: 32px; line-height: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.plan__time { margin-top: 4px; font-size: 14px; line-height: 24px; color: var(--muted); }
.plan__list { display: flex; flex-direction: column; gap: 12px; margin: 32px 0 0; padding: 32px 0 0; list-style: none; border-top: 1px solid rgba(61, 91, 135, 0.12); }
.plan__list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 24px; color: var(--muted); }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.7;
}
.plan__badge {
  position: absolute;
  top: 40px;
  right: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 24px;
  color: #fff;
}
.plan--featured { border-color: var(--ink); background: var(--ink); }
.plan--featured .plan__name { color: rgba(255, 255, 255, 0.6); }
.plan--featured .plan__price { color: #fff; }
.plan--featured .plan__time,
.plan--featured .plan__list li { color: rgba(255, 255, 255, 0.75); }
.plan--featured .plan__list { border-color: rgba(255, 255, 255, 0.15); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid rgba(61, 91, 135, 0.12); }
.faq details { border-bottom: 1px solid rgba(61, 91, 135, 0.12); }
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transition: transform 0.25s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Call to action ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 140px;
  padding: 104px 40px;
  border-radius: 24px;
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(155, 167, 183, 0.25) 0%, rgba(155, 167, 183, 0) 60%),
    var(--ink);
  text-align: center;
}
.cta__title { font-size: 56px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.25s ease;
}
.cta__button svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.cta__button:hover { transform: translateY(-2px); }
.cta__button:hover svg { transform: translateX(4px); }

/* ---------- Fade-in on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =================================================================
   Phone layout (below 1220px)
   ================================================================= */
@media (max-width: 1219.98px) {
  .page-hero { gap: 20px; padding: 96px 0 80px; }
  .eyebrow { font-size: 12px; }
  .page-hero__title { font-size: 36px; line-height: 44px; }
  .page-hero__lead { font-size: 16px; line-height: 1.6; }

  .block { gap: 40px; padding-bottom: 80px; }
  .block--split { grid-template-columns: 1fr; gap: 32px; }
  .block__heading { font-size: 24px; line-height: 32px; }
  .block__text { font-size: 14px; }

  .about-intro { grid-template-columns: 1fr; gap: 40px; padding-bottom: 80px; }
.portrait__initials { font-size: 120px; }
  .about-intro__text { gap: 16px; font-size: 16px; line-height: 1.7; }

  .stats { grid-template-columns: 1fr 1fr; margin-bottom: 80px; }
  .stat { padding: 32px 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(61, 91, 135, 0.12); }
  .stat__value { font-size: 40px; }
  .stat__label { font-size: 14px; line-height: 20px; }

  .row { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .row__meta { font-size: 14px; line-height: 24px; }
  .row__title { font-size: 20px; line-height: 28px; }
  .row__sub, .row__desc { font-size: 14px; }
  .row__desc { margin-top: 8px; }

  .cards--3 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 28px; }
  .card__num { margin-bottom: 16px; }
  .card__title { font-size: 20px; line-height: 28px; }
  .card__text { font-size: 14px; }

  .service { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .service__num { font-size: 14px; line-height: 24px; }
  .service__title { font-size: 24px; line-height: 32px; }
  .service__text { font-size: 14px; }
  .service__tags { justify-content: flex-start; padding-top: 4px; }

  .steps { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .step__title { font-size: 20px; line-height: 28px; }
  .step__text { font-size: 14px; }

  .plan { padding: 28px; }
  .plan__badge { top: 28px; right: 28px; }
  .plan__price { font-size: 28px; line-height: 36px; }
  .plan__list li { font-size: 14px; }

  .faq summary { font-size: 16px; line-height: 24px; padding: 20px 40px 20px 0; }
  .faq details p { font-size: 14px; padding-right: 0; }

  .cta { gap: 28px; margin-bottom: 80px; padding: 64px 24px; border-radius: 16px; }
  .cta__title { font-size: 32px; line-height: 40px; }
}
