/* Витрина магазина домашней мясной продукции.
   Тёплая палитра: топлёное молоко, обожжённая глина, бордо, латунь. */

:root {
  --paper:      #fffdf9;
  --cream:      #f7f0e6;
  --cream-deep: #efe4d5;
  --ink:        #241b17;
  --ink-soft:   #5c4c43;
  --muted:      #8a776a;
  --line:       #e6d8c6;
  --brand:      #8f2f24;
  --brand-deep: #6d2019;
  --brand-soft: #f5e5e1;
  --gold:       #b8862f;
  --green:      #3f7d4e;
  --green-soft: #e8f2ea;
  --red:        #b3372a;
  --shadow-sm:  0 1px 2px rgba(60,35,20,.06), 0 2px 8px rgba(60,35,20,.05);
  --shadow-md:  0 2px 6px rgba(60,35,20,.08), 0 12px 28px rgba(60,35,20,.10);
  --radius:     14px;
  --radius-sm:  9px;
  --serif:      Georgia, "Times New Roman", serif;
  --sans:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 19px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* ------------------------------------------------------------- шапка */

.top {
  background: var(--ink);
  color: #f3e9dd;
  font-size: 13.5px;
}
.top .wrap { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 7px 0; }
.top a { color: #f3e9dd; opacity: .85; }
.top a:hover { opacity: 1; }
.top-note { color: #bda893; }

/* Бегущая строка новостей на главной. Лента едет всегда в одну сторону:
   дорожка состоит из двух одинаковых половин и сдвигается ровно на половину,
   поэтому склейка незаметна. */
.ticker {
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 9px 0;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-size: 14px; color: var(--ink-soft); padding: 0 26px;
  position: relative;
}
.ticker-item::before {
  content: "•"; position: absolute; left: 0; color: var(--brand); opacity: .6;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Кому анимация мешает — показываем строку неподвижно. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; white-space: normal; }
}

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.logo-text { line-height: 1.15; }
.logo-name { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--ink); }
.logo-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

nav.main { display: flex; gap: 4px; margin-left: auto; }
nav.main a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}
nav.main a:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
nav.main a.on { background: var(--brand-soft); color: var(--brand-deep); }

.head-actions { display: flex; align-items: center; gap: 10px; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-sm);
}
.cart-btn:hover { background: var(--brand-deep); text-decoration: none; }
.cart-count {
  background: rgba(255,255,255,.25);
  padding: 1px 8px; border-radius: 999px; font-size: 12.5px;
}

.burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); padding: 4px 8px; }

/* ------------------------------------------------------------- герой */

.hero {
  background:
    radial-gradient(1000px 400px at 78% -8%, rgba(184,134,47,.16), transparent 62%),
    linear-gradient(158deg, #2b1d17 0%, #4a2a20 52%, #6d2019 100%);
  color: #fdf6ec;
  padding: 68px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; max-width: 720px; }
.hero .eyebrow {
  display: inline-block;
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,134,47,.45);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(32px, 5.2vw, 52px); margin-bottom: .35em; }
.hero p { font-size: 18px; color: #e8d5c2; max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-facts { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-fact strong { display: block; font-family: var(--serif); font-size: 27px; color: var(--gold); }
.hero-fact span { font-size: 13.5px; color: #cbb6a2; }

/* ------------------------------------------------------------ кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .06s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-gold { background: var(--gold); color: #2b1d10; }
.btn-gold:hover { background: #a5761f; }
.btn-ghost { background: transparent; color: #fdf6ec; border-color: rgba(253,246,236,.35); }
.btn-ghost:hover { background: rgba(253,246,236,.1); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: transparent; color: var(--red); border-color: #e8c9c4; }
.btn-danger:hover { background: #fbeeec; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------ секции */

main { flex: 1 0 auto; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

.lead { font-size: 17px; color: var(--ink-soft); }

/* ---------------------------------------------------------- категории */

.cats { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-chip {
  padding: 9px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14.5px; font-weight: 500;
}
.cat-chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cat-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ------------------------------------------------------ карточки товара */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--cream-deep); }

.card-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #f0e2d2, #e2cdb4);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .ph {
  font-family: var(--serif); font-size: 52px; font-weight: 700;
  color: rgba(141,63,44,.32);
}
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,253,249,.94);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
/* Бейджей «Нет в наличии» и «Заканчивается» на витрине больше нет:
   остатки — внутренняя кухня, покупателю показываем только категорию. */
.badge-cat { background: rgba(36,27,23,.82); color: #f3e9dd; }

.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
/* Длинное название товара на узком экране должно переноситься, а не вылезать. */
.card-title { font-family: var(--serif); font-size: 17px; font-weight: 700; margin: 0 0 6px; overflow-wrap: break-word; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-desc {
  font-size: 13.5px; color: var(--muted); margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2; overflow: hidden;
}
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* «В корзине 1,5 кг» под кнопкой — видно, что уже набрано, пока идёшь по каталогу. */
.card-incart {
  margin: 10px 0 0; font-size: 13px; color: var(--muted);
  border-top: 1px dashed var(--line); padding-top: 9px;
}
.card-incart b { color: var(--ink); }
.price { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* --------------------------------------------------------- страница товара */

.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.product-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, #f0e2d2, #e2cdb4);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo .ph { font-family: var(--serif); font-size: 92px; color: rgba(141,63,44,.3); }

.product-info .price-big { font-family: var(--serif); font-size: 34px; font-weight: 700; }
.product-info .price-big small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 500; }

.spec { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec li span:first-child { color: var(--muted); }
.spec li span:last-child { font-weight: 500; text-align: right; }

.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 24px 0; }

.qty-input {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--paper);
}
.qty-input button {
  width: 40px; height: 44px; border: 0; background: none;
  font-size: 19px; color: var(--ink-soft); cursor: pointer;
}
.qty-input button:hover { background: var(--cream); color: var(--brand); }
.qty-input input {
  width: 66px; height: 44px; border: 0; text-align: center;
  font: inherit; font-weight: 600; background: none; color: var(--ink);
  -moz-appearance: textfield;
}
.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ------------------------------------------------------------ корзина */

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel + .panel { margin-top: 20px; }
.panel h2, .panel h3 { margin-top: 0; }

.cart-line { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-thumb {
  width: 78px; height: 78px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(150deg, #f0e2d2, #e2cdb4);
  display: grid; place-items: center;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph { font-family: var(--serif); font-size: 27px; color: rgba(141,63,44,.32); }
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; margin-bottom: 3px; overflow-wrap: break-word; }
.cart-line-meta { font-size: 13px; color: var(--muted); }
.cart-line-sum { font-family: var(--serif); font-size: 18px; font-weight: 700; white-space: nowrap; min-width: 96px; text-align: right; }
.cart-line-qty { display: flex; gap: 8px; align-items: center; margin-top: 9px; flex-wrap: wrap; }
.cart-line-unit { font-size: 13.5px; color: var(--muted); }

.cart-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14px;
}

.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; }
.summary-row.total {
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px;
  font-family: var(--serif); font-size: 23px; font-weight: 700;
}
.sticky { position: sticky; top: 92px; }

/* ------------------------------------------------------------- формы */

.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field .err { font-size: 12.5px; color: var(--red); margin-top: 5px; }

input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], input[type=search], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(143,47,36,.11);
}
input.bad, select.bad, textarea.bad { border-color: var(--red); }
textarea { resize: vertical; min-height: 92px; }
select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238a776a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.check { display: flex; align-items: center; gap: 9px; font-size: 14.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex-shrink: 0; }

.radio-cards { display: grid; gap: 10px; }
.radio-card {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.radio-card:hover { border-color: var(--brand); }
.radio-card input { accent-color: var(--brand); width: 17px; height: 17px; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

.auth-page { max-width: 460px; margin: 0 auto; }

/* ------------------------------------------------------- уведомления */

.alert {
  padding: 13px 17px; border-radius: var(--radius-sm);
  margin-bottom: 22px; font-size: 14.5px;
  border: 1px solid transparent;
}
.alert-ok { background: var(--green-soft); color: #285c34; border-color: #c6e0cc; }
.alert-err { background: #fbeeec; color: #8d2a20; border-color: #eecdc8; }

/* Короткое сообщение «добавлено» при наборе заказа по каталогу. */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60;
  transform: translate(-50%, 14px);
  max-width: min(92vw, 460px);
  padding: 12px 18px; border-radius: 999px;
  background: rgba(36,27,23,.94); color: #fdf6ec;
  font-size: 14.5px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .22s, transform .22s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast[hidden] { display: none; }

/* Кнопка есть в разметке, но её не видно: нужна только как действие по Enter. */
.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;
}

.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-icon { font-size: 52px; margin-bottom: 14px; opacity: .55; }
.empty h3 { color: var(--ink-soft); }

/* --------------------------------------------------------- статусы */

.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.chip-new      { background: #e7eefb; color: #24457f; }
.chip-accepted { background: #e5f0fa; color: #1f5578; }
.chip-packing  { background: #fdf0d9; color: #825613; }
.chip-delivery { background: #ede6f9; color: #4d3382; }
.chip-done     { background: var(--green-soft); color: #285c34; }
.chip-canceled { background: #f1e9e7; color: #75514a; }

/* --------------------------------------------------------- таблицы */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th {
  text-align: left; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  padding: 0 14px 11px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(247,240,230,.6); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* На телефоне таблицу пришлось бы листать вбок, поэтому каждая строка
   разворачивается в карточку: слева подпись столбца (из data-label у ячейки),
   справа значение. Ячейки без подписи (кнопки) занимают всю ширину. */
@media (max-width: 620px) {
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr {
    border: 1px solid var(--line); border-radius: 12px;
    padding: 6px 14px; margin-bottom: 12px; background: var(--paper);
  }
  table.data tr:last-child { margin-bottom: 0; }
  table.data td {
    padding: 8px 0; border-bottom: 1px solid var(--line);
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    text-align: right;
  }
  table.data tr td:last-child { border-bottom: 0; }
  table.data td::before {
    content: attr(data-label);
    flex: 0 0 auto; text-align: left;
    font-size: 12px; font-weight: 600; letter-spacing: .05em;
    text-transform: uppercase; color: var(--muted);
  }
  table.data td:not([data-label]) { display: block; text-align: left; }
  table.data td .btn { width: 100%; }
  table.data td.num { justify-content: space-between; }
}

/* ------------------------------------------------------------ подвал */

footer.site {
  background: var(--ink);
  color: #c9b6a5;
  padding: 44px 0 30px;
  margin-top: 64px;
  font-size: 14.5px;
}
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer.site h4 { color: #f3e9dd; font-family: var(--serif); font-size: 16px; margin-bottom: 12px; }
footer.site a { color: #c9b6a5; }
footer.site a:hover { color: #f3e9dd; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 7px; }
.foot-bottom {
  border-top: 1px solid rgba(201,182,165,.2);
  margin-top: 30px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #9c8877;
}

/* ---------------------------------------------------------- адаптив */

@media (max-width: 980px) {
  /* minmax(0, 1fr), а не 1fr: колонка грида по умолчанию не сжимается уже
     своего содержимого, и страница корзины уезжала вбок вместе с ним. */
  .product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  nav.main {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px;
    box-shadow: var(--shadow-md);
  }
  nav.main.open { display: flex; }
  /* В выпадающем меню ссылки — во всю ширину и с запасом по высоте под палец. */
  nav.main a { padding: 13px 14px; font-size: 16px; }

  /* Шапка одной строкой: логотип, корзина, бургер справа под большой палец.
     Подпись под названием прячем — иначе три блока не помещаются в 375 px. */
  header.site .wrap { position: relative; flex-wrap: nowrap; gap: 10px; }
  .logo { min-width: 0; }
  .logo-sub { display: none; }
  .logo-name { font-size: 19px; }
  .head-actions { order: 2; margin-left: auto; }
  .burger { order: 3; }
  .cart-btn { padding: 9px 13px; font-size: 14px; }
  .hero { padding: 44px 0 50px; }
  .hero-facts { gap: 22px; }
  .section { padding: 38px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .card-body { padding: 12px 13px 14px; }
  .card-title { font-size: 15px; }
  .card-desc { display: none; }
  .price { font-size: 18px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .top .wrap { font-size: 12.5px; }
  .top-note { display: none; }
  .cart-thumb { width: 58px; height: 58px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 26px; }

  /* Цена и «В корзину» в узкой карточке в строку не помещались, и кнопку
     обрезало краем карточки — ставим их друг под другом. */
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-foot form { width: 100%; }
  .card-foot .btn { width: 100%; }
  .price { white-space: normal; }

  /* Строка корзины: картинка и название сверху, количество и кнопки — ниже,
     иначе «Убрать» и сумма не влезают в ширину экрана. */
  .cart-line { flex-wrap: wrap; gap: 12px; }
  .cart-line-main { flex: 1 1 100%; order: 2; }
  .cart-line-qty { flex-wrap: wrap; }
  .cart-line-sum { min-width: 0; font-size: 17px; margin-left: auto; }
  .qty-input input { width: 56px; }

  /* На iOS поле со шрифтом меньше 16px при фокусе зумит всю страницу. */
  input[type=text], input[type=tel], input[type=email], input[type=password],
  input[type=number], input[type=search], select, textarea { font-size: 16px; }
}
