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

:root {
  /* Палитра 60/30/10 */
  --c-bg:       #FAF5EE; /* кремовый — 60% */
  --c-ink:      #1A130D; /* тёмный шоколад — 30% */
  --c-gold:     #C4974A; /* тёплое золото — 10% */
  --c-dark:     #140E0A; /* почти-чёрный, шоколадный подтон */
  --c-cocoa:    #8C5E3C; /* терракота/какао — акцент подписей */
  --c-card:     #FFFFFF;
  --c-line:     rgba(28,19,13,0.08);

  /* Типографика: шкала ×1.333, база 16px */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Golos Text", system-ui, sans-serif;

  --fs-xs:   0.75rem;    /* 12 */
  --fs-sm:   0.875rem;   /* 14 */
  --fs-base: 1rem;       /* 16 */
  --fs-md:   1.333rem;   /* ~21 */
  --fs-h3:   1.777rem;   /* ~28 */
  --fs-h2:   2.369rem;   /* ~38 */

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

  /* Тени — макс 2 слоя */
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 24px -8px rgba(0,0,0,.16);
  --shadow-warm: 0 12px 24px -8px rgba(196,151,74,0.14);

  --wrap: 1100px;
}

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

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

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cocoa);
  margin-bottom: var(--s-2);
}
.eyebrow--light { color: var(--c-gold); }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.777rem, 5vw, var(--fs-h2));
  line-height: 1.08;
  color: var(--c-ink);
  margin-bottom: var(--s-6);
}
.section__title--light { color: var(--c-bg); }

/* ─── CTA кнопка ─── */
.cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--c-ink);
  background: var(--c-gold);
  padding: var(--s-2) var(--s-5);
  border-radius: 999px;
  box-shadow: var(--shadow-warm);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cta:hover { background: #d0a559; transform: translateY(-2px); }
.cta:focus-visible { outline: 3px solid var(--c-dark); outline-offset: 3px; }
.cta--dark {
  color: var(--c-bg);
  background: var(--c-ink);
  box-shadow: var(--shadow);
}
.cta--dark:hover { background: #0d0906; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-8) var(--s-3);
  background-color: var(--c-dark);
  color: var(--c-bg);
  background-image: radial-gradient(rgba(196,151,74,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  text-align: center;
}

.hero__inner { max-width: 720px; }

.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--s-3);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 14vw, 6rem);
  line-height: 1.02;
  color: var(--c-bg);
  margin-bottom: var(--s-4);
}

.hero__title-accent {
  color: var(--c-gold);
  font-style: italic;
  font-weight: 400;
}

.hero__lead {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: rgba(250,245,238,0.85);
  max-width: 30ch;
  margin: 0 auto var(--s-6);
  line-height: 1.5;
}

/* Один оркестрованный момент: появление CTA */
.cta {
  opacity: 0;
  transform: translateY(16px);
  animation: cta-in 0.6s ease 0.4s forwards;
}
@keyframes cta-in { to { opacity: 1; transform: translateY(0); } }

.hero__scroll {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250,245,238,0.25);
  font-size: 1.25rem;
  animation: bounce 2.5s ease infinite 1.5s;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

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

.card {
  background: var(--c-card);
  border-radius: 16px;
  padding: var(--s-5) var(--s-4);
  box-shadow: var(--shadow);
}

.card__label {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--c-gold);
  opacity: 0.5;
  margin-bottom: var(--s-2);
  line-height: 1;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--c-ink);
  margin-bottom: var(--s-2);
  line-height: 1.15;
}

.card__text {
  color: var(--c-ink);
  margin-bottom: var(--s-3);
  line-height: 1.6;
}

.card__price {
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--c-cocoa);
  letter-spacing: 0.03em;
}

.catalog__note {
  font-size: var(--fs-sm);
  color: var(--c-cocoa);
  text-align: center;
}

/* ═══════════════════════════════════════
   КАК ЗАКАЗАТЬ (тёмный блок)
═══════════════════════════════════════ */
.steps-sec {
  background-color: var(--c-dark);
  background-image: radial-gradient(rgba(196,151,74,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}

.step {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--c-gold);
  opacity: 0.55;
  min-width: 56px;
  flex-shrink: 0;
}

.step__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--c-bg);
  margin-bottom: var(--s-1);
}

.step__text {
  color: rgba(250,245,238,0.65);
  line-height: 1.6;
}

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

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

.about-photo__circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  color: var(--c-dark);
  box-shadow: var(--shadow-warm);
}

.about-body { }
.about-text {
  color: var(--c-ink);
  margin-bottom: var(--s-3);
  max-width: 45ch;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   ОТЗЫВЫ
═══════════════════════════════════════ */
.reviews-sec { border-top: 1px solid var(--c-line); }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}

.review {
  background: var(--c-card);
  border-radius: 16px;
  padding: var(--s-5) var(--s-4);
  box-shadow: var(--shadow);
}

.review__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--c-ink);
  margin-bottom: var(--s-3);
}

.review__author {
  font-style: normal;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-cocoa);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   КОНТАКТЫ (тёмный блок)
═══════════════════════════════════════ */
.contacts-sec {
  background-color: var(--c-dark);
  background-image: radial-gradient(rgba(196,151,74,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.contacts-inner { text-align: center; }

.contacts-lead {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: rgba(250,245,238,0.75);
  max-width: 32ch;
  margin: 0 auto var(--s-6);
  line-height: 1.5;
}

.contacts-city {
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
}

/* ═══════════════════════════════════════
   ПОДВАЛ
═══════════════════════════════════════ */
.footer {
  background: #0A0705;
  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-size: 1rem;
  color: var(--c-gold);
  margin-right: auto;
}

.footer-city {
  font-size: var(--fs-xs);
  color: rgba(250,245,238,0.3);
  letter-spacing: 0.1em;
}

.footer-legal {
  width: 100%;
  font-size: 0.7rem;
  color: rgba(250,245,238,0.2);
  margin-top: var(--s-1);
  line-height: 1.5;
}
.footer-legal a { color: rgba(250,245,238,0.35); text-decoration: underline; }

/* ═══════════════════════════════════════
   АДАПТИВ
═══════════════════════════════════════ */
@media (min-width: 640px) {
  .catalog__grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid  { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step  { flex-direction: column; }

  .about-wrap { grid-template-columns: 200px 1fr; }
  .about-photo { justify-content: flex-start; }
}

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