/* Вся в Зефире: сливочная основа, бургунди как главный цвет, каллиграфия как подпись бренда */

:root {
  --burgundy: #652438;
  --burgundy-deep: #4e1a2b;
  --cream: #f8f1e8;
  --cream-deep: #f1e6d8;
  --rose: #ddb9b5;
  --sage: #8c987b;
  --choc: #342321;
  --champagne: #d9b77c;
  --ink-soft: #5d4a46;
  --line: #34232126;

  --plum-deep: #24121a;
  --pumpkin: #e89a3c;

  --f-script: 'Great Vibes', 'Cormorant Garamond', cursive;
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Manrope', 'Helvetica Neue', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --edge: clamp(20px, 4vw, 56px);

  scrollbar-color: var(--burgundy) var(--cream);
  scrollbar-width: thin;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--choc);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--burgundy); color: var(--cream); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--burgundy); border: 3px solid var(--cream); border-radius: 8px; }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px var(--edge);
  background: #f8f1e8f2;
  border-bottom: 1px solid var(--line);
}
.site-nav ul { display: flex; gap: clamp(14px, 1.5vw, 26px); }
.site-nav a { font-size: 14px; font-weight: 500; white-space: nowrap; transition: color 0.2s; }
.site-nav a:hover { color: var(--burgundy); }
.logo { font-family: var(--f-script); font-size: 34px; line-height: 1; color: var(--burgundy); white-space: nowrap; }
.site-header__action { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; margin: 5px auto; background: var(--choc); }
.mobile-menu {
  position: fixed;
  inset: 62px 0 0;
  z-index: 40;
  padding: 24px var(--edge);
  background: var(--cream);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu a { display: block; padding: 14px 0; font-family: var(--f-display); font-size: 30px; border-bottom: 1px solid var(--line); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--main { background: var(--burgundy); color: var(--cream); }
.btn--main:hover { background: var(--burgundy-deep); }
.btn--light { background: var(--cream); color: var(--burgundy); }
.btn--light:hover { background: #fff; }
.btn--sm { padding: 10px 20px; }

/* Первый экран в цвете осенней коллекции */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - 62px), 860px);
  margin: 6px 6px 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--plum-deep);
  color: #fbf3e8;
}
.hero__visual { position: absolute; inset: 0 0 0 38%; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--plum-deep) 0%, #24121ad9 16%, transparent 48%), linear-gradient(0deg, #24121a80, transparent 30%);
}
.hero__copy { position: relative; z-index: 1; width: min(1400px, 100%); margin: 0 auto; padding: 56px clamp(24px, 5vw, 72px); }
.hero__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pumpkin); }
.hero h1 { margin: 18px 0 20px; font-family: var(--f-display); font-size: clamp(4rem, 9vw, 9rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.015em; }
.hero h1 em { display: block; color: var(--pumpkin); }
.hero__tagline { max-width: 22em; margin-bottom: 34px; font-size: 18px; color: #f1e4d6; }
.btn--pumpkin { background: var(--pumpkin); color: var(--plum-deep); }
.btn--pumpkin:hover { background: #f2ab55; }
/* Заголовки разделов */
.section { padding: clamp(64px, 8vw, 110px) var(--edge); }
.section__head { max-width: 40rem; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.script { font-family: var(--f-script); font-size: 36px; line-height: 1.1; color: var(--burgundy); }
h2 { font-family: var(--f-display); font-size: clamp(2.5rem, 4.6vw, 4.2rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
.section__head p:not(.script) { margin-top: 10px; color: var(--ink-soft); }

/* Каталог-лента */
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 1320px; margin: 0 auto; }
.feed__card { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-deep); }
.feed__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.feed__card:hover img { transform: scale(1.04); }
.feed__info {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 20px 16px;
  color: #fff;
  background: linear-gradient(to top, #342321cc, transparent);
}
.feed__info h3 { font-family: var(--f-display); font-size: clamp(1.6rem, 2.3vw, 2.1rem); font-weight: 500; line-height: 1.05; }
.feed__info span { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; }
.feed__sizes {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 32px;
  color: var(--cream);
  background: #652438eb;
  opacity: 0;
  transition: opacity 0.3s;
}
.feed__card:hover .feed__sizes, .feed__card:focus-visible .feed__sizes { opacity: 1; }
.feed__sizes h3 { margin-bottom: 8px; font-family: var(--f-display); font-size: 2rem; font-weight: 500; line-height: 1.05; }
.feed__sizes p { font-size: 14px; color: #f8f1e8d9; }
.feed__sizes li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14px; border-top: 1px solid #f8f1e833; }
.feed__sizes b { font-weight: 600; white-space: nowrap; }
.feed__plaque {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 28px;
  text-align: center;
  font-family: var(--f-script);
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.12;
}
.plaque-burgundy { background: var(--burgundy); color: var(--cream); }
.plaque-rose { background: var(--rose); color: var(--burgundy-deep); }
.plaque-sage { background: var(--sage); color: #fff; }

/* Торты */
.cakes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 6px;
  max-width: 1320px;
  margin: 0 auto;
}
.cakes__grid > * { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.cakes__grid img, .cakes__grid video { width: 100%; height: 100%; object-fit: cover; }
.cakes__grid .is-big { grid-column: span 2; grid-row: span 2; }
.cakes__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  background: var(--rose);
  color: var(--burgundy-deep);
}
.cakes__copy h3 { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; margin-bottom: 14px; }

/* Осенняя коллекция: без изменений */
.autumn { --ink: #fbf3e8; --ink-soft: #f1e4d6; padding: 96px 0; margin: 0 6px; border-radius: 6px; background: var(--plum-deep); color: var(--ink); }
.autumn__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}
.autumn__copy { position: sticky; top: 112px; }
.autumn .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pumpkin); }
.autumn h2 { margin: 14px 0 22px; font-size: clamp(3rem, 6vw, 6rem); line-height: 1; color: var(--ink); }
.autumn h2 em { color: var(--pumpkin); }
.autumn__text { max-width: 30em; font-size: 17px; color: var(--ink-soft); }
.autumn__note { margin: 18px 0 30px; max-width: 30em; font-size: 15px; color: #e9d8bf; }
.autumn .btn--main { background: var(--pumpkin); color: var(--plum-deep); }
.autumn .btn--main:hover { background: #f2ab55; }
.autumn__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.autumn__gallery figure { overflow: hidden; background: #341a24; }
.autumn__gallery img, .autumn__gallery video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.autumn__gallery figure:first-child, .autumn__gallery figure:last-child:nth-child(even) { grid-column: 1 / -1; }
.autumn__gallery figure:first-child img, .autumn__gallery figure:last-child:nth-child(even) img { aspect-ratio: 1 / 1; }

/* К праздникам */
.occasions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-width: 1320px; margin: 0 auto; }
.occasion {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 18px;
  overflow: hidden;
  position: relative;
  transition: filter 0.25s;
}
.occasion:hover { filter: brightness(1.06); }
.occasion img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.occasion.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #342321b3, transparent 60%); }
.occasion > span { position: relative; z-index: 1; }
.occasion__name { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; line-height: 1.05; }
.occasion__when { font-size: 13px; }
.tile-burgundy { background: var(--burgundy); color: var(--cream); }
.tile-rose { background: var(--rose); color: var(--burgundy-deep); }
.tile-sage { background: var(--sage); color: #fff; }
.tile-choc { background: var(--choc); color: var(--cream); }
.tile-champagne { background: var(--champagne); color: var(--choc); }
.occasion.has-photo { color: #fff; }

/* Отзывы */
.reviews { background: var(--cream-deep); }
.reviews__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); max-width: 1180px; margin: 0 auto; }
.reviews blockquote { font-family: var(--f-display); font-size: clamp(1.3rem, 1.7vw, 1.55rem); line-height: 1.3; }
.reviews cite { display: block; margin-top: 14px; font-family: var(--f-body); font-size: 14px; font-style: normal; font-weight: 600; color: var(--burgundy); }

/* Вопросы */
.faq__list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; color: var(--burgundy); }
.faq__list details[open] summary::after { content: '−'; }
.faq__list p { padding-bottom: 20px; color: var(--ink-soft); }

/* Доставка */
.delivery { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1432px; margin: 0 auto; padding-top: 0; }
.delivery__copy p:not(.script) { margin-top: 12px; color: var(--ink-soft); }
.delivery__map { height: clamp(320px, 42vw, 480px); overflow: hidden; border-radius: 6px; background: var(--cream-deep); }
.delivery__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Контакты */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 6px;
  padding: clamp(64px, 8vw, 110px) var(--edge);
  text-align: center;
  background: var(--burgundy);
  color: var(--cream);
}
.contact h2 { font-family: var(--f-script); font-size: clamp(3.6rem, 7vw, 6.4rem); font-weight: 400; color: var(--cream); }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contact__links a:not(.btn) { padding: 13px 22px; font-size: 14px; font-weight: 600; border: 1px solid #f8f1e866; border-radius: 999px; transition: border-color 0.2s; }
.contact__links a:not(.btn):hover { border-color: var(--cream); }
.contact__meta { font-size: 14px; color: #f8f1e8cc; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px var(--edge); font-size: 13px; color: var(--ink-soft); }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .occasions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .autumn__inner { gap: 40px; }
}
@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-nav, .site-header__action .btn { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 960px) {
  .hero { align-items: flex-end; min-height: min(calc(100svh - 62px), 760px); }
  .hero__visual { inset: 0 0 34% 0; }
  .hero__visual::after { background: linear-gradient(0deg, var(--plum-deep) 2%, transparent 45%); }
  .hero__copy { padding: 24px 20px 36px; }
  .delivery { grid-template-columns: minmax(0, 1fr) !important; }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed__info { padding: 36px 12px 10px; }
  .feed__sizes { display: none; }
  .feed__plaque { padding: 14px; font-size: clamp(1.7rem, 7vw, 2.8rem); }
  .cakes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .autumn { padding: 64px 0; }
  .autumn__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 0 20px; }
  .autumn__copy { position: static; }
  .reviews__list { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 560px) {
  .occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .occasion { min-height: 180px; padding: 14px; }
  .autumn__gallery { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feed__card img { transition: none; }
}

/* Шапка заодно с первым экраном */
.site-header { padding-block: 14px; background: var(--plum-deep); border-bottom: 1px solid #fbf3e81f; color: #fbf3e8; }
.site-nav a { position: relative; padding: 6px 0; color: #f1e4d6; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--champagne); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.logo { font-size: 38px; color: #f3d9d4; }
.site-header .btn--main { background: var(--cream); color: var(--burgundy); }
.site-header .btn--main:hover { background: #fff; }
.site-header :focus-visible { outline-color: var(--champagne); }
.nav-toggle span { background: #fbf3e8; }
.mobile-menu { inset: 68px 0 0; background: var(--plum-deep); color: #fbf3e8; }
.mobile-menu a { border-bottom-color: #fbf3e826; }

/* Цвет текста первого экрана */
.hero { margin: 0; border-radius: 0; min-height: min(calc(100svh - 68px), 860px); }
.hero__kicker { color: var(--champagne); }
.hero h1 { color: #fbf3e8; }
.hero h1 em { color: #f0c9c4; }
.hero__tagline { color: #f3e7da; }
.hero .btn--pumpkin { background: var(--cream); color: var(--burgundy); }
.hero .btn--pumpkin:hover { background: #fff; }

/* Анимации */
.hero__petals { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero__copy { z-index: 2; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--glow-x, 50%) var(--glow-y, 50%), #f0c9c42e, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.hero.has-glow::after { opacity: 1; }
.cursor-trail { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero__visual { overflow: hidden; }
  .hero__visual img { transform-origin: 70% 50%; animation: hero-breathe 18s ease-in-out infinite alternate; }
  .hero__copy > * { animation: rise-in 1.1s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.26s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.4s; }
  .feed > :nth-child(3n + 2), .cakes__grid > :nth-child(3n + 2), .occasion:nth-child(3n + 2) { transition-delay: 0.08s; }
  .feed > :nth-child(3n), .cakes__grid > :nth-child(3n), .occasion:nth-child(3n) { transition-delay: 0.16s; }
  .feed__plaque { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .feed__plaque:hover { transform: scale(0.985); }
  .cakes__grid img { transition: transform 0.9s var(--ease); }
  .cakes__grid figure:hover img { transform: scale(1.04); }
  .occasion img { transition: transform 0.9s var(--ease); }
  .occasion:hover img { transform: scale(1.05); }
  .btn { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px #24121a80; }
  .btn:active { transform: translateY(0); }
}
@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.occasion__example { position: absolute !important; top: 12px; left: 12px; padding: 2px 8px; font-size: 11px; color: var(--choc); background: #f8f1e8d9; border-radius: 999px; }
