/* Оформление повторяет lacotton.ru: белый фон, коралловый акцент,
   кнопки-пилюли и крупные скруглённые плитки. */
:root {
  --ink: #14110f;
  --ink-soft: #6b6560;
  --line: #e7e4e1;
  --bg: #ffffff;
  --bg-soft: #f7f5f3;
  --accent: #ff5a45;
  --accent-dark: #e8432f;
  --radius: 16px;
  --radius-sm: 12px;
  --pill: 999px;
  --wrap: 1280px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }

/* шапка */
.top {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.top-in { display: flex; align-items: center; gap: 18px; min-height: 70px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-text { font-size: 11.5px; line-height: 1.3; color: var(--ink-soft); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; font-size: 14px; }
.nav a {
  color: var(--ink); white-space: nowrap; padding: 8px 14px;
  border-radius: var(--pill); font-weight: 500;
}
.nav a:hover { background: var(--bg-soft); }
.nav a.on { background: var(--ink); color: #fff; }
.cart-link {
  flex: 0 0 auto; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--pill);
}
.cart-link:hover { border-color: var(--ink); }
.cart-count {
  background: var(--accent); color: #fff; min-width: 22px; height: 22px; border-radius: var(--pill);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; padding: 0 6px;
}

/* главная */
.hero { padding: 24px 0 0; }
.hero-in {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; align-items: stretch;
  border-radius: 24px; overflow: hidden; color: #fff;
  background: linear-gradient(115deg, #15306b 0%, #1d4f9f 42%, #c62828 100%);
}
.hero-text { padding: 34px 38px; align-self: center; }
.hero h1 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; color: #fff; letter-spacing: -0.01em; }
.hero p { color: rgba(255,255,255,.82); font-size: 14px; max-width: 42ch; margin-top: 8px; }
.hero-img { overflow: hidden; position: relative; }
.hero-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, #1d4f9f 0%, rgba(29,79,159,0) 34%);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  min-height: 170px; max-height: 300px; display: block; }
.hero .btn { background: #fff; color: #15306b; margin-top: 16px; }
.hero .btn:hover { background: #f1f1f1; }

.hero-in { max-height: 300px; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0;
  padding: 13px 26px; border-radius: var(--pill); font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 34px auto; }
.cat {
  background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.cat:hover { background: #f0ece9; }
.cat-name { font-weight: 600; font-size: 15px; }
.cat-n { color: var(--ink-soft); font-size: 13px; }

/* сетка товаров */
.block { margin: 48px auto; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.block-head h1 { font-size: clamp(26px, 3vw, 34px); }
.block-head h2 { font-size: 24px; }
.more { color: var(--accent); font-size: 14px; font-weight: 600; }
.more::after { content: " →"; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips a {
  background: var(--bg-soft); border-radius: var(--pill); padding: 9px 18px;
  font-size: 14px; font-weight: 500;
}
.chips a:hover { background: #ece8e5; }
.chips a.on { background: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card-img { background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 12px 2px 0; }
.card-cat { font-size: 12px; color: var(--ink-soft); }
.card-name { font-size: 15px; margin: 4px 0 7px; font-weight: 500; }
.card-price { font-weight: 700; font-size: 16px; }

/* карточка товара */
.pdp { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; margin: 32px auto; align-items: start; }
.pdp-gallery { display: grid; gap: 12px; align-content: start; }
.gal-main { position: relative; background: var(--bg-soft); border-radius: var(--radius);
  aspect-ratio: 3/4; overflow: hidden; }
.gal-slide { position: absolute; inset: 0; display: none; }
.gal-slide.on { display: block; }
.gal-slide img { width: 100%; height: 100%; object-fit: contain; }
.gal-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gal-thumb { width: 84px; height: 84px; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--bg-soft); border: 2px solid transparent; border-radius: 12px; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb.on { border-color: var(--accent); }
.pdp-info h1 { font-size: clamp(22px, 2.6vw, 30px); margin: 8px 0 14px; }
.pdp-price { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.pdp-desc { color: var(--ink-soft); }
.pdp-label { font-size: 13px; margin-bottom: 9px; font-weight: 500; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.size {
  border: 1px solid var(--line); background: #fff; border-radius: var(--pill);
  padding: 9px 16px; font: inherit; font-size: 14px; cursor: pointer; min-width: 50px;
}
.size:hover { border-color: var(--ink); }
.size { border-radius: 10px; font-weight: 600; }
.size.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.add { width: 100%; }

.facts {
  list-style: none; padding: 14px 16px; margin: 18px 0 14px;
  background: var(--bg-soft); border-radius: 14px;
  display: grid; gap: 9px; font-size: 14px; color: var(--ink);
}
.facts li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.fact-ic { color: var(--accent); font-size: 13px; line-height: 1.5; }

.pdp-note { margin-top: 10px; color: #0f7a45; font-size: 14px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 7px 20px; margin: 28px 0 0; font-size: 14px; }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; }

/* корзина */
.cart { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 36px; align-items: start; margin-top: 24px; }
.cart-items { display: grid; gap: 12px; }
.ci { display: grid; grid-template-columns: 82px 1fr auto; gap: 16px; align-items: center;
      background: var(--bg-soft); border-radius: var(--radius); padding: 12px; }
.ci img { width: 82px; height: 104px; object-fit: cover; border-radius: var(--radius-sm); background: #fff; }
.ci-name { font-size: 15px; font-weight: 500; }
.ci-size { font-size: 13px; color: var(--ink-soft); }
.ci-qty { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.ci-qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: var(--pill); cursor: pointer; font: inherit; }
.ci-price { font-weight: 700; white-space: nowrap; }
.ci-del { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: 13px; padding: 4px 0; }

.cart-form { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.cart-total { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.cart-form label { display: grid; gap: 5px; font-size: 13px; color: var(--ink-soft); }
.cart-form input, .cart-form textarea {
  font: inherit; font-size: 15px; color: var(--ink); padding: 11px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); width: 100%; resize: vertical;
}
.cart-empty { grid-column: 1 / -1; }
.cart-done { grid-column: 1 / -1; background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }

/* подвал */
.foot { background: var(--bg-soft); color: var(--ink-soft); margin-top: 64px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; padding: 32px 24px; font-size: 13.5px; flex-wrap: wrap; }
.foot-title { color: var(--ink); font-weight: 600; margin-bottom: 3px; }

/* живое превью надписи */
.mock { position: absolute; inset: 0; }
.mock canvas { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--bg-soft); }
.mock-hint {
  position: absolute; left: 14px; bottom: 14px; background: rgba(20, 17, 15, .72); color: #fff;
  font-size: 12px; padding: 6px 12px; border-radius: var(--pill); backdrop-filter: blur(3px);
}
.pdp-personal { margin-bottom: 20px; }
.personal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.personal-grid input:nth-child(3) { grid-column: 1 / -1; }
.personal-grid input {
  font: inherit; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 100%;
}
.personal-grid input:focus { outline: none; border-color: var(--ink); }
.personal-grid input.need { border-color: var(--accent); background: #fff5f3; }

@media (max-width: 900px) {
  .hero-in, .pdp, .cart { grid-template-columns: 1fr; }
  .hero-text { padding: 20px 18px; }
  .hero-img { order: -1; }
  .hero-img img { min-height: 150px; max-height: 210px; width: auto; }
  .hero-in { max-height: none; }
  .top-in { min-height: auto; }
  .brand-text { display: none; }
}

/* полноэкранный редактор надписи */
.personal-open { width: 100%; margin-top: 4px; }
.editor {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 17, 15, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(4px);
}
.editor[hidden] { display: none; }
.editor-box {
  position: relative; background: #fff; border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0;
  width: min(1100px, 100%); max-height: 92vh;
}
.editor-view { background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.editor-view canvas { width: 100%; height: auto; display: block; }
.editor-side { padding: 32px; overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.editor-side h2 { font-size: 22px; }
.editor-field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.editor-field input {
  font: inherit; font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 100%;
}
.editor-field input:focus { outline: none; border-color: var(--ink); }
.editor-size .sizes { margin-bottom: 0; }
.editor-close {
  position: absolute; right: 14px; top: 10px; z-index: 2; width: 38px; height: 38px;
  border: 0; background: rgba(255, 255, 255, .9); border-radius: var(--pill);
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink);
}
.editor-close:hover { background: #fff; }

@media (max-width: 900px) {
  .editor { padding: 0; }
  .editor-box { grid-template-columns: 1fr; border-radius: 0; max-height: 100vh; height: 100%; overflow-y: auto; }
  .editor-side { padding: 20px; }
}

/* Оформление — повторяем страницу Лакотона: 5xl-контейнер, слева простые
   секции, справа серая сводка 380 пикселей с кнопкой оплаты внутри. */

[hidden] { display: none !important; }
.co-wrap { max-width: 1024px; margin: 0 auto; padding: 32px 16px; }
.co-back { display: inline-flex; gap: 6px; font-size: 14px; color: #71717a; }
.co-back:hover { color: var(--accent-dark); }
.co-h1 { margin-top: 8px; font-size: 24px; font-weight: 700; }
.co-form { display: grid; gap: 32px; grid-template-columns: 1fr 380px; margin-top: 24px; align-items: start; }
.co-left { display: grid; gap: 24px; }
.co-sec h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.co-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-grid-city { display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 12px; margin-top: 12px; }
.co-grid-street { display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 12px; margin-top: 12px; }
.co-courier { margin-top: 12px; }
.co-span2 { grid-column: 1 / -1; }
.co-form input, .co-form select, .co-form textarea {
  width: 100%; border: 1px solid #d4d4d8; border-radius: 12px; background: #fff;
  padding: 10px 16px; font: inherit; font-size: 14px; color: var(--ink); outline: none;
}
.co-form input:focus, .co-form select:focus, .co-form textarea:focus { border-color: var(--accent); }
.co-form .co-way { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid #d4d4d8; border-radius: 12px; cursor: pointer; }
.co-form .co-way input { width: auto; padding: 0; margin-top: 2px; accent-color: var(--accent); }
.co-form .co-way:has(input:checked) { border-color: var(--accent); background: #fff6f4; }
.co-way b { display: block; font-size: 14px; }
.co-way i { font-style: normal; font-size: 12px; color: #71717a; }
.co-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.co-aside { height: fit-content; border-radius: 24px; background: #fafafa; padding: 20px; }
.co-aside h2 { font-size: 18px; font-weight: 700; }
.co-lines { display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 12px; margin-top: 16px; }
.co-line { display: flex; gap: 12px; align-items: center; min-width: 0; }
.co-line img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 8px; background: #fff;
  object-fit: cover; object-position: top; }
.co-line-mid { min-width: 0; flex: 1; }
.co-line-n { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-line-s { font-size: 12px; color: #71717a; }
.co-line-p { flex: 0 0 auto; font-size: 14px; font-weight: 700; white-space: nowrap; }
.co-totals { margin-top: 16px; border-top: 1px solid #e4e4e7; padding-top: 12px; display: grid; gap: 4px; }
.co-row { display: flex; justify-content: space-between; font-size: 14px; color: #52525b; }
.co-row-t { padding-top: 4px; font-size: 18px; font-weight: 700; color: var(--ink); }
.co-dim { color: #a1a1aa; }
.co-pay { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.co-pay:hover { background: var(--accent-dark); }
.co-pay:disabled { background: #d4d4d8; cursor: default; }
.co-safe { margin-top: 8px; text-align: center; font-size: 11px; color: #a1a1aa; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }

@media (max-width: 900px) {
  .co-form { grid-template-columns: 1fr; }
  .co-grid2, .co-ways { grid-template-columns: 1fr; }
}

/* Корзина — как на Лакотоне: белые карточки с рамкой слева, серая сводка справа. */
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; margin-top: 20px; }
.cart-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ci { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 14px;
  border: 1px solid #e4e4e7; border-radius: 18px; background: #fff; }
.ci img { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 12px;
  background: var(--bg-soft); object-fit: cover; object-position: top; }
.ci-mid { flex: 1; min-width: 0; }
.ci-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.ci-name:hover { color: var(--accent-dark); }
.ci-sub { font-size: 13px; color: #71717a; margin-top: 1px; }
.ci-size { font-size: 13px; color: #52525b; margin-top: 6px; }
.ci-size b { color: var(--ink); }
.ci-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ci-rb { width: 30px; height: 30px; border: 1px solid #e4e4e7; border-radius: 50%;
  background: #fff; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; color: var(--ink); }
.ci-rb:hover { border-color: var(--accent); color: var(--accent); }
.ci-n { min-width: 16px; text-align: center; font-size: 14px; }
.ci-price { position: absolute; right: 16px; bottom: 16px;
  font-size: 16px; font-weight: 700; white-space: nowrap; }
.co-totals-top { margin-top: 0; border-top: 0; padding-top: 0; }
.co-keep { display: block; margin-top: 10px; text-align: center; font-size: 13px; color: #71717a; }
.co-keep:hover { color: var(--accent-dark); }
a.co-pay { display: block; text-align: center; text-decoration: none; }
.cart-empty { padding: 40px 0; }

@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }

/* Город в шапке и окно выбора — как на Лакотоне. */
.city-pick { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border: 0;
  background: none; font: inherit; font-size: 13px; color: var(--ink-soft); cursor: pointer;
  white-space: nowrap; }
.city-pick:hover { color: var(--ink); }
.city-pick b { color: var(--ink); }
.city-ic { color: var(--accent); }
.city-ca { color: #a1a1aa; font-size: 11px; }
.city-box { position: fixed; inset: 0; z-index: 60; background: rgba(20,17,15,.45);
  display: grid; place-items: center; padding: 20px; }
.city-card { position: relative; width: min(440px, 100%); background: #fff;
  border-radius: 20px; padding: 22px; }
.city-x { position: absolute; right: 12px; top: 10px; border: 0; background: none;
  font-size: 22px; line-height: 1; color: #a1a1aa; cursor: pointer; }
.city-h { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.city-card input { width: 100%; border: 1px solid #d4d4d8; border-radius: 12px;
  padding: 10px 14px; font: inherit; font-size: 14px; outline: none; }
.city-card input:focus { border-color: var(--accent); }
.city-list { max-height: 300px; overflow: auto; margin-top: 10px; }
.city-row { display: flex; gap: 8px; align-items: baseline; width: 100%; padding: 9px 12px;
  border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; cursor: pointer; }
.city-row:hover { background: var(--bg-soft); }
.city-row b { font-size: 14px; font-weight: 600; }
.city-row span { font-size: 12px; color: #a1a1aa; }
.city-none { padding: 12px; font-size: 13px; color: #a1a1aa; }

/* Срок доставки в карточке товара */
.dl { margin: 16px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft);
  font-size: 14px; }
.dl-sub { display: block; margin-top: 3px; font-size: 12px; color: #71717a; }

/* Выбор пункта выдачи */
.co-pvz { margin-top: 12px; }
.co-pvz-h { font-size: 13px; color: #71717a; margin-bottom: 8px; }
.co-pvz-h b { color: var(--ink); }
.co-pvz-list { max-height: 260px; overflow: auto; margin-top: 10px;
  border: 1px solid #e4e4e7; border-radius: 12px; }
.pvz-row { display: block; width: 100%; padding: 10px 14px; border: 0; background: none;
  font: inherit; text-align: left; cursor: pointer; border-bottom: 1px solid #f4f4f5; }
.pvz-row:last-child { border-bottom: 0; }
.pvz-row:hover { background: var(--bg-soft); }
.pvz-row.on { background: #fff6f4; box-shadow: inset 2px 0 0 var(--accent); }
.pvz-row b { display: block; font-size: 14px; font-weight: 600; }
.pvz-row span { font-size: 12px; color: #a1a1aa; }

/* Список пунктов и карта рядом */
.co-pvz-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.co-pvz-split .co-pvz-list { margin-top: 0; }
.co-pvz-map { height: 260px; border: 1px solid #e4e4e7; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.pvz-pick { margin-top: 6px; border: 0; border-radius: 999px; background: var(--accent);
  color: #fff; font: inherit; font-size: 12px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 900px) { .co-pvz-split { grid-template-columns: 1fr; } }

/* Переключатель карта/список и выбранный пункт */
.pvz-bar { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.pvz-tabs { display: inline-flex; flex: 0 0 auto; border: 1px solid #e4e4e7; border-radius: 12px; padding: 2px; }
.pvz-tabs button { border: 0; border-radius: 9px; background: none; font: inherit; font-size: 12px;
  font-weight: 600; color: #71717a; padding: 6px 14px; cursor: pointer; }
.pvz-tabs button.on { background: var(--accent); color: #fff; }
.co-form .pvz-bar input { flex: 1 1 auto; padding: 8px 14px; }
.pvz-chosen { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  border: 1px solid var(--accent); background: #fff6f4; border-radius: 16px; padding: 14px; margin-top: 10px; }
.pvz-chosen-a { font-size: 14px; font-weight: 700; }
.pvz-chosen-s { font-size: 12px; color: #71717a; margin-top: 2px; }
.pvz-chosen button { flex: 0 0 auto; border: 0; background: none; font: inherit; font-size: 12px;
  font-weight: 600; color: #a1a1aa; cursor: pointer; }
.pvz-chosen button:hover { color: var(--accent-dark); }
.co-pvz-map { height: 300px; }

/* Личный кабинет */
.acc-narrow { max-width: 520px; }
.acc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.acc-tabs button { border: 1px solid #d4d4d8; border-radius: 999px; background: #fff;
  font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; cursor: pointer; color: var(--ink); }
.acc-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.acc-tabs .acc-out { margin-left: auto; color: #a1a1aa; font-weight: 500; }
.acc-tabs .acc-out:hover { color: var(--accent-dark); border-color: var(--accent); }
.acc-order { border: 1px solid #e4e4e7; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.acc-order-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc-status { font-size: 12px; font-weight: 600; color: var(--accent-dark);
  background: #fff6f4; border-radius: 999px; padding: 4px 10px; }
.acc-order-i { margin: 8px 0; font-size: 14px; color: #52525b; display: grid; gap: 2px; }
.acc-order-f { display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #f4f4f5; padding-top: 8px; font-size: 14px; }
.acc-dim { color: #a1a1aa; font-size: 13px; }
.acc-addr { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid #e4e4e7; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: 14px; }
.acc-addr button { border: 0; background: none; font: inherit; font-size: 12px; color: #a1a1aa; cursor: pointer; }
.acc-addr button:hover { color: var(--accent-dark); }
.acc-form { display: block; max-width: 520px; }
.acc-form input { margin-bottom: 0; }
.acc-save { display: block; width: 100%; margin-top: 16px; text-align: center; text-decoration: none; }
.acc-form .co-grid2 { gap: 12px; }
.acc-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; flex: 0 0 auto; }
.acc-link:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Телефон ===== */
.burger { display: none; }
.nav-head { display: none; }
.nav-dim { display: none; }

@media (max-width: 860px) {
  .burger {
    display: flex; flex-direction: column; gap: 4px; justify-content: center;
    width: 38px; height: 38px; padding: 0 9px; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; cursor: pointer; flex: 0 0 auto;
  }
  .burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

  /* В шапке остаётся только самое нужное: меню, знак, город, кабинет, корзина. */
  .top-in { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
  .brand { flex: 0 0 auto; }
  .brand-logo { height: 38px; }
  .city-pick { margin-left: auto; padding: 6px; font-size: 12px; max-width: 42vw; }
  .city-pick .city-ic, .city-pick .city-ca { display: none; }
  .cart-link { padding: 7px 11px; font-size: 13px; }
  .acc-link { width: 34px; height: 34px; }

  .nav {
    position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: min(80vw, 320px);
    display: block; background: #fff; padding: 16px; overflow-y: auto;
    transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.12);
  }
  .nav.open { transform: none; }
  .nav a { display: block; padding: 12px 10px; border-radius: 10px; font-size: 15px; }
  .nav a.on { background: var(--bg-soft); }
  .nav-head { display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; margin-bottom: 8px; padding: 0 10px; }
  .nav-head button { border: 0; background: none; font-size: 26px; line-height: 1;
    color: #a1a1aa; cursor: pointer; }
  .nav-dim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(20,17,15,.45); }

  /* Баннер на телефоне: картинка сверху небольшой полосой, текст под ней. */
  .hero { padding: 12px 0 0; }
  .hero-in { grid-template-columns: 1fr; border-radius: 18px; }
  .hero-img { order: -1; }
  .hero-img img { width: 100%; height: 170px; max-height: 170px; min-height: 0;
    object-fit: cover; object-position: 50% 18%; }
  .hero-img::after { background: linear-gradient(to bottom, rgba(29,79,159,0) 55%, #1d4f9f 100%); }
  .hero-text { padding: 16px 18px 20px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13px; margin-top: 6px; }
  .hero .btn { margin-top: 12px; }
}

@media (max-width: 560px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .co-wrap { padding: 20px 14px; }
  .acc-tabs button { padding: 7px 12px; font-size: 13px; }
}
.pay-ok { display: inline-block; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px;
  background: #e8f6ed; color: #0f7a45; font-size: 13px; font-weight: 600; }
.acc-status.on { background: #e8f6ed; color: #0f7a45; }
