/* ============ База ============ */
:root {
  --cream: #FBF4EA;
  --cream-2: #F5E9DB;
  --choco: #3A2415;
  --choco-2: #5A3A24;
  --berry: #E46A8C;
  --pistachio: #7FA35C;
  --lavender: #9B7FB8;
  --caramel: #D8913C;
  --peach: #F09B62;
  --blue: #7C93C4;
  --radius: 26px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", sans-serif;
  background: var(--cream);
  color: var(--choco);
  overflow-x: hidden;
  line-height: 1.6;
}

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

h1, h2, h3, .logo { font-family: "Unbounded", sans-serif; }

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

/* ============ Курсор-блик ============ */
.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(228, 106, 140, .16), transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity .4s;
}

/* ============ Шапка ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 5vw;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.header.scrolled {
  background: rgba(251, 244, 234, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(58, 36, 21, .08);
  padding: 12px 5vw;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--choco);
  text-decoration: none;
}
.logo-scoop {
  width: 26px; height: 26px;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(135deg, var(--berry), var(--caramel));
  animation: scoopSpin 6s ease-in-out infinite;
}
@keyframes scoopSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-14deg) scale(1.08); }
}

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--choco);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--berry);
  transition: width .3s ease;
}
.nav a:hover::after { width: 100%; }

/* ============ Кнопки ============ */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  background: var(--choco);
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(58, 36, 21, .25);
  background: var(--choco-2);
}
.btn:active { transform: translateY(-1px); }
.btn-small { padding: 10px 22px; font-size: 13px; }
.btn-ghost {
  background: transparent;
  color: var(--choco);
  box-shadow: inset 0 0 0 2px var(--choco);
}
.btn-ghost:hover { background: rgba(58, 36, 21, .06); color: var(--choco); }

/* ============ Герой ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 5vw 80px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(228, 106, 140, .14), transparent 60%),
    radial-gradient(700px 500px at 5% 90%, rgba(127, 163, 92, .14), transparent 60%),
    var(--cream);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag, .section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.hero-title span { display: block; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--berry) 10%, var(--caramel) 55%, var(--pistachio) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 26px 0 36px;
  font-size: 17px;
  max-width: 46ch;
  color: var(--choco-2);
}

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

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(58, 36, 21, .22);
  transform: translateY(var(--parallax, 0));
  transition: transform .1s linear;
}

.hero-badge {
  position: absolute;
  bottom: -26px;
  left: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 20px;
  padding: 16px 22px;
  box-shadow: 0 18px 40px rgba(58, 36, 21, .18);
  animation: floatY 5s ease-in-out infinite;
}
.hero-badge-num {
  font-family: "Unbounded", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--berry);
}
.hero-badge-label { font-size: 13px; font-weight: 700; line-height: 1.3; }

/* плавающие шарики */
.scoop {
  position: absolute;
  border-radius: 50%;
  opacity: .55;
  filter: blur(1px);
  animation: floatY 7s ease-in-out infinite;
  z-index: 0;
}
.scoop-1 { width: 90px; height: 90px; background: radial-gradient(circle at 30% 30%, #F3B7C8, var(--berry)); top: 12%; right: 6%; animation-delay: -2s; }
.scoop-2 { width: 56px; height: 56px; background: radial-gradient(circle at 30% 30%, #BCD39E, var(--pistachio)); bottom: 14%; left: 3%; animation-delay: -4s; }
.scoop-3 { width: 40px; height: 40px; background: radial-gradient(circle at 30% 30%, #EFC48F, var(--caramel)); top: 22%; left: 42%; animation-delay: -1s; }
.scoop-4 { width: 64px; height: 64px; background: radial-gradient(circle at 30% 30%, #C6B3DA, var(--lavender)); bottom: 8%; right: 40%; animation-delay: -5s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ============ Бегущая строка ============ */
.marquee {
  background: var(--choco);
  color: var(--cream);
  overflow: hidden;
  padding: 16px 0;
  transform: rotate(-1.2deg) scale(1.02);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Секции ============ */
.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head.left { margin: 0; text-align: left; }
.section-title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.2;
}
.section-title em { font-style: normal; color: var(--berry); }
.section-sub { margin-top: 18px; color: var(--choco-2); font-size: 16px; }

.flavors { padding: 120px 5vw; max-width: 1240px; margin: 0 auto; }

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

/* ============ Карточки ============ */
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(58, 36, 21, .08);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
  will-change: transform;
}
.card:hover {
  transform: translateY(-10px) rotate(-.6deg);
  box-shadow: 0 26px 60px rgba(58, 36, 21, .18);
}
.card-img { overflow: hidden; aspect-ratio: 1 / 1; }
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .card-img img { transform: scale(1.08); }

.card-body { padding: 24px 26px 28px; }
.card-body h3 { font-size: 19px; font-weight: 600; margin: 12px 0 8px; }
.card-body p { font-size: 14.5px; color: var(--choco-2); }

.card-chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
}
.chip-lavender { background: var(--lavender); }
.chip-caramel { background: var(--caramel); }
.chip-matcha { background: var(--pistachio); }
.chip-choco { background: var(--choco); }
.chip-berry { background: var(--blue); }
.chip-peach { background: var(--peach); }

/* ============ О клубе ============ */
.about {
  padding: 110px 5vw;
  background:
    radial-gradient(800px 400px at 90% 20%, rgba(155, 127, 184, .12), transparent 60%),
    var(--cream-2);
}
.about-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.stat {
  background: #fff;
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: 0 10px 30px rgba(58, 36, 21, .07);
  transition: transform .35s ease;
}
.stat:hover { transform: translateY(-6px); }
.stat-num {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--berry);
}
.stat:nth-child(2) .stat-num { color: var(--pistachio); }
.stat:nth-child(3) .stat-num { color: var(--caramel); }
.stat:nth-child(4) .stat-num { color: var(--lavender); }
.stat-label { font-size: 14px; font-weight: 600; color: var(--choco-2); }

/* ============ Цитата ============ */
.quote {
  padding: 130px 5vw;
  text-align: center;
  background: var(--choco);
  color: var(--cream);
}
.quote blockquote {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto;
}
.quote cite {
  display: block;
  margin-top: 26px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  color: var(--caramel);
  letter-spacing: .1em;
}

/* ============ Вступить ============ */
.join { padding: 120px 5vw; }
.join-card {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(135deg, #fff, #FFF1E3);
  border-radius: 32px;
  padding: 60px 50px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(58, 36, 21, .14);
}
.join-card h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; margin-bottom: 16px; }
.join-card p { color: var(--choco-2); margin-bottom: 32px; }

.join-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.join-form input {
  flex: 1;
  min-width: 240px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 2px solid rgba(58, 36, 21, .15);
  background: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  color: var(--choco);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.join-form input:focus {
  border-color: var(--berry);
  box-shadow: 0 0 0 4px rgba(228, 106, 140, .15);
}
.join-form-disabled input,
.join-form-disabled .btn {
  opacity: .55;
  cursor: not-allowed;
}
.join-form-disabled .btn:hover {
  transform: none;
  box-shadow: none;
  background: var(--choco);
}

.join-note {
  margin-top: 20px;
  font-weight: 700;
  color: var(--pistachio) !important;
  min-height: 24px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s, transform .4s;
}
.join-note.show { opacity: 1; transform: translateY(0); }

/* ============ Футер ============ */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 30px 5vw;
  font-size: 13.5px;
  color: var(--choco-2);
  border-top: 1px solid rgba(58, 36, 21, .1);
}

/* ============ Появление при скролле ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; }
.d4 { transition-delay: .48s; }
.d5 { transition-delay: .6s; }

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

/* ============ Адаптив ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero { padding-top: 120px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-badge { left: 10px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .join-card { padding: 44px 26px; }
  .cursor-glow { display: none; }
  .scoop-3, .scoop-4 { display: none; }
}
