/* Тёмная «стеклянная» тема в стиле Подпико */
:root {
  --bg: #050507;
  --sheet: #141417;
  --sheet-2: #1a1a1e;
  --ink: #fff;
  --text: rgba(255, 255, 255, .86);
  --muted: rgba(255, 255, 255, .55);
  --faint: rgba(255, 255, 255, .38);
  --line: rgba(255, 255, 255, .09);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .09);
  --edge-strong: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .14);
  --violet: #c66cf3;
  --cyan: #2fc8ff;
  --amber: #ff9f1f;
  --slate: #8f9bb8;
  --radius: 14px;
  --sans: "Inter", system-ui, sans-serif;
  --round: "Comfortaa", "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(198, 108, 243, .35); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* «Плита» — общий вид всех блоков */
.header__inner, .hero__inner, .section > .container, .footer__inner {
  background: linear-gradient(180deg, var(--sheet-2), var(--sheet));
  border-radius: var(--radius);
  box-shadow: var(--edge), 0 30px 60px rgba(0, 0, 0, .45);
}

h1, h2, h3 { color: var(--ink); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 300; }
h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; font-weight: 500; color: var(--faint); margin-bottom: 16px; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 520px; margin: 18px 0 28px; }

/* Неоновые ссылки */
.neon { font-family: var(--round); font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .7); text-shadow: 0 0 4px var(--slate), 0 0 14px var(--slate); transition: color .2s, text-shadow .2s; }
.neon:hover { color: #fff; }
.neon--violet { color: #f5e2ff; text-shadow: 0 0 4px var(--violet), 0 0 14px var(--violet); }
.neon--cyan { color: #dcf8ff; text-shadow: 0 0 4px var(--cyan), 0 0 14px var(--cyan); }
.neon--amber { color: #fff0d2; text-shadow: 0 0 4px var(--amber), 0 0 14px var(--amber); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px; background: #ececef; color: #0b0b0d; font-weight: 500; font-size: 14px; border: 0; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255, 255, 255, .12); }
.btn--ghost { background: none; color: var(--ink); padding-inline: 8px; }
.btn--ghost:hover { background: none; box-shadow: none; color: #fff; text-shadow: 0 0 12px rgba(255, 255, 255, .5); }
.btn--small { padding: 9px 14px; font-size: 13px; }
.icon-btn { background: rgba(255, 255, 255, .05); border: 0; width: 36px; height: 36px; border-radius: 999px; cursor: pointer; color: rgba(255, 255, 255, .75); box-shadow: var(--edge); }
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; padding: 16px 0 0; }
.header__inner { display: flex; align-items: center; gap: 36px; height: 68px; padding: 0 28px; background: rgba(22, 22, 26, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.logo { font-family: var(--round); font-weight: 700; font-size: 1.35rem; color: #f3ecff; text-shadow: 0 0 6px rgba(198, 108, 243, .55), 0 0 18px rgba(198, 108, 243, .35); display: inline-flex; align-items: center; gap: 6px; letter-spacing: -.01em; }
.logo::before, .logo::after { content: ""; width: 10px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 0 6px var(--violet); }
.logo::after { width: 6px; height: 6px; border-radius: 50%; background: none; border: 2px solid currentColor; }
.nav { display: flex; gap: 26px; }
.cart-btn { position: relative; margin-left: auto; background: rgba(255, 255, 255, .05); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; box-shadow: var(--edge); transition: background .2s; }
.cart-btn:hover { background: rgba(255, 255, 255, .1); }
.cart-btn__count { position: absolute; top: -3px; right: -3px; background: var(--violet); color: #fff; min-width: 20px; height: 20px; border-radius: 999px; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 12px var(--violet); }
.cart-btn.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.15); } }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; padding: 9px; }
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Первый экран */
.hero { padding: 16px 0 0; }
.hero__inner { position: relative; overflow: hidden; padding: 110px 56px 90px; min-height: 560px; }
.hero__text { position: relative; z-index: 1; }
.shards { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shards__dark { stroke: #050507; stroke-width: 3; }
.shards__light { stroke: rgba(255, 255, 255, .13); stroke-width: 1; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__facts { list-style: none; display: flex; gap: 14px; margin-top: 56px; flex-wrap: wrap; }
.hero__facts li { background: rgba(255, 255, 255, .035); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: var(--edge); border-radius: 12px; padding: 14px 18px; }
.hero__facts strong { display: block; color: #fff; font-weight: 500; font-size: 1.05rem; }
.hero__facts span { font-size: 12px; color: var(--faint); }

/* Секции */
.section { padding: 16px 0 0; }
.section > .container { padding: 72px 56px; }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__sub { color: var(--muted); margin-top: 12px; }

/* Каталог */
.filters { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.filter { border: 0; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .7); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; box-shadow: var(--edge); transition: all .2s; }
.filter:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.filter.is-active { background: #ececef; color: #0b0b0d; box-shadow: none; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product { background: rgba(255, 255, 255, .025); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--edge); transition: transform .25s, box-shadow .25s, background .25s; }
.product:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .04); box-shadow: var(--edge-strong), 0 20px 40px rgba(0, 0, 0, .5); }
.product__img { aspect-ratio: 1; display: grid; place-items: center; font-size: 4rem; position: relative; cursor: pointer; border: 0; width: 100%; background: radial-gradient(circle at 50% 40%, rgba(198, 108, 243, .14), transparent 65%), #0c0c0f; background-size: cover; background-position: center; }
.product__tag { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; box-shadow: var(--edge); }
.product__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__label { font-size: 10.5px; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .14em; }
.product h3 { cursor: pointer; }
.product p { color: var(--muted); font-size: 13px; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.price-now { font-weight: 500; font-size: 1.05rem; color: #fff; }
.price-old { color: var(--faint); text-decoration: line-through; font-size: .85rem; margin-left: 6px; font-weight: 400; }

/* Шаги */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { background: rgba(255, 255, 255, .025); box-shadow: var(--edge); border-radius: 12px; padding: 24px 22px; }
.steps__n { font-family: var(--round); font-weight: 700; font-size: 1rem; color: #dcf8ff; text-shadow: 0 0 4px var(--cyan), 0 0 14px var(--cyan); }
.steps h3 { margin: 18px 0 6px; }
.steps p { color: var(--muted); font-size: 14px; }

/* Доставка */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.info { background: rgba(255, 255, 255, .025); box-shadow: var(--edge); border-radius: 12px; padding: 24px 22px; }
.info__icon { font-size: 1.6rem; margin-bottom: 14px; }
.info h3 { margin-bottom: 6px; }
.info p { color: var(--muted); font-size: 14px; }

/* Вопросы */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--faint); transition: transform .2s, color .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); color: #fff; }
.faq p { color: var(--muted); margin-top: 10px; }

/* Окно товара */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop, .cart__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__box { position: relative; background: linear-gradient(180deg, var(--sheet-2), var(--sheet)); box-shadow: var(--edge-strong), 0 40px 80px rgba(0, 0, 0, .6); border-radius: var(--radius); width: min(820px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 1; }
.modal__img { display: grid; place-items: center; font-size: 7rem; min-height: 320px; background: radial-gradient(circle at 50% 40%, rgba(198, 108, 243, .18), transparent 65%), #0c0c0f; background-size: cover; background-position: center; }
.modal__body { padding: 36px 30px; display: flex; flex-direction: column; gap: 12px; }
.modal__body h3 { font-size: 1.7rem; font-weight: 300; padding-right: 30px; }
.modal__desc { color: var(--muted); }
.modal__price { font-size: 1.3rem; font-weight: 500; color: #fff; }
.modal__field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; color: var(--muted); }
.modal__field[hidden] { display: none; }
.modal__field small { color: var(--faint); font-weight: 400; }
.modal__actions { display: flex; gap: 12px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .04); box-shadow: var(--edge); }
.qty button { background: none; border: 0; width: 38px; height: 42px; font-size: 1.1rem; cursor: pointer; color: rgba(255, 255, 255, .75); }
.qty button:hover { color: #fff; }
.qty input { width: 40px; text-align: center; border: 0; background: none; color: #fff; font: inherit; font-weight: 500; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--small button { width: 30px; height: 30px; }
.qty--small span { min-width: 20px; text-align: center; font-weight: 500; color: #fff; }

/* Корзина */
.cart { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.cart.is-open { visibility: visible; }
.cart__backdrop { opacity: 0; transition: opacity .3s; }
.cart.is-open .cart__backdrop { opacity: 1; }
.cart__panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(430px, 100% - 24px); background: linear-gradient(180deg, var(--sheet-2), var(--sheet)); box-shadow: var(--edge-strong), 0 40px 80px rgba(0, 0, 0, .6); border-radius: var(--radius); display: flex; flex-direction: column; transform: translateX(calc(100% + 24px)); transition: transform .3s; }
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart__head h3 { font-size: 1.4rem; font-weight: 300; }
.cart__items { flex: 1; overflow: auto; padding: 6px 22px; }
.cart__empty { text-align: center; color: var(--muted); padding: 60px 0; }
.cart__empty div { font-size: 2.6rem; margin-bottom: 10px; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item__img { width: 52px; height: 52px; border-radius: 10px; background: #0c0c0f; box-shadow: var(--edge); display: grid; place-items: center; font-size: 1.6rem; background-size: cover; background-position: center; }
.cart-item__name { font-weight: 500; color: #fff; line-height: 1.3; font-size: 14px; }
.cart-item__text { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cart-item__row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cart-item__price { font-weight: 500; color: #fff; white-space: nowrap; }
.cart-item__remove { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 12.5px; }
.cart-item__remove:hover { color: #fff; }
.cart__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.cart__foot[hidden] { display: none; }
.cart__total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 14px; color: #fff; }
.cart__total b { font-weight: 500; }

/* Формы */
.form--cart { display: flex; flex-direction: column; gap: 10px; }
.form input, .modal textarea { font: inherit; padding: 12px 14px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .04); color: #fff; box-shadow: var(--edge); transition: box-shadow .2s, background .2s; width: 100%; }
.form input::placeholder, .modal textarea::placeholder { color: var(--faint); }
.form input:focus, .modal textarea:focus { outline: none; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(198, 108, 243, .7), 0 0 0 3px rgba(198, 108, 243, .2); }
.form .is-invalid { box-shadow: inset 0 0 0 1px #ff6b6b; }
.form__check { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.form .form__check input { width: 16px; height: 16px; flex: none; box-shadow: none; accent-color: var(--violet); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 13px; min-height: 1.2em; }
.form__status.ok { color: #7ee2a8; }
.form__status.err { color: #ff8a8a; }

/* Подвал */
.footer { padding: 16px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 48px 56px; }
.footer h4 { color: var(--faint); margin-bottom: 14px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; }
.footer p { margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.footer a:hover { color: #fff; }
.footer__muted { margin-top: 12px; }
.footer__bottom { padding: 18px 56px 0; font-size: 12px; color: var(--faint); }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Адаптив */
@media (max-width: 1000px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .steps, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header__inner { gap: 12px; padding: 0 16px 0 20px; position: relative; }
  .nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px; background: rgba(22, 22, 26, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius); box-shadow: var(--edge), 0 30px 60px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: flex; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__inner { padding: 70px 24px 56px; min-height: 0; }
  .section > .container { padding: 48px 24px; }
  .footer__inner { padding: 36px 24px; }
  .footer__bottom { padding-inline: 24px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .modal__box { grid-template-columns: 1fr; }
  .modal__img { min-height: 200px; font-size: 5rem; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 20px); }
  .steps, .info-grid, .footer__inner { grid-template-columns: 1fr; }
  .products { gap: 10px; }
  .product__img { font-size: 3rem; }
  .product__body { padding: 12px; }
  .product h3 { font-size: 14px; }
  .product p { display: none; }
  .product__foot { flex-direction: column; align-items: stretch; }
  .hero__facts li { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
