/* Розничная витрина BLESSTEC. Тон - как в b2b (один бренд), но розничнее:
   больше воздуха, крупные фото на тёплых плитках, акцент только на цене и кнопке.
   Оранжевый берём из фирменного набора и держим в узде: он помечает действие,
   а не украшает страницу. */
:root {
  --bg: #ffffff;
  --ink: #16130f;
  --muted: #7a7469;
  --muted-2: #a19a8e;
  --surface: #f6f4f0;
  --surface-2: #efece6;
  --tile: #f2efe9;
  --line: #e7e3dc;
  --line-2: #d8d2c8;
  --accent: #16130f;
  --hl: #e8590c;
  --ok: #2f7d4f;
  --warn: #b26a00;
  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 24px 60px -28px rgba(22, 19, 15, .28);
  --shadow-sm: 0 8px 24px -14px rgba(22, 19, 15, .3);
  --head-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
picture { display: contents; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 54px); letter-spacing: -.035em; }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; border-radius: 5px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 22px; }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
/* Атрибут hidden обязан побеждать любые display у компонентов: без этого пустая
   корзина показывалась одновременно со списком товаров. */
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--hl); color: #fff; }
.btn-primary:hover { background: #d24d05; }
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: #2f2a24; }
.btn-ghost { border: 1.5px solid var(--line-2); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { color: var(--muted); padding: 10px 14px; }
.btn-quiet:hover { color: var(--ink); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn-wide { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ------------------------------------------------------------------- шапка */
.head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 22px; height: var(--head-h); }
.logo { font-weight: 800; font-size: 16px; letter-spacing: .02em; line-height: 1; }
.logo span { color: var(--hl); }
.logo small {
  display: block; font-size: 8px; font-weight: 700; letter-spacing: .42em;
  text-transform: uppercase; color: var(--muted-2); margin-top: 3px;
}
.head-nav { display: flex; gap: 20px; font-size: 14.5px; margin-left: 8px; }
.head-nav a { color: var(--muted); font-weight: 500; }
.head-nav a:hover, .head-nav a.is-active { color: var(--ink); }
.head-nav a.hl { color: var(--hl); font-weight: 600; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  color: var(--ink); transition: background .15s;
}
.icon-btn:hover { background: var(--surface); }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--hl); color: #fff; font-size: 10.5px;
  font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.burger { display: none; }

/* --------------------------------------------------------------- подвал */
.foot { margin-top: 90px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 34px; }
.foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; font-size: 14.5px; }
.foot a:hover { color: var(--hl); }
.foot-bottom {
  border-top: 1px solid var(--line); padding: 18px 0 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ------------------------------------------------------------- плитка товара */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--tile);
  overflow: hidden; display: grid; place-items: center;
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 12%;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card-media img { transform: scale(1.045); }
.card-flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.flag {
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.flag-hit { background: var(--ink); color: #fff; }
.flag-fit { background: var(--hl); color: #fff; }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-name { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.card-sub { font-size: 13px; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 10px; }
.card-price { font-weight: 700; font-size: 17px; }
.card-price small { font-weight: 500; font-size: 13px; color: var(--muted); margin-right: 3px; }
.dots { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.dot {
  width: 15px; height: 15px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .14);
  box-shadow: inset 0 0 0 1.5px #fff;
}
.dot-more { font-size: 11.5px; color: var(--muted); line-height: 15px; }

/* остаток */
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.stock-ok { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--muted); }

/* --------------------------------------------------------------- секции */
.sec { margin-top: 74px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sec-head p { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--hl); margin-bottom: 12px;
}
.link-more { font-weight: 600; font-size: 14.5px; color: var(--hl); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- формы */
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; }
.input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  background: #fff; transition: border-color .15s;
}
.input:focus { border-color: var(--ink); outline: none; }
.input::placeholder { color: var(--muted-2); }

/* ---------------------------------------------------------------- прочее */
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.pill:hover { border-color: var(--ink); }
.pill.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill:disabled { opacity: .35; cursor: default; text-decoration: line-through; }

.note {
  background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px;
  font-size: 14px; color: var(--muted); line-height: 1.5;
}

@media (max-width: 900px) {
  .foot-in { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  .head-nav { display: none; }
  .burger { display: grid; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .card-media img { padding: 9%; }
  .sec { margin-top: 54px; }
  .sec-head { flex-direction: column; align-items: start; gap: 10px; }
}
