/* ===== DirectHub — concept 3 «Современный магазин» ===== */

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-2: #64748b;
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --radius: 14px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
  --border: #e2e8f0;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container--narrow { max-width: 800px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; }

h2 { font-size: 32px; }

a { color: var(--accent-1); text-decoration: none; }
a:hover { text-decoration: underline; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn--gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, .35);
}
.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, .45);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--accent-1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
  color: var(--accent-2);
}

.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .7);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo__mark { border-radius: 8px; flex-shrink: 0; }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
}
.nav a:hover { color: var(--accent-1); text-decoration: none; }

.header__cta { flex-shrink: 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 96px;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
}
.hero__blob--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, .35), transparent 70%);
  top: -120px; right: -80px;
}
.hero__blob--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 70%);
  bottom: -140px; left: -100px;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 780px;
}

.chip {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero__trust {
  list-style: none;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__trust li {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ===== Секции ===== */
.section { padding: 88px 0; }
.section--alt { background: #fff; }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section__sub {
  color: var(--text-2);
  font-size: 17px;
  margin-top: 12px;
}

/* ===== Каталог ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.card__badge--hit {
  background: var(--gradient);
  color: #fff;
}
.card__badge--order {
  background: #e2e8f0;
  color: var(--text-2);
}
.card__badge--stock {
  background: #eef2ff;
  color: var(--accent-1);
}

.card h3 { font-size: 19px; margin-bottom: 16px; }

.card__features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}
.card__features li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
  font-size: 14.5px;
  margin-bottom: 8px;
}
.card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-weight: 700;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card__price {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ===== Преимущества ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--text-2); }

.guarantee-note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-2);
  font-size: 15px;
}

/* ===== Как купить ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step__num {
  display: block;
  font-size: 44px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}

.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-2); }

/* ===== Отзывы ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.review__stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review blockquote {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar--violet { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.avatar--indigo { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.avatar--purple { background: linear-gradient(135deg, #a855f7, #6366f1); }

.review__meta { display: flex; flex-direction: column; font-size: 14px; }
.review__meta strong { color: var(--text); }
.review__meta span { color: var(--text-2); font-size: 13px; }

/* ===== FAQ / аккордеон ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.accordion__btn::-webkit-details-marker { display: none; }
.accordion__btn:hover { color: var(--accent-1); }

.accordion__chevron {
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform .25s ease;
  flex-shrink: 0;
}

.accordion__item[open] .accordion__chevron { transform: rotate(-135deg); }

.accordion__panel {
  padding: 0 24px;
  overflow: hidden;
  color: var(--text-2);
  font-size: 15px;
}
.accordion__panel p { padding-bottom: 20px; }

/* ===== О магазине ===== */
.about {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__text h2 { margin-bottom: 20px; }
.about__text p { color: var(--text-2); font-size: 15.5px; margin-bottom: 16px; }
.about__text strong { color: var(--text); font-weight: 600; }

.about__stats {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  position: sticky;
  top: 92px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.stat__label { font-size: 13px; color: var(--text-2); }

/* ===== CTA ===== */
.cta {
  background: var(--gradient);
  border-radius: 20px;
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 48px rgba(99, 102, 241, .35);
}
.cta h2 { font-size: 34px; margin-bottom: 12px; }
.cta p { font-size: 17px; opacity: .9; margin-bottom: 32px; }

/* ===== Модальное окно заказа ===== */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.is-open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .18s ease;
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
  padding: 32px;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .18s ease, transform .18s ease;
}

.modal.is-visible .modal__backdrop { opacity: 1; }
.modal.is-visible .modal__card { opacity: 1; transform: scale(1); }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.modal__close:hover { background: #f1f5f9; color: var(--text); }

.modal__title {
  font-size: 20px;
  margin-bottom: 12px;
  padding-right: 36px;
}

.modal__text {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 16px;
}

.modal__product {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14.5px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.modal__product strong { color: var(--text); font-weight: 600; }

.modal__cta { width: 100%; }

.modal__handle {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}

.modal__cancel {
  width: 100%;
  margin-top: 16px;
  font-family: inherit;
}

@media (max-width: 560px) {
  .modal__card { padding: 24px; }
}

/* ===== Подвал ===== */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer .logo__text, .footer h3 { color: #fff; }
.footer h3 { font-size: 15px; margin-bottom: 16px; }

.footer__brand p { font-size: 14px; color: #94a3b8; margin-top: 14px; max-width: 280px; }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: #94a3b8; font-size: 14px; transition: color .2s ease; }
.footer__col a:hover { color: #fff; text-decoration: none; }
.footer__hours { font-size: 13px; color: #64748b; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
}

.footer__disclaimer { max-width: 620px; }

/* ===== Reveal-анимация (только при наличии JS) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .header__inner { gap: 16px; }
  .header__cta { margin-left: auto; }

  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 36px; }

  .section { padding: 64px 0; }

  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__stats { position: static; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

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

  .hero h1 { font-size: 30px; }
  .hero__lead { font-size: 16px; }
  h2 { font-size: 26px; }
  .cta { padding: 48px 24px; }
  .cta h2 { font-size: 26px; }

  .hero__actions .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; }
}
