:root {
  --color-dark: #222222;
  --color-cream: #f4f0e8;
  --color-cream-soft: #f7f4ec;
  --color-red: #5a1712;
  --color-red-dark: #42100d;
  --color-text: #4f1712;
  --color-muted: #78706a;
  --color-line: #b8aaa0;
  --content-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--color-text);
  background: #ffffff;
  font-family: Marion, Georgia, "Times New Roman", serif;
  line-height: 1.35;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-cream);
}

.section-inner {
  width: min(var(--content-width), calc(100% - 86px));
  margin: 0 auto;
}

.top-offer {
  position: relative;
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 54px;
  color: #f8f5ee;
  background: var(--color-dark);
  text-align: center;
}

.top-offer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.top-offer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.top-offer__close {
  position: absolute;
  top: 50%;
  right: 31px;
  width: 24px;
  height: 24px;
  color: #f8f5ee;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero {
  position: relative;
  min-height: 770px;
  overflow: hidden;
  color: #ffffff;
  background: #161110;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.hero__actions {
  position: absolute;
  top: 32px;
  right: 62px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-link {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.icon-link--search::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  content: "";
}

.icon-link--search::after {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 8px;
  height: 1.4px;
  content: "";
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.icon-link--account::before,
.icon-link--account::after {
  position: absolute;
  left: 50%;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.icon-link--account::before {
  top: 2px;
  width: 8px;
  height: 8px;
}

.icon-link--account::after {
  bottom: 2px;
  width: 16px;
  height: 10px;
}

.icon-link--favorite::before {
  content: "☆";
  font-size: 24px;
  line-height: 20px;
}

.icon-link--cart::before {
  position: absolute;
  right: 4px;
  bottom: 2px;
  left: 4px;
  height: 13px;
  border: 1.4px solid currentColor;
  content: "";
}

.icon-link--cart::after {
  position: absolute;
  top: 2px;
  left: 7px;
  width: 8px;
  height: 8px;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.brand-logo {
  position: absolute;
  top: 31px;
  left: 50%;
  z-index: 2;
  display: block;
  width: 224px;
  color: #ffffff;
  transform: translateX(-50%);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  position: absolute;
  top: 156px;
  left: 50%;
  z-index: 2;
  display: flex;
  width: min(700px, calc(100% - 320px));
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: #ffffff;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.main-nav a {
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.hero__content {
  position: absolute;
  right: 0;
  bottom: 120px;
  left: 0;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 34px;
  color: #ffffff;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.button--ghost {
  color: #ffffff;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button--wide {
  width: 292px;
  justify-content: center;
}

.section-title {
  margin: 0;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.favorites {
  padding: 67px 0 85px;
  background: var(--color-cream);
}

.favorite-carousel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 62px;
}

.favorite-card {
  min-width: 0;
  text-align: center;
}

.favorite-card__visual {
  position: relative;
  display: flex;
  height: 444px;
  align-items: center;
  justify-content: center;
  background: var(--color-cream-soft);
}

.favorite-card__visual img {
  width: auto;
  max-width: 76%;
  max-height: 68%;
  object-fit: contain;
}

.favorite-card:nth-child(2) .favorite-card__visual img {
  max-height: 60%;
}

.favorite-card:nth-child(3) .favorite-card__visual img {
  max-height: 66%;
}

.favorite-card__heart {
  position: absolute;
  top: 14px;
  right: 15px;
  z-index: 1;
  width: 24px;
  height: 24px;
  color: var(--color-red);
  background: transparent;
  font-size: 24px;
  line-height: 20px;
}

.favorite-card__cart {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 53px;
  color: #ffffff;
  background: var(--color-red);
  font-size: 15px;
}

.favorite-card h3,
.product-card h3,
.category-card,
.personal-card span {
  font-weight: 700;
}

.favorite-card h3 {
  margin: 30px 0 8px;
  font-size: 16px;
}

.favorite-card p {
  margin: 0;
  font-size: 18px;
}

.slider-arrow {
  position: absolute;
  top: 184px;
  right: -31px;
  z-index: 3;
  display: grid;
  width: 88px;
  height: 78px;
  place-items: center;
  color: #ffffff;
  background: var(--color-red);
  font-size: 52px;
  line-height: 1;
}

.slider-arrow:hover {
  background: var(--color-red-dark);
}

.progress-line {
  position: relative;
  height: 1px;
  margin-top: 55px;
  background: var(--color-line);
}

.progress-line span {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 1px;
  background: var(--color-red);
}

.products {
  padding: 12px 0 96px;
}

.product-tabs {
  display: flex;
  gap: 44px;
  margin-bottom: 61px;
}

.product-tabs__item {
  color: rgba(79, 23, 18, 0.62);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.product-tabs__item--active {
  color: var(--color-text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 12px;
}

.product-card {
  min-width: 0;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.27;
  background: var(--color-cream-soft);
  object-fit: cover;
}

.product-card h3 {
  margin: 19px 0 7px;
  font-size: 14px;
  line-height: 1.18;
  text-transform: uppercase;
}

.product-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1;
}

.collection-banner {
  position: relative;
  min-height: 824px;
  overflow: hidden;
  color: #ffffff;
  background: #9d6b26;
}

.collection-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.collection-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(69, 35, 9, 0.36) 0%, rgba(69, 35, 9, 0.08) 54%, rgba(69, 35, 9, 0.02) 100%);
}

.collection-banner__content {
  position: absolute;
  bottom: 124px;
  left: max(43px, calc((100% - var(--content-width)) / 2 + 86px));
  z-index: 1;
}

.collection-banner__content p {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.collection-banner h2 {
  max-width: 505px;
  margin: 0 0 28px;
  color: #ffffff;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
}

.collection-banner .button {
  width: 293px;
}

.categories {
  padding: 78px 0 95px;
  background: var(--color-cream);
}

.categories .section-title {
  margin-left: 17px;
}

.category-carousel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 58px;
}

.category-card {
  min-width: 0;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.12;
}

.category-card--active {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.category-card__image {
  display: flex;
  height: 189px;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
  background: var(--color-cream-soft);
}

.category-card__image img {
  width: auto;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.slider-arrow--categories {
  top: 69px;
  right: -31px;
}

.personal {
  padding: 2px 0 102px;
}

.personal .section-title {
  margin-left: 34px;
}

.personal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 63px;
}

.personal-card {
  min-width: 0;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.2;
}

.personal-card img {
  width: 100%;
  aspect-ratio: 1 / 1.46;
  object-fit: cover;
}

.personal-card span {
  display: block;
  margin-top: 21px;
}

.site-footer {
  color: #f2f0ea;
  background: var(--color-dark);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.82fr 0.82fr;
  gap: 110px;
  width: min(var(--content-width), calc(100% - 86px));
  min-width: 0;
  margin: 0 auto;
  padding: 62px 0 56px;
}

.newsletter,
.footer-nav {
  min-width: 0;
}

.newsletter h2,
.footer-nav h2 {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(242, 240, 234, 0.72);
  color: #f2f0ea;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.newsletter p {
  margin: 23px 0 22px;
  color: rgba(242, 240, 234, 0.78);
  font-size: 14px;
  line-height: 1.15;
}

.newsletter__form {
  display: grid;
  grid-template-columns: 1fr 124px;
  width: 386px;
  max-width: 100%;
  height: 38px;
  border: 1px solid rgba(242, 240, 234, 0.85);
}

.newsletter__form input {
  min-width: 0;
  border: 0;
  color: #f2f0ea;
  background: transparent;
  padding: 0 14px;
  font-size: 14px;
}

.newsletter__form input::placeholder {
  color: rgba(242, 240, 234, 0.7);
}

.newsletter__form button {
  color: var(--color-dark);
  background: #f2f0ea;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-logo {
  display: inline-block;
  width: 154px;
  margin-top: 60px;
  color: #f2f0ea;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.copyright {
  margin-top: 102px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav a,
.footer-nav span {
  margin-bottom: 16px;
  color: rgba(242, 240, 234, 0.84);
  font-size: 14px;
  line-height: 1;
}

.footer-nav__spaced {
  margin-top: 57px !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .main-nav {
    width: calc(100% - 120px);
    gap: 20px;
  }

  .hero__actions {
    right: 36px;
  }

  .favorite-carousel,
  .personal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .favorite-card__visual {
    height: 380px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-carousel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slider-arrow--categories {
    top: 205px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 58px 80px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: 100%;
  }

  .section-inner,
  .site-footer__inner {
    width: calc(100% - 32px);
  }

  .top-offer {
    justify-content: flex-start;
    padding: 10px 48px 10px 16px;
    text-align: left;
  }

  .top-offer__close {
    right: 20px;
  }

  .hero {
    min-height: 620px;
  }

  .brand-logo {
    top: 35px;
    left: 16px;
    width: 192px;
    transform: none;
  }

  .hero__actions {
    top: 41px;
    right: 16px;
    gap: 12px;
  }

  .main-nav {
    top: 102px;
    left: 16px;
    width: calc(100% - 32px);
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 20px;
    transform: none;
  }

  .hero__content {
    bottom: 82px;
    justify-items: start;
    padding: 0 16px;
    text-align: left;
  }

  .hero h1 {
    max-width: 540px;
    font-size: 36px;
  }

  .button--wide {
    width: 245px;
  }

  .favorites {
    padding-top: 58px;
  }

  .favorite-carousel,
  .product-grid,
  .personal-grid {
    grid-template-columns: 1fr;
  }

  .favorite-card__visual {
    height: 380px;
  }

  .slider-arrow {
    right: 0;
    width: 64px;
    height: 60px;
  }

  .product-tabs {
    gap: 28px;
  }

  .product-grid {
    gap: 38px;
  }

  .collection-banner {
    min-height: 520px;
  }

  .collection-banner__content {
    bottom: 72px;
    left: 16px;
  }

  .collection-banner h2 {
    font-size: 34px;
  }

  .categories .section-title,
  .personal .section-title {
    margin-left: 0;
  }

  .category-carousel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slider-arrow--categories {
    top: 175px;
  }

  .personal-card img {
    aspect-ratio: 1 / 1.18;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .newsletter__form {
    grid-template-columns: minmax(0, 1fr) 124px;
    width: 100%;
  }

  .copyright {
    margin-top: 56px;
  }
}

@media (max-width: 430px) {
  .top-offer p,
  .main-nav a,
  .button {
    font-size: 12px;
  }

  .icon-link {
    width: 19px;
    height: 19px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .section-title,
  .product-tabs__item {
    font-size: 18px;
  }

  .favorite-card__visual {
    height: 344px;
  }

  .category-carousel {
    grid-template-columns: 1fr;
  }
}
