/* SNUS MSK — витрина ночного магазина.
   Система: светлая канва, индиго как акцент действия, зелёный — сигнал «везём сейчас».
   Фирменная деталь — строка со временем доставки в шапке: покупают ночью и срочно,
   поэтому «когда привезут» важнее любой картинки. */

:root {
  --ink: #0f1115;
  --ink-2: #5b6474;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --accent: #3b49df;
  --accent-dark: #2b37b8;
  --live: #12b76a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 17, 21, .04), 0 8px 24px rgba(15, 17, 21, .06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "kern" 1;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -.02em; text-wrap: balance; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── шапка ───────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; padding: 14px 20px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 26px; width: auto; display: block; }
.search { flex: 1; position: relative; min-width: 0; }
.search input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--bg-2); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.search input:focus { background: #fff; border-color: var(--accent); outline: none; }
.tel { font-weight: 700; white-space: nowrap; }
.msg a { color: var(--ink-2); font-size: 13px; margin-left: 10px; }
.msg a:hover { color: var(--accent); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff;
  border: 0; padding: 11px 18px; border-radius: 10px; cursor: pointer;
  font: 600 15px inherit; font-family: inherit; white-space: nowrap;
  transition: background .15s, transform .1s;
}
.cart-btn:hover { background: var(--accent); }
.cart-btn:active { transform: scale(.98); }
.cart-btn span { background: rgba(255,255,255,.22); border-radius: 20px;
  padding: 1px 8px; font-variant-numeric: tabular-nums; }

/* фирменная строка: живое время доставки */
.live {
  background: var(--ink); color: #fff; font-size: 13.5px;
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 9px 20px; flex-wrap: wrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(18,183,106,.7); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(18,183,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); }
}
.live b { font-variant-numeric: tabular-nums; }
.live span { color: rgba(255,255,255,.65); }

.menu { border-bottom: 1px solid var(--line); background: #fff; }
.menu .wrap { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.menu .wrap::-webkit-scrollbar { display: none; }
.menu a { padding: 13px 0; font-size: 14.5px; color: var(--ink-2); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.menu a:hover { color: var(--ink); border-color: var(--line); }

/* ── герой ───────────────────────────────────────────── */
.promo {
  position: relative; padding: 64px 0 56px; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(100deg, #fff 0%, #fff 46%, rgba(255,255,255,.62) 60%, rgba(255,255,255,0) 78%), var(--hero);
  background-size: auto, cover; background-position: center, center right;
  background-repeat: no-repeat;
}
.promo-in { position: relative; }
.promo-txt { max-width: 620px; }
.promo h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 800; max-width: 15ch; }
.promo p { color: var(--ink-2); font-size: 17px; max-width: 54ch; margin: 14px 0 26px; }
.promo-btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: 13px 26px; border-radius: 10px; transition: background .15s, transform .1s;
}
.promo-btn:hover { background: var(--accent-dark); }
.promo-btn:active { transform: scale(.98); }
.facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; }
.fact { display: flex; gap: 10px; align-items: baseline; }
.fact b { font-size: 15px; }
.fact span { color: var(--ink-2); font-size: 14px; }

/* ── витрина ─────────────────────────────────────────── */
.sec-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 46px 0 18px; }
.sec-head h2 { font-size: 26px; font-weight: 800; }
.sec-head em { font-style: normal; color: var(--ink-2); font-size: 14px;
  font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  background: #fff; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d9dce3; }
.hit {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: #fff1f0; color: #d92d20; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
}
.pic { height: 186px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; }
.pic img { max-width: 100%; max-height: 176px; height: auto; mix-blend-mode: multiply; }

/* Плашка-заглушка вместо фото товара: держим до фото клиента.
   Чужих снимков на сайте нет, витрина не пустая, название читается. */
.pic-ph { border-radius: 12px; position: relative; overflow: hidden; }
.pic-ph span { font-weight: 700; font-size: 20px; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.25);
  z-index: 1; padding: 0 10px; text-align: center; }
.pic-ph::after { content: "фото скоро"; position: absolute; bottom: 10px;
  font-size: 11px; letter-spacing: .02em; color: rgba(255,255,255,.85);
  text-transform: none; }
.tone-ice    { background: linear-gradient(145deg, #7aa7d8, #3b6fb0); }
.tone-mint   { background: linear-gradient(145deg, #46b48f, #1f8f6b); }
.tone-berry  { background: linear-gradient(145deg, #c0567f, #8f3358); }
.tone-citrus { background: linear-gradient(145deg, #d7a13a, #b0791f); }
.tone-indigo { background: linear-gradient(145deg, #5a63d8, #3b49b0); }
.tone-dark   { background: linear-gradient(145deg, #3a4050, #232838); }
.brand { color: var(--ink-2); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .04em; }
.card h3 { font-size: 15px; font-weight: 600; margin: 4px 0 14px; line-height: 1.35;
  min-height: 40px; }
.row { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: auto; }
.price { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.buy {
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 9px; cursor: pointer; font: 600 14px inherit;
  font-family: inherit; transition: background .15s, color .15s, border-color .15s;
}
.card:hover .buy { background: var(--accent); color: #fff; border-color: var(--accent); }
.buy.added { background: var(--live); border-color: var(--live); color: #fff; }

/* ── бренды, инфо, текст ─────────────────────────────── */
.brand-row { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-row .b { border: 1px solid var(--line); border-radius: 20px; padding: 8px 16px;
  color: var(--ink-2); font-size: 13.5px; }
.brand-row .b:hover { border-color: var(--accent); color: var(--accent); }

.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 46px 0; }
.info-col { background: var(--bg-2); border-radius: var(--radius); padding: 22px; }
.ico { display: block; width: 46px; height: 46px; margin-bottom: 12px; mix-blend-mode: multiply; }
.info-col h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.info-col p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* Текст внизу: заголовки на всю ширину, абзацы в две колонки —
   узкая колонка у левого края оставляла полстраницы пустой. */
.about { margin: 46px 0; }
.about h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.about h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; column-span: all; }
.about p { color: var(--ink-2); margin: 0 0 14px; }
.about-cols { columns: 2; column-gap: 46px; }
.about-cols p { break-inside: avoid; }

/* ── подвал ──────────────────────────────────────────── */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.foot b { display: block; margin-bottom: 8px; font-size: 15px; }
.foot p { color: var(--ink-2); font-size: 14px; margin: 0; }
.foot a:hover { color: var(--accent); }

/* ── корзина ─────────────────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(15,17,21,.45); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  overscroll-behavior: contain; }
.modal-in { background: #fff; border-radius: 18px; padding: 26px; width: 100%;
  max-width: 470px; position: relative; max-height: 88vh; overflow: auto; }
.modal-in h3 { font-size: 21px; font-weight: 800; margin-bottom: 16px; }
.close { position: absolute; right: 14px; top: 12px; border: 0; background: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.close:hover { color: var(--ink); }
.ci { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ci button { border: 0; background: none; color: var(--ink-2); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 0 2px; }
.ci button:hover { color: #d92d20; }
.total { margin: 16px 0; font-size: 16px; display: flex; justify-content: space-between; }
.total b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
#orderForm input, #orderForm textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line);
  border-radius: 10px; font: 15px inherit; font-family: inherit; background: var(--bg-2);
}
#orderForm input:focus, #orderForm textarea:focus { background: #fff;
  border-color: var(--accent); outline: none; }
#orderForm button {
  width: 100%; background: var(--accent); color: #fff; border: 0; padding: 14px;
  border-radius: 10px; font: 700 16px inherit; font-family: inherit; cursor: pointer;
  transition: background .15s;
}
#orderForm button:hover { background: var(--accent-dark); }
#orderForm button:disabled { background: #a9b0e8; cursor: default; }
.note { font-size: 12.5px; color: var(--ink-2); text-align: center; margin: 10px 0 0; }
.ok { color: var(--live); font-size: 17px; font-weight: 600; text-align: center; padding: 26px 0; }

/* ── возраст ─────────────────────────────────────────── */
.age { position: fixed; inset: 0; background: rgba(255,255,255,.98); z-index: 100;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.age-in { max-width: 400px; }
.age-in p { margin: 0 0 8px; }
.age-in b { font-size: 21px; }
.age .small { color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }
.age button { background: var(--accent); color: #fff; border: 0; padding: 13px 28px;
  border-radius: 10px; cursor: pointer; font: 600 16px inherit; font-family: inherit;
  margin-right: 14px; }
.age button:hover { background: var(--accent-dark); }
.age a { color: var(--ink-2); font-size: 14px; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .info, .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
  .search { order: 3; flex-basis: 100%; }
  .contacts { margin-left: auto; text-align: right; }
  .tel { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { padding: 12px; }
  .pic { height: 140px; }
  .pic img { max-height: 132px; }
  .card h3 { font-size: 14px; min-height: 36px; }
  /* цена и кнопка в одну строку на узком экране не помещаются — кладём в столбик */
  .row { flex-direction: column; align-items: stretch; gap: 8px; }
  .buy { width: 100%; padding: 10px; background: var(--accent); color: #fff;
    border-color: var(--accent); }
  .promo { padding: 30px 0 26px;
    background-image: linear-gradient(180deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.97) 62%, #fff 100%), var(--hero);
    background-position: center, center; }
  .facts { gap: 14px; flex-direction: column; }
  .info, .foot-in { grid-template-columns: 1fr; }
  .modal-in { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── страницы разделов и брендов ─────────────────────── */
.crumbs { color: var(--ink-2); font-size: 13.5px; margin: 20px 0 0; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
.sec-head h1 { font-size: 30px; font-weight: 800; }
.sec-head em a { color: var(--accent); }
.foot-brands { margin-top: 12px; line-height: 2; }
.foot-brands a { color: var(--ink-2); font-size: 13px; margin-right: 10px; }
.foot-brands a:hover { color: var(--accent); }
.brand-row a.b { display: inline-block; }

/* форма опта */
.opt-form { max-width: 460px; margin: 10px 0 50px; }
.opt-form input, .opt-form textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line);
  border-radius: 10px; font: 15px inherit; font-family: inherit; background: var(--bg-2);
}
.opt-form input:focus, .opt-form textarea:focus { background: #fff;
  border-color: var(--accent); outline: none; }
.opt-form button {
  width: 100%; background: var(--accent); color: #fff; border: 0; padding: 14px;
  border-radius: 10px; font: 700 16px inherit; font-family: inherit; cursor: pointer;
}
.opt-form button:hover { background: var(--accent-dark); }
.opt-form button:disabled { background: #a9b0e8; }
