/* =========================================================
   Торты Лидии — Направление B: «Чистый минимализм»
   Mobile-first · 8px-сетка · CSS custom properties
   ========================================================= */

:root {
  /* Палитра 60/30/10
     Контраст (посчитан численно):
     --ink/#2C1810 на --bg/#F9F5F0   = 15.54:1  PASS
     --on-cta/#FFF на --cta/#A8641F  =  4.66:1  PASS (AA)
     --muted/#7A6449 на --bg         =  5.16:1  PASS
     --accent/#C17F3A крупный текст  =  3.04:1  PASS (AA large)
  */
  --bg:       #F9F5F0; /* тёплый off-white — 60% */
  --bg-alt:   #F2EDE5; /* чуть темнее, для чередующихся секций */
  --ink:      #2C1810; /* тёплый почти-чёрный — 30% */
  --accent:   #C17F3A; /* тёплая карамель — крупный текст, не мелкий */
  --cta:      #A8641F; /* фон кнопок — AA 4.66:1 на белом */
  --cta-hover:#8F531A;
  --muted:    #7A6449; /* подписи — AA 5.16:1 */
  --line:     #E8DFD2;
  --on-cta:   #FFFFFF;

  /* Типографика: шкала ×1.25, база 16px */
  --font-display: 'Onest', system-ui, sans-serif;
  --font-body:    'Golos Text', system-ui, sans-serif;

  --fs-xs:   0.8rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.25rem;
  --fs-lg:   1.563rem;
  --fs-xl:   1.953rem;
  --fs-2xl:  2.441rem;

  /* 8px-сетка */
  --s-1:  8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  32px;
  --s-5:  48px;
  --s-6:  64px;
  --s-7:  96px;
  --s-8:  128px;

  --wrap: 1120px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,p,blockquote,ol,ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ol { list-style: none; }

/* ─── Обёртка ─── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-3);
}

/* ─── Кнопки ─── */
.btn {
  display: inline-block;
  background: var(--cta);
  color: var(--on-cta);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover  { background: var(--cta-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn--lg { padding: 20px var(--s-6); font-size: var(--fs-md); }

/* ─── Общие элементы секций ─── */
.section { padding-block: var(--s-7); }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(var(--fs-xl), 5vw, var(--fs-2xl));
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: var(--s-5);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero__inner { padding-block: var(--s-7); }

.hero__eyebrow {
  margin-bottom: var(--s-3);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.8rem, 14vw, 5.96rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero__rule {
  width: 64px;
  height: 3px;
  margin: var(--s-4) 0;
  border: 0;
  background: var(--accent);
}

.hero__lead {
  margin-bottom: var(--s-5);
  max-width: 30ch;
  font-size: var(--fs-md);
  color: var(--ink);
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   КАТАЛОГ
═══════════════════════════════════════ */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.cat-card {
  padding: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.cat-card:last-child { border-bottom: none; }

.cat-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--s-1);
}

.cat-card__text {
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: var(--s-2);
  line-height: 1.55;
}

.cat-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--cta);
  letter-spacing: 0.03em;
}

.catalog-note {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ═══════════════════════════════════════
   КАК ЗАКАЗАТЬ
═══════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.8rem, 12vw, 5.96rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity  0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}
.step__num.is-in { opacity: 1; transform: translateY(0); }

.step__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--ink);
}

.step__text {
  max-width: 30ch;
  color: var(--muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   О ЛИДИИ
═══════════════════════════════════════ */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
}

.about-photo { display: flex; justify-content: center; }

.about-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.5rem;
  color: var(--on-cta);
}

.about-text { }

.about-p {
  color: var(--ink);
  max-width: 42ch;
  margin-bottom: var(--s-3);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   ОТЗЫВЫ
═══════════════════════════════════════ */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}

.review {
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
}

.review__text {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

.review__author {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════
   КОНТАКТЫ
═══════════════════════════════════════ */
.contacts-sec { text-align: center; }
.contacts-inner { }

.contacts__title { margin-bottom: var(--s-3); }

.contacts-lead {
  max-width: 32ch;
  margin: 0 auto var(--s-5);
  font-size: var(--fs-md);
  color: var(--muted);
  line-height: 1.55;
}

.contacts-city {
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════
   ПОДВАЛ
═══════════════════════════════════════ */
.footer {
  background: var(--ink);
  padding-block: var(--s-5);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: baseline;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--on-cta);
  margin-right: auto;
  letter-spacing: -0.01em;
}

.footer-meta {
  width: 100%;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
  margin-top: var(--s-1);
}
.footer-meta a { color: rgba(255,255,255,0.4); text-decoration: underline; }

/* ═══════════════════════════════════════
   АДАПТИВ
═══════════════════════════════════════ */
@media (min-width: 640px) {
  .catalog-grid  { grid-template-columns: repeat(3, 1fr); }
  .cat-card      { border-bottom: none; border-right: 1px solid var(--line); padding: var(--s-5) var(--s-4); }
  .cat-card:last-child { border-right: none; }
  .reviews-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .about-wrap { grid-template-columns: 180px 1fr; }
  .about-photo { justify-content: flex-start; }
  .wrap { padding-inline: var(--s-5); }
}

@media (min-width: 1024px) {
  .section  { padding-block: var(--s-8); }
}

/* ═══════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .step__num { opacity: 1; transform: none; }
}
