@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-italic-cyrillic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  src: url("./assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("./assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --paper: #f8f7f5;
  --panel: #ebe9e6;
  --ink: #252122;
  --muted: #625d5c;
  --line: #d8d3cf;
  --wine: #692c38;
  --wine-dark: #501e28;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --gutter: clamp(20px, 4.6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
}

[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}

.container {
  width: min(1440px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 1;
  inset: 14px auto auto var(--gutter);
  padding: 10px 14px;
  background: var(--paper);
}

.arrow {
  flex: none;
  color: var(--wine);
  font: 400 16px/1 Arial, sans-serif;
  transition: transform .2s ease;
}

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
}

.header-logo img {
  width: clamp(110px, 11vw, 158px);
  height: auto;
}

.header-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
}

.header-link:last-child { justify-self: end; }
.header-link:hover, .footer-inner a:hover { color: var(--wine); }

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
  padding-block: clamp(26px, 2.8vw, 44px) clamp(27px, 3vw, 48px);
}

.hero-content { container-type: inline-size; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(31px, 10.25cqi, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero h1 em {
  display: inline;
  color: var(--wine);
  font-weight: inherit;
  white-space: normal;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 51px;
  margin-top: 28px;
  padding-inline: 17px;
  background: var(--wine);
  color: white;
  font-size: 13px;
  font-weight: 500;
  transition: background-color .2s ease;
}

.hero-button .arrow { color: inherit; }
.hero-button:hover { background: var(--wine-dark); }
.hero-button:hover .arrow { transform: translateY(3px); }

.hero-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(12px, 1.45vw, 24px);
  align-items: end;
}

.hero-photo { display: block; }

.hero-detail { margin-bottom: clamp(24px, 3.2vw, 48px); }

.hero-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9d6d1;
}

.hero-main .hero-image { max-height: 534px; }

.hero-image img, .product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image img {
  object-position: center 24%;
  transition: transform .45s ease;
}

.hero-detail .hero-image img {
  transform: scale(1.19);
  transform-origin: 50% 39%;
}

.hero-main:hover img { transform: scale(1.04); }
.hero-detail:hover img { transform: scale(1.24); }

.hero-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-height: 43px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 11px;
  line-height: 1.45;
}

.hero-photo:hover .hero-caption { border-color: var(--wine); }
.hero-photo:hover .arrow, .marketplace-link:hover .arrow { transform: translate(2px, -2px); }

.catalog { padding-block: clamp(52px, 7vw, 105px); }

.catalog-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-bottom: clamp(20px, 3vw, 39px);
  border-bottom: 1px solid var(--line);
}

.catalog h2, .about h2 {
  font-family: var(--serif);
  font-size: clamp(53px, 6.4vw, 92px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.05em;
}

.catalog h2 { padding-bottom: 14px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2px clamp(8px, 2vw, 28px);
}

.filters button {
  position: relative;
  min-height: 47px;
  border: 0;
  padding: 8px 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.filters button:hover { color: var(--ink); }

.filters button[aria-pressed="true"] {
  color: var(--wine);
  font-weight: 600;
}

.filters button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--wine);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 58px) clamp(16px, 2.4vw, 36px);
}

.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fdfcfb;
  transition: border-color .2s ease;
}

.product:hover, .product:focus-within { border-color: #bfb5b0; }

.product:target .product-name,
.product-link:hover .product-name { color: var(--wine); }

.product-link { display: block; }

.product-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel);
}

.product-name {
  padding: 14px clamp(12px, 1.25vw, 18px) 16px;
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -.018em;
}

.marketplace-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: auto;
  border-block: 1px solid var(--line);
}

.marketplace-links:has(> .ozon[hidden]) { grid-template-columns: minmax(0, 1fr); }

.product .marketplace-links { border-bottom: 0; }

.marketplace-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 45px;
  padding: 8px clamp(8px, 1vw, 14px);
  font-size: clamp(11px, 1.06vw, 14px);
  font-weight: 500;
  transition: color .2s ease, background-color .2s ease;
}

.marketplace-link:first-child { border-right: 1px solid var(--line); }

.marketplace-link:hover {
  background: #eee8e8;
  color: var(--wine);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 250px;
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.about-logo {
  display: grid;
  place-items: center;
  height: 100%;
  border-right: 1px solid var(--line);
  padding: clamp(26px, 4.7vw, 72px);
}

.about-logo img { width: min(100%, 340px); height: auto; }

.about-content { padding: clamp(25px, 5vw, 72px); }

.about h2 { font-size: clamp(43px, 5vw, 66px); }

.about p {
  max-width: 32ch;
  margin-top: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

@media (max-width: 1050px) {
  .hero-photos { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
  .hero-caption .arrow { font-size: 14px; }
}

@media (max-width: 790px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 32px 21px;
  }

  .hero h1 { font-size: clamp(30px, 9.5cqi, 48px); }
  .hero-detail { margin-bottom: 19px; }
  .hero-button { margin-top: 23px; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 64px; }
  .header-link { font-size: 12px; }

  .hero-photos { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
  .hero-caption { font-size: 10px; }
  .hero-caption .arrow { font-size: 12px; }

  .catalog-header { display: block; }
  .catalog h2 { padding-bottom: 4px; }
  .filters { gap: 4px 15px; }
  .filters button { font-size: 12px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketplace-link { padding-inline: 6px; }
  .marketplace-link .arrow { font-size: 13px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-name { font-size: 17px; }
  .marketplace-link { padding-inline: 11px; font-size: 13px; }

  .about { grid-template-columns: 1fr; }
  .about-logo { border-right: 0; border-bottom: 1px solid var(--line); }
  .about-logo img { width: min(68%, 190px); }
  .footer-inner { min-height: 73px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
