@charset "UTF-8";

/* ---------- Основа ---------- */
:root {
  --bg: #fff6fa;
  --bg-blue: #eef6fd;
  --white: #ffffff;
  --pink: #f7a8c7;
  --pink-soft: #fde3ee;
  --pink-deep: #e0619a;
  --blue: #a9d3f2;
  --blue-soft: #e2f0fc;
  --blue-deep: #4e8fca;
  --yellow: #ffd36e;
  --mint: #bfe8d6;
  --ink: #3c3654;
  --ink-soft: #6e6987;
  --line: rgba(60, 54, 84, .1);
  --radius: 30px;
  --shadow: 0 26px 60px -30px rgba(120, 70, 120, .45);
  --shadow-soft: 0 14px 34px -22px rgba(120, 70, 120, .4);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Nunito', 'Segoe UI', Arial, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --header: 74px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
  overflow-x: clip;
  /* Едва заметная посыпка по всему сайту */
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg opacity='.38'%3E%3Crect x='30' y='40' width='14' height='5' rx='2.5' fill='%23f7a8c7' transform='rotate(35 37 42)'/%3E%3Crect x='180' y='30' width='14' height='5' rx='2.5' fill='%23a9d3f2' transform='rotate(-20 187 32)'/%3E%3Crect x='120' y='150' width='14' height='5' rx='2.5' fill='%23ffd36e' transform='rotate(70 127 152)'/%3E%3Crect x='220' y='200' width='14' height='5' rx='2.5' fill='%23f7a8c7' transform='rotate(-50 227 202)'/%3E%3Crect x='50' y='210' width='14' height='5' rx='2.5' fill='%23bfe8d6' transform='rotate(10 57 212)'/%3E%3Ccircle cx='100' cy='70' r='3' fill='%23a9d3f2'/%3E%3Ccircle cx='230' cy='120' r='3' fill='%23f7a8c7'/%3E%3Ccircle cx='20' cy='140' r='2.5' fill='%23ffd36e'/%3E%3Ccircle cx='160' cy='240' r='2.5' fill='%23a9d3f2'/%3E%3C/g%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

h1, h2 {
  font-family: var(--serif);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--pink-deep);
  background: linear-gradient(transparent 68%, rgba(169, 211, 242, .55) 68%);
  padding: 0 .06em;
}

h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: 18px; line-height: 1.3; font-weight: 800; }

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.kicker::before { content: "✦"; content: "✦" / ""; font-size: 11px; }

.lead { color: var(--ink-soft); font-size: 17px; margin-top: 20px; }
.hand { font-family: var(--hand); font-size: 28px; line-height: 1.2; color: var(--pink-deep); }

/* ---------- Кнопки ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.button span { transition: transform .25s ease; }
.button:hover { transform: translateY(-3px); }
.button:hover span { transform: translateX(4px); }
.button:active { transform: translateY(0) scale(.98); }

.button-primary {
  background: linear-gradient(135deg, #f58cb6, var(--pink-deep));
  color: var(--white);
  box-shadow: 0 16px 30px -14px rgba(224, 97, 154, .85), inset 0 -3px 0 rgba(0, 0, 0, .08);
}

.button-primary:hover { box-shadow: 0 20px 36px -14px rgba(224, 97, 154, .95), inset 0 -3px 0 rgba(0, 0, 0, .08); }

.button-ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--blue), var(--shadow-soft);
}

.button-ghost:hover { box-shadow: inset 0 0 0 2px var(--blue-deep), var(--shadow-soft); }

:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }

/* ---------- Наклейки-тортики и посыпка ---------- */
.kawaii {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(120, 70, 120, .22));
  animation: bob 5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, -6deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--tilt, -6deg) * -1)); }
}

.sprinkle {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 99px;
  opacity: .85;
}

.confetti-piece {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  border-radius: 2px;
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  padding: 0 max(20px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 30px;
  transition: background-color .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 246, 250, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(120, 70, 120, .5);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft));
  color: var(--pink-deep);
  box-shadow: inset 0 0 0 2px var(--white), 0 6px 16px -8px rgba(224, 97, 154, .6);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1; white-space: nowrap; }
.brand-name i { color: var(--pink-deep); }

.navigation { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 700; }
.navigation a { position: relative; padding: 6px 0; transition: color .2s ease; }
.navigation a:hover { color: var(--pink-deep); }

.navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.navigation a:hover::after { transform: scaleX(1); }
.navigation-phone { display: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--pink), var(--shadow-soft);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}

.header-phone:hover { background: var(--pink-deep); color: var(--white); }

.phone-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--blue), var(--shadow-soft);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}

.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 30px;
  min-height: min(100svh, 900px);
  padding: calc(var(--header) + 24px) max(20px, calc((100% - 1180px) / 2)) 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 18%, rgba(169, 211, 242, .55), transparent 36%),
    radial-gradient(circle at 4% 92%, rgba(247, 168, 199, .4), transparent 40%);
}

.hero-text { position: relative; z-index: 3; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--pink-soft), var(--shadow-soft);
  font-size: 14px;
  font-weight: 800;
  color: var(--pink-deep);
  transform: rotate(-2deg);
}

.hero h1 {
  margin: 24px 0 22px;
  font-size: clamp(36px, 4.6vw, 66px);
  max-width: 12em;
}

.hero-copy { max-width: 500px; font-size: 18px; color: var(--ink-soft); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 700;
}

.hero-chips li:nth-child(2) { background: var(--blue-soft); }

.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(100%, 520px);
  aspect-ratio: 520 / 640;
  max-height: calc(100svh - var(--header) - 50px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-blob {
  position: absolute;
  inset: 8% 0 2%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .85), transparent 40%),
    linear-gradient(160deg, var(--blue) 0%, #d6e9fb 45%, var(--pink) 100%);
  box-shadow: var(--shadow);
  animation: morph 12s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
  50% { border-radius: 56% 44% 54% 46% / 44% 56% 44% 56%; }
}

.hero-ring {
  position: absolute;
  inset: 3% -4% -3%;
  border: 2px dashed rgba(224, 97, 154, .35);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-image {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 99%);
}

.kawaii-hero-1 { width: 96px; height: 106px; top: 4%; right: 2%; --tilt: 8deg; }
.kawaii-hero-2 { width: 78px; height: 78px; bottom: 18%; left: -2%; --tilt: -10deg; animation-delay: -2.5s; }

.hand-note {
  position: absolute;
  z-index: 3;
  top: 13%;
  left: -24%;
  font-family: var(--hand);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--pink-deep);
  transform: rotate(-8deg);
}

.hand-note svg {
  display: block;
  width: 70px;
  height: 44px;
  margin: 4px 0 0 60px;
  fill: none;
  stroke: var(--pink-deep);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.hero-badge {
  position: absolute;
  z-index: 3;
  right: -4%;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  transform: rotate(3deg);
}

.hero-badge span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 18px;
}

/* ---------- Бегущая строка ---------- */
/* Обёртка обрезает наклонённую ленту, чтобы страница не прокручивалась вбок. */
.ribbon-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 14px 0;
  margin: -14px 0;
}

.ribbon {
  width: 104%;
  margin-left: -2%;
  overflow: hidden;
  padding: 16px 0;
  background: linear-gradient(90deg, var(--pink), #f9bfd6, var(--blue));
  color: var(--ink);
  transform: rotate(-1.2deg);
  box-shadow: 0 14px 30px -20px rgba(224, 97, 154, .7);
}

.ribbon-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 600;
  white-space: nowrap;
}

.ribbon-track i { font-style: normal; font-size: 15px; color: var(--white); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Капли глазури ---------- */
.drip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  fill: var(--bg);
  pointer-events: none;
}

/* ---------- Обо мне ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; }
.about-text { display: grid; gap: 14px; color: var(--ink-soft); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; }

.feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}

.feature:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 20px 20px 20px 6px;
  background: var(--pink-soft);
}

.feature-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--pink-deep);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature:nth-child(even) .feature-icon { background: var(--blue-soft); }
.feature:nth-child(even) .feature-icon svg { stroke: var(--blue-deep); }
.feature p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Торты ---------- */
.cakes { background: rgba(226, 240, 252, .75); padding-top: clamp(100px, 11vw, 150px); }
.kawaii-cakes { width: 110px; height: 110px; top: 70px; right: max(20px, calc((100% - 1180px) / 2 - 40px)); --tilt: 7deg; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 50px; }
.section-head > p { max-width: 380px; color: var(--ink-soft); }
.section-head-center { flex-direction: column; align-items: center; gap: 0; text-align: center; }
.section-head-center > p { margin-top: 18px; max-width: 540px; }

.cake-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.cake-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}

.cake-card:nth-child(2) { transform: translateY(18px); }
.cake-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow); }

.cake-photo {
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border-radius: 22px;
  background: var(--pink-soft);
}

.cake-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cake-card:hover .cake-photo img { transform: scale(1.06); }

.cake-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pink-deep);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  transform: rotate(-4deg);
  box-shadow: 0 8px 16px -8px rgba(224, 97, 154, .9);
}

.cake-tag-blue { background: var(--blue-deep); box-shadow: 0 8px 16px -8px rgba(78, 143, 202, .9); }

.cake-body { display: flex; flex-direction: column; flex: 1; padding: 20px 14px 14px; }
.cake-body h3 { font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1.15; }
.cake-body > p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }

.cake-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 14px; }

.cake-meta li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 700;
  color: #3f6f9b;
}

.cake-meta li:nth-child(2) { background: var(--pink-soft); color: var(--pink-deep); }

.cake-price { margin-bottom: 16px; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.cake-price small { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink-soft); }

.cake-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px;
  border-radius: 16px;
  background: var(--pink-soft);
  font-weight: 800;
  color: var(--pink-deep);
  transition: background-color .25s ease, color .25s ease;
}

.cake-link span { transition: transform .25s ease; }
.cake-link:hover { background: var(--pink-deep); color: var(--white); }
.cake-link:hover span { transform: translateX(5px); }

/* ---------- Конструктор ---------- */
.builder { overflow: hidden; }

.builder-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(20px, 3.5vw, 44px);
  border-radius: 40px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.builder-stage {
  position: sticky;
  top: calc(var(--header) + 20px);
  align-self: start;
  height: min(560px, calc(100svh - var(--header) - 40px));
  display: grid;
  place-items: center;
  min-height: 380px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .95) 0 30%, transparent 62%),
    linear-gradient(160deg, var(--blue-soft), var(--pink-soft));
  overflow: hidden;
}

.builder-cake { position: relative; z-index: 1; width: min(92%, 430px); height: auto; overflow: visible; }

.cake-scale {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scale(var(--cake-scale, .85));
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}

.c-sponge { fill: var(--sponge, #ffe3b8); transition: fill .4s ease; }
.c-filling { fill: var(--filling, #f06292); transition: fill .4s ease; }
.c-cream { fill: #fff5f9; }

.decor { display: none; }
.builder-cake[data-decor="berries"] .decor-berries,
.builder-cake[data-decor="chocolate"] .decor-chocolate,
.builder-cake[data-decor="bear"] .decor-bear,
.builder-cake[data-decor="topper"] .decor-topper { display: inline; animation: pop .45s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes pop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

.builder-cake.is-bouncing { animation: squish .5s ease; }

@keyframes squish {
  30% { transform: scale(1.04, .96); }
  60% { transform: scale(.98, 1.02); }
}

.kawaii-builder { width: 70px; height: 77px; right: 18px; bottom: 18px; --tilt: 10deg; }

.builder-form { display: grid; gap: 20px; align-content: start; }
.builder-form legend { margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }

.pills span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-blue);
  font-size: 15px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.pills label:hover span { transform: translateY(-2px); }
.pills input:checked + span { background: var(--pink-deep); color: var(--white); box-shadow: 0 10px 18px -10px rgba(224, 97, 154, .9); }
.pills input:focus-visible + span { outline: 3px solid var(--blue-deep); outline-offset: 2px; }

.builder-summary { padding: 16px 20px; border-radius: 20px; background: var(--pink-soft); border: 2px dashed rgba(224, 97, 154, .35); }
.builder-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.builder-summary-title { font-family: var(--hand); font-size: 26px; font-weight: 700; line-height: 1; color: var(--pink-deep); }
.builder-price { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1; white-space: nowrap; }
.builder-summary-text { margin-top: 8px; font-weight: 700; }
.builder-delivery { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--ink-soft); }
.builder-delivery.is-free { color: #2f8a5b; }

/* Ползунок веса */
.weight-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.weight-value { font-size: 28px; font-weight: 800; line-height: 1; color: var(--pink-deep); }
.weight-portions { font-size: 14px; font-weight: 700; color: var(--ink-soft); }

.weight-range {
  --fill: 16.6%;
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}

.weight-range::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink) 0, var(--pink-deep) var(--fill), var(--blue-soft) var(--fill));
  box-shadow: inset 0 0 0 1px var(--line);
}

.weight-range::-moz-range-track { height: 12px; border-radius: 99px; background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--line); }
.weight-range::-moz-range-progress { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--pink-deep)); }

.weight-range::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -9px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--pink-deep);
  box-shadow: 0 6px 14px -4px rgba(224, 97, 154, .8);
  -webkit-appearance: none;
  appearance: none;
  transition: transform .2s ease;
}

.weight-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--pink-deep);
  box-shadow: 0 6px 14px -4px rgba(224, 97, 154, .8);
}

.weight-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.weight-range:focus-visible { outline: none; }
.weight-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--blue-deep); outline-offset: 2px; }

.weight-scale { display: flex; justify-content: space-between; margin-top: 4px; padding: 0 9px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.weight-scale span:last-child { margin-right: -14px; }

.builder-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.builder-note { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Начинки ---------- */
.fillings-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.fillings-photo { position: relative; }

.fillings-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 10px solid var(--white);
  border-radius: 240px 240px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.photo-note {
  position: absolute;
  right: -20px;
  bottom: 50px;
  padding: 14px 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-family: var(--hand);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--pink-deep);
  transform: rotate(4deg);
}

.kawaii-fillings { width: 84px; height: 84px; top: 6%; left: -24px; --tilt: -10deg; }

.filling-list { display: grid; gap: 10px; margin-top: 32px; }

.filling-list li {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.filling-list b { font-size: 17px; }
.filling-list p { margin-top: 2px; font-size: 15px; color: var(--ink-soft); }

.dot { flex-shrink: 0; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); }
.dot-rose { background: #f06292; }
.dot-choco { background: #7a4a35; }
.dot-cream { background: #fbe7b9; box-shadow: 0 0 0 4px var(--bg), inset 0 0 0 1px rgba(0, 0, 0, .1); }
.dot-gold { background: #e6a845; }

.ingredients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.ingredients span {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 14px;
  font-weight: 700;
  color: #3f6f9b;
}

.ingredients span:nth-child(even) { background: var(--pink-soft); color: var(--pink-deep); }

/* ---------- Процесс ---------- */
.process { background: rgba(253, 227, 238, .65); padding-top: clamp(100px, 11vw, 150px); }
.drip-blue { fill: var(--bg); }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.steps::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 12%;
  right: 12%;
  border-top: 3px dashed rgba(224, 97, 154, .35);
}

.step {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--pink-soft);
}

.step:nth-child(even) .step-num { background: var(--blue); box-shadow: 0 0 0 6px var(--blue-soft); }
.step h3 { font-size: 20px; }
.step p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }

/* ---------- Доставка ---------- */
.delivery-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 64px;
  padding: clamp(32px, 5.5vw, 72px);
  border-radius: 44px;
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 168, 199, .55), transparent 42%),
    linear-gradient(150deg, #d9ecfc, #c4e0f7 60%, #e7d9f3);
  overflow: hidden;
}

.delivery-intro, .delivery-options, .storage { position: relative; z-index: 1; }
.delivery-intro .kicker { background: var(--white); }
.delivery-intro p:not(.kicker) { margin: 20px 0 22px; color: var(--ink-soft); font-size: 17px; }

.delivery-price { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.delivery-price div {
  display: grid;
  padding: 14px 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.delivery-price b { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.delivery-price span { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.delivery-price-free { box-shadow: inset 0 0 0 2px var(--pink), var(--shadow-soft) !important; }
.delivery-price-free b { color: var(--pink-deep); }

.delivery-options { display: grid; gap: 14px; align-content: center; }

.delivery-option {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-soft);
}

.delivery-option p { margin-top: 4px; font-size: 14.5px; color: var(--ink-soft); }

.delivery-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--pink-soft);
  color: var(--pink-deep);
}

.delivery-option:nth-child(2) .delivery-icon { background: var(--blue-soft); color: var(--blue-deep); }

.delivery-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storage {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 22px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .6);
  border: 2px dashed rgba(78, 143, 202, .35);
}

.storage b { flex-shrink: 0; font-family: var(--hand); font-size: 30px; line-height: 1; color: var(--blue-deep); }
.storage p { color: var(--ink-soft); }

.kawaii-delivery { width: 104px; height: 104px; top: 12px; right: 24px; --tilt: 8deg; opacity: .95; }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header) + 30px); }
.faq-intro > p:not(.kicker) { margin-top: 18px; color: var(--ink-soft); }

.faq-phone {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(transparent 65%, var(--pink-soft) 65%);
}

.faq-list { display: grid; gap: 12px; }

.faq-list details {
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .25s ease;
}

.faq-list details[open] { box-shadow: 0 0 0 2px var(--pink), var(--shadow-soft); }

.faq-list summary {
  position: relative;
  padding: 22px 66px 22px 26px;
  font-size: 17px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--pink-deep); color: var(--white); }
.faq-list details p { padding: 0 26px 24px; color: var(--ink-soft); }

/* ---------- Финальный блок ---------- */
.closing { padding-top: 0; }

.closing-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(36px, 5vw, 64px);
  border-radius: 44px;
  background: linear-gradient(120deg, var(--pink-soft), #fff0f6 50%, var(--blue-soft));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.closing-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(230px, 30vw, 380px);
  aspect-ratio: 1;
}

.closing-visual::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--white), rgba(255, 255, 255, .4) 70%);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .45);
}

.closing-cake {
  position: relative;
  width: 92%;
  filter: drop-shadow(0 26px 22px rgba(80, 50, 90, .28));
  animation: bob 7s ease-in-out infinite;
  --tilt: 0deg;
}

.kawaii-closing { width: 76px; height: 84px; top: 0; right: -6px; --tilt: 12deg; }

.closing-text { position: relative; z-index: 1; }
.closing-text > p:not(.kicker) { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }

.closing-phone {
  display: block;
  margin: 16px 0 24px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
}

/* ---------- Подвал ---------- */
.site-footer { padding: 30px 0 40px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 2px dashed rgba(224, 97, 154, .25);
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-inner > a:last-child { font-weight: 800; color: var(--ink); }

.call-fab { display: none; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .cake-card:nth-child(2) { transform: translateY(18px); }

/* ---------- Планшеты ---------- */
@media (max-width: 1080px) {
  .navigation { gap: 20px; font-size: 14px; }
  .header-phone-text { display: none; }
  .header-phone { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .hand-note { left: -10%; }
  .hero-badge { right: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .photo-note { right: 14px; }
  .builder-card { grid-template-columns: 1fr; }
  .builder-stage { position: relative; top: auto; height: auto; min-height: 320px; }
  .builder-cake { width: min(70%, 320px); }
}

@media (max-width: 900px) {
  :root { --header: 66px; }

  /* На телефонах шапка всегда одинаковая: без смены фона и размытия при прокрутке. */
  .site-header,
  .site-header.is-scrolled,
  .site-header.menu-open {
    gap: 10px;
    background: rgba(255, 246, 250, .97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 1px 0 var(--line);
    transition: none;
    transform: translateZ(0);
  }

  .header-phone { margin-left: auto; }
  .menu-toggle { display: block; }

  .navigation {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 24px;
    margin: 0;
    background: rgba(255, 246, 250, .98);
    box-shadow: 0 30px 40px -20px rgba(120, 70, 120, .35);
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }

  .navigation.is-open { opacity: 1; visibility: visible; transform: none; }
  .navigation a { padding: 12px 0; border-bottom: 2px dashed rgba(224, 97, 154, .18); }
  .navigation a::after { display: none; }

  .navigation .navigation-phone {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    padding: 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f58cb6, var(--pink-deep));
    color: var(--white);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 800;
  }

  /* Главный экран: заголовок → иллюстрация → текст и кнопки */
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding-top: calc(var(--header) + 22px);
    padding-bottom: 46px;
    text-align: center;
  }

  .hero-text { display: contents; }
  .hero > *, .hero-text > * { justify-self: center; }
  .eyebrow { order: 1; }
  .hero h1 { order: 2; margin: 18px auto 10px; }
  .hero-visual { order: 3; width: min(100%, 440px); max-height: none; }
  .hero-copy { order: 4; margin-top: 26px; font-size: 16.5px; }
  .hero-actions { order: 5; justify-content: center; margin-top: 22px; }
  .hero-chips { order: 6; justify-content: center; margin-top: 22px; }

  .about-grid, .fillings-grid, .faq-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 22px; }
  .faq-intro { position: static; }

  .section-head { flex-direction: column; align-items: start; gap: 14px; margin-bottom: 34px; }
  .section-head-center { align-items: center; }

  .cake-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(100%, 460px);
    margin-inline: auto;
  }

  .cake-card:nth-child(2), .js .cake-card:nth-child(2) { transform: none; }
  .cake-photo { aspect-ratio: 4 / 3.4; }
  .kawaii-cakes { width: 80px; height: 80px; top: 64px; }

  .fillings-photo { width: min(100%, 420px); margin-inline: auto; }
  .kawaii-fillings { left: -8px; }

  .delivery-card { grid-template-columns: 1fr; gap: 28px; }
  .kawaii-delivery { width: 80px; height: 80px; top: 18px; right: 18px; }

  .closing-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }

  .footer-inner { flex-direction: column; text-align: center; gap: 8px; }
  .site-footer { padding-bottom: 100px; }

  .call-fab {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    white-space: nowrap;
    background: linear-gradient(135deg, #f58cb6, var(--pink-deep));
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 18px 30px -12px rgba(224, 97, 154, .85);
    transform: translate(-50%, 160%);
    transition: transform .35s ease;
  }

  .call-fab.is-visible { transform: translate(-50%, 0); }
}

/* ---------- Телефоны ---------- */
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand-name { font-size: 22px; }

  h2 { font-size: clamp(31px, 9vw, 40px); }
  .kicker { font-size: 12px; margin-bottom: 12px; }
  .lead, .about-text, .closing-text > p:not(.kicker), .delivery-intro p:not(.kicker) { font-size: 16px; }

  .hero { padding-inline: 16px; }
  .eyebrow { font-size: 13px; padding: 7px 14px; }
  .hero h1 { font-size: clamp(32px, 9.6vw, 44px); }
  .hero-visual { width: min(100%, 360px); }
  .hero-actions { width: 100%; flex-direction: column; gap: 10px; }
  .hero-actions .button { width: 100%; }
  .hero-chips { gap: 6px; }
  .hero-chips li { padding: 7px 12px; font-size: 13px; }

  .kawaii-hero-1 { width: 66px; height: 73px; right: 0; }
  .kawaii-hero-2 { width: 56px; height: 56px; left: 0; bottom: 22%; }
  .hand-note { display: none; }
  .hero-badge { padding: 8px 12px 8px 8px; font-size: 12px; border-radius: 14px; bottom: 6%; }
  .hero-badge span { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; }

  .ribbon { padding: 12px 0; }
  .ribbon-track { font-size: 20px; gap: 22px; }

  .features { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
  .feature { padding: 18px 16px; border-radius: 22px; }
  .feature-icon { width: 46px; height: 46px; margin-bottom: 14px; border-radius: 16px 16px 16px 5px; }
  .feature-icon svg { width: 23px; height: 23px; }
  .feature h3 { font-size: 15px; }
  .feature p { font-size: 13px; }

  .cake-body h3 { font-size: 25px; }

  .builder-card { padding: 14px; border-radius: 30px; }
  .builder-stage { min-height: 260px; border-radius: 22px; }
  .builder-cake { width: min(82%, 280px); }
  .pills span { padding: 8px 13px; font-size: 14px; }
  .builder-actions .button { width: 100%; }
  .kawaii-builder { width: 52px; height: 57px; right: 10px; bottom: 10px; }

  .photo-note { right: 8px; bottom: 24px; font-size: 22px; padding: 12px 16px; }
  .filling-list li { padding: 14px 16px; }

  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; text-align: left; }
  .step-num { grid-row: span 2; width: 50px; height: 50px; margin: 0; font-size: 24px; }

  .delivery-card { border-radius: 32px; padding: 30px 18px; }
  .delivery-option { padding: 16px; gap: 14px; }
  .delivery-icon { width: 44px; height: 44px; border-radius: 14px; }
  .storage { flex-direction: column; gap: 8px; padding: 18px; }
  .delivery-intro .button { width: 100%; }
  .delivery-intro h2 { padding-right: 56px; }

  .faq-list summary { padding: 18px 58px 18px 20px; font-size: 16px; }
  .faq-list summary::after { right: 16px; }
  .faq-list details p { padding: 0 20px 20px; }
  .faq-phone { font-size: 27px; }

  .closing-card { border-radius: 32px; padding: 34px 18px; }
  .closing-card .button { width: 100%; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 20px; }
  .hero-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
