/* ==========================================================================
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ========================================================================== */
:root {
  --bg-main: #f6efe6;
  --text-primary: #1f1a17;
  --text-secondary: #6e6259;
  --accent-primary: #c86d51;
  --error-color: #d93829;
  --success-color: #1f9d55;
  --glass-shadow: 0 12px 32px -4px rgba(92, 64, 45, 0.12),
                  inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  background-image: radial-gradient(rgba(140, 110, 85, 0.14) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  scroll-margin-top: 96px;
}

/* ==========================================================================
   2. АТМОСФЕРНЫЕ ЦВЕТОВЫЕ СФЕРЫ
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  animation: blobFloat 16s infinite alternate ease-in-out;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: #f7c8b6;
  top: -80px;
  right: 8%;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: #f3d9a4;
  bottom: 10%;
  left: -60px;
  animation-delay: -5s;
}

.blob-3 {
  width: 360px;
  height: 360px;
  background: #f5b8c4;
  top: 42%;
  left: 45%;
  animation-delay: -9s;
}

.blob-4 {
  width: 380px;
  height: 380px;
  background: #e9c7f2;
  bottom: 35%;
  right: 12%;
  animation-delay: -12s;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, -35px) scale(1.08); }
}

/* ==========================================================================
   3. ЭФФЕКТ ПРОЗРАЧНОГО СТЕКЛА НА КНОПКАХ (LIQUID GLASS)
   ========================================================================== */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.btn-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.btn-glass:hover::before {
  left: 140%;
}

.btn-glass:hover {
  transform: translateY(-3px);
}

.btn-glass:active {
  transform: translateY(0) scale(0.98);
}

.btn-glass:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-glass-primary {
  background: linear-gradient(
    135deg,
    rgba(200, 95, 68, 0.82) 0%,
    rgba(165, 68, 48, 0.72) 100%
  );
  color: #ffffff;
  border: 1px solid rgba(255, 235, 225, 0.75);
  box-shadow: 0 12px 28px -6px rgba(175, 75, 50, 0.38),
              inset 0 1.5px 2px rgba(255, 255, 255, 0.65),
              inset 0 -2px 6px rgba(95, 30, 15, 0.25);
}

.btn-glass-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(212, 102, 74, 0.9) 0%,
    rgba(175, 72, 52, 0.8) 100%
  );
  box-shadow: 0 16px 34px -6px rgba(175, 75, 50, 0.5),
              inset 0 1.5px 3px rgba(255, 255, 255, 0.85);
}

.btn-glass-light,
.btn-glass-sm,
.btn-filter {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.32) 100%
  );
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px -6px rgba(80, 55, 35, 0.1),
              inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
              inset 0 -1px 3px rgba(190, 160, 135, 0.2);
}

.btn-glass-sm,
.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

/* ==========================================================================
   4. ШАПКА САЙТА И ВСТРОЕННЫЙ ЛОГОТИП
   ========================================================================== */
.header {
  position: sticky;
  top: 14px;
  z-index: 120;
  margin: 14px auto 0;
  max-width: 1240px;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px -10px rgba(70, 45, 30, 0.14);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-svg-wrap {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(175, 75, 50, 0.28));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-svg-sm {
  width: 40px;
  height: 40px;
}

.logo:hover .logo-svg-wrap {
  transform: scale(1.07) rotate(-4deg);
}

.brand-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text {
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--accent-primary);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 12px rgba(140, 90, 60, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================================
   5. ГЛАВНЫЙ ЭКРАН И НОВЫЙ ЭМОДЗИ ТОРТА В НАЧАЛЕ СТРАНИЦЫ
   ========================================================================== */
.hero {
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
  font-weight: 600;
  color: #5e4b3e;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2bb673;
  box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.2);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-title span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--accent-primary);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(130, 100, 80, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.2rem;
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(130, 100, 80, 0.18);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 28px 0;
}

.showcase-wrapper {
  position: relative;
  width: 100%;
  max-width: 490px;
  perspective: 1000px;
}

.art-card {
  position: relative;
  padding: 50px 36px 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    145deg,
    rgba(238, 224, 205, 0.82) 0%,
    rgba(232, 214, 192, 0.58) 100%
  );
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 60px -15px rgba(95, 65, 40, 0.16),
              inset 0 2px 4px rgba(255, 255, 255, 0.9);
  text-align: center;
  transition: transform 0.25s ease;
}

/* Новый воздушный эмодзи торта в стеклянной сфере */
.cake-illustration-orb {
  width: 108px;
  height: 108px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.92),
    rgba(255, 236, 222, 0.48)
  );
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 34px -8px rgba(145, 80, 45, 0.22),
              inset 0 2px 6px rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.2rem;
  line-height: 1;
  animation: gentleBounce 4s ease-in-out infinite;
}

.cake-illustration-orb span {
  filter: drop-shadow(0 10px 14px rgba(140, 70, 40, 0.22));
  transform: translateY(-2px);
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.art-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.art-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto 22px;
}

.art-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-glass-tag {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 500;
  color: #554438;
}

.floating-badge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.66) 100%
  );
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 38px -8px rgba(70, 45, 25, 0.16),
              inset 0 1px 2px rgba(255, 255, 255, 1);
  transition: rotate 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              scale 0.35s ease;
}

.badge-top {
  top: -22px;
  right: -18px;
  rotate: 4deg;
  animation: floatBadge 5s ease-in-out infinite;
}

.badge-bottom {
  bottom: -22px;
  left: -24px;
  rotate: -4.5deg;
  animation: floatBadge 5.5s ease-in-out infinite reverse;
}

.floating-badge:hover {
  rotate: 0deg;
  scale: 1.04;
}

@keyframes floatBadge {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.badge-emoji {
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 245, 235, 0.85);
}

.badge-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-block;
  transform: skewX(-4deg);
}

.badge-subtext {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-secondary);
  display: inline-block;
  transform: skewX(-10deg);
}

/* ==========================================================================
   6. БЕГУЩАЯ СТРОКА С ЛОГОТИПАМИ ПАРТНЁРОВ (БЕЗ ОСТАНОВКИ ПРИ НАВЕДЕНИИ)
   ========================================================================== */
.partners-section {
  padding: 28px 0 64px;
  overflow: hidden;
}

.partners-header {
  text-align: center;
  margin-bottom: 28px;
}

.partners-title {
  font-size: 1.85rem;
  margin-top: 4px;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: running;
}

.marquee-Group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.partner-logo-card {
  width: 210px;
  height: 104px;
  padding: 18px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px -8px rgba(85, 58, 38, 0.12),
              inset 0 1px 2px rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.partner-logo-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.9);
}

.partner-logo-card img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   7. КАТАЛОГ ТОРТОВ И НАЧИНОК
   ========================================================================== */
.catalog,
.fillings-section,
.features,
.faq-section {
  padding: 44px 0 72px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 34px;
}

.section-subtitle {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  font-weight: 700;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 680px;
  margin-top: 8px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-filter {
  padding: 9px 18px;
  font-size: 0.86rem;
}

.btn-filter.active {
  background: linear-gradient(
    135deg,
    rgba(200, 95, 68, 0.85) 0%,
    rgba(165, 68, 48, 0.72) 100%
  );
  color: #fff;
  border-color: rgba(255, 230, 220, 0.8);
}

.catalog-grid,
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px -8px rgba(92, 64, 45, 0.18);
}

.product-visual {
  position: relative;
  height: 195px;
  background: linear-gradient(135deg, rgba(242, 225, 206, 0.78), rgba(248, 212, 200, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-emoji {
  font-size: 4.5rem;
  filter: drop-shadow(0 10px 16px rgba(120, 75, 45, 0.18));
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f3d31;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.product-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(140, 110, 85, 0.14);
}

.product-price {
  font-size: 1.22rem;
  font-weight: 700;
}

.product-price span {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.fillings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.filling-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s ease;
}

.filling-card:hover {
  transform: translateY(-5px);
}

.filling-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filling-emoji {
  font-size: 2.3rem;
}

.filling-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(200, 109, 81, 0.14);
  color: var(--accent-primary);
}

.filling-card h3 {
  font-size: 1.12rem;
}

.filling-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.filling-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.filling-layers span {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(220, 200, 185, 0.6);
  color: #554438;
}

/* ==========================================================================
   8. КАЛЬКУЛЯТОР ВЕСА И СТОИМОСТИ
   ========================================================================== */
.calculator-section {
  padding: 20px 0 72px;
}

.calc-glass-box {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  padding: 42px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(243, 225, 208, 0.55));
  backdrop-filter: blur(22px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--glass-shadow);
  align-items: center;
}

.calc-info h2 {
  font-size: 1.85rem;
  margin: 6px 0 12px;
}

.calc-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.glass-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}

.calc-result-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid #ffffff;
  box-shadow: 0 18px 40px -12px rgba(95, 65, 40, 0.16);
}

.calc-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(200, 109, 81, 0.15);
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.calc-metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.calc-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(140, 110, 85, 0.2);
}

.calc-metric span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.calc-metric strong {
  font-size: 1.15rem;
}

.calc-metric.highlight strong {
  font-size: 1.45rem;
  color: var(--accent-primary);
}

/* ==========================================================================
   9. ПРЕИМУЩЕСТВА, ДОСТАВКА И FAQ
   ========================================================================== */
.bento-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--glass-shadow);
}

.bento-icon {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 12px;
}

.bento-card h3 {
  margin-bottom: 8px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.cta-section {
  padding: 20px 0 72px;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 32px;
}

.delivery-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--glass-shadow);
}

.delivery-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(200, 109, 81, 0.14);
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.delivery-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.delivery-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
}

.delivery-list li::before {
  content: "•";
  color: var(--accent-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.delivery-list li strong {
  color: var(--text-primary);
}

.cta-glass-box {
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(243, 225, 208, 0.55));
  backdrop-filter: blur(22px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--glass-shadow);
  text-align: center;
}

.cta-content h2 {
  font-size: 1.95rem;
  margin-bottom: 12px;
}

.cta-content p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: var(--text-secondary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 26px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--accent-primary);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 26px 22px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.footer {
  padding: 36px 0;
  border-top: 1px solid rgba(140, 110, 85, 0.16);
  background: rgba(255, 255, 255, 0.32);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

/* ==========================================================================
   10. ПРОЗРАЧНОЕ РАЗМЫТОЕ МЕНЮ ЗАКАЗА БЕЗ СКРОЛЛБАРА И С ПРАВИЛЬНЫМИ СЛОЯМИ
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 18, 12, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-glass {
  position: relative;
  width: 100%;
  max-width: 620px;
  padding: 32px 30px;
  border-radius: var(--radius-xl);
  /* Прозрачный фон с красивым размытием (Liquid Glass) */
  background: linear-gradient(
    145deg,
    rgba(255, 250, 244, 0.52) 0%,
    rgba(246, 234, 220, 0.36) 100%
  );
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 65px rgba(35, 20, 10, 0.22),
              inset 0 2px 4px rgba(255, 255, 255, 0.9);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 92vh;
  overflow-y: auto;
  /* Полностью убираем полосу прокрутки справа */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-glass::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-backdrop.active .modal-glass {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.9);
}

.modal-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(200, 109, 81, 0.18);
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.modal-counter-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 600;
  color: #5b483a;
}

.modal-header h3 {
  font-size: 1.55rem;
}

.modal-sub {
  font-size: 0.88rem;
  color: #4f433b;
  margin: 4px 0 18px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* КОНТЕЙНЕР КАРТОЧЕК ТОРТОВ — ВЫШЕ КНОПКИ «ДОБАВИТЬ ЕЩЁ ТОРТ» */
.cake-items-list {
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Карточка торта без изолирующего backdrop-filter, чтобы меню свободно выходило поверх кнопки ниже */
.cake-order-card {
  position: relative;
  z-index: 1;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.28) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px -8px rgba(85, 55, 35, 0.1),
              inset 0 1.5px 2px rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Когда внутри карточки открыт список — поднимаем саму карточку и строку поверх всех остальных элементов */
.cake-order-card.dropdown-active,
.cake-order-card:has(.liquid-dropdown.open) {
  z-index: 120;
}

.cake-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cake-card-num {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.68);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.btn-remove-cake {
  border: 1px solid rgba(217, 56, 41, 0.28);
  background: rgba(255, 240, 240, 0.72);
  color: var(--error-color);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-cake:hover {
  background: var(--error-color);
  color: #fff;
}

/* КАСТОМНЫЙ ВЫПАДАЮЩИЙ СПИСОК В СТИЛЕ ЖИДКОГО СТЕКЛА */
.liquid-dropdown {
  position: relative;
  user-select: none;
  z-index: 2;
}

.liquid-dropdown.open {
  z-index: 200;
}

.liquid-dropdown-trigger {
  width: 100%;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.42) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px -6px rgba(90, 60, 35, 0.08),
              inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
}

.liquid-dropdown-trigger:hover,
.liquid-dropdown.open .liquid-dropdown-trigger {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px -6px rgba(200, 109, 81, 0.22),
              inset 0 1.5px 2px rgba(255, 255, 255, 1);
}

.liquid-trigger-text {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liquid-arrow {
  font-size: 0.78rem;
  color: var(--accent-primary);
  transition: transform 0.28s ease;
  flex-shrink: 0;
}

.liquid-dropdown.open .liquid-arrow {
  transform: rotate(180deg);
}

.liquid-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 230px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 20px;
  /* Полупрозрачное размытое жидкое стекло для выпадающего списка */
  background: rgba(255, 249, 242, 0.82);
  backdrop-filter: blur(26px) saturate(200%);
  -webkit-backdrop-filter: blur(26px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 52px -6px rgba(40, 22, 10, 0.28),
              inset 0 1.5px 3px rgba(255, 255, 255, 1);
  z-index: 300;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  /* Скрываем скроллбар у выпадающего списка */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.liquid-dropdown-menu::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.liquid-dropdown.open .liquid-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.liquid-option {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.liquid-option:hover {
  background: rgba(200, 109, 81, 0.15);
  transform: translateX(3px);
}

.liquid-option.selected {
  background: linear-gradient(
    135deg,
    rgba(200, 95, 68, 0.88) 0%,
    rgba(165, 68, 48, 0.78) 100%
  );
  color: #ffffff;
  font-weight: 600;
}

.liquid-option-price {
  font-size: 0.78rem;
  opacity: 0.85;
  white-space: nowrap;
}

/* ПОЛЕ ВЫБОРА ДАТЫ В СТИЛЕ ЖИДКОГО СТЕКЛА */
.liquid-date-input {
  width: 100%;
  padding: 11px 16px;
  border-radius: 18px !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.42) 100%
  ) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 8px 20px -6px rgba(90, 60, 35, 0.08),
              inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

/* Кнопка добавления ещё одного торта — находится в нижнем слое (z-index: 1), чтобы не перекрывать открытые списки */
.btn-add-cake {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px 20px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(248, 232, 220, 0.38) 100%
  );
  border: 1.5px dashed rgba(200, 109, 81, 0.6);
  color: var(--accent-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.btn-add-cake:hover {
  background: rgba(255, 255, 255, 0.82);
  border-style: solid;
}

.add-cake-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(200, 109, 81, 0.16);
  font-size: 1rem;
}

.modal-divider {
  height: 1px;
  background: rgba(140, 110, 85, 0.18);
  margin: 4px 0;
}

.form-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Поднимаем активную строку/группу с открытым списком над полем даты и кнопками */
.form-row.dropdown-parent-active,
.form-row:has(.liquid-dropdown.open),
.form-group.dropdown-parent-active,
.form-group:has(.liquid-dropdown.open) {
  z-index: 150;
}

.contact-row,
.contact-comment {
  z-index: 1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3f3229;
}

.label-hint {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.58);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(200, 109, 81, 0.16);
}

.modal-form input.input-error {
  border-color: var(--error-color);
  background: rgba(255, 240, 240, 0.85);
}

.modal-form input.input-valid {
  border-color: var(--success-color);
}

.field-error {
  font-size: 0.76rem;
  color: var(--error-color);
  min-height: 15px;
  line-height: 1.2;
}

.form-status {
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  border-radius: 12px;
  padding: 0;
  transition: all 0.25s ease;
}

.form-status.success {
  padding: 10px 14px;
  background: rgba(31, 157, 85, 0.18);
  color: var(--success-color);
}

.form-status.error {
  padding: 10px 14px;
  background: rgba(217, 56, 41, 0.18);
  color: var(--error-color);
}

@media (max-width: 1024px) {
  .hero-grid,
  .bento-grid,
  .catalog-grid,
  .calc-glass-box,
  .delivery-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    background: rgba(255, 250, 244, 0.96);
    backdrop-filter: blur(22px);
    padding: 16px;
    border-radius: 22px;
    border: 1.5px solid #fff;
    box-shadow: 0 20px 40px rgba(50, 30, 15, 0.18);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .badge-top { right: 6px; }
  .badge-bottom { left: 6px; }
}