/* волна. — витрина трендов. Без сборки: один файл стилей. */
:root {
  --ink: #111114;
  --ground: #F3F3F6;
  --card: #FFFFFF;
  --muted: #45454E;
  --muted-2: #55555E;
  --accent: #C6F432;
  --pop: #6B4EFF;
  --pop-text: #4A33D6;
  --dark-card: #1E1E24;
  --dark-line: #34343D;
  --dark-muted: #C9C9D2;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
}
a { color: var(--ink); }
a:hover { color: var(--pop-text); }
img, svg { display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.display { font-family: var(--display); letter-spacing: -0.03em; }
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; color: var(--pop-text); text-transform: uppercase;
}
.h2 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1;
}
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 16px;
}
.section-head p { margin: 0; color: var(--muted); max-width: 400px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn--lg { min-height: 60px; padding: 0 28px; border-radius: 18px; font-size: 17px; }
.btn--light { background: var(--card); color: var(--ink); }
.btn--light:hover { color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { color: var(--ink); }
.btn:focus-visible, a:focus-visible, input:focus-visible, .chip:focus-visible {
  outline: 3px solid var(--pop); outline-offset: 3px;
}

/* Бегущая строка */
.ticker {
  background: var(--ink); color: var(--accent); height: 40px; overflow: hidden;
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.04em;
}
.ticker__track { display: inline-flex; gap: 48px; padding-left: 24px; animation: marquee 32s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(243, 243, 246, .92); backdrop-filter: blur(10px); }
.header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo span { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.search {
  flex: 1 1 220px; display: flex; align-items: center; gap: 10px; height: 48px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 0 16px;
}
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.cart-btn {
  position: relative; width: 52px; height: 52px; border-radius: 16px; border: 2px solid var(--ink);
  background: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cart-btn__count {
  position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: var(--pop); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--ground);
}
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.12); } }

/* Первый экран */
.hero { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 24px; padding-bottom: 48px; }
.hero__text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.pill {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; background: var(--card);
  border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px 8px 8px; font-weight: 600; font-size: 14px;
}
.pill b { background: var(--pop); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(42px, 6.4vw, 92px);
  line-height: .98; letter-spacing: -0.04em;
}
.hero h1 mark {
  background: var(--accent); color: inherit; padding: 0 12px; border-radius: 18px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bento {
  flex: 1 1 500px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 250px 250px; gap: 16px;
}
.tile {
  position: relative; border: 2px solid var(--ink); border-radius: 32px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  padding: 0; background: var(--card);
}
.tile svg { width: 78%; height: 78%; }
.tile--big { grid-row: span 2; }
.tile--big svg { width: 84%; height: 84%; }
.tile__label {
  position: absolute; left: 20px; bottom: 22px; background: var(--card); border: 2px solid var(--ink);
  border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: 14px; line-height: 1.25; text-align: left;
  animation: float 5s ease-in-out infinite;
}
.tile__label span { display: block; font-weight: 500; color: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }

/* Путь тренда */
.wave { padding-bottom: 72px; }
.wave__box { background: var(--card); border: 2px solid var(--ink); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.wave__box h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.step { background: var(--ground); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.step small { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.step strong { font-size: 20px; }
.step span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.step--pop { background: var(--pop); color: #fff; }
.step--pop small, .step--pop span { color: #fff; }
.step--pop em { align-self: flex-start; font-style: normal; background: var(--accent); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
.step--dark { background: var(--ink); color: #fff; }
.step--dark small { color: var(--accent); }
.step--dark span { color: #D4D4DC; }

/* Каталог */
.catalog { padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--card); font-weight: 600; font-size: 15px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 2px solid var(--ink); border-radius: 28px; padding: 12px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card[hidden] { display: none; }
.card__img {
  position: relative; height: 230px; border-radius: 20px; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.card__img svg { width: 190px; height: 190px; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--accent);
  border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px;
}
.badge--age { left: auto; right: 12px; background: var(--card); color: var(--ink); border: 2px solid var(--ink); padding: 4px 10px; }
.card__meta { display: flex; flex-direction: column; gap: 4px; padding: 0 6px; }
.card__meta small { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.card__title { font-weight: 700; font-size: 18px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.card__title:hover { color: var(--pop-text); }
.card__buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 6px; }
.price { font-family: var(--display); font-weight: 700; font-size: 22px; white-space: nowrap; }
.empty { color: var(--muted); font-size: 17px; padding: 24px 0; }

/* Предзаказ */
.soon { background: var(--ink); color: #fff; padding: 80px 0; }
.soon .eyebrow { color: var(--accent); }
.soon .section-head p { color: var(--dark-muted); }
.soon__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
.pre {
  background: var(--dark-card); border: 2px solid var(--dark-line); border-radius: 28px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.pre__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--dark-muted); font-size: 14px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; background: var(--dark-line); color: #fff;
  border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px;
}
.status--go { background: var(--pop); }
.pre h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.bar { height: 10px; border-radius: 999px; background: var(--dark-line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.pre__note { font-size: 14px; color: var(--dark-muted); }
.pre__buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Как это работает */
.how { padding-top: 88px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.how__item {
  border: 2px solid var(--ink); border-radius: 28px; padding: 28px; display: flex; flex-direction: column;
  gap: 14px; min-height: 240px; background: var(--card);
}
.how__item b { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; }
.how__item strong { font-size: 22px; }
.how__item span { font-size: 16px; line-height: 1.5; color: var(--muted); }
.how__item--accent { background: var(--accent); }
.how__item--accent span { color: var(--ink); }
.how__item--pop { background: var(--pop); color: #fff; }
.how__item--pop span { color: #fff; }
.how__item:nth-child(2) b { color: var(--pop-text); }

/* Родителям */
.parents { padding-top: 40px; padding-bottom: 88px; }
.parents__box {
  background: var(--card); border: 2px solid var(--ink); border-radius: 32px; padding: 36px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
}
.parents__head { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.parents__head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; }
.perks { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.perk { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.perk i { flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.perk b { display: block; font-size: 16px; margin-bottom: 2px; }

/* Подписка */
.tg { padding-bottom: 88px; }
.tg__box {
  position: relative; overflow: hidden; background: var(--pop); color: #fff; border: 2px solid var(--ink);
  border-radius: 36px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 28px;
}
.tg__waves { position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; opacity: .18; }
.tg__text { position: relative; flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.tg__text h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 1.05; }
.tg__text p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 520px; }
.tg .btn { position: relative; }

/* Подвал */
.footer { border-top: 2px solid var(--ink); background: var(--card); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 40px; padding-bottom: 24px; }
.footer__about { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.footer__about span:last-child { color: var(--muted); font-size: 15px; max-width: 300px; line-height: 1.5; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 48px; font-size: 15px; font-weight: 600; }
.footer__nav a { text-decoration: none; }
.footer__copy { padding-bottom: 32px; color: var(--muted-2); font-size: 13px; }

/* Окна: товар и корзина */
dialog {
  border: 2px solid var(--ink); border-radius: 32px; padding: 0; width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); background: var(--card); color: var(--ink);
}
dialog::backdrop { background: rgba(17, 17, 20, .55); backdrop-filter: blur(4px); }
.dlg__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 14px;
  border: 2px solid var(--ink); background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.product { display: flex; flex-wrap: wrap; }
.product__img { flex: 1 1 340px; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.product__img svg { width: 78%; max-width: 320px; height: auto; aspect-ratio: 1; }
.product__info { flex: 1 1 340px; padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 16px; }
.product__info h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; padding-right: 40px; }
.product__info p { margin: 0; color: var(--muted); line-height: 1.55; }
.product__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product__tags span { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; }
.product__tags span:first-child { background: var(--ink); color: var(--accent); }
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.product__actions .btn { flex: 1 1 180px; }
.cart { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.cart h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.cart__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cart__item { display: flex; align-items: center; gap: 12px; background: var(--ground); border-radius: 18px; padding: 10px 14px; }
.cart__item span { flex: 1; font-weight: 600; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--ink); background: var(--card);
  cursor: pointer; font-weight: 700; font-size: 18px; line-height: 1;
}
.qty output { min-width: 24px; text-align: center; font-weight: 700; }
.cart__total { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart__hint { margin: 0; color: var(--muted); font-size: 14px; }

/* Цвета плиток */
.bg-lime { background: #E9FFB0; }
.bg-lime-strong { background: var(--accent); }
.bg-butter { background: #FFF3BF; }
.bg-violet { background: #E4DDFF; }
.bg-yellow { background: #FFE9A3; }
.bg-peach { background: #FFD9C7; }
.bg-sky { background: #CDEBFF; }
.bg-pink { background: #FFD6EC; }
.bg-mint { background: #E1F7D0; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header { position: static; }
  .product__img { min-height: 240px; }
  .bento { grid-template-rows: 200px 200px; gap: 12px; }
  .tile { border-radius: 24px; }
  .tile__label { left: 12px; bottom: 12px; font-size: 13px; }
  .wave__box, .parents__box { padding: 22px; border-radius: 24px; }
  .header__row { gap: 12px 16px; }
  .nav { order: 4; width: 100%; }
  .product__info { padding: 24px 20px; }
  .cart { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .tile__label { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
