body.content-page {
  background: #000;
  color: #111;
}

.content-page .page-main {
  background: #fff;
}

.clothing-page.clothing-video-loading {
  overflow: hidden;
}

.clothing-video-loader {
  position: fixed;
  z-index: 2000;
  inset: 0;
  overflow: hidden;
  background: #f4f3ef;
  transition: background-color 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.clothing-video-loader.is-finished {
  background: transparent;
  pointer-events: none;
}

.clothing-video-loader__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.clothing-video-loader.is-finished .clothing-video-loader__video {
  opacity: 0;
}

.clothing-video-loader__title {
  position: fixed;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 40px);
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  opacity: 1;
}

.clothing-page.clothing-title-transition .clothing-intro h1 {
  opacity: 0;
}

.clothing-page .clothing-intro h1 {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.clothing-video-loader.is-finished .clothing-video-loader__title {
  opacity: 0;
}

.clothing-page .page-main,
.clothing-page .site-footer {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.clothing-page.clothing-video-loading .page-main,
.clothing-page.clothing-video-loading .site-footer {
  opacity: 0;
  transform: translateY(14px);
}

.clothing-page.clothing-video-loading .page-main {
  transform: none;
}

.content-page .page-main {
  min-height: calc(100vh - 230px);
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.page-intro {
  padding: 35px 0 56px;
  text-align: center;
}

.page-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.page-intro p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
}

.page-intro a {
  border-bottom: 1px solid currentColor;
}

.catalog-section {
  padding: 30px 0 64px;
}

.catalog-section h2 {
  margin: 0 0 34px;
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
}

.catalog-section__note {
  margin: -15px auto 34px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.equipment-intro {
  padding-bottom: 0;
}

.equipment-intro h1 {
  margin-bottom: 0;
}

.equipment-page .catalog-section {
  padding: 110px 0 0;
}

.equipment-page .catalog-section:last-child {
  padding-bottom: 64px;
}

.equipment-page .catalog-section__note {
  width: min(720px, 100%);
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid #dedbd4;
  color: #66635d;
}

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

.equipment-card {
  overflow: hidden;
  min-width: 0;
  background: #fff;
  text-align: center;
}

.equipment-card__image {
  display: grid;
  overflow: hidden;
  aspect-ratio: 1 / 0.86;
  place-items: center;
  background: #f5f5f2;
}

.equipment-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.equipment-card:hover img {
  transform: scale(1.025);
}

.equipment-card figcaption {
  min-height: 64px;
  padding: 16px 8px 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.equipment-card figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 300;
}

.clothing-intro {
  width: min(100% - 48px, 820px);
  padding-top: 35px;
  padding-bottom: 35px;
}

.clothing-catalog {
  padding: 0;
  border-top: 1px solid #222;
}

.wardrobe-catalog {
  width: 100%;
}

.wardrobe-meta {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #222;
  font-size: 17px;
  font-weight: 400;
}

.wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wardrobe-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 554px;
  grid-template-rows: minmax(0, 1fr) 105px;
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
  text-align: center;
}

.wardrobe-card__open {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.wardrobe-card__open:focus-visible {
  outline: 2px solid #111;
  outline-offset: -4px;
}

.wardrobe-card:nth-child(4n) {
  border-right: 0;
}

.wardrobe-card__image {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 34px 34px 5px;
}

.wardrobe-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.wardrobe-card:hover .wardrobe-card__image img {
  transform: scale(1.025);
}

.wardrobe-card__caption {
  padding: 18px 20px 16px;
}

.wardrobe-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.wardrobe-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
}

.catalog-empty {
  padding: 80px 0;
  text-align: center;
}

.rules-section {
  padding: 72px 0;
  border-top: 1px solid #dedede;
}

.rules-section__heading {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.rules-section__heading h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.2;
}

.rules-section__heading p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.rules-warning {
  max-width: 900px;
  margin: -18px auto 42px;
  padding: 18px 22px;
  border: 1px solid #111;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rule-card {
  padding: 28px;
  border: 1px solid #d9d9d9;
}

.rule-card--wide {
  grid-column: 1 / -1;
}

.rule-card h3 {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 600;
}

.rule-card h4 {
  margin: 24px 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.rule-card h4:first-of-type {
  margin-top: 0;
}

.rule-card p,
.rule-card li {
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.rule-card p {
  margin: 0 0 10px;
}

.rule-card ul {
  margin: 0;
  padding-left: 20px;
}

.rule-note {
  color: #707070;
  font-size: 12px !important;
}

#rules-content .page-intro p {
  color: #555;
  font-weight: 400;
}

.content-page .site-footer {
  color: #fff;
}

.not-found-main {
  display: grid;
  min-height: calc(100svh - 290px);
  align-items: center;
}

.not-found {
  display: grid;
  justify-items: center;
  padding: 90px 0;
  text-align: center;
}

.not-found__code {
  margin: 0 0 20px;
  color: #8b8b8b;
  font-size: clamp(76px, 13vw, 180px);
  font-weight: 300;
  line-height: 0.82;
}

.not-found h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 300;
  line-height: 1;
}

.not-found p:not(.not-found__code) {
  max-width: 560px;
  margin: 0;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.not-found__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 0 24px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.not-found__button:hover {
  background: #333;
}

@media (max-width: 700px) {
  .clothing-video-loader {
    transition: background-color 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .clothing-video-loader__video {
    transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .clothing-video-loader__title {
    max-width: calc(100vw - 32px);
    white-space: normal;
  }

  .clothing-video-loader__video {
    object-fit: cover;
    object-position: center;
  }

  .page-shell {
    width: min(100% - 32px, 1180px);
  }

  .page-intro {
    padding: 30px 0 34px;
  }

  .not-found-main {
    min-height: calc(100svh - 250px);
  }

  .not-found {
    padding: 58px 0;
  }

  .not-found p:not(.not-found__code) {
    font-size: 13px;
    line-height: 1.6;
  }

  .equipment-intro {
    padding-bottom: 0;
  }

  .equipment-page .catalog-section {
    padding-top: 90px;
  }

  .equipment-page [data-equipment-catalog] > .catalog-section:first-child {
    padding-top: 90px;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .catalog-section {
    padding: 22px 0 42px;
  }

  .catalog-section h2 {
    margin-bottom: 22px;
    font-size: 17px;
  }

  .equipment-card figcaption {
    min-height: 68px;
    padding: 12px 4px 6px;
    font-size: 12px;
  }

  .clothing-catalog {
    padding: 0;
  }

  .clothing-intro {
    width: min(100% - 32px, 820px);
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .clothing-intro p {
    font-size: 13px;
    line-height: 1.55;
  }

  .wardrobe-meta {
    min-height: 44px;
    padding: 0 16px;
    font-size: 11px;
  }

  .wardrobe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wardrobe-card {
    min-height: 340px;
    grid-template-rows: minmax(0, 1fr) 82px;
  }

  .wardrobe-card:nth-child(4n) {
    border-right: 1px solid #222;
  }

  .wardrobe-card:nth-child(2n) {
    border-right: 0;
  }

  .wardrobe-card__image {
    padding: 20px 14px 0;
  }

  .wardrobe-card__caption {
    padding: 14px 10px 12px;
  }

  .wardrobe-card h2 {
    font-size: 14px;
  }

  .wardrobe-card p {
    font-size: 12px;
  }

  .rules-section {
    padding: 48px 0;
  }

  .rules-section__heading {
    margin-bottom: 28px;
  }

  .rules-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rule-card--wide {
    grid-column: auto;
  }

  .rule-card {
    padding: 22px 18px;
  }
}
