/* Витрина своего сайта ARGS PIM. Цвета сайта приходят из PIM: --c-primary, --c-accent. Mobile-first. */
:root {
  --c-primary: #1f3a68;
  --c-accent: #f05a1a;
  --c-text: #1b2230;
  --c-muted: #6b7382;
  --c-line: #e3e7ee;
  --c-bg: #ffffff;
  --c-soft: #f4f6fa;
  --c-ok: #1f8a4c;
  --c-warn: #b86a00;
  --c-bad: #c0352b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.06);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--c-text);
  background: var(--c-bg);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--c-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
.muted {
  color: var(--c-muted);
  font-size: 13px;
}
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Кнопки и поля */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    filter 0.15s,
    background 0.15s;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn--primary {
  background: var(--c-primary);
  color: #fff;
}
.btn--accent {
  background: var(--c-accent);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-text);
}
.btn--sm {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 13px;
}
.btn--lg {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 16px;
}
.btn--block {
  width: 100%;
}
.input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.input:focus {
  border-color: var(--c-primary);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent);
}
textarea.input {
  resize: vertical;
}
.iconbtn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
}
.iconbtn:hover {
  background: var(--c-soft);
  color: var(--c-bad);
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
  padding: 4px 0;
}
.check input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--c-primary);
  flex: none;
}
.alert {
  background: #fff4e5;
  border: 1px solid #ffd8a8;
  color: #7a4300;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
}

/* Шапка */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 0 var(--c-line);
}
.hdr__top {
  background: var(--c-soft);
  font-size: 13px;
  color: var(--c-muted);
}
.hdr__top-in {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
  min-height: 32px;
}
.hdr__addr,
.hdr__hours {
  display: none;
}
.hdr__phone {
  font-weight: 700;
  color: var(--c-text);
}
.hdr__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'logo logo cart' 'cat search search';
  gap: 8px 12px;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--c-primary);
}
.logo:hover {
  text-decoration: none;
}
.logo__img {
  max-height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.logo__text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hdr__catbtn {
  grid-area: cat;
}
.hdr__catbtn-text {
  display: none;
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger::before {
  top: -6px;
}
.burger::after {
  top: 6px;
}
.search {
  grid-area: search;
  display: flex;
  position: relative;
}
.search__input {
  width: 100%;
  min-height: 40px;
  padding: 8px 44px 8px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-soft);
}
.search__input:focus {
  border-color: var(--c-primary);
  background: #fff;
  outline: none;
}
.search__btn {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--c-muted);
}
.search--inline {
  max-width: 420px;
  margin: 16px auto;
}
.icon-search {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.icon-search::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 7px;
  background: currentColor;
  right: -4px;
  bottom: -6px;
  transform: rotate(-45deg);
  border-radius: 2px;
}
.cartbtn {
  grid-area: cart;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-weight: 600;
  justify-self: end;
}
.cartbtn:hover {
  background: var(--c-soft);
  text-decoration: none;
}
.cartbtn__text {
  display: none;
}
.icon-cart {
  width: 22px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-width: 0;
  border-radius: 0 0 6px 6px;
  position: relative;
  display: inline-block;
}
.icon-cart::before {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: -7px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.cartbtn__count {
  position: absolute;
  top: 0;
  left: 24px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.hdr__menu {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  font-size: 14px;
  scrollbar-width: none;
}
.hdr__menu a {
  color: var(--c-text);
  white-space: nowrap;
}

/* Меню каталога */
.catmenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--c-line);
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.12);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.catmenu__inner {
  padding-top: 16px;
  padding-bottom: 16px;
}
.catmenu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.catmenu__root {
  font-weight: 700;
  color: var(--c-text);
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.catmenu__root span {
  color: var(--c-muted);
  font-weight: 400;
  font-size: 13px;
}
.catmenu__sub {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 12px;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.catmenu__sub a {
  color: var(--c-muted);
}
.catmenu__all {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
}

/* Главная */
.hero {
  position: relative;
  background: var(--c-soft);
}
.hero__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero__track::-webkit-scrollbar {
  display: none;
}
.hero__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-primary);
}
.hero__slide--plain {
  background: linear-gradient(
    120deg,
    var(--c-primary),
    color-mix(in srgb, var(--c-primary) 60%, #000)
  );
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__slide:not(.hero__slide--plain) .hero__text {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.hero__text {
  position: relative;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 28px;
  color: #fff;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.hero__title {
  font-size: 24px;
  font-weight: 800;
  max-width: 640px;
}
.hero__sub {
  margin: 0;
  max-width: 560px;
  opacity: 0.92;
}
.hero__dots {
  position: absolute;
  bottom: 10px;
  right: 16px;
  display: flex;
  gap: 6px;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}
.hero__dot.is-active {
  background: #fff;
}
.intro {
  background: linear-gradient(
    120deg,
    var(--c-primary),
    color-mix(in srgb, var(--c-primary) 65%, #000)
  );
  color: #fff;
  padding: 40px 0;
}
.intro .wrap {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.intro__title {
  font-size: 28px;
  font-weight: 800;
}
.intro__sub {
  margin: 0;
  opacity: 0.9;
  max-width: 640px;
}
.section {
  margin: 32px 0;
}
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.section__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}
.section__head .section__title {
  margin-bottom: 0;
}
.section__more {
  font-weight: 600;
  white-space: nowrap;
  font-size: 14px;
}
.cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cat {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-text);
  background: #fff;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.cat:hover {
  text-decoration: none;
  box-shadow: var(--shadow);
  border-color: transparent;
}
.cat__img {
  aspect-ratio: 4 / 3;
  background: var(--c-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  margin-bottom: 6px;
}
.cat__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.cat__name {
  font-weight: 700;
  line-height: 1.25;
}
.cat__count {
  color: var(--c-muted);
  font-size: 13px;
}

/* Карточки товаров */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #fff;
  padding: 10px;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card__noimg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  background: var(--c-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%23b8bfcc' stroke-width='1.5'%3E%3Crect x='6' y='10' width='36' height='28' rx='3'/%3E%3Ccircle cx='17' cy='20' r='3'/%3E%3Cpath d='m6 33 11-9 8 6 6-5 11 9'/%3E%3C/svg%3E")
    center no-repeat;
}
.card__sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 12px 12px;
  gap: 4px;
}
.card__title {
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}
.card__brand {
  font-size: 12px;
  color: var(--c-muted);
}
.card__foot {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding-top: 6px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price__now {
  font-size: 18px;
  font-weight: 800;
}
.price__old {
  color: var(--c-muted);
  font-size: 13px;
}
.price--big .price__now {
  font-size: 30px;
}
.stock {
  font-size: 13px;
  font-weight: 600;
}
.stock::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: currentColor;
  vertical-align: 1px;
}
.stock--yes {
  color: var(--c-ok);
}
.stock--low {
  color: var(--c-warn);
}
.stock--order {
  color: var(--c-primary);
}
.stock--no {
  color: var(--c-muted);
}
.add-form {
  margin: 0;
}

/* Каталог */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--c-muted);
  padding: 16px 0 8px;
}
.crumbs a {
  color: var(--c-muted);
}
.page-title {
  font-size: 24px;
  font-weight: 800;
  margin: 4px 0 16px;
}
.page-title__count {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-muted);
  white-space: nowrap;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}
.chip {
  flex: none;
  padding: 8px 14px;
  background: var(--c-soft);
  border-radius: 20px;
  color: var(--c-text);
  font-size: 14px;
  white-space: nowrap;
}
.chip span {
  color: var(--c-muted);
  margin-left: 4px;
}
.chip:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--c-primary) 10%, #fff);
}
.listing {
  display: grid;
  gap: 16px;
}
.listing__bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort__label {
  font-size: 13px;
  color: var(--c-muted);
}
.sort__select {
  width: auto;
  min-height: 36px;
}
.filters__box {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}
.filters__summary {
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.filters__summary::-webkit-details-marker {
  display: none;
}
.filters__summary::after {
  content: '▾';
  color: var(--c-muted);
}
.filters__box[open] .filters__summary::after {
  content: '▴';
}
.filters__body {
  padding: 0 16px 16px;
  display: grid;
  gap: 14px;
}
.filters__group {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.filters__group legend {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  padding: 0;
}
.filters__price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filters__list {
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.filters__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 24px 0;
}
.pager__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-text);
}
.pager__btn:hover {
  text-decoration: none;
  border-color: var(--c-primary);
}
.pager__btn--current {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.pager__gap {
  align-self: center;
  color: var(--c-muted);
}
.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--c-muted);
  display: grid;
  gap: 12px;
  justify-items: center;
}
.empty--big {
  padding: 64px 16px;
}
.empty .page-title {
  color: var(--c-text);
}

/* Карточка товара */
.product {
  display: grid;
  gap: 20px;
}
.gallery {
  min-width: 0;
}
.gallery__main {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  scrollbar-width: none;
  background: #fff;
}
.gallery__main::-webkit-scrollbar {
  display: none;
}
.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1;
  margin: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__slide img {
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}
.gallery__slide--empty {
  background: var(--c-soft);
}
.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}
.gallery__thumb {
  flex: 0 0 64px;
  height: 64px;
  border: 2px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 4px;
  background: #fff;
}
.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery__thumb.is-active {
  border-color: var(--c-primary);
}
.product__title {
  font-size: 22px;
  font-weight: 800;
}
.product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 16px;
  color: var(--c-muted);
  font-size: 14px;
}
.product__meta b {
  color: var(--c-text);
  font-weight: 600;
}
.product__summary {
  color: var(--c-muted);
}
.buybox {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}
.buybox__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.buybox__form .btn {
  flex: 1 1 180px;
}
.buybox__note {
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 48px;
}
.qty__btn {
  width: 40px;
  height: 100%;
  border: 0;
  background: var(--c-soft);
  cursor: pointer;
  font-size: 18px;
}
.qty__btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.qty__input {
  width: 56px;
  height: 100%;
  border: 0;
  text-align: center;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty--sm {
  height: 36px;
}
.qty--sm .qty__btn {
  width: 32px;
}
.qty__val {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
}
.params {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--c-line);
}
.params__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
}
.params dt {
  color: var(--c-muted);
}
.params dd {
  margin: 0;
}
.prose {
  max-width: 820px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  display: block;
  overflow-x: auto;
}
.prose td,
.prose th {
  border: 1px solid var(--c-line);
  padding: 6px 10px;
  text-align: left;
}
.prose--page {
  padding-bottom: 32px;
}
.prose h2,
.prose h3 {
  margin: 20px 0 8px;
}

/* Корзина и оформление */
.cart,
.checkout {
  display: grid;
  gap: 20px;
  align-items: start;
  margin-bottom: 40px;
}
.cart__lines {
  display: grid;
  gap: 12px;
}
.line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  grid-template-areas: 'img info del' 'img qty sum';
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  align-items: center;
}
.line--problem {
  border-color: #ffc9a8;
  background: #fffaf6;
}
.line__img {
  grid-area: img;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--c-soft);
  overflow: hidden;
  align-self: start;
}
.line__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.line__info {
  grid-area: info;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.line__name {
  color: var(--c-text);
  font-weight: 600;
  font-size: 14px;
}
.line__price {
  font-size: 13px;
  color: var(--c-muted);
}
.line__problem {
  color: var(--c-bad);
  font-size: 13px;
  font-weight: 600;
}
.line__qty {
  grid-area: qty;
  margin: 0;
}
.line__sum {
  grid-area: sum;
  font-weight: 800;
  text-align: right;
}
.line__del {
  grid-area: del;
  margin: 0;
  justify-self: end;
  align-self: start;
}
.summary {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 10px;
  background: var(--c-soft);
}
.summary__title {
  font-weight: 800;
  font-size: 18px;
}
.summary__row,
.summary__line,
.summary__total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.summary__line span {
  color: var(--c-muted);
}
.summary__total {
  font-size: 18px;
  border-top: 1px solid var(--c-line);
  padding-top: 10px;
}
.summary__edit {
  font-size: 14px;
}
.summary .alert {
  margin: 0;
}
.checkout__form {
  display: grid;
  gap: 16px;
}
.checkout__group {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0;
  display: grid;
  gap: 12px;
}
.checkout__group legend {
  font-weight: 800;
  padding: 0 6px;
}
.field {
  display: grid;
  gap: 4px;
}
.field__label {
  font-size: 14px;
  font-weight: 600;
}
.field__err {
  color: var(--c-bad);
  font-size: 13px;
}
.field--err .input {
  border-color: var(--c-bad);
}
.radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.radio input {
  margin-top: 4px;
  accent-color: var(--c-primary);
}
.radio span {
  display: grid;
}
.radio:has(input:checked) {
  border-color: var(--c-primary);
  background: color-mix(in srgb, var(--c-primary) 6%, #fff);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.thanks {
  text-align: center;
  padding: 48px 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.thanks__mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-ok);
  color: #fff;
  font-size: 32px;
  line-height: 64px;
}

/* Подвал */
.ftr {
  background: #0f1724;
  color: #c3cad6;
  margin-top: 48px;
  font-size: 14px;
}
.ftr a {
  color: #c3cad6;
}
.ftr a:hover {
  color: #fff;
}
.ftr__grid {
  display: grid;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 24px;
}
.ftr__col {
  display: grid;
  gap: 6px;
  align-content: start;
}
.ftr__name {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.ftr__tagline {
  margin: 0;
}
.ftr__title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}
.ftr__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  padding-bottom: 24px;
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #8a93a3;
}
.ftr__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ftr__links a {
  color: #8a93a3;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 50;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: calc(100% - 32px);
}
.toast a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  max-width: 560px;
}

.bare {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--c-soft);
  padding: 16px;
}
.bare__box {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow);
}
.bare__box h1 {
  font-size: 22px;
  margin-bottom: 8px;
}
.bare__box p {
  color: var(--c-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .hdr__addr,
  .hdr__hours {
    display: inline;
  }
  .hdr__addr {
    margin-right: auto;
  }
  .hdr__main {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: 'logo cat search cart';
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .hdr__catbtn-text,
  .cartbtn__text {
    display: inline;
  }
  .catmenu__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
  }
  .hero__slide {
    min-height: 340px;
    align-items: center;
  }
  .hero__text {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero__slide:not(.hero__slide--plain) .hero__text {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 70%);
  }
  .hero__title {
    font-size: 36px;
  }
  .cats {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .page-title {
    font-size: 30px;
  }
  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
  .product__title {
    font-size: 28px;
  }
  .params__row {
    grid-template-columns: 2fr 3fr;
  }
  .line {
    grid-template-columns: 88px 1fr auto auto auto;
    grid-template-areas: 'img info qty sum del';
  }
  .line__img {
    width: 88px;
    height: 88px;
  }
  .line__sum {
    min-width: 110px;
  }
  .ftr__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .ftr__legal {
    grid-template-columns: 1fr auto;
  }
  .cookie {
    left: 24px;
    bottom: 24px;
  }
}
@media (min-width: 1024px) {
  .listing {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .listing__side {
    position: sticky;
    top: 140px;
  }
  .filters__summary {
    pointer-events: none;
  }
  .filters__summary::after {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .listing .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cats {
    grid-template-columns: repeat(6, 1fr);
  }
  .catmenu__list {
    grid-template-columns: repeat(4, 1fr);
  }
  .product {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
  }
  .cart,
  .checkout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
  }
  .summary {
    position: sticky;
    top: 140px;
  }
}
@media (min-width: 1240px) {
  .listing .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.check--err {
  color: var(--c-bad);
}
.check .field__err {
  display: block;
}
