/* «Дала маркет»: продуктовый маркет (референс «Магнит»): белая шапка с красной кнопкой «Каталог» и поиском с красной «Найти»,
   два красных баннера, круглые плитки категорий, «Спецпредложения», жёлтая лента «Фрукты и ягоды», серые карточки товаров,
   салатовый блок «Новинки», рецепты и окна доставки. Шрифт Golos Text. */
:root {
  --bg: #fff; --fg: #1d1d1f; --muted: #6e6e73; --line: #e7e7ea; --soft: #f4f4f5;
  --accent: #e3141e; --accent-ink: #fff; --sale: #e3141e; --ok: #2f8f3a; --red: #e3141e; --red2: #ff4b3a; --lime: #dff3b0; --gold: #d89400;
  --card-bg: #f4f4f5; --radius: 16px; --radius-btn: 12px; --wrap: 1180px; --gap: 16px; --pad: 24px; --card-ratio: 1;
  --font-body: 'Golos Text', system-ui, sans-serif; --font-head: 'Golos Text', system-ui, sans-serif;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; }
a { color: inherit; }
.btn { font-weight: 500; }
.btn:hover { background: #c40f18; border-color: #c40f18; }

/* служебная строка */
.util { border-bottom: 1px solid var(--line); font-size: 14px; }
.util__in { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 42px; }
.util nav { display: flex; gap: 22px; height: 100%; }
.util nav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #444; border-bottom: 2px solid transparent; }
.util nav a svg { width: 16px; height: 16px; }
.util nav a.is-on { color: var(--red); border-color: var(--red); }
.util__tel { margin-left: auto; text-decoration: none; color: var(--muted); }

/* шапка */
.top { background: #fff; }
.top__in { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 14px 0 12px; }
.top a { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--red); }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo__w { display: grid; font: 800 22px/0.9 var(--font-head); letter-spacing: .02em; }
.logo__w small { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--fg); margin-top: 3px; }
.top__logo { margin-right: 10px; }
.top__cat { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: var(--radius-btn); background: var(--red); color: #fff; font: 500 16px var(--font-body); }
.top__cat svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; }
.top__cat:hover { background: #c40f18; }
.top__search { flex: 1; display: flex; align-items: center; height: 46px; padding-left: 14px; background: var(--soft); border-radius: var(--radius-btn); min-width: 0; }
.top__search > svg { width: 20px; height: 20px; fill: none; stroke: #8e8e93; stroke-width: 2; flex: none; }
.top__search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 10px; font-size: 15px; height: 100%; }
.top__search button { height: 46px; padding: 0 18px; border: 0; border-radius: var(--radius-btn); background: var(--red); color: #fff; font: 500 15px var(--font-body); }
.top__slot, .top__cart { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); font-size: 14px; white-space: nowrap; }
.top__slot svg, .top__cart svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 1.8; flex: none; }
.top__slot span { display: grid; line-height: 1.15; }
.top__slot small { font-size: 11px; color: var(--muted); }
.top__slot b { font-weight: 600; font-size: 13px; }
.top__cart b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font: 600 11px/20px var(--font-body); text-align: center; }
.top__slot:hover, .top__cart:hover { border-color: #c9c9ce; }
.top__nav { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; display: flex; gap: 26px; padding: 2px 0 14px; font-size: 15px; font-weight: 500; overflow-x: auto; scrollbar-width: none; }
.top__nav::-webkit-scrollbar { display: none; }
.top__nav a { white-space: nowrap; }
.top__nav a:hover { color: var(--red); }

/* баннеры */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 6px; }
.banner { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 290px; border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; background: radial-gradient(120% 140% at 0% 0%, var(--red2), var(--red) 60%, #c20b16); }
.banner--b { background: radial-gradient(120% 140% at 0% 0%, #ff5a4a, #e8202b 55%, #b8000f); }
.banner__t { position: relative; z-index: 1; display: grid; align-content: start; gap: 10px; padding: 28px 0 28px 28px; }
.banner__t small { font-size: 13px; opacity: .9; }
.banner__t b { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.banner__t span { font-size: 15px; line-height: 1.35; opacity: .95; max-width: 24ch; }
.banner__t i { justify-self: start; align-self: end; margin-top: 10px; padding: 9px 16px; border-radius: 12px; background: rgba(255,255,255,.22); font-style: normal; font-size: 15px; }
.banner img { position: absolute; right: 18px; top: 18px; bottom: 18px; width: 46%; height: calc(100% - 36px); object-fit: cover; border-radius: 18px; transition: transform .5s; }
.banner:hover img { transform: scale(1.03); }
.banner:hover i { background: rgba(255,255,255,.32); }

/* плитки категорий */
.ccats { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; padding: 38px 0 10px; }
.ccat { display: grid; justify-items: center; gap: 10px; text-align: center; text-decoration: none; font-size: 14px; line-height: 1.25; }
.ccat__i { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; overflow: hidden; background: var(--soft); transition: transform .2s; }
.ccat:hover .ccat__i { transform: translateY(-3px); }
.ccat__i img { width: 100%; height: 100%; object-fit: cover; }
.ccat__i--sale { background: linear-gradient(135deg, #ff7a6b, var(--red)); }
.ccat__i--sale svg { width: 46px; height: 46px; }
.ccat__i--new { background: var(--lime); }
.ccat__i--new b { font-size: 12px; font-weight: 700; color: #3e6b12; transform: rotate(-8deg); border: 2px solid #3e6b12; border-radius: 14px; padding: 4px 7px; }

/* секции */
.sec { padding: 36px 0 8px; }
.sec__h { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.sec__h h2 { font-size: clamp(24px, 2.4vw, 32px); }
.more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: 15px; white-space: nowrap; }
.more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.more:hover { color: var(--red); }

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.spec { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 0; border-radius: 22px; background: var(--c); text-decoration: none; overflow: hidden; }
.spec span { order: -1; display: grid; gap: 4px; min-height: 4.4em; align-content: start; }
.spec small { font-size: 12px; color: #6b4a3a; }
.spec b { font-size: 18px; line-height: 1.2; font-weight: 600; }
.spec img { margin-top: auto; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px 16px 0 0; transition: transform .5s; }
.spec:hover img { transform: translateY(-4px); }

.band { margin-top: 44px; background: #fff3d1; overflow: hidden; }
.band__in { display: flex; align-items: center; gap: 28px; width: max-content; padding: 14px 0; animation: band 40s linear infinite; }
.band span { font: 800 clamp(26px, 3vw, 38px)/1 var(--font-head); text-transform: uppercase; color: var(--gold); letter-spacing: .01em; white-space: nowrap; }
.band img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; }
@keyframes band { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .band__in { animation: none; } }

/* карточки товаров */
.row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.card { background: transparent; }
.card__media { border-radius: 18px; }
.card__badge { left: 10px; top: 10px; background: var(--red); color: #fff; font-weight: 600; font-size: 12px; border-radius: 8px; padding: 2px 8px; }
.card__fav { width: 34px; height: 34px; top: 8px; right: 8px; }
.card__fav svg { width: 18px; height: 18px; }
.card__body { gap: 4px; padding-top: 10px; }
.card__week { order: -1; align-self: flex-start; margin: -38px 0 12px 8px; position: relative; z-index: 1; padding: 3px 9px; border-radius: 9px; background: #8fd14f; color: #173a05; font-size: 12px; font-weight: 600; }
.card__price { font-size: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.card__price b { font-weight: 700; }
.card__price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.card__price s { font-size: 13px; color: var(--muted); }
.card__name { font-size: 14px; font-weight: 400; line-height: 1.3; }
.card__name a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: 12px; color: var(--muted); margin: 0; }
.card__body > :not(.card__add):nth-last-child(2) { padding-bottom: 10px; }
.card__add { margin-top: auto; min-height: 40px; border-radius: 12px; background: #fff; color: var(--red); border: 1.5px solid #f3c2c4; font-size: 14px; }
.card__add:hover { background: var(--red); color: #fff; border-color: var(--red); }

.news { margin-top: 40px; padding: 28px; border-radius: 28px; background: linear-gradient(120deg, #e7f6c4, #d5efa1 60%, #e9f7c9); }
.news .card__media { background: #fff; }

/* рецепты: карточки на главной */
.rcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rcard { display: grid; text-decoration: none; border-radius: 20px; overflow: hidden; background: var(--soft); }
.rcard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.rcard:hover img { transform: scale(1.04); }
.rcard__b { display: grid; gap: 4px; padding: 14px 16px 16px; }
.rcard__b small { color: var(--muted); font-size: 13px; }
.rcard__b b { font-size: 18px; font-weight: 600; line-height: 1.2; }
.rcard__p { margin-top: 6px; justify-self: start; padding: 5px 10px; border-radius: 9px; background: #fff; color: var(--red); font-size: 13px; font-weight: 600; }

/* доставка ко времени */
.dslots { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-top: 44px; padding: 32px; border-radius: 28px; background: #fff3d1; }
.dslots h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 12px; }
.dslots__txt > p { color: #4a4a4f; max-width: 52ch; margin: 0 0 18px; }
.dslots__k { font-weight: 600; margin: 0 0 10px; }
.today { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.today li { display: grid; padding: 8px 12px; border-radius: 12px; background: #fff; font-size: 14px; }
.today small { font-size: 12px; color: var(--ok); }
.today .is-gone { background: transparent; border: 1px dashed #d9c78f; color: #9b9277; }
.today .is-gone b { text-decoration: line-through; font-weight: 500; }
.today .is-gone small { color: #9b9277; }
.dslots__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; }

/* корзина, товар */
.cslot { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff3d1; font-size: 14px; margin: 0; }
.cslot span { color: var(--muted); font-size: 13px; }
.pnote { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; color: #444; }
.pnote--r { background: #fff3d1; }
.pnote a { color: var(--red); }

/* страница рецептов */
.lead { color: var(--muted); margin: -12px 0 22px; max-width: 60ch; }
.rtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.rtab { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; border: 1.5px solid var(--line); text-decoration: none; }
.rtab img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; }
.rtab span { display: grid; gap: 2px; font-size: 14px; line-height: 1.2; }
.rtab small { color: var(--muted); font-size: 12px; }
.rtab.is-on { border-color: var(--red); background: #fff5f5; }
.rcp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 30px; }
.rcp__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 24px; }
.rcp__t { font-size: clamp(26px, 2.6vw, 34px); margin: 18px 0 6px; }
.rcp__meta { color: var(--muted); margin: 0 0 14px; }
.rcp__steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: #333; }
.rcp__r { position: sticky; top: 16px; display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: var(--soft); }
.rcp__srv { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.rcp__srv .stepper { background: #fff; }
.rcp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rcp__list li { display: grid; grid-template-columns: 24px 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #fff; }
.rcp__list li.is-off { opacity: .5; }
.rcp__list li.is-off b { text-decoration: line-through; }
.rcp__chk input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; display: block; }
.rcp__list img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.rcp__n { display: grid; gap: 2px; font-size: 14px; line-height: 1.25; min-width: 0; }
.rcp__n a { text-decoration: none; }
.rcp__n small { color: var(--muted); font-size: 12px; }
.rcp__list b { font-size: 14px; white-space: nowrap; }
.rcp__hint { margin: 0; font-size: 13px; color: var(--muted); }
.rcp__sum { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 15px; }
.rcp__sum b { font-size: 26px; }

/* подвал */
.foot { margin-top: 56px; background: var(--soft); padding: 44px var(--pad) 22px; }
.foot__in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.foot__brand p { color: var(--muted); font-size: 14px; max-width: 32ch; margin-top: 14px; }
.foot__h { font-weight: 600; margin: 4px 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #444; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--red); }
.foot__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* внутренние страницы */
.cartpage__side, .checkout__side { background: var(--soft); border-radius: 20px; }
.cbox { border-radius: 18px; }
.chip-r input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }

@media (max-width: 1100px) {
  .top__slot { display: none; }
  .row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row .card:nth-child(n+5) { display: none; }
  .ccats { grid-template-columns: repeat(9, 92px); overflow-x: auto; scrollbar-width: none; }
  .banner { grid-template-columns: 1fr; min-height: 260px; }
  .banner img { width: 42%; }
  .banner__t { padding-right: 46%; }
  .rcards, .rtabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }
  .util nav a:not(.is-on) { display: none; }
  .top__in { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .top__logo { margin-right: auto; order: 1; }
  .top__cart { order: 2; height: 42px; padding: 0 12px; }
  .top__cart span { display: none; }
  .top__cat { order: 3; height: 44px; padding: 0 12px; }
  .top__cat span { display: none; }
  .top__search { order: 4; flex: 1 0 100%; height: 44px; }
  .top__search button { height: 44px; padding: 0 12px; }
  .top__nav { gap: 18px; font-size: 14px; padding-bottom: 10px; }
  .hero { grid-template-columns: 1fr; gap: 12px; }
  .banner { min-height: 220px; border-radius: 20px; }
  .banner__t { padding: 20px 46% 20px 20px; gap: 6px; }
  .banner__t span { font-size: 13px; }
  .banner__t b { font-size: 24px; }
  .banner img { right: 12px; top: 12px; height: calc(100% - 24px); width: 40%; border-radius: 14px; }
  .ccats { grid-template-columns: repeat(9, 80px); gap: 8px; padding-top: 24px; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .ccat { font-size: 12px; }
  .ccat__i { width: 72px; height: 72px; border-radius: 20px; }
  .specs { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .spec { scroll-snap-align: start; }
  .band img { width: 54px; height: 54px; }
  .row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .row .card:nth-child(n+5) { display: flex; }
  .news { padding: 18px 14px; border-radius: 22px; margin-inline: calc(-1 * 6px); }
  .rcards { gap: 10px; }
  .rcard__b { padding: 10px 12px 12px; }
  .rcard__b b { font-size: 15px; }
  .dslots { grid-template-columns: 1fr; padding: 20px; border-radius: 22px; }
  .rtabs { grid-template-columns: repeat(4, 72%); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .rcp { grid-template-columns: 1fr; }
  .rcp__r { position: static; padding: 16px; }
  .rcp__list li { grid-template-columns: 22px 44px 1fr; }
  .rcp__list li b { grid-column: 3; }
  .foot__in { grid-template-columns: 1fr; }
}
