/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #7c3aed;
  --primary-light: #a78bfa;
  --accent:        #06b6d4;
  --dark:          #0a0a1a;
  --glass-bg:      rgba(255,255,255,0.07);
  --glass-border:  rgba(255,255,255,0.15);
  --text:          #e2e8f0;
  --text-muted:    #94a3b8;
  --radius:        16px;
  --nav-h:         68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

@media (max-width: 768px) {
  .container {
    padding: 0 1.1rem;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 1rem;
  }
}

/* ══════════════════════════════════════════
   GLASS CARD
══════════════════════════════════════════ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 2rem;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 30px rgba(124,58,237,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124,58,237,.6);
}

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.btn-glass:hover { background: rgba(255,255,255,.12); }

.btn-full { width: 100%; }

.btn-sm {
  padding: .45rem 1rem;
  font-size: .85rem;
  border-radius: 8px;
  background: rgba(124,58,237,.2);
  color: var(--primary-light);
  border: 1px solid rgba(124,58,237,.3);
  cursor: pointer;
  text-decoration: none;
}

.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  padding: .5rem 1.4rem;
  border-radius: 10px;
}

/* ══════════════════════════════════════════
   HEADER & NAV
══════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,26,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background .3s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 1rem;
}

.nav__logo {
  font-size: 1.6rem;
  font-weight: 900;
  flex-shrink: 0;
}
.logo-3d { color: var(--primary-light); }
.logo-x  { color: var(--accent); }
.logo-dot{ color: var(--text-muted); }

/* Desktop menu */
.nav__menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}
.nav__menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
.nav__menu a:hover { color: var(--text); }

/* Burger button */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}
/* Burger → X */
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.orb1 { width: 600px; height: 600px; top: -200px; left: -150px; background: var(--primary); }
.orb2 { width: 500px; height: 500px; bottom: -200px; right: -100px; background: var(--accent); }
.orb3 { width: 300px; height: 300px; top: 50%; left: 50%; background: #ec4899; transform: translate(-50%,-50%); }

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  width: 100%;
}

.hero__badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(124,58,237,.4);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  color: var(--primary-light);
}

.hero__title {
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat {
  padding: 1rem 1.5rem;
  text-align: center;
  flex: 1;
  min-width: 110px;
}
.stat__num {
  display: block;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--primary-light);
}
.stat__label { font-size: .8rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section { padding: 5rem 0; }

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__tag {
  display: inline-block;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  color: var(--primary-light);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: .75rem;
}

.section__sub { color: var(--text-muted); }

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); }

.service-card.featured {
  border-color: rgba(124,58,237,.5);
  background: rgba(124,58,237,.1);
}

.service-card__badge {
  position: absolute;
  top: -12px; right: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: .2rem .8rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}

.service-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.service-card p  { color: var(--text-muted); margin-bottom: 1rem; font-size: .95rem; }
.service-card ul { list-style: none; }
.service-card li { color: var(--text-muted); padding: .25rem 0; font-size: .9rem; }

/* ══════════════════════════════════════════
   CATALOG
══════════════════════════════════════════ */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  overflow: hidden;
  padding: 0;
  transition: transform .3s;
}
.product-card:hover { transform: translateY(-4px); }

.product-card__img {
  height: 200px;
  overflow: hidden;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }

.product-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: rgba(255,255,255,.05);
  height: 200px;
}

.product-card__body { padding: 1.25rem; }
.product-card__cat {
  font-size: .75rem;
  color: var(--primary-light);
  text-transform: uppercase;
  font-weight: 600;
}
.product-card__body h3 { margin: .4rem 0 .5rem; font-size: 1rem; }
.product-card__body p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.product-card__footer  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.product-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-light);
}

/* ══════════════════════════════════════════
   HOW IT WORKS / STEPS
══════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}
.step__num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: .5rem;
}
.step h3 { margin-bottom: .4rem; font-size: 1rem; }
.step p  { color: var(--text-muted); font-size: .85rem; }

.step__arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}
.step__arrow::after { content: '→'; }

/* ══════════════════════════════════════════
   WHY US
══════════════════════════════════════════ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why-item {
  text-align: center;
  transition: transform .3s;
}
.why-item:hover { transform: translateY(-4px); }
.why-item > span { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.why-item h4 { margin-bottom: .5rem; }
.why-item p  { color: var(--text-muted); font-size: .9rem; }

/* ══════════════════════════════════════════
   DELIVERY
══════════════════════════════════════════ */
.delivery {
  background: linear-gradient(135deg,
    rgba(124,58,237,.05),
    rgba(6,182,212,.05));
}

.delivery__cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.delivery-card {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  text-align: center;
}

.delivery-card--free {
  border-color: rgba(34,197,94,.4);
  background: rgba(34,197,94,.05);
}

.delivery-card__icon { font-size: 3rem; margin-bottom: 1rem; }
.delivery-card h3    { font-size: 1.3rem; margin-bottom: .5rem; }
.delivery-card__price {
  font-size: 1.7rem;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: .75rem;
}
.delivery-card p { color: var(--text-muted); }

/* ══════════════════════════════════════════
   ORDER FORM
══════════════════════════════════════════ */
.order-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

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

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: .4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: .8rem 1rem;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}

.form-group textarea { resize: vertical; }

.form-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #f87171;
  padding: .75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.form-success {
  text-align: center;
  padding: 3rem 1rem;
}
.form-success__icon { font-size: 3rem; margin-bottom: 1rem; }

.form-note {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .75rem;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: rgba(0,0,0,.3);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer__brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: .9rem;
  max-width: 300px;
}

.footer__contacts h4,
.footer__social h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer__phone {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  margin-bottom: .5rem;
}
.footer__phone:hover { color: var(--primary-light); }

.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
  padding: .5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: .75rem;
  font-size: .9rem;
}
.footer__wa:hover { background: rgba(34,197,94,.25); }

.footer__hours { color: var(--text-muted); font-size: .85rem; }

.social__links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  border: 1px solid var(--glass-border);
  transition: all .2s;
  background: var(--glass-bg);
}
.social-link:hover {
  background: rgba(255,255,255,.12);
  transform: translateX(4px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: .85rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: .5rem;
}

@media (max-width: 1280px) {
  .container {
    padding: 0 2rem;
  }
  .nav {
    padding: 0 2rem;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  .nav {
    padding: 0 2rem;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .step__arrow { display: none; }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__brand { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  .nav__menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,26,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 1.25rem 2rem;
    flex-direction: column;
    gap: 0;
    z-index: 99;
  }
  .nav__menu.open { display: flex; }
  .nav__menu li { width: 100%; }
  .nav__menu a {
    display: block;
    padding: .85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: var(--text);
  }
  .nav__menu li:last-child a {
    border-bottom: none;
    margin-top: .75rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    padding: .85rem;
  }
  .nav__burger { display: flex; }

  /* Hero */
  .hero { min-height: auto; padding-top: var(--nav-h); }
.hero__content { padding: 3rem 0.25rem 2.5rem; }
  .hero__subtitle { font-size: .95rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .hero__stats { gap: .75rem; }
  .stat { padding: .75rem 1rem; }

  /* Sections */
  .section { padding: 3.5rem 0; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Catalog */
  .catalog__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .step__arrow { display: none; }
  .step { padding: 1.25rem 1rem; }

  /* Why */
  .why__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .why-item { padding: 1.25rem; }

  /* Delivery */
  .delivery__cards { flex-direction: column; align-items: center; }
  .delivery-card { width: 100%; max-width: 100%; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .order-form { padding: 1.5rem; }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__brand { grid-column: auto; }
  .footer__brand p { max-width: 100%; }
  .footer__bottom { flex-direction: column; text-align: center; gap: .4rem; }

  /* Glass card padding on mobile */
  .glass-card { padding: 1.5rem; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤ 420px)
══════════════════════════════════════════ */
@media (max-width: 420px) {
  .catalog__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; }
  .stat { min-width: 0; width: 100%; }

  .btn { padding: .8rem 1.5rem; font-size: .95rem; }

  .delivery-card { padding: 1.5rem; }
  .delivery-card__price { font-size: 1.4rem; }

  .section__title { font-size: 1.5rem; }

  .footer { padding: 2.5rem 0 1.5rem; }
}

/* ══════════════════════════════════════════
   SCROLL ANIMATION (лёгкая)
══════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .glass-card,
  .service-card,
  .product-card,
  .why-item,
  .step,
  .delivery-card {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp .5s ease forwards;
  }

  /* Stagger через nth-child */
  .services__grid .service-card:nth-child(1) { animation-delay: .05s; }
  .services__grid .service-card:nth-child(2) { animation-delay: .15s; }
  .services__grid .service-card:nth-child(3) { animation-delay: .25s; }

  .why__grid .why-item:nth-child(1) { animation-delay: .05s; }
  .why__grid .why-item:nth-child(2) { animation-delay: .10s; }
  .why__grid .why-item:nth-child(3) { animation-delay: .15s; }
  .why__grid .why-item:nth-child(4) { animation-delay: .20s; }
  .why__grid .why-item:nth-child(5) { animation-delay: .25s; }
  .why__grid .why-item:nth-child(6) { animation-delay: .30s; }

  .hero__badge, .hero__title, .hero__subtitle,
  .hero__actions, .hero__stats {
    opacity: 0;
    animation: fadeUp .6s ease forwards;
  }
  .hero__badge    { animation-delay: .1s; }
  .hero__title    { animation-delay: .2s; }
  .hero__subtitle { animation-delay: .3s; }
  .hero__actions  { animation-delay: .4s; }
  .hero__stats    { animation-delay: .5s; }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
