@font-face {
  font-family: Osnovnoy;
  src: url('/assets/remote/static.tildacdn.com/tild3239-3131-4164-a562-636137313731/AnonymousPro-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: Osnovnoy;
  src: url('/assets/remote/static.tildacdn.com/tild3234-6135-4035-b037-643331353636/AnonymousPro-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

:root {
  color-scheme: light;
  --text: #000;
  --muted: #9a9a9a;
  --line: #e5e5e5;
  --surface: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Osnovnoy, Arial, sans-serif;
}

a {
  color: inherit;
}

.cavok-catalog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px 140px;
}

.cavok-catalog-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 70px;
}

.cavok-catalog-header__brand {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.cavok-catalog-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.cavok-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 80px;
}

.cavok-product-card {
  min-width: 0;
  color: #000;
  text-align: center;
}

.cavok-product-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 10 / 11;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.cavok-product-card__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 90ms linear;
}

.cavok-product-card__img.is-active {
  z-index: 2;
  opacity: 1;
}

.cavok-product-card__dots {
  display: none;
}

.cavok-product-card__title {
  display: block;
  margin: 22px auto 0;
  color: #000;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.cavok-product-card__description {
  max-width: 320px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.cavok-product-card__price,
.product-price {
  margin-top: 34px;
  color: #000;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 120px;
}

.product-gallery {
  display: grid;
  gap: 16px;
}

.product-gallery > img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.product-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.product-gallery__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 90ms linear;
}

.product-gallery__image.is-active {
  z-index: 2;
  opacity: 1;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-gallery__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
}

.product-gallery__thumb.is-active {
  border-color: #000;
}

.product-gallery__thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-summary {
  display: grid;
  align-content: start;
  gap: 18px;
}

.product-summary h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.product-summary .product-price {
  margin-top: 12px;
  font-size: 20px;
  text-align: left;
}

.product-card__category {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.product-description {
  font-size: 17px;
  line-height: 1.55;
}

.product-params {
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 8px 18px;
}

.product-params dt {
  color: var(--muted);
}

.product-params dd {
  margin: 0;
}

.product-options {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.product-options__label {
  color: var(--muted);
  font-size: 15px;
}

.product-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-size-option {
  min-width: 52px;
  padding: 11px 15px;
  border: 1px solid #d6d6d6;
  color: #000;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.product-size-option.is-active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.product-add-button {
  width: min(100%, 420px);
  min-height: 54px;
  margin-top: 12px;
  border: 0;
  border-radius: 30px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
}

.order-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.order-form label {
  display: grid;
  gap: 6px;
}

.order-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

.order-form button {
  min-height: 44px;
  border: 0;
  border-radius: 30px;
  color: #fff;
  background: #9e9e9e;
  font: inherit;
}

.form-status {
  color: var(--muted);
}

.cavok-cart__toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  min-width: 128px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 30px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.cavok-cart:not(.has-items) .cavok-cart__toggle {
  display: none;
}

.cavok-cart__backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: none;
  background: rgba(0, 0, 0, 0.24);
}

.cavok-cart__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100%);
  padding: 24px;
  background: #fff;
  box-shadow: -16px 0 36px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cavok-cart.is-open .cavok-cart__backdrop {
  display: block;
}

.cavok-cart.is-open .cavok-cart__panel {
  transform: translateX(0);
}

.cavok-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cavok-cart__header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}

.cavok-cart__header button,
.cavok-cart__remove,
.cavok-cart__qty button {
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  font: inherit;
}

.cavok-cart__header button {
  font-size: 28px;
  line-height: 1;
}

.cavok-cart__items {
  display: grid;
  align-content: start;
  gap: 18px;
  overflow-y: auto;
  padding: 24px 0;
}

.cavok-cart__empty {
  margin: 0;
  color: var(--muted);
}

.cavok-cart__item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  align-items: start;
}

.cavok-cart__item img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.cavok-cart__item-body {
  display: grid;
  gap: 6px;
}

.cavok-cart__item-body a {
  color: #000;
  text-decoration: none;
}

.cavok-cart__item-meta {
  color: var(--muted);
  font-size: 14px;
}

.cavok-cart__qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.cavok-cart__qty button {
  width: 26px;
  height: 26px;
  border: 1px solid #d6d6d6;
}

.cavok-cart__remove {
  font-size: 22px;
  line-height: 1;
}

.cavok-cart__footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.cavok-cart__total {
  font-size: 20px;
}

.cavok-cart__checkout {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 30px;
  background: #000;
  color: #fff;
  text-decoration: none;
}

.checkout-page {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 420px);
  gap: clamp(32px, 6vw, 90px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px 120px;
}

.checkout-order h1 {
  margin: 0 0 34px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.checkout-items {
  display: grid;
  gap: 18px;
}

.checkout-empty {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.checkout-empty a {
  color: #000;
}

.checkout-item {
  display: grid;
  grid-template-columns: 96px 1fr max-content;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.checkout-item img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.checkout-item__body {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 15px;
}

.checkout-item__body a {
  color: #000;
  font-size: 17px;
  text-decoration: none;
}

.checkout-item__sum {
  white-space: nowrap;
}

.checkout-total {
  margin-top: 26px;
  font-size: 22px;
}

.checkout-form {
  display: grid;
  align-content: start;
  gap: 18px;
}

.checkout-form label {
  display: grid;
  gap: 7px;
}

.checkout-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

.checkout-form button {
  min-height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 30px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.checkout-form button:disabled {
  cursor: default;
  opacity: 0.35;
}

@media (max-width: 900px) {
  .cavok-catalog-page {
    padding-top: 42px;
  }

  .cavok-catalog-header {
    margin-bottom: 42px;
  }

  .cavok-catalog-grid {
    grid-template-columns: 1fr;
    row-gap: 62px;
  }

  .cavok-product-card__media {
    max-width: 420px;
    margin: 0 auto;
  }

  .product-page {
    grid-template-columns: 1fr;
  }

  .checkout-page {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }
}

@media (max-width: 520px) {
  .cavok-catalog-page {
    padding-inline: 16px;
  }

  .cavok-catalog-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .cavok-product-card__title {
    font-size: 18px;
  }

  .checkout-item {
    grid-template-columns: 78px 1fr;
  }

  .checkout-item img {
    width: 78px;
    height: 78px;
  }

  .checkout-item__sum {
    grid-column: 2;
  }
}
