/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-width: var(--btn-w);
  height: var(--btn-h);
  padding: 0 var(--s-5);
  border: var(--bw) solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--f-cond);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.btn--primary {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-white);
}

.btn.btn--soon {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: #fff;
}

.btn.btn--soon:not(:disabled):hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.btn--secondary {
  background: var(--c-bg);
  border-color: var(--c-ink);
  color: var(--c-ink);
}

.btn:not(:disabled):hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-on-ink);
}

.btn--block {
  width: 100%;
  min-width: 0;
}

.btn--shop {
  gap: 0.45rem;
  min-width: 0;
}

.btn--line {
  background: transparent;
  border: 2px solid #000;
  color: #000;
}

.btn.btn--line:not(:disabled):hover {
  background: transparent;
  border-color: #000;
  color: #000;
}

.btn__buy {
  line-height: 1;
}

.btn__mark {
  display: block;
  height: 0.78em;
  width: auto;
  max-width: 7.2rem;
  object-fit: contain;
  object-position: center;
  flex: none;
  translate: 0 -0.04em;
}

.btn__mark[src*="logo-wb-"] {
  translate: 0 -0.1em;
}

.btn:disabled {
  background: var(--c-surface);
  border-color: var(--c-line);
  color: var(--c-text-2);
}

.btn[aria-disabled="true"] {
  pointer-events: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

@media (max-width: 35.99em) {
  .btn-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn-group .btn {
    width: 100%;
    min-width: 0;
  }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-cond);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition: color var(--dur-fast) var(--ease);
}

.link:hover {
  color: var(--c-accent);
}

.link svg {
  width: 1em;
  height: 1em;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: var(--bw) solid var(--c-ink);
  border-radius: var(--r-btn);
  background: var(--c-bg);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

.icon-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.icon-btn:hover:not(:disabled) {
  background: var(--c-ink);
  color: var(--c-on-ink);
}

.icon-btn:disabled {
  opacity: 0.3;
}

.icon-btn--plain {
  border-color: transparent;
}

/* ---------- Brand tags (форма — по пиктограммам гайда) ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.tag {
  --tag-c: var(--c-ink);
  --tag-text: var(--c-ink);
  --tag-bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 1.75rem;
  padding: 0 0.75rem;
  border: 1.5px solid var(--tag-c);
  border-radius: var(--r-pill);
  background: var(--tag-bg);
  color: var(--tag-text);
  font-family: var(--f-cond);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--lg {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
}

.tag__dots {
  display: inline-flex;
  gap: 2px;
}

.tag__dots::before,
.tag__dots::after {
  content: "";
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  border: 1.5px solid var(--tag-c);
}

.tag__dots::after {
  background: var(--tag-c);
}

.tag--blue {
  --tag-c: var(--c-accent);
  --tag-text: var(--c-accent);
}

.tag--orange {
  --tag-c: var(--c-orange);
}

.tag--grey {
  --tag-c: var(--c-grey-ink);
}

.tag--lime {
  --tag-c: var(--c-lime);
}

.tag--black {
  --tag-c: var(--c-ink);
}

a:hover > .tag {
  background: var(--c-surface);
}

/* Статус-плашки: каждая категория — свой цвет */

.status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  height: 1.5rem;
  padding: 0 0.625rem;
  border-radius: var(--r-pill);
  font-family: var(--f-cond);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status--new {
  background: var(--c-blue);
  color: var(--c-white);
}

.status--best {
  background: var(--c-orange);
  color: #fff;
}

.status--soon {
  background: var(--c-white);
  color: var(--c-black);
}

/* ---------- Product card ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  border: var(--bw) solid var(--c-line);
  transition: border-color var(--dur-fast) var(--ease);
}

.card:has(.card__link:hover),
.card:has(.card__link:focus-visible) {
  border-color: var(--c-line-strong);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-photo);
}

.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.card__media .card__img-alt {
  opacity: 0;
}

@media (hover: hover) {
  .card:has(.card__link:hover) .card__img-alt,
  .card:has(.card__link:focus-visible) .card__img-alt {
    opacity: 1;
  }
}

.card__status {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 2;
  display: flex;
  gap: var(--s-2);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-4) var(--s-5);
  text-align: left;
}

.card__cat {
  color: var(--c-text-2);
}

.card__name {
  font-family: var(--f-mono);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__link:focus-visible {
  outline: none;
}

.card:has(.card__link:focus-visible) {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}

.card__lead {
  display: none;
}

.card__desc {
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--c-text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__tags {
  margin-top: var(--s-1);
}

.card__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-3);
}

.card__pricing {
  display: grid;
  gap: 0.25rem;
  font-family: var(--f-cond);
}

.card__price {
  font-size: clamp(1.75rem, 1.35rem + 0.9vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.card__price--tbd {
  font-weight: 400;
  color: var(--c-text-2);
}

.card__volume {
  font-size: var(--fs-label);
  color: var(--c-text-2);
}

/* «Подробнее» в карточке вместо корзины */

.card__more {
  position: relative;
  z-index: 2;
  flex: none;
  white-space: nowrap;
}

/* Заглушка продукта (до получения пэкшота и данных) */

.card--placeholder .card__media {
  display: grid;
  place-items: center;
}

.ph-mark {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  font-family: var(--f-cond);
  font-size: var(--fs-ui);
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
  text-align: center;
}

.ph-mark strong {
  font-family: var(--f-cond);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-grey-ink);
  letter-spacing: 0;
}

/* ---------- Header (по мотивам rhodeskin.com: плашка-анонс + ссылки по краям, логотип в центре) ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-bg);
  border-bottom: var(--bw) solid var(--c-line);
}

.announce {
  padding: var(--s-2) var(--pad) 0;
}

.announce__text {
  display: grid;
  place-items: center;
  height: 2rem;
  padding-inline: var(--s-4);
  border-radius: 0.625rem;
  background: rgb(0 0 0 / 0.07);
  font-family: var(--f-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: var(--header-row);
  gap: var(--s-5);
}

.header__side {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-width: 0;
}

.logo {
  justify-self: center;
  font-family: var(--f-cond);
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.nav__list {
  display: flex;
  gap: var(--s-6);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--tap);
  font-family: var(--f-cond);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.6rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__actions {
  justify-content: flex-end;
}

.cart-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-on-ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.cart-btn:hover {
  background: var(--c-blue);
  color: var(--c-white);
}

.cart-btn > svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cart-btn__count {
  position: absolute;
  top: -0.25rem;
  right: -0.375rem;
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: var(--r-pill);
  background: var(--c-blue);
  color: var(--c-white);
  font-family: var(--f-cond);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.cart-btn__count[data-empty="true"] {
  display: none;
}

.cart-btn__count.is-bumped {
  transform: scale(1.3);
  background: var(--c-orange);
}

.menu-btn {
  display: none;
}

@media (max-width: 63.99em) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
    margin-left: calc(-1 * var(--s-3));
  }
}

@media (max-width: 47.99em) {
  .announce__text {
    font-size: 0.6875rem;
  }
}

/* ---------- Overlays: мобильное меню и корзина ---------- */

.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-text);
  overflow: hidden;
  overscroll-behavior: none;
}

.sheet::backdrop {
  background: rgb(0 0 0 / 0.4);
}

.sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(30rem, 100%);
  background: var(--c-bg);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
}

.sheet[open].is-visible .sheet__panel {
  transform: none;
}

#cart .sheet__panel {
  top: 15px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  width: auto;
  border-radius: 1.5rem;
  background: #fff;
  overflow: hidden;
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    transform 380ms var(--ease),
    opacity 380ms var(--ease);
}

#cart[open].is-visible .sheet__panel {
  opacity: 1;
  transform: none;
}

#cart::backdrop {
  background: rgb(0 0 0 / 0);
  transition: background-color 380ms var(--ease);
}

#cart[open].is-visible::backdrop {
  background: rgb(0 0 0 / 0.55);
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: var(--header-row);
  padding-inline: var(--pad);
  border-bottom: var(--bw) solid var(--c-line);
  flex: none;
}

.sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-5) var(--pad);
  overscroll-behavior: contain;
}

.sheet__foot {
  flex: none;
  padding: var(--s-5) var(--pad);
  border-top: var(--bw) solid var(--c-line);
}

#menu {
  color: #fff;
}

#menu::backdrop {
  background: transparent;
}

#menu .sheet__panel {
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  transform: none;
  transition: none;
}

#menu .sheet__head {
  justify-content: flex-end;
  height: auto;
  border-bottom: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 0.85rem);
  padding-bottom: 0.35rem;
}

#menu .menu-close {
  width: 2.15rem;
  height: 2.15rem;
  border-color: var(--c-blue);
  background: var(--c-blue);
  color: #fff;
}

#menu .menu-close svg {
  width: 0.9rem;
  height: 0.9rem;
}

#menu .menu-close:hover {
  background: var(--c-blue);
  color: #fff;
}

#menu .mobile-nav__link,
#menu .mobile-nav__link[aria-current="page"] {
  color: #fff;
  border-bottom-color: rgb(255 255 255 / 0.18);
}

#menu .sheet__foot {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  border-top: 0;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.35rem);
  text-align: center;
}

#menu .menu-brand {
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: calc((100vw - 2 * var(--pad)) / 4.55);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

#menu .sheet__foot .label {
  color: #fff;
  text-align: center;
}

.mobile-nav__list {
  display: grid;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  border-bottom: var(--bw) solid var(--c-line);
  font-family: var(--f-cond);
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
}

.mobile-nav__link[aria-current="page"] {
  color: var(--c-accent);
}

.mobile-nav__link svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Cart */

.cart-list {
  display: grid;
}

.cart-item {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: var(--bw) solid var(--c-line);
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item__img {
  aspect-ratio: 4 / 5;
  background: var(--c-photo);
  object-fit: cover;
  width: 100%;
}

.cart-item__info {
  display: grid;
  align-content: start;
  gap: var(--s-1);
}

.cart-item__name {
  font-weight: 600;
  line-height: 1.2;
}

.cart-item__side {
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: var(--s-2);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: var(--bw) solid var(--c-line-strong);
  border-radius: var(--r-btn);
  margin-top: var(--s-2);
  justify-self: start;
}

.qty button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
}

.qty button:hover {
  background: var(--c-surface);
}

.qty svg {
  width: 0.875rem;
  height: 0.875rem;
}

.qty output {
  min-width: 2rem;
  text-align: center;
  font-family: var(--f-cond);
  font-size: var(--fs-ui);
}

.remove-btn {
  font-family: var(--f-cond);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  color: var(--c-text-2);
  min-height: 2.25rem;
}

.remove-btn:hover {
  color: var(--c-ink);
}

.cart-empty {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.cart-total__value {
  font-family: var(--f-cond);
  font-weight: 700;
}

.note {
  font-family: var(--f-cond);
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--c-text-2);
}

.note .link {
  font-size: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.note--box {
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--c-lime);
  background: var(--c-surface);
  color: var(--c-ink);
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: var(--s-4);
}

.field {
  display: grid;
  gap: var(--s-2);
}

.field__label {
  font-family: var(--f-cond);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
}

.input {
  width: 100%;
  height: var(--btn-h);
  padding: 0 var(--s-4);
  border: var(--bw) solid var(--c-line-strong);
  border-radius: var(--r-btn);
  background: var(--c-bg);
  font-family: var(--f-cond);
  font-size: 1rem;
}

.input:focus-visible {
  outline-offset: 0;
}

.input[aria-invalid="true"] {
  border-color: var(--c-orange);
  border-width: 2px;
}

.field__error {
  font-family: var(--f-cond);
  font-size: var(--fs-label);
  color: var(--c-ink);
}

.field__error::before {
  content: "! ";
  color: var(--c-orange);
  font-weight: 700;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s-5);
  z-index: calc(var(--z-overlay) + 1);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  max-width: calc(100% - 2 * var(--pad));
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5);
  background: var(--c-ink);
  color: var(--c-on-ink);
  font-family: var(--f-cond);
  font-size: var(--fs-ui);
  transform: translate(-50%, calc(100% + var(--s-5)));
  visibility: hidden;
  transition:
    transform var(--dur) var(--ease),
    visibility 0s linear var(--dur);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform var(--dur) var(--ease);
}

.toast .link {
  color: var(--c-lime);
  flex: none;
  min-height: var(--tap);
  padding-inline: var(--s-2);
}

.cart-note {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: calc(var(--z-overlay) + 2);
  display: flex;
  align-items: center;
  gap: 1.05rem;
  width: min(28rem, calc(100% - 30px));
  padding: 1.05rem;
  border-radius: 0;
  background: var(--c-blue);
  color: #fff;
  font-family: var(--f-cond);
  clip-path: inset(0 0 0 100%);
  visibility: hidden;
  transition:
    clip-path 460ms var(--ease),
    visibility 0s linear 460ms;
}

.cart-note.is-visible {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 460ms var(--ease);
}

.cart-note__photo {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--c-photo);
}

.cart-note__copy {
  display: grid;
  flex: 1;
  gap: 0.2rem;
  min-width: 0;
}

.cart-note__label,
.cart-note__name {
  margin: 0;
  color: #fff;
}

.cart-note__label {
  font-size: 0.75rem;
  line-height: 1.2;
}

.cart-note__name {
  font-family: var(--f-mono);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  word-spacing: -0.3em;
}

.cart-note__open {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.cart-note__open:hover {
  color: #fff;
}

#cart .sheet__body {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

#cart .sheet__foot[hidden] {
  display: none;
}

.cart-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  flex: 1;
  min-height: 0;
  height: 100%;
}

.cart-split__bag,
.cart-split__order {
  min-height: 0;
  overflow: auto;
  padding: 1.25rem 1.5rem 1.75rem;
}

.cart-split__bag {
  background: #f0f0f0;
  border-right: 1px solid #e4e4e4;
}

.cart-split__order {
  background: #fff;
}

.cart-split__order h3 {
  margin: 0 0 1rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cart-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.cart-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--c-blue);
  flex: none;
}

.cart-code {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.cart-code input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid #000;
  border-radius: var(--r-btn);
  background: #fff;
  font-family: var(--f-cond);
  font-size: 1rem;
}

.cart-code button {
  flex: none;
  height: 3rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--r-btn);
  background: #000;
  color: #fff;
  font-family: var(--f-cond);
  font-size: 0.95rem;
  cursor: pointer;
}

.cart-plates {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cart-plates div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  background: #fff;
}

.cart-plates dt,
.cart-plates dd {
  margin: 0;
}

.cart-plates .cart-plates__grand {
  background: #000;
  color: #fff;
  font-weight: 600;
}

#cart .cart-empty {
  padding: 1.5rem;
}

@media (max-width: 52em) {
  #cart .sheet__body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .cart-split {
    grid-template-columns: 1fr;
    height: auto;
    min-width: 0;
    max-width: 100%;
  }

  .cart-split__bag,
  .cart-split__order {
    overflow-x: hidden;
    overflow-y: visible;
    min-width: 0;
    max-width: 100%;
  }

  .cart-split__bag {
    border-right: 0;
    border-bottom: 1px solid #e4e4e4;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cart .sheet__panel,
  #cart::backdrop,
  .cart-note,
  #buy .sheet__panel,
  #soon .sheet__panel,
  #buy::backdrop,
  #soon::backdrop {
    transition: none;
  }
}

/* ---------- Footer ---------- */

.footer {
  margin-top: auto;
  background: #000;
  color: #fff;
  color-scheme: dark;
  padding-top: var(--s-8);
}

.footer a {
  color: inherit;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-7) var(--gutter);
}

.footer__sub {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  max-width: 28rem;
}

.footer__sub p {
  max-width: 32em;
  font-size: 1rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.82);
}

.footer .label,
.footer__col h2 {
  color: rgb(255 255 255 / 0.5);
}

.footer .note {
  color: rgb(255 255 255 / 0.55);
}

.footer .note .link,
.footer .note .link:hover {
  color: #fff;
}

.sub-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer .sub-form .input {
  border: 0;
  border-bottom: var(--bw) solid rgb(255 255 255 / 0.35);
  border-radius: 0;
  padding-left: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
}

.footer .sub-form .input::placeholder {
  color: rgb(255 255 255 / 0.4);
}

.footer .sub-form .icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
}

.footer .sub-form .icon-btn:hover:not(:disabled) {
  background: #fff;
  color: #000;
}

.footer .sub-form .icon-btn:disabled {
  background: #5c5c5c;
  opacity: 1;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6) var(--gutter);
}

.footer__col h2 {
  margin-bottom: var(--s-4);
}

.footer__col ul {
  display: grid;
  gap: var(--s-1);
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-family: var(--f-cond);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.footer__col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.footer__wordmark {
  margin-top: var(--s-8);
  color: #fff;
  font-family: var(--f-cond);
  font-weight: 700;
  /* Ширина надписи ≈ 4em. Размер считаем от колонки, а не от окна,
     иначе на широком мониторе буквы вылезают за контейнер и обрезаются. */
  font-size: calc((min(100vw, var(--container)) - 2 * var(--pad)) / 4.55);
  line-height: 0.92;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  user-select: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3) var(--s-6);
  padding-block: var(--s-5);
  border-top: var(--bw) solid rgb(255 255 255 / 0.16);
  margin-top: var(--s-5);
}

.footer .footer__legal {
  flex: 1 0 100%;
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.footer .footer__address {
  color: rgb(255 255 255 / 0.72);
  font-size: 0.95rem;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.footer .footer__address p,
.footer .footer__address ul,
.footer .footer__address ol {
  margin: 0;
}

.footer .footer__address a {
  color: inherit;
}

@media (max-width: 63.99em) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 35.99em) {
  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}

body:has(.dock) {
  padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
}

.dock {
  --dock-browser: 0px;
  position: fixed;
  z-index: 45;
  right: 0;
  bottom: calc(-1 * var(--dock-browser));
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: calc(2.25rem + env(safe-area-inset-bottom, 0px) + var(--dock-browser));
  margin: 0;
  padding: 0 1.25rem calc(env(safe-area-inset-bottom, 0px) + var(--dock-browser));
  border: var(--bw) solid #fff;
  border-radius: 0;
  background: #000;
  color: var(--c-lime);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12rem 0 12rem #000;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease);
}

.dock::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  left: 0;
  height: 12rem;
  background: #000;
  pointer-events: none;
}

.dock.is-idle {
  opacity: 0;
  pointer-events: none;
  translate: 0 100%;
}

@media (max-width: 47.99em) {
  body:has(.dock) {
    padding-bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px));
  }

  .dock {
    left: auto;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px) + var(--dock-browser));
    width: 5.25rem;
    height: 5.25rem;
    padding: 0.45rem;
    white-space: normal;
    text-align: center;
    font-size: 0.625rem;
    line-height: 1.15;
    box-shadow: none;
  }

  .dock::after {
    content: none;
  }
}

.cookie {
  position: fixed;
  z-index: 46;
  left: 0.75rem;
  right: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #111;
  color: #fff;
}

.cookie[hidden] {
  display: none;
}

.cookie p {
  margin: 0;
  max-width: 42rem;
}

.cookie a {
  color: inherit;
  text-decoration: underline;
}

.cookie .btn {
  min-width: 0;
  flex: none;
}

body.has-cookie {
  padding-bottom: 6.5rem;
}

.buy-sheet {
  display: grid;
  align-content: start;
  gap: 1.25rem;
}

.buy-sheet__shops {
  display: grid;
  gap: 0.85rem;
}

.buy-sheet .quiz-mail__consent {
  max-width: none;
}

@media (max-width: 47.99em) {
  .cookie {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock {
    transition: none;
  }
}

.sub-form {
  flex-wrap: wrap;
}

.sub-form__email {
  flex: 1 1 12rem;
  min-width: 0;
}

.sub-form > .field:not(.sub-form__email),
.sub-form > .note {
  flex: 1 0 100%;
}

.revoke {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
  padding-top: 1.25rem;
  border-top: var(--bw) solid var(--c-line);
}

.revoke .h3 {
  margin: 0;
}

.revoke__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.revoke__line .field {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
}

.revoke__line .btn {
  flex: none;
}

.footer .quiz-mail__consent,
.footer .quiz-mail__consent a {
  color: #fff;
}

.footer .field__error {
  color: #fff;
}

.reviews {
  display: grid;
  gap: 1.75rem;
}

a.review-line {
  color: inherit;
  text-decoration: none;
}

a.review-line:hover .review-more {
  color: var(--c-blue);
}

.review-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.7rem;
  row-gap: 0.12rem;
}

.review-line .review-more {
  flex-basis: 100%;
  margin-top: 0;
  font-size: 0.95rem;
}

.review-logo {
  display: block;
  height: 1rem;
  width: auto;
}

.review-score {
  font-weight: 700;
}

.review-note {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.review-shot {
  width: auto;
  height: 4.5rem;
  object-fit: contain;
  object-position: center;
}

.stars {
  letter-spacing: 0.14em;
  color: var(--c-blue);
}

.pdp__soon-btn,
#soon-title {
  font-family: var(--f-cond);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.pdp__soon-btn {
  font-size: 1.125rem;
}

#soon .sheet__head {
  height: auto;
  min-height: var(--header-row);
  padding-block: 0.75rem;
}

#soon-title {
  flex: 1;
  min-width: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  color: #000;
  word-spacing: normal;
}

.soon-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

.soon-name {
  font-weight: 700;
  color: #fff;
}

#buy .sheet__panel,
#soon .sheet__panel {
  background: #000;
  color: #fff;
  transform: translate3d(100%, 0, 0);
  transition: transform 480ms var(--ease-expo);
}

#buy[open].is-visible .sheet__panel,
#soon[open].is-visible .sheet__panel {
  transform: translate3d(0, 0, 0);
}

#buy::backdrop,
#soon::backdrop {
  background: transparent;
  transition: background-color 460ms ease;
}

#buy[open].is-visible::backdrop,
#soon[open].is-visible::backdrop {
  background: rgb(0 0 0 / 0.55);
}

#buy .sheet__head,
#soon .sheet__head {
  border-bottom-color: rgb(255 255 255 / 0.18);
}

#buy .icon-btn,
#soon .icon-btn,
#buy .icon-btn:hover,
#soon .icon-btn:hover {
  border-color: var(--c-blue);
  background: var(--c-blue);
  color: #fff;
}

dialog#buy :is(.h3, .note, .text-2),
#soon :is(.h3, .note, .text-2, .quiz-mail__consent, .quiz-mail__consent a, .field__error),
#soon-title {
  color: #fff;
}

#soon .input {
  border-color: #fff;
  background: #000;
  color: #fff;
  caret-color: #fff;
}

#soon .input::placeholder {
  color: #c8c8c8;
  opacity: 1;
}

#soon .input:-webkit-autofill,
#soon .input:-webkit-autofill:hover,
#soon .input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #000 inset;
}

#soon .quiz-mail__consent input {
  accent-color: #fff;
}

#buy .buy-sheet .btn--shop:hover {
  background: #000;
  border-color: #fff;
  color: #fff;
}

.notice {
  width: min(26rem, calc(100% - 2rem));
  margin: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--c-ink);
}

.notice::backdrop {
  background: rgb(0 0 0 / 0.55);
}

.notice__panel {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  color: #000;
}

.notice__title {
  margin: 0;
  font-family: var(--f-cond);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.notice__panel p {
  margin: 0;
  line-height: 1.45;
}

.club {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
}

.club::backdrop {
  background: rgb(0 0 0 / 0.55);
}

.club__panel {
  position: relative;
  display: grid;
  gap: 1.15rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #000;
  color: #fff;
}

.club__title {
  margin: 0;
  padding-right: 2.5rem;
  font-family: var(--f-mono);
  font-size: clamp(1.65rem, 1rem + 2vw, 2.25rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  word-spacing: -0.3em;
  color: #fff;
}

.club__panel p {
  max-width: 28em;
  font-weight: 400;
  line-height: 1.45;
  color: #fff;
}

.club__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  box-shadow: none;
}

.club__close:hover:not(:disabled),
.club__close:focus-visible {
  background: #fff;
  color: #000;
  border: 0;
}

.club__close svg {
  width: 0.85rem;
  height: 0.85rem;
}

.club .input {
  border-color: #fff;
  background: #000;
  color: #fff;
  caret-color: #fff;
}

.club .input::placeholder {
  color: #c8c8c8;
  opacity: 1;
}

.club .input:-webkit-autofill,
.club .input:-webkit-autofill:hover,
.club .input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #000 inset;
}

.club .quiz-mail__consent,
.club .quiz-mail__consent a,
.club .note,
.club .field__error {
  color: #fff;
}

.club .quiz-mail__consent input {
  accent-color: #fff;
}

.club .quiz-mail__consent {
  max-width: none;
}

.buy-sheet .btn--shop {
  justify-content: center;
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
  pointer-events: auto;
}

.buy-sheet .btn--shop:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p,
.rich h1,
.rich h2,
.rich h3,
.rich ul,
.rich ol,
.rich blockquote,
.rich table { margin: 0 0 0.8rem; }
.rich h1 { font-size: 1.6rem; line-height: 1.2; }
.rich h2 { font-size: 1.3rem; line-height: 1.25; }
.rich h3 { font-size: 1.1rem; line-height: 1.3; }
.rich ul,
.rich ol { padding-left: 1.25rem; }
.rich blockquote {
  margin-left: 0;
  padding-left: 0.9rem;
  border-left: 3px solid currentColor;
}
.rich a { text-decoration: underline; }
.rich table { width: 100%; border-collapse: collapse; }
.rich th,
.rich td {
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 0.45rem 0.55rem;
  vertical-align: top;
  text-align: left;
}
.embed {
  position: relative;
  width: 100%;
  max-width: 40rem;
  margin: 0 0 0.8rem;
  aspect-ratio: 16 / 9;
  background: #111;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article-body { max-width: 40rem; padding-bottom: 4rem; }
.facts .pdp__result .rich {
  max-width: 36rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

body.has-preview {
  --preview-bar: calc(2.75rem + env(safe-area-inset-top, 0px));
  --header-h: calc(6.5rem + var(--preview-bar));
  padding-top: var(--preview-bar);
}

body.has-preview .header {
  top: var(--preview-bar) !important;
  padding-top: 0 !important;
}

.preview-banner {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--preview-bar, calc(2.75rem + env(safe-area-inset-top, 0px)));
  margin: 0;
  padding: env(safe-area-inset-top, 0px) 1rem 0;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
}

@media (max-width: 720px) {
  body.has-preview {
    --preview-bar: calc(4.4rem + env(safe-area-inset-top, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-banner {
    transition: none;
  }
}
