/* «мяу-гав»: яркий зоомаркет (референс «Четыре лапы»): персиковая шапка с чёрной кнопкой каталога, строчные заголовки,
   чёрная полоса корзины справа, баннер «персик + коралл», ряд цветных плиток-подборок, карточки с весом и чёрной кнопкой. Шрифт Rubik. */
:root {
  --bg: #f4f4f4; --fg: #111; --muted: #666; --line: #e3e3e3; --soft: #fff;
  --accent: #111; --accent-ink: #fff; --sale: #e83b2f; --ok: #2e7d32; --orange: #f26b1d; --peach: #ffd9a8; --peach2: #ffe9cf; --coral: #ef6e6e; --yellow: #ffe14d;
  --card-bg: #fff; --radius: 0px; --radius-btn: 0px; --wrap: 1180px; --gap: 16px; --pad: 24px; --rail: 56px;
  --font-body: 'Rubik', system-ui, sans-serif; --font-head: 'Rubik', system-ui, sans-serif;
}
body { padding-right: var(--rail); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; }
.btn { font-weight: 500; }

/* правая чёрная полоса */
.rail { position: fixed; top: 0; right: 0; bottom: 0; width: var(--rail); background: #000; z-index: 55; display: grid; align-content: start; gap: 6px; padding-top: 18px; justify-items: center; }
.rail__b { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: #c9c9c9; }
.rail__b:hover { color: #fff; }
.rail__b svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.rail__b:nth-child(2) svg { fill: none; stroke: currentColor; stroke-width: 2; }
.rail__b b { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--orange); color: #fff; font: 500 11px/18px var(--font-body); text-align: center; padding: 0 4px; }

/* шапка на персиковом фоне */
.top { background: linear-gradient(90deg, var(--peach) 0 44%, var(--peach2) 44% 100%); padding: 18px 0 0; }
.top > * { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }
.top__row1 { display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark svg { width: 38px; height: 38px; display: block; }
.logo__word { font: 500 clamp(26px, 2.6vw, 36px)/1 var(--font-head); letter-spacing: -.02em; }
.top a { text-decoration: none; }
.top__addr { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.top__addr svg { width: 20px; height: 20px; fill: none; stroke: #6d5cff; stroke-width: 2; }
.top__addr span { display: grid; }
.top__addr small { color: #6d5cff; font-size: 12px; }
.top__links { margin-left: auto; display: flex; gap: 26px; font-weight: 500; font-size: 15px; }
.top__row2 { display: flex; gap: 22px; margin-top: 18px; }
.top__menu, .top__pet { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; font-weight: 500; font-size: 15px; border: 2px solid #111; }
.top__menu { background: #111; color: #fff; }
.top__pet { background: #fff; color: #111; margin-left: -22px; }
.top__menu svg, .top__pet svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.top__pet svg { fill: currentColor; stroke: none; }
.top__search { flex: 1; display: flex; background: #f2f2f2; }
.top__search input { flex: 1; border: 0; background: transparent; padding: 0 16px; font-size: 14px; min-width: 0; }
.top__search button { width: 52px; border: 0; background: transparent; }
.top__search svg { width: 22px; height: 22px; fill: none; stroke: #333; stroke-width: 2; }
.top__cats { display: flex; gap: 32px; padding: 18px 0 16px; font-weight: 500; font-size: 15px; overflow-x: auto; scrollbar-width: none; }
.top__cats::-webkit-scrollbar { display: none; }
.top__cats a { white-space: nowrap; }
.top__cats .is-hot { color: var(--orange); }
.top__cats a:hover { color: var(--orange); }

/* баннер */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(360px, 36vw, 470px); background: linear-gradient(90deg, var(--peach) 0 50%, #dd6a2c 50% 100%); overflow: hidden; }
.hero__l { align-self: center; padding: 30px clamp(24px, 6vw, 90px); display: grid; gap: 14px; justify-items: start; max-width: 560px; justify-self: end; width: 100%; }
.hero__brand { margin: 0; font-size: 14px; }
.hero h1 { font-size: clamp(32px, 3.6vw, 52px); }
.hero__l p { max-width: 36ch; }
.hero__btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-width: 220px; height: 44px; padding: 0 14px 0 16px; background: #111; color: #fff; text-decoration: none; font-weight: 500; }
.hero__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero__r { position: relative; display: grid; place-items: end center; background: #dd6a2c; }
.hero__r img { width: auto; height: 100%; max-height: 470px; object-fit: cover; aspect-ratio: 4/5; }
.hero__tag { position: absolute; z-index: 2; left: 4%; top: 22%; padding: 2px 14px 6px; background: var(--yellow); font: 500 22px/1 var(--font-head); transform: rotate(-3deg); }
.hero__tag b { font-size: clamp(44px, 4.4vw, 66px); font-weight: 700; }
.hero__dots { position: absolute; left: clamp(24px, 6vw, 90px); bottom: 22px; display: flex; gap: 10px; }
.hero__dots i { width: 34px; height: 2px; background: rgba(0,0,0,.25); }
.hero__dots .is-on { background: #111; height: 3px; }

/* подборки */
.promos { position: relative; padding: 44px 0 20px; }
.promos__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promos__track::-webkit-scrollbar { display: none; }
.promo { position: relative; display: flex; flex-direction: column; gap: 4px; aspect-ratio: 5/6; padding: 12px 12px 0; background: var(--c); text-decoration: none; overflow: hidden; scroll-snap-align: start; }
.promo b { position: relative; z-index: 1; font: 700 17px/1.05 var(--font-head); text-transform: uppercase; letter-spacing: -.01em; }
.promo span { position: relative; z-index: 1; font-size: 12px; line-height: 1.25; }
.promo img { flex: 1 1 0; min-height: 0; width: calc(100% + 24px); max-width: none; margin: 6px -12px 0; object-fit: cover; mix-blend-mode: multiply; }
.round-btn { position: absolute; right: -22px; top: 50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #111; display: grid; place-items: center; z-index: 2; }
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }

/* блоки с белой шапкой */
.block { padding: 26px 0 16px; }
.shead { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 18px; background: #fff; margin-bottom: 16px; }
.shead__i svg { width: 36px; height: 36px; display: block; }
.shead__t { font-size: 24px; font-weight: 500; }
.shead__all { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-size: 15px; }
.shead__all svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

/* карточки: фото, цена, название, вес, чёрная кнопка */
.card { padding: 14px 14px 0; }
.card__media { background: #fff; aspect-ratio: 1; }
.card__media img { object-fit: cover; }
.card__badge { left: 14px; top: 14px; background: var(--yellow); color: #111; font-weight: 500; font-size: 14px; padding: 4px 8px; }
.card__fav { top: 10px; right: 10px; background: transparent; }
.card__fav svg { stroke-width: 1.8; }
.card__body { padding: 14px 0 0; gap: 8px; }
.card__price { font-size: 22px; }
.card__price b { font-weight: 700; }
.card__name { font-size: 15px; line-height: 1.3; min-height: 2.6em; }
.card__name a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__vars .chip { min-height: 32px; border-radius: 0; font-size: 12px; border-color: #ccc; background: #fff; color: #111; }
.card__vars .chip.is-on { border-color: #6d5cff; background: #fff; color: #111; box-shadow: inset 0 0 0 1px #6d5cff; }
.card__pet { margin: 0; font-size: 12px; color: #6d5cff; font-weight: 500; }
.card__add { margin: 10px -14px 0; justify-content: space-between; min-height: 46px; background: #111; border: 0; text-transform: lowercase; }

/* новинки */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 40px 0; }
.newcard { position: relative; display: block; overflow: hidden; text-decoration: none; color: #fff; }
.newcard img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .6s; }
.newcard:hover img { transform: scale(1.04); }
.newcard::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.newcard span { position: absolute; z-index: 1; left: 0; right: 0; bottom: 28px; display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 18px; }
.newcard b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.1; padding: 0 20px; }
.newcard i { font-style: normal; color: #b7aaff; font-size: 16px; margin-top: 6px; }

/* профиль питомца: промо и страница */
.petpromo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 40px clamp(20px, 4vw, 48px); margin: 20px auto; background: #fff; }
.petpromo h2 { font-size: clamp(26px, 2.8vw, 38px); margin: 6px 0 14px; }
.petpromo p { color: #444; max-width: 52ch; }
.kicker { color: var(--orange); font-weight: 500; margin: 0; }
.petpromo__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.petpromo__steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px; background: var(--peach2); font-weight: 500; }
.petpromo__steps b { display: grid; place-items: center; width: 44px; height: 44px; background: #111; color: #fff; border-radius: 50%; }
.petpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 20px; }
.petform { display: grid; gap: 18px; padding: 26px; background: #fff; }
.petform fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.petform legend { font-weight: 500; padding: 0 0 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 2px solid #111; margin: 0 -2px -2px 0; cursor: pointer; font-weight: 500; }
.seg input:checked + span { background: #111; color: #fff; }
.seg input:focus-visible + span { outline: 3px solid #6d5cff; outline-offset: 2px; }
.pf { display: grid; gap: 6px; font-weight: 500; }
.pf input { height: 46px; padding: 0 14px; border: 2px solid #ddd; font-size: 16px; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: #111; margin: 0; }
.petres__card { display: grid; gap: 14px; padding: 26px; background: var(--peach2); }
.petres__k { margin: 0; font-weight: 500; }
.petres__g { margin: 0; font-size: 22px; }
.petres__g b { font-size: 64px; font-weight: 700; line-height: 1; }
.petres__food { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; background: #fff; }
.petres__food img { aspect-ratio: 4/5; object-fit: cover; }
.petres__food a { font-weight: 500; text-decoration: none; }
.petres__food ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 14px; }
.petres__food li { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; padding: 6px 8px; }
.petres__food .is-best { background: var(--yellow); font-weight: 500; }
.petres__hint { padding: 26px; background: #fff; }
.petnote { display: grid; gap: 4px; padding: 12px 14px; background: var(--peach2); font-size: 14px; text-decoration: none; }
.petnote--ok b { font-size: 15px; }
.auto { display: grid; gap: 10px; padding: 14px; background: #fff; border: 2px solid #111; }
.auto__on { display: grid; grid-template-columns: auto 1fr; gap: 10px; cursor: pointer; }
.auto__on input { width: 20px; height: 20px; accent-color: #111; margin: 2px 0 0; }
.auto__on span { display: grid; gap: 2px; }
.auto__on small { color: var(--muted); }
.auto__w { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.auto__w select { height: 40px; border: 1px solid #ccc; padding: 0 8px; background: #fff; }

/* доставка, подвал */
.delivery { padding: 30px 0 60px; }
.sec-h { font-size: 26px; margin-bottom: 16px; }
.delivery__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.delivery__list li { display: grid; gap: 6px; padding: 20px; background: #fff; color: #444; font-size: 14px; }
.delivery__list b { font-size: 22px; color: #111; font-weight: 700; }
.foot { background: #111; color: #ddd; padding: 50px var(--pad) 24px; }
.foot__in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.foot .logo__word { color: #fff; }
.foot__brand p { color: #aaa; font-size: 14px; margin-top: 14px; max-width: 34ch; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot__h { color: #fff; font-weight: 500; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.foot a { text-decoration: none; color: #ddd; }
.foot a:hover { color: var(--orange); }
.foot__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid #333; padding-top: 16px; margin: 0; color: #888; font-size: 12px; }

/* внутренние страницы */
.crumbs, .page-title { text-transform: lowercase; }
.cat-main { --cols: 3; }
.cartpage__side, .checkout__side { background: #fff; }
.chip { border-color: #ccc; }

@media (max-width: 1100px) {
  .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row .card:nth-child(4) { display: none; }
  .promos__track { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .top__addr { display: none; }
}
@media (max-width: 860px) {
  :root { --pad: 16px; --rail: 0px; }
  body { padding-bottom: 60px; }
  .rail { top: auto; left: 0; height: 58px; width: auto; grid-auto-flow: column; justify-content: space-around; align-content: center; padding: 0; }
  .top { background: var(--peach); padding-top: 12px; }
  .top__links { display: none; }
  .logo__mark svg { width: 32px; height: 32px; }
  .top__row2 { gap: 8px; margin-top: 12px; }
  .top__menu span, .top__pet span { display: none; }
  .top__menu, .top__pet { padding: 0 12px; }
  .top__pet { margin-left: -10px; }
  .top__cats { gap: 22px; padding: 14px 0; }
  .hero { grid-template-columns: 1fr; background: var(--peach); }
  .hero__l { padding: 26px 16px 18px; justify-self: start; }
  .hero__r { background: #dd6a2c; }
  .hero__r img { height: 330px; }
  .hero__tag { top: 14%; }
  .hero__dots { display: none; }
  .promos__track { grid-auto-columns: 44%; }
  .round-btn { display: none; }
  .shead { height: auto; padding: 12px; flex-wrap: wrap; }
  .shead__t { font-size: 20px; }
  .shead__all { font-size: 13px; }
  .row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .row .card:nth-child(4) { display: flex; }
  .card { padding: 10px 10px 0; }
  .card__add { margin: 10px -10px 0; }
  .card__price { font-size: 18px; }
  .card__name { font-size: 13px; }
  .news { grid-template-columns: 1fr; }
  .newcard img { aspect-ratio: 4/3; }
  .petpromo, .petpage { grid-template-columns: 1fr; }
  .delivery__list { grid-template-columns: 1fr 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
