/* ─── CSS VARIABLES ─── */
:root {
  --pink:       #e91e8c;
  --pink-light: #ff6ec7;
  --pink-dark:  #c2177a;
  --yellow:     #ffd93d;
  --blue:       #6ecbff;
  --dark:       #1a1a2e;
  --gray:       #666;
  --light:      #f8f9fb;
  --white:      #ffffff;
  --shadow-sm:  0 4px 16px rgba(0,0,0,.07);
  --shadow:     0 10px 40px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.14);
  --radius:     20px;
  --font:       'Nunito', Arial, sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ─── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--pink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  transition: color .2s;
}
.nav a:hover { color: var(--pink); }

.header-phone {
  font-weight: 800;
  font-size: 15px;
  color: var(--pink);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.header-phone:hover { opacity: .8; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  inset-inline: 0;
  background: white;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: 99;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color .2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mnav-phone { color: var(--pink) !important; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, #ff6ec7 0%, #ffd93d 48%, #6ecbff 100%);
  overflow: hidden;
  padding-top: 68px;
}

.balloons-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.balloon {
  position: absolute;
  bottom: -120px;
  animation: floatUp var(--dur, 9s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform;
}

@keyframes floatUp {
  0%   { transform: translateY(0)      rotate(-6deg); opacity: .65; }
  30%  { transform: translateY(-28vh)  rotate(5deg);  }
  60%  { transform: translateY(-60vh)  rotate(-4deg); }
  100% { transform: translateY(-115vh) rotate(6deg);  opacity: .1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px 100px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.55);
  color: white;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 24px;
  letter-spacing: .3px;
}

.hero-title {
  font-size: clamp(38px, 7vw, 82px);
  font-weight: 900;
  color: white;
  line-height: 1.08;
  text-shadow: 0 3px 24px rgba(0,0,0,.18);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,.95);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-sub strong { color: white; }

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-phone {
  display: inline-block;
  color: white;
  font-weight: 900;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: .5px;
  transition: transform .2s;
}
.hero-phone:hover { transform: scale(1.04); }

.hero-wave {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 80px;
  z-index: 1;
}
.hero-wave svg { width: 100%; height: 100%; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  font-family: var(--font);
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--pink); color: white; }
.btn-primary:hover { background: var(--pink-dark); }

.btn-ghost {
  background: rgba(255,255,255,.22);
  color: white;
  border: 2px solid rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.38); }

.btn-vk { background: #4c75a3; color: white; }
.btn-vk:hover { background: #3d5e84; }

.btn-map { background: var(--dark); color: white; }
.btn-map:hover { background: #333; }

.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  margin-top: 8px;
}

/* ─── FEATURES ─── */
.features {
  background: var(--light);
  padding: 64px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-icon { font-size: 52px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: 14px; line-height: 1.65; }

/* ─── CATALOG ─── */
.catalog {
  padding: 88px 0;
  background: white;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 52px;
  max-width: 520px;
  margin-inline: auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 20px;
}

.catalog-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 20px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: transform .25s, box-shadow .25s;
  border-top: 5px solid var(--c, var(--pink));
  position: relative;
  overflow: hidden;
}
.catalog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c, var(--pink));
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.catalog-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.catalog-card:hover::after { opacity: .07; }

.cat-emoji { font-size: 44px; display: block; margin-bottom: 14px; }
.catalog-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.catalog-card p { font-size: 12px; color: var(--gray); line-height: 1.5; }

/* ─── HOW TO ORDER ─── */
.howto {
  background: linear-gradient(135deg, #fff8fc 0%, #f0f8ff 100%);
  padding: 88px 0;
}

.steps {
  display: flex;
  align-items: stretch;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 52px;
}

.step {
  background: white;
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  max-width: 300px;
  min-width: 200px;
  flex: 1;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: white;
  font-size: 30px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 8px 24px rgba(233,30,140,.30);
}

.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--gray); line-height: 1.65; }

.step-arrow {
  font-size: 34px;
  color: var(--pink);
  font-weight: 900;
  align-self: center;
  flex-shrink: 0;
}

/* ─── ORDER FORM ─── */
.order-section {
  background: white;
  padding: 88px 0;
}

.order-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--light);
  border-radius: 30px;
  padding: 52px 48px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 8px;
}

.req { color: var(--pink); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e4e4e8;
  border-radius: 14px;
  font-size: 15px;
  font-family: var(--font);
  background: white;
  color: var(--dark);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(233,30,140,.10);
}

.form-group input.error,
.form-group select.error { border-color: #e53935; }

.form-group textarea { resize: vertical; min-height: 90px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-error {
  color: #e53935;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  min-height: 18px;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 12px;
}

.order-success {
  text-align: center;
  padding: 20px 0;
}
.success-balloon { font-size: 80px; margin-bottom: 20px; animation: bounce 1s infinite alternate; }
@keyframes bounce { to { transform: translateY(-12px); } }
.order-success h3 { font-size: 30px; font-weight: 900; margin-bottom: 12px; }
.order-success p { color: var(--gray); font-size: 16px; margin-bottom: 28px; }

/* ─── CONTACTS ─── */
.contacts {
  background: var(--light);
  padding: 88px 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacts-info .section-title { text-align: left; margin-bottom: 32px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.ci-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }

.contact-item strong {
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}

.contact-item span,
.contact-item a {
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--dark);
  transition: color .2s;
}
.contact-item a:hover { color: var(--pink); }

.contact-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.map-card {
  background: white;
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  padding: 40px 32px;
  text-align: center;
}

.map-icon { font-size: 72px; }
.map-card p { color: var(--gray); font-size: 16px; font-weight: 700; }

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  color: white;
  padding: 48px 0 36px;
  text-align: center;
}

.footer-logo { font-size: 30px; font-weight: 900; margin-bottom: 10px; }
.footer-desc { color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 20px; }
.footer-copy { color: rgba(255,255,255,.30); font-size: 13px; }

/* ─── PRODUCT CARDS ─── */
.cat-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  display: block;
}

.cat-placeholder {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--pink)) 18%, white), color-mix(in srgb, var(--c, var(--pink)) 8%, white));
}

.cat-price {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 900;
  color: var(--pink);
}

.btn-add-cart {
  margin-top: 12px;
  width: 100%;
  padding: 10px 16px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s, transform .15s;
}
.btn-add-cart:hover  { background: var(--pink-dark); transform: translateY(-1px); }
.btn-add-cart.added  { background: #43a047; }

/* ─── HEADER CART BUTTON ─── */
.header-cart {
  position: relative;
  background: none;
  border: 2px solid rgba(233,30,140,.2);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 16px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  color: var(--pink);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cart:hover { border-color: var(--pink); background: #fff0f8; }

/* ─── CART FAB ─── */
.cart-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font-size: 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(233,30,140,.40);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.cart-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(233,30,140,.50);
}

.cart-badge {
  background: var(--dark);
  color: white;
  font-size: 11px;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: 50px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  line-height: 1;
}
.cart-fab .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
}

/* ─── CART OVERLAY ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ─── CART DRAWER ─── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: white;
  z-index: 301;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #f0f0f0;
}
.cart-header h3 { font-size: 20px; font-weight: 900; }

.cart-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.cart-close:hover { background: #eee; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
}

.cart-empty {
  text-align: center;
  color: var(--gray);
  font-size: 15px;
  padding: 60px 0;
}
.cart-empty::before { content: '🛒'; display: block; font-size: 52px; margin-bottom: 16px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 800; font-size: 14px; margin-bottom: 3px; }
.cart-item-price { font-size: 13px; color: var(--pink); font-weight: 700; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border: 2px solid #e4e4e8;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.qty-btn:hover { border-color: var(--pink); background: #fff0f8; }
.qty-num { font-weight: 900; font-size: 15px; min-width: 20px; text-align: center; }

.cart-footer {
  padding: 18px 24px 28px;
  border-top: 1px solid #f0f0f0;
}
.cart-note {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin-bottom: 12px;
}
.cart-checkout { width: 100%; padding: 16px; font-size: 16px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav, .header-phone, .header-cart { display: none; }
  .burger { display: flex; }

  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .step-arrow { display: none; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .order-wrap { padding: 32px 20px; }
  .hero-title { font-size: 36px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ─── SPLASH SCREEN ─── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(145deg, #ff6ec7 0%, #e91e8c 40%, #ffd93d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}
.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}
.splash-logo {
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,.18);
  margin-bottom: .5rem;
  letter-spacing: -.5px;
}
.splash-tagline {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  color: rgba(255,255,255,.95);
  font-weight: 700;
  margin-bottom: .3rem;
}
.splash-city {
  font-size: clamp(.85rem, 2.5vw, 1rem);
  color: rgba(255,255,255,.8);
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: .5px;
}
.splash-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.splash-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  animation: splashDot 1.3s infinite ease-in-out both;
}
.splash-dots span:nth-child(2) { animation-delay: .22s; }
.splash-dots span:nth-child(3) { animation-delay: .44s; }
@keyframes splashDot {
  0%, 80%, 100% { transform: scale(.25); opacity: .35; }
  40% { transform: scale(1); opacity: 1; }
}
.splash-balloons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.splash-balloons .balloon {
  opacity: .55;
  filter: brightness(1.3) saturate(.6);
}

@media (max-width: 380px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
