:root {
  --cream: #faf2eb;
  --cream-deep: #f3e6d8;
  --paper: #fffdfb;
  --ink: #241910;
  --muted: #6d5c52;
  --brown: #682c0c;
  --gold: #c6a56c;
  --gold-deep: #b08d52;
  --line: #eadfd3;
  --shadow: 0 18px 40px rgba(60, 36, 16, 0.08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Open Sans", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  background: var(--cream);
  border-bottom: 1px solid transparent;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 150px;
  padding: 8px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 28px;
}
.logo { display: flex; justify-content: center; }
.nav-left, .nav-right, .nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 22px;
  align-items: center;
}
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-links a {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--brown);
}
.lang-link { font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.logo img { width: 210px; height: auto; }
.nav-toggle {
  display: none;
  background: #fff;
  border: 0;
  cursor: pointer;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
}
.burger { width: 28px; display: grid; gap: 5px; justify-items: center; }
.burger i { display: block; width: 28px; height: 3px; background: #000; }
.burger i:nth-child(2) { width: 22px; }
.social {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
}
.social svg { width: 18px; height: 18px; }
.cart-link {
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brown);
  margin-left: 8px;
}
.cart-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.cart-count {
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
}
.cart-count[hidden] { display: none; }

.hero {
  height: min(800px, calc(100vh - 150px));
  min-height: 560px;
  background: #e7d7c8 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 72px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 61px;
  padding: 0 28px;
  border-radius: 0;
  border: 2px solid #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #000;
}
.hero-catalog {
  width: 294px;
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-sand { background: #e2b791; color: #fff; border-color: #fff; }
.btn-sand:hover { background: #d7a97a; }
.btn:hover { background: var(--cream); }
.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  border-radius: 999px;
  letter-spacing: 0.14em;
}
.btn-gold:hover { background: var(--gold-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a2b22; }
.btn-line { background: transparent; border-color: var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.section { padding: 64px 24px; }
.section-cream { background: var(--cream); }
.section-tight { padding-bottom: 8px; }
.advantages { padding-top: 28px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.center { text-align: center; }
.section h2 {
  font-size: 40px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
  color: #a09b96;
  margin: 0 0 36px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}
.card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-media {
  position: relative;
  background: #f6f1eb;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover img { transform: scale(1.04); }
.wish {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
  line-height: 0;
}
.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0 2px;
  text-align: center;
}
.price {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  text-align: center;
}
.price s { color: var(--muted); margin-right: 8px; }
.sku { color: var(--muted); font-size: 13px; margin: 0; }
.stock-out { color: #8a3b2a; font-size: 13px; margin: 4px 0 0; }

.pills { display: grid; gap: 16px; max-width: 760px; margin: 0 auto 36px; }
.pill {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  padding: 18px 24px;
  font-family: var(--serif);
  letter-spacing: 0.16em;
  font-size: 18px;
  text-transform: uppercase;
}
.pill:hover { background: var(--gold-deep); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 36px; }
.chip {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  background: #fff;
}
.chip:hover, .chip[aria-current="page"] { border-color: var(--gold); background: var(--cream); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}
.split img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img { width: 100%; max-height: 760px; object-fit: cover; }
.about-kicker { display: none; }
.about-title {
  font-size: 68px;
  line-height: 1;
  font-weight: 500;
  color: #a09b96;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.about-copy .prose p { font-size: 15px; line-height: 1.65; }
.about-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
.prose p { margin: 0 0 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.adv { text-align: center; padding: 8px 12px; }
.adv-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--brown);
}
.adv h3 { font-size: 22px; margin: 0 0 8px; }
.adv p { margin: 0; color: var(--muted); }

.partner {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.partner input, .partner textarea {
  width: 100%;
  border: 1px solid #000;
  background: transparent;
  padding: 14px 16px;
  border-radius: 0;
  font-family: var(--serif);
  font-size: 16px;
}
.phone-field { display: grid; grid-template-columns: 88px 1fr; border: 1px solid #000; }
.phone-field span {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  border-right: 1px solid #000;
}
.phone-field input { border: 0; }
.partner .btn { width: 100%; }
.order-form input, .order-form textarea, .order-form select {
  width: 100%;
  border: 1px solid #e4d5c6;
  background: #fff;
  padding: 14px 16px;
  border-radius: 4px;
}
.partner textarea, .order-form textarea { min-height: 120px; resize: vertical; }
.note { color: var(--muted); font-size: 14px; }

.article { max-width: 820px; }
.article h1 { font-size: 40px; margin: 0 0 18px; }
.article h2 { font-size: 26px; letter-spacing: 0; text-transform: none; margin: 28px 0 10px; }
.article p { margin: 0 0 12px; }
.crumbs { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.crumbs a { color: var(--brown); }

.product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: start;
}
.gallery-main { background: var(--cream); }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 74px; height: 74px; object-fit: cover; }
.product h1 { font-size: 36px; margin: 0 0 8px; }
.product .price { font-size: 28px; font-family: var(--serif); margin: 8px 0 16px; }
.desc ul { padding-left: 18px; }
.desc p { margin: 0 0 10px; }

.order-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.cart-lines { display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; background: var(--cream); }
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { width: 28px; height: 28px; border: 0; background: #fff; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; line-height: 28px; }
.total { font-family: var(--serif); font-size: 24px; }

.site-footer { background: var(--cream); padding: 56px 24px 28px; }
.footer-grid {
  max-width: var(--max);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-footer h2 { font-size: 14px; letter-spacing: 0.14em; margin: 0 0 12px; }
.site-footer a { display: block; text-decoration: none; margin: 6px 0; }
.site-footer a.social { display: inline-flex; margin-right: 8px; }
.site-footer a:hover { text-decoration: underline; }
.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #e6d9cc;
  color: var(--muted);
  font-size: 14px;
}
.footer-logo { width: 120px; margin-bottom: 10px; }

.cookie {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100% - 24px));
  background: var(--cream);
  border: 1px solid #eadfd3;
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
  z-index: 30;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 8px 0 14px; font-size: 14px; }
.cookie a { color: #c4552b; }
.cookie-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.image-row { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.image-row img { width: min(560px, 100%); height: auto; }
.reviews img { margin: 0 auto; max-width: 720px; }
.hero-catalog:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

@media (max-width: 980px) {
  .product-grid, .adv-grid { grid-template-columns: 1fr 1fr; }
  .split, .product, .order-layout, .footer-grid, .about-layout { grid-template-columns: 1fr; }
  .header-inner {
    grid-template-columns: 58px 1fr 58px;
    grid-template-areas: ". logo burger";
    min-height: 96px;
    padding: 10px 16px;
    gap: 0;
  }
  .nav-left, .nav-right { display: none; }
  .logo { grid-area: logo; }
  .logo img { width: 150px; }
  .nav-toggle { display: grid; grid-area: burger; justify-self: end; }
  .site-header.nav-open .header-inner {
    grid-template-areas:
      ". logo burger"
      "menu menu menu"
      "side side side";
  }
  .site-header.nav-open .nav-left,
  .site-header.nav-open .nav-right {
    display: flex;
    justify-content: flex-start;
    padding: 8px 4px;
  }
  .site-header.nav-open .nav-left { grid-area: menu; flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-header.nav-open .nav-right { grid-area: side; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 14px; }
  .site-header.nav-open .nav-extra { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-header.nav-open .cart-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  .hero {
    height: auto;
    min-height: calc(100svh - 96px);
    padding-bottom: 78px;
    background-position: center center;
  }
  .hero-catalog, .hero-catalog:hover { background: #fff; color: #000; }
  .about-title { display: none; }
  .about-kicker {
    display: block;
    position: absolute;
    left: 16px;
    bottom: 8px;
    margin: 0;
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  }
  .about-actions { align-items: stretch; }
  .about-actions .btn { width: 100%; }
  .section h2 { font-size: 34px; }
}

@media (max-width: 640px) {
  .product-grid, .adv-grid { grid-template-columns: 1fr; }
  .section { padding: 42px 16px; }
  .section h2 { font-size: 34px; }
  .article h1 { font-size: 30px; }
  .price { font-size: 30px; }
}
