/* ============ МАЛИНОВОЕ ОБЛАКО ============ */
:root {
  --bg: #FFF7FA;
  --pink: #FFF0F5;
  --card: #FFFFFF;
  --berry: #D6336C;
  --berry-deep: #A61E4D;
  --ink: #3D1530;
  --cocoa: #6B4258;
  --muted: #9A6E80;
  --line: #F3D9E4;
  --gold: #E8B84B;
  --leaf: #6FA96F;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 20px 44px -20px rgba(166, 30, 77, .28);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--berry); color: #fff; }

img, svg { display: block; max-width: 100%; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ШАПКА */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 247, 250, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(166, 30, 77, .3);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: .95rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
}
.brand em { color: var(--berry); font-style: normal; }
.brand-mark {
  width: 40px; height: 40px;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.brand:hover .brand-mark { transform: rotate(8deg) scale(1.08); }
.brand-mark.small { width: 42px; height: 42px; }

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--cocoa);
  font-size: .95rem;
  font-weight: 500;
  padding: .35rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--berry);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { margin-left: .5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* КНОПКИ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(120%); }

.btn-primary { background: var(--berry); color: #fff; box-shadow: 0 10px 24px -10px rgba(214, 51, 108, .55); }
.btn-primary:hover { background: var(--berry-deep); transform: translateY(-3px); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }

.btn-light { background: #fff; color: var(--berry-deep); }
.btn-light:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }

.btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-line:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-3px); }

/* ГЛАВНЫЙ ЭКРАН */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 5rem;
  background:
    radial-gradient(58% 52% at 22% 20%, rgba(244, 166, 192, .4), transparent 70%),
    radial-gradient(50% 50% at 88% 78%, rgba(232, 184, 75, .2), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(166, 30, 77, .06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.cloud {
  position: absolute;
  color: #fff;
  opacity: .8;
  filter: drop-shadow(0 12px 18px rgba(214, 51, 108, .12));
  animation: cloudDrift 16s ease-in-out infinite alternate;
}
.cloud svg { width: 100%; height: auto; }
.cloud-1 { width: 190px; top: 14%; right: 6%; animation-delay: 0s; }
.cloud-2 { width: 140px; top: 56%; left: 4%; opacity: .6; animation-delay: -5s; }
.cloud-3 { width: 110px; top: 74%; right: 18%; opacity: .5; animation-delay: -10s; }

.sprinkle {
  position: absolute;
  width: 5px; height: 14px;
  border-radius: 4px;
  opacity: .7;
  animation: sprinkleFall 8s ease-in-out infinite;
}
.sp-1 { top: 26%; left: 44%; background: var(--berry); transform: rotate(24deg); }
.sp-2 { top: 18%; right: 26%; background: var(--gold); animation-delay: -2s; transform: rotate(-30deg); }
.sp-3 { top: 64%; right: 40%; background: var(--leaf); animation-delay: -4s; transform: rotate(40deg); }
.sp-4 { top: 40%; left: 8%; background: var(--berry-deep); animation-delay: -6s; transform: rotate(-16deg); }

.sparkle {
  position: absolute;
  color: var(--gold);
  font-size: 1.1rem;
  animation: twinkle 3.2s ease-in-out infinite;
}
.k-1 { top: 30%; right: 14%; }
.k-2 { top: 68%; left: 30%; animation-delay: -1.6s; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--berry);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--berry);
  border-radius: 2px;
}
.eyebrow-light { color: var(--gold); }
.eyebrow-light::before { background: var(--gold); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.015em;
}
.hero h1 em {
  font-style: italic;
  color: var(--berry);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .05em;
  height: .24em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 7 C20 2 40 10 60 5 C80 0 100 8 118 4' fill='none' stroke='%23D6336C' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: .65;
}
.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--cocoa);
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: grid; gap: .15rem; }
.hero-stats dt { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--berry-deep); }
.hero-stats dd { font-size: .85rem; color: var(--muted); }

/* Капкейк */
.hero-art { display: flex; justify-content: center; }
.cupcake {
  width: min(380px, 86%);
  filter: drop-shadow(0 26px 30px rgba(166, 30, 77, .18));
  animation: cakeFloat 7s ease-in-out infinite;
}
.cherry { animation: cherryWiggle 4s ease-in-out infinite; transform-origin: 119px 92px; }
.sps rect { animation: spTwinkle 2.6s ease-in-out infinite; }
.sps rect:nth-child(2) { animation-delay: .6s; }
.sps rect:nth-child(3) { animation-delay: 1.2s; }
.sps rect:nth-child(4) { animation-delay: 1.8s; }

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--cocoa);
  border-radius: 14px;
  opacity: .5;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--berry);
  animation: wheel 1.8s ease-in-out infinite;
}

/* БЕГУЩАЯ СТРОКА */
.ticker {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding: .85rem 0;
  border-block: 3px solid var(--berry);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  white-space: nowrap;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}
.ticker-track i {
  font-style: normal;
  color: var(--gold);
  margin: 0 1.4rem;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* СЕКЦИИ */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 700;
  max-width: 20ch;
}
.section h2 em { font-style: italic; color: var(--berry); }

/* О НАС */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.5rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--berry);
}
.feature-card svg {
  width: 44px; height: 44px;
  color: var(--berry);
  margin-bottom: .9rem;
  transition: transform .35s ease;
}
.feature-card:hover svg { transform: scale(1.12) rotate(-4deg); }
.feature-card h3 { font-family: var(--serif); font-size: 1.06rem; margin-bottom: .35rem; }
.feature-card p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* КАТАЛОГ */
.catalog {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(244, 166, 192, .35), transparent 70%),
    var(--pink);
  border-block: 1px solid var(--line);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 2.2rem 0 1.6rem;
}
.tab {
  padding: .65rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  color: var(--cocoa);
  cursor: pointer;
  transition: all .25s ease;
}
.tab:hover { border-color: var(--berry); color: var(--berry-deep); transform: translateY(-2px); }
.tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  box-shadow: 0 10px 22px -12px rgba(61, 21, 48, .5);
}

.panels { display: grid; }
.panel[hidden] { display: none; }
.panel.active { animation: panelIn .45s ease; }

.panel-note {
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
  padding: 0 0 1.1rem;
}

.panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.panel .panel-note { grid-column: 1 / -1; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}
.card-top { height: 10px; }
.top-berry { background: linear-gradient(90deg, var(--berry), #F4A6C0); }
.top-gold { background: linear-gradient(90deg, var(--gold), #F7E2B0); }
.top-forest { background: linear-gradient(90deg, #5B3A5E, #9B6B94); }
.top-lemon { background: linear-gradient(90deg, #E8C64B, #F7E2B0); }
.top-green { background: linear-gradient(90deg, var(--leaf), #B5D6A8); }

.card h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  padding: 1.1rem 1.2rem .3rem;
}
.card h3 .badge {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--berry);
  color: #fff;
  padding: .22rem .55rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: .4rem;
  animation: badgePulse 2.4s ease-in-out infinite;
}
.card h3 .badge-new { background: var(--ink); }
.card > p {
  font-size: .88rem;
  color: var(--muted);
  padding: 0 1.2rem;
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .9rem 1.2rem 1.1rem;
  margin-top: .8rem;
  border-top: 1px dashed var(--line);
}
.card-foot .note { font-size: .8rem; color: var(--muted); }
.price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--berry-deep);
  white-space: nowrap;
  transition: transform .3s ease;
}
.card:hover .price { transform: scale(1.07); }

/* НА ЗАКАЗ (тёмная секция) */
.order {
  position: relative;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(232, 184, 75, .14), transparent 60%),
    linear-gradient(135deg, #2A0F22 0%, #4A1733 55%, #6E2048 100%);
  color: var(--bg);
  overflow: hidden;
}
.order-cloud {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, 46vw);
  color: rgba(255, 255, 255, .1);
  animation: cloudDrift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.order-cloud svg { width: 100%; height: auto; }
.order-copy { position: relative; max-width: 660px; }
.order h2 { color: var(--bg); }
.order h2 em { color: var(--gold); }
.order > .container p {
  margin-top: 1.1rem;
  color: rgba(255, 247, 250, .78);
  max-width: 56ch;
}
.order-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.4rem;
}
.chip {
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255, 247, 250, .85);
  transition: all .3s ease;
}
.chip:hover {
  background: rgba(255, 255, 255, .14);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

/* КОНТАКТЫ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.c-icon {
  width: 46px; height: 46px;
  margin: 0 auto 1rem;
  color: var(--berry);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.contact-card:hover .c-icon { transform: translateY(-4px) scale(1.1); }
.contact-card h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: .4rem; }
.contact-card p { font-size: .92rem; color: var(--muted); }
.contacts-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted);
  font-size: .92rem;
}

/* ПОДВАЛ */
.site-footer {
  background: #2A0F22;
  color: var(--bg);
  padding: 2.6rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand p { font-size: .88rem; color: rgba(255, 247, 250, .6); max-width: 260px; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-left: auto;
}
.footer-nav a {
  color: rgba(255, 247, 250, .75);
  text-decoration: none;
  font-size: .9rem;
  transition: color .25s ease;
}
.footer-nav a:hover { color: var(--gold); }
.copyright { width: 100%; font-size: .8rem; color: rgba(255, 247, 250, .4); margin-top: .5rem; }

/* АНИМАЦИИ ПОЯВЛЕНИЯ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3) { transition-delay: .16s; }
.features .reveal:nth-child(4) { transition-delay: .24s; }

@keyframes cakeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes cherryWiggle {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-6deg); }
}
@keyframes spTwinkle {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-46px); }
}
@keyframes sprinkleFall {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-26px) rotate(60deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .15; transform: scale(.7); }
  50% { opacity: .9; transform: scale(1.15); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 51, 108, .55); }
  50% { box-shadow: 0 0 0 7px rgba(214, 51, 108, 0); }
}

/* АДАПТИВНОСТЬ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero { padding-top: 9rem; }
  .eyebrow { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-art { order: -1; }
  .cupcake { width: min(270px, 60%); }
  .features { grid-template-columns: 1fr 1fr; }
  .panel { grid-template-columns: 1fr 1fr; }
  .order-cloud { opacity: .4; right: -4%; }
  .order-copy { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 247, 250, .98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: .5rem 4%;
    margin: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s ease;
  }
  .site-nav.open { transform: scaleY(1); }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .features { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; }
  .tab { white-space: nowrap; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { margin-left: 0; justify-content: center; }
}

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