:root {
  color-scheme: dark;
  font-family: Arial, sans-serif;
  color: #f7f2e8;
  background: #11100e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 15%, #49381f 0, transparent 28rem),
    #11100e;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: #d8b36a;
  color: #17130d;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(216, 179, 106, 0.75);
  outline-offset: 3px;
}

#main-content:focus {
  outline: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.logo__image {
  display: block;
  width: 230px;
  height: auto;
}

.menu-link {
  color: #d8b36a;
}

.site-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #756445;
  background: rgba(13, 12, 11, 0.5);
}

.language-switch__button {
  min-width: 40px;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: #c9c2b5;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
}

.language-switch__button[aria-pressed="true"] {
  background: #d8b36a;
  color: #17130d;
}

.language-switch__button:hover:not([aria-pressed="true"]) {
  color: #f7f2e8;
}

.hero {
  display: flex;
  min-height: 70vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: #d8b36a;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  line-height: 0.98;
}

.hero-text {
  margin: 28px 0;
  color: #c9c2b5;
  font-size: 18px;
}

.button {
  display: inline-block;
  padding: 15px 22px;
  border: 1px solid #d8b36a;
  background: #d8b36a;
  color: #17130d;
  font-weight: 700;
}

.button:hover {
  background: transparent;
  color: #d8b36a;
}

.catalog {
  min-height: 50vh;
  padding: 80px max(32px, calc((100% - 1136px) / 2));
  background: #f3eee4;
  color: #17130d;
}

.catalog h2 {
  margin: 0 0 16px;
  font-family: Georgia, serif;
  font-size: 48px;
  font-weight: 400;
}

.catalog-intro {
  margin: 0 0 36px;
  color: #696156;
}

.catalog-search {
  max-width: 520px;
  margin-bottom: 24px;
}

.catalog-search label {
  display: block;
  margin-bottom: 9px;
  color: #403a32;
  font-size: 14px;
  font-weight: 700;
}

.catalog-search__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #b9ac98;
  border-radius: 0;
  background: #fffdf8;
  color: #17130d;
  font: inherit;
  color-scheme: light;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.catalog-search__input::placeholder {
  color: #8a8175;
}

.catalog-search__input:focus {
  border-color: #7c6335;
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 179, 106, 0.35);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.catalog-filters--audience {
  margin-bottom: 18px;
}

.catalog-filter-label {
  margin: 0 0 8px;
  color: #6b6258;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-filter {
  padding: 11px 16px;
  border: 1px solid #b9ac98;
  background: transparent;
  color: #403a32;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.catalog-filter:hover {
  border-color: #7c6335;
}

.catalog-filter[aria-pressed="true"] {
  border-color: #17130d;
  background: #17130d;
  color: #f7f2e8;
}

.catalog-filter:focus-visible {
  outline: 3px solid rgba(216, 179, 106, 0.6);
  outline-offset: 3px;
}

.catalog-favorites {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.catalog-favorites-filter {
  display: inline-flex;
  padding: 11px 16px;
  border: 1px solid #b9ac98;
  background: #fffdf8;
  color: #403a32;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.catalog-favorites-filter:hover {
  border-color: #7c6335;
}

.catalog-favorites-filter[aria-pressed="true"] {
  border-color: #7c6335;
  background: #d8b36a;
  color: #17130d;
}

.favorites-status {
  margin: 0;
  color: #696156;
  font-size: 14px;
}

.catalog-status {
  margin: 0 0 24px;
  color: #696156;
  font-size: 14px;
}

.catalog-empty,
.catalog-noscript {
  margin: 0;
  padding: 28px;
  border: 1px solid #d9d0c0;
  background: #fffdf8;
  color: #696156;
  text-align: center;
}

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

.product-card {
  display: flex;
  padding: 14px;
  border: 1px solid #d9d0c0;
  background: #fffdf8;
  flex-direction: column;
}

.product-card[hidden] {
  display: none;
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  object-fit: cover;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.product-card p {
  margin: 0 0 8px;
  color: #696156;
}

.product-card .product-audience-badge {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 9px;
  background: #eee4d2;
  color: #72582c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
}

.product-meta {
  display: grid;
  gap: 5px;
  margin: 0 0 8px;
}

.product-meta[hidden],
.product-meta__item[hidden] {
  display: none;
}

.product-meta__item {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #696156;
  font-size: 14px;
  line-height: 1.45;
}

.product-meta dt {
  font-weight: 700;
}

.product-meta dt::after {
  content: ":";
}

.product-meta dd {
  margin: 0;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.product-details-button,
.product-favorite-button {
  padding: 11px 16px;
  border: 1px solid #17130d;
  background: transparent;
  color: #17130d;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.product-details-button:hover {
  background: #17130d;
  color: #f7f2e8;
}

.product-favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: #b9ac98;
}

.product-favorite-button:hover {
  border-color: #7c6335;
}

.product-favorite-button[aria-pressed="true"] {
  border-color: #7c6335;
  background: #d8b36a;
  color: #17130d;
}

.favorite-button__icon {
  font-size: 18px;
  line-height: 1;
}

.catalog-favorites-filter:focus-visible,
.product-favorite-button:focus-visible,
.product-details-button:focus-visible,
.product-dialog__close:focus-visible,
.product-dialog__contact:focus-visible,
.contact-action:focus-visible {
  outline: 3px solid rgba(216, 179, 106, 0.7);
  outline-offset: 3px;
}

.product-dialog {
  width: min(920px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid #756445;
  background: #171512;
  color: #f7f2e8;
}

.product-dialog::backdrop {
  background: rgba(17, 16, 14, 0.82);
  backdrop-filter: blur(5px);
}

.product-dialog__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
}

.product-dialog__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-dialog__details {
  display: flex;
  padding: 64px 48px 48px;
  flex-direction: column;
  justify-content: center;
}

.product-dialog__eyebrow {
  margin: 0 0 16px;
  color: #d8b36a;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.product-dialog__audience-badge {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 10px;
  border: 1px solid #756445;
  color: #d8b36a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
}

.product-dialog h2 {
  margin: 0 0 20px;
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  line-height: 1;
}

#product-dialog-description {
  margin: 0 0 28px;
  color: #c9c2b5;
  font-size: 17px;
  line-height: 1.6;
}

.product-dialog__meta {
  gap: 8px;
  margin-bottom: 28px;
}

.product-dialog__meta .product-meta__item {
  color: #c9c2b5;
  font-size: 16px;
}

.product-dialog__meta dt {
  color: #f7f2e8;
}

.product-dialog__contact {
  display: inline-flex;
  align-self: flex-start;
  padding: 14px 18px;
  border: 1px solid #d8b36a;
  background: #d8b36a;
  color: #17130d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

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

.product-dialog__contact:hover {
  background: transparent;
  color: #f7f2e8;
}

.product-dialog__contact--secondary {
  background: transparent;
  color: #f7f2e8;
}

.product-dialog__contact--secondary:hover {
  background: #d8b36a;
  color: #17130d;
}

.product-dialog__close {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid #756445;
  background: #171512;
  color: #f7f2e8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.order-guide {
  padding: 96px max(32px, calc((100% - 1136px) / 2));
  background: #eee7dc;
  color: #17130d;
}

.order-guide__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 40px;
}

.order-guide__eyebrow {
  margin: 0 0 12px;
  color: #7c6335;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.order-guide h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.order-guide__intro {
  max-width: 520px;
  margin: 0;
  color: #5f574c;
  font-size: 18px;
  line-height: 1.6;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: #c9baa5;
  list-style: none;
}

.order-step {
  min-height: 260px;
  padding: 30px;
  background: #f8f4ec;
}

.order-step__number {
  display: block;
  margin-bottom: 44px;
  color: #9a7940;
  font-family: Georgia, serif;
  font-size: 18px;
}

.order-step h3 {
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.order-step p {
  margin: 0;
  color: #62594d;
  line-height: 1.65;
}

.order-guide__link {
  display: inline-flex;
  margin-top: 32px;
  padding: 14px 20px;
  border: 1px solid #17130d;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.order-guide__link:hover {
  background: #17130d;
  color: #f7f2e8;
}

.contact-cta {
  padding: 96px max(32px, calc((100% - 1136px) / 2));
  background: #11100e;
  color: #f7f2e8;
}

.contact-cta__inner {
  padding: 56px;
  border: 1px solid #493d2b;
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 179, 106, 0.18), transparent 22rem),
    #171512;
}

.contact-cta__eyebrow {
  margin: 0 0 16px;
  color: #d8b36a;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.contact-cta h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.contact-cta__text {
  max-width: 620px;
  margin: 24px 0 32px;
  color: #c9c2b5;
  font-size: 18px;
  line-height: 1.6;
}

.contact-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-action {
  display: inline-flex;
  min-width: 220px;
  padding: 15px 22px;
  border: 1px solid #756445;
  background: transparent;
  color: #c9c2b5;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.contact-action:hover:not(:disabled) {
  border-color: #d8b36a;
  color: #f7f2e8;
}

.contact-action:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.contact-action--primary {
  border-color: #d8b36a;
  background: #d8b36a;
  color: #17130d;
}

.contact-action--primary:hover {
  background: transparent;
  color: #f7f2e8;
}

.site-footer {
  padding: 40px max(32px, calc((100% - 1136px) / 2));
  border-top: 1px solid #30291f;
  background: #0d0c0b;
  color: #f7f2e8;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.site-footer__brand p,
.site-footer__copyright {
  margin: 12px 0 0;
  color: #9f978a;
  font-size: 14px;
}

.site-footer__logo {
  display: inline-flex;
}

.site-footer__logo-image {
  display: block;
  width: 210px;
  height: auto;
}

.site-footer__nav {
  display: flex;
  gap: 24px;
  color: #d8b36a;
}

.site-footer__nav a:hover {
  color: #f7f2e8;
}

.site-footer__copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid #30291f;
}

@media (max-width: 600px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }

  .logo {
    max-width: calc(100% - 130px);
  }

  .logo__image {
    width: 190px;
    max-width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .hero {
    min-height: 65vh;
    padding: 56px 20px;
  }

  .catalog {
    padding: 56px 20px;
  }

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

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

  .catalog-filter {
    width: 100%;
  }

  .catalog-filter[data-filter="shoes"] {
    grid-column: 1 / -1;
  }

  .catalog-audience-filter[data-audience-filter="unisex"] {
    grid-column: 1 / -1;
  }

  .catalog-favorites {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .catalog-favorites-filter {
    justify-content: center;
  }

  .order-guide {
    padding: 56px 20px;
  }

  .order-guide__heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }

  .order-steps {
    grid-template-columns: 1fr;
  }

  .order-step {
    min-height: 0;
    padding: 26px 24px;
  }

  .order-step__number {
    margin-bottom: 24px;
  }

  .order-guide__link {
    width: 100%;
  }

  .contact-cta {
    padding: 56px 20px;
  }

  .contact-cta__inner {
    padding: 32px 24px;
  }

  .contact-cta__actions {
    flex-direction: column;
  }

  .contact-action {
    width: 100%;
    min-width: 0;
  }

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

  .product-dialog {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
  }

  .product-dialog__content {
    display: block;
  }

  .product-dialog__image {
    max-height: 52vh;
  }

  .product-dialog__details {
    padding: 32px 24px;
  }

  .product-dialog__contacts,
  .product-dialog__contact {
    width: 100%;
  }

  .product-dialog__contact {
    justify-content: center;
  }

  .site-footer {
    padding: 36px 20px;
  }

  .site-footer__inner {
    display: block;
  }

  .site-footer__nav {
    margin-top: 28px;
    flex-direction: column;
    gap: 14px;
  }

  .site-footer__copyright {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
