:root {
  --bg: #16181a;
  --bg-2: #1e2124;
  --card: #24282b;
  --line: #34393d;
  --text: #f1f1ee;
  --muted: #a6aaa6;
  --accent: #ffd500;
  --accent-ink: #1a1a1a;
  --blue: #2f7fe0;
  --olive: #6b7a4b;
  --danger: #ff6b5b;
  --ok: #5cc27a;
  --radius: 12px;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  -webkit-tap-highlight-color: transparent;
  font: 400 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; letter-spacing: .01em; margin: 0 0 .5em; line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(22,24,26,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.wrap { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
button, a, input, textarea, label { touch-action: manipulation; }
input, textarea, select { font-size: 16px; }
.call-btn { display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); }
.header__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font-family: var(--head); font-size: 22px; letter-spacing: .06em; }
.brand__text small { color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.header__phone { text-decoration: none; font-weight: 700; white-space: nowrap; }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.15); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; font: 600 15px/1 "Inter", sans-serif; text-decoration: none; cursor: pointer; transition: transform .1s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ffe14d; }
.btn--accent:disabled { opacity: .6; cursor: wait; }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--muted); }
.btn--wide { width: 100%; }
.icon-btn { border: 0; background: transparent; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; width: 40px; height: 40px; border-radius: 8px; }
.icon-btn:hover { background: var(--card); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--bg) 35%, rgba(22,24,26,.75) 65%, rgba(22,24,26,.35)),
    url("../img/products/p14.jpg") right center / auto 120% no-repeat,
    var(--bg-2);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue) 50%, var(--accent) 50%); }
.hero__in { padding: 72px 0 56px; }
.hero__text { max-width: 620px; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); text-transform: uppercase; }
.lead { color: #d3d5d0; font-size: 18px; margin: 0 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.perks { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.perks li { background: rgba(36,40,43,.85); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.perks b { font-weight: 600; }
.perks span { color: var(--muted); font-size: 14px; }

/* Catalog */
.catalog { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--muted); width: min(360px, 100%); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 11px 0; outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 9px 16px; border-radius: 999px; font: 500 14px/1 "Inter", sans-serif; cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip small { opacity: .65; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: border-color .2s, transform .2s; text-align: left; color: inherit; font: inherit; padding: 0; }
.product:hover { border-color: #55605a; transform: translateY(-2px); }
.product__img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__name { font-weight: 500; font-size: 15px; line-height: 1.35; }
.product__meta { color: var(--muted); font-size: 13px; }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--head); font-size: 22px; font-weight: 600; white-space: nowrap; }
.product__buy { background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 8px 12px; font-weight: 600; font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 24px; }

/* Info */
.info { padding: 64px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 20px; color: var(--accent); }
.card p { margin: 0; color: #d3d5d0; }
.note { color: var(--muted); margin: 20px 0 0; }

/* Contacts */
.contacts { padding: 64px 0; }
.contacts__in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.contact-list { display: grid; grid-template-columns: 110px 1fr; gap: 12px 16px; margin: 0 0 24px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.socials { display: flex; gap: 16px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--card); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 14px; }
.footer__in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Modal */
.modal, .drawer { position: fixed; inset: 0; z-index: 50; overscroll-behavior: contain; }
.modal__box, .drawer__panel { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal__close { background: rgba(22,24,26,.85); border-radius: 50%; }
.pm__cta { display: flex; flex-direction: column; gap: 8px; }
.mbar { display: none; }
body.locked { position: fixed; left: 0; right: 0; overflow: hidden; }
.modal__backdrop, .drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal__box { position: relative; width: min(900px, 100% - 24px); max-height: calc(100% - 24px); overflow: auto; margin: 12px auto; top: 50%; transform: translateY(-50%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 1; }
.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm__img { background: #fff; display: grid; place-items: center; min-height: 320px; overflow: hidden; }
.pm__img img { width: 100%; height: 100%; object-fit: contain; max-height: 560px; }
.pm__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pm__body h3 { font-size: 26px; margin: 0; padding-right: 30px; }
.pm__cat { color: var(--accent); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; font-weight: 600; margin: 0; }
.pm__price { font-family: var(--head); font-size: 32px; margin: 0; }
.pm__note { margin: 0; color: var(--muted); }
.pm__desc { margin: 0; color: #d3d5d0; font-size: 15px; line-height: 1.55; }
.label { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow: auto; }
.size { min-width: 48px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 500 14px/1 "Inter", sans-serif; cursor: pointer; }
.size:hover { border-color: var(--muted); }
.size[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--card); color: var(--text); font-size: 20px; cursor: pointer; }
.stepper span { min-width: 40px; text-align: center; font-weight: 600; }
.error { color: var(--danger); margin: 0; font-size: 14px; }

/* Drawer */
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); overflow-y: auto; padding: env(safe-area-inset-top) 20px calc(28px + env(safe-area-inset-bottom)); animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { position: sticky; top: 0; background: var(--bg-2); display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); z-index: 1; }
.drawer__head h3 { margin: 0; font-size: 24px; }
.cart-list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #fff; }
.cart-item__name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.cart-item__meta { color: var(--muted); font-size: 13px; }
.cart-item__right { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.cart-item .stepper button { width: 30px; height: 30px; font-size: 16px; }
.cart-item .stepper span { min-width: 28px; font-size: 14px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 16px; font-size: 18px; }
.cart-total b { font-family: var(--head); font-size: 26px; }
.checkout { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.checkout h4 { font-size: 20px; margin: 0; }
.checkout label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.checkout input:not([type=radio]), .checkout textarea { background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 11px 12px; font: inherit; font-weight: 400; }
.checkout input:focus, .checkout textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.checkout .invalid { border-color: var(--danger) !important; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.checkout label.radio { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; cursor: pointer; }
.radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#novaFields { display: flex; flex-direction: column; gap: 12px; }
.done { text-align: center; padding: 40px 8px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; margin-bottom: 8px; }
.done h4 { font-size: 24px; }
.done p { margin: 0; color: #d3d5d0; }
.done .btn { margin-top: 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 60; transition: transform .25s, opacity .25s; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Responsive */
@media (max-width: 960px) {
  .perks, .cards { grid-template-columns: repeat(2, 1fr); }
  .contacts__in { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 680px) {
  .header__in { gap: 10px; height: 60px; }
  .brand__text small { display: none; }
  .header__phone { display: none; }
  .call-btn { display: grid; }
  .hero__cta .btn { flex: 1 1 100%; }
  .chips { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 10; background: var(--bg); margin: 0 -16px 16px; padding: 10px 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .section-head { margin-bottom: 8px; }
  .search { width: 100%; }
  .map, .map iframe { min-height: 260px; }
  .contact-list { grid-template-columns: 90px 1fr; }

  /* картка товару — на весь екран */
  .modal__box { width: 100%; height: 100%; max-height: none; margin: 0; top: 0; transform: none; border-radius: 0; border: 0; height: 100dvh; }
  .pm__img { display: block; height: 42vh; height: 42dvh; min-height: 0; max-height: none; overflow: hidden; }
  .pm__img img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  .modal__close { top: calc(10px + env(safe-area-inset-top)); right: 10px; }
  .pm__body { padding: 18px 16px 0; gap: 12px; }
  .pm__body h3 { font-size: 22px; }
  .pm__price { font-size: 28px; }
  .sizes { max-height: none; }
  .size { min-width: 52px; min-height: 42px; }
  .pm__cta { position: sticky; bottom: 0; background: var(--bg-2); margin: 4px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

  /* нижня панель кошика */
  .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font: 600 15px/1.2 "Inter", sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.45); cursor: pointer; text-align: left; }
  .mbar[hidden] { display: none !important; }
  .mbar__info { display: flex; flex-direction: column; }
  .mbar__info span { font-weight: 500; font-size: 13px; opacity: .8; }
  body.has-mbar .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.has-mbar .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

  .drawer__panel { width: 100%; border-left: 0; }
  .cart-item { grid-template-columns: 56px 1fr auto; }
  .cart-item img { width: 56px; height: 56px; }
  .hero { background: linear-gradient(180deg, rgba(22,24,26,.82), var(--bg) 85%), url("../img/products/p14.jpg") center top / cover no-repeat; }
  .hero__in { padding: 44px 0 36px; }
  .lead { font-size: 16px; }
  .perks { margin-top: 28px; gap: 8px; }
  .perks li { padding: 10px 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product__body { padding: 10px; }
  .product__name { font-size: 13px; }
  .price { font-size: 18px; }
  .product__buy { display: none; }
  .pm { grid-template-columns: 1fr; }
  .catalog, .info, .contacts { padding: 44px 0; }
}
@media (max-width: 360px) {
  .brand__text b { font-size: 19px; }
  .brand img { width: 38px; height: 38px; }
  .grid { gap: 8px; }
}
