:root {
  --ink: #191e04;
  --muted: #4e5146;
  --soft: #6a6d60;
  --cream: #f6f1e7;
  --cream-2: #efe8d9;
  --cream-3: #e3d6c2;
  --paper: #fbf8f2;
  --accent: #1c2410;
  --line: rgba(25, 30, 4, 0.14);
  --sale: #7a3428;
  --max: 1280px;
  --head-h: 76px;
  --nav-top: 112px;
  --font: "Outfit", sans-serif;
  --serif: "Source Serif 4", serif;
  --ease: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
}

.skip:focus {
  top: 10px;
}

.wrap {
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 500;
}

.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
}

.topbar {
  background: #171614;
  color: var(--cream);
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 20px;
}

.topbar p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar a {
  border-bottom: 1px solid rgba(246, 241, 231, 0.45);
}

.topbar a:hover {
  border-bottom-color: var(--cream);
}

.header {
  height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 4px;
  min-width: 0;
}

.logo {
  justify-self: start;
  line-height: 0;
}

.logo img {
  display: block;
  height: 58px;
  width: auto;
}

.head-dock {
  display: none;
}

.header-tools {
  justify-self: end;
}

.nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.nav a,
.nav-drop {
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  color: var(--ink);
}

.nav a:hover,
.nav-drop:hover,
body[data-page="sakums"] [data-nav="sakums"],
body[data-page="akcijas"] [data-nav="akcijas"],
body[data-page="par-sain"] [data-nav="par-sain"],
body[data-page="jaunumi"] [data-nav="jaunumi"],
body[data-page="kontakti"] [data-nav="kontakti"],
body[data-page="kategorija"] .nav-drop,
body[data-page="kategorijas"] .nav-drop,
body[data-page="produkts"] .nav-drop {
  border-bottom-color: currentColor;
}

.nav-drop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav a.nav-sale {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
}

.nav-sale .icon {
  width: 0.78em;
  height: 0.78em;
  stroke-width: 1.75;
}

.icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
  stroke-width: 1.5;
}

.icon-chevron {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

.nav-drop svg {
  width: 16px;
  height: 16px;
  transition: transform var(--ease);
}

.has-mega.is-open .nav-drop svg,
.has-mega:hover .nav-drop svg {
  transform: rotate(180deg);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
}

.search-pop {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 18px 0 22px;
}

.search-pop form,
.search-pop #search-results {
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
}

#search-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 8px 0 12px;
  font-size: 18px;
}

.search-hit {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.search-hit img {
  width: 48px;
  height: 60px;
  object-fit: cover;
  background: #efe8dc;
}

.search-empty {
  padding-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.cart-btn,
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-btn svg,
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
}

.nav-toggle {
  display: none;
}

.burger-line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-toggle[aria-expanded="true"] .burger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-head,
.nav-foot {
  display: none;
}

/* Mega menu */

.mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 45;
}

.has-mega {
  position: static;
}

@media (min-width: 980px) {
  :root {
    --head-h: 104px;
  }

  .site-head {
    position: relative;
  }

  .header {
    align-items: stretch;
    height: 104px;
  }

  .site-head .header-brand .logo img {
    height: 80px;
  }

  .site-head .nav a,
  .site-head .nav-drop {
    font-size: 18px;
  }

  .head-dock {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.5s;
  }

  .head-dock.is-in {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  .head-dock:not(.is-in) .nav {
    visibility: hidden;
  }

  .head-dock .header {
    height: 68px;
  }

  .head-dock .header-brand .logo img {
    height: 40px;
  }


  .header-brand,
  .logo,
  .header-tools {
    align-self: center;
  }

  .nav {
    display: flex;
    justify-self: center;
    position: static;
    inset: auto;
    transform: none;
    visibility: visible;
  }

  .nav > ul {
    align-items: stretch;
    height: 100%;
  }

  .nav > ul > li {
    display: flex;
    align-items: center;
  }

  .mega {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0s linear 0.28s;
  }

  .has-mega .nav-drop svg {
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .has-mega.is-open > .mega,
  .has-mega:focus-within > .mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  .mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 18px;
  }
}

.mega-grid {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 380px;
}

.mega-banner {
  position: relative;
  display: block;
  min-height: 380px;
  color: var(--cream);
  overflow: hidden;
}

.mega-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25, 30, 4, 0.78) 0%, rgba(25, 30, 4, 0.08) 58%);
}

.mega-banner-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.mega-banner .eyebrow {
  color: rgba(246, 241, 231, 0.78);
}

.mega-banner strong {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.mega-banner em {
  font-style: normal;
  font-size: 14px;
  color: rgba(246, 241, 231, 0.86);
}

.mega-cta {
  margin-top: 10px;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mega-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 32px;
  padding: 36px 40px 20px;
}

.nav a.mega-head {
  display: inline-block;
  position: relative;
  margin-bottom: 10px;
  padding: 0 0 0 34px;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.mega-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 18px;
  opacity: 0.4;
  background: url("../assets/logo/sain-icon.webp") center / contain no-repeat;
  transform: rotate(-90deg);
}

.mega-col a:not(.mega-head) {
  display: block;
  padding: 7px 0;
  font-size: 15px;
  border-bottom: 0;
}

.mega-col a:hover {
  color: var(--muted);
}

.mega-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mega-foot a:hover {
  color: var(--ink);
}

/* Hero collage */

.hero {
  width: min(var(--max), calc(100% - 80px));
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.28fr) minmax(220px, 0.7fr);
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: min(624px, calc(100vh - var(--head-h) - 20px));
  min-height: 552px;
}

.hero-copy,
.hero-aside {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #efe8d9;
  border-radius: 8px;
  overflow: hidden;
}

.hero-copy {
  grid-row: 1;
  justify-content: flex-end;
  padding: 24px 28px 22px;
}

.hero-aside {
  grid-row: 2;
  justify-content: space-between;
  padding: 22px 28px;
  background: var(--cream-3);
}

.hero h1 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 2.6vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--muted);
}

.hero-links img {
  width: 20px;
  height: 18px;
  object-fit: contain;
  flex: none;
  opacity: 0.4;
  transform: rotate(-90deg);
}

.hero-links a:hover {
  color: var(--ink);
}

.hero-aside .btn {
  margin-top: 16px;
  min-height: 44px;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.hero-aside .btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.hero-stage {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #efe6da;
  border-radius: 8px;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
  transition: opacity 0.55s ease, visibility 0s;
}

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

.hero-stage img {
  position: absolute;
  inset: 0;
}

.hero-slide:hover img,
.hero-tile-photo:hover img {
  transform: scale(1.03);
  transition: transform 0.6s ease;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: rgba(251, 248, 242, 0.88);
  transform: translateY(-50%);
}

.hero-prev {
  left: 14px;
}

.hero-next {
  right: 14px;
}

.hero-prev .icon {
  transform: scaleX(-1);
}

.hero-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots button {
  width: 22px;
  height: 2px;
  background: rgba(25, 30, 4, 0.28);
}

.hero-dots button.is-active {
  background: var(--ink);
}

.hero-stage-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero-tile {
  position: relative;
  display: flex;
  min-height: 0;
  color: var(--ink);
  background: #efe8d9;
  border-radius: 8px;
  overflow: hidden;
}

.hero-tile-photo {
  grid-column: 3;
  grid-row: 1;
  display: block;
  overflow: hidden;
  color: var(--cream);
  background: #1c1814;
}

.hero-tile-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(20, 16, 14, 0.62), rgba(20, 16, 14, 0));
  pointer-events: none;
}

.hero-tile-solid {
  grid-column: 3;
  grid-row: 2;
  align-items: flex-end;
}

.hero-tile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-caption,
.hero-tile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hero-tile-photo .hero-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  padding: 0;
  background: none;
}

.hero-tile-photo .hero-caption strong {
  color: var(--cream);
  font-size: 26px;
}

.hero-tile-copy {
  padding: 22px;
}

.hero-caption span,
.hero-tile .eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.hero-caption strong,
.hero-tile strong {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.hero-caption strong {
  font-size: 22px;
}

.hero-tile strong {
  margin-top: 6px;
  font-size: clamp(26px, 2vw, 32px);
}

.hero-tile-text {
  margin-top: 8px;
  max-width: 22ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.trust-line {
  width: min(var(--max), calc(100% - 80px));
  margin: 22px auto 0;
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--cream);
  border: 1px solid var(--accent);
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn-line {
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-block {
  width: 100%;
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.link-quiet {
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.link-quiet:hover {
  border-bottom-color: var(--ink);
}

/* Benefits */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefits li {
  padding: 32px 36px;
}

.benefits li + li {
  border-left: 1px solid var(--line);
}

.benefits span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--soft);
}

.benefit-title {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.benefits p {
  color: var(--muted);
  max-width: 320px;
}

/* Sections */

.section {
  padding: 108px 0;
}

.home-cats,
.about-home {
  background: var(--cream-2);
}

.home-cats {
  padding-bottom: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(30px, 2.6vw, 36px);
}

.page-head h1,
.block-copy h2,
.prefooter h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(36px, 4vw, 56px);
}

.section-head .eyebrow,
.page-head .eyebrow,
.block-copy .eyebrow {
  margin-bottom: 10px;
}

.bg-deep {
  background: var(--cream-2);
}

.home-cats .section-head {
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

.home-cats .section-head h2 {
  text-align: center;
  font-size: clamp(34px, 3.2vw, 44px);
}

/* Categories */

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

.cat {
  min-width: 0;
}

.cat-plain .cat-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7dfd2;
}

.cat-plain .cat-media::before {
  content: "";
  width: 44px;
  height: 40px;
  opacity: 0.4;
  background: url("../assets/logo/sain-icon.webp") center / contain no-repeat;
  transform: rotate(-90deg);
}

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

.group-empty {
  color: var(--muted);
  font-size: 15px;
  max-width: 42ch;
}

.cat-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #e7dfd2;
}

.cat-grid.is-compact .cat-media {
  aspect-ratio: 1 / 1;
}

.cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cat:hover .cat-media img,
.cat:focus-visible .cat-media img {
  transform: scale(1.04);
}

.cat-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.cat-name {
  display: block;
  min-width: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.cat-go {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.cat-go .icon {
  width: 14px;
  height: 14px;
}

.cat-note {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 13px;
}

.cat:hover .cat-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px 72px;
  align-items: center;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-photos img {
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: var(--cream-2);
}

.about-col img:first-child {
  aspect-ratio: 1;
}

.about-col:first-child img:last-child,
.about-col:last-child img:first-child {
  aspect-ratio: 3 / 4;
}

.about-col:last-child img:last-child {
  aspect-ratio: 1;
}

.about-copy h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 4.4vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.about-copy p:not(.eyebrow) {
  margin-top: 22px;
  max-width: 28em;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.about-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.about-more:hover {
  border-bottom-color: var(--ink);
}

.about-more .icon {
  width: 16px;
  height: 16px;
}

/* Jaunumi spotlight */

.spotlight {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.spotlight-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 640px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--cream);
  text-align: center;
  background: #cfc4b4;
}

.spotlight-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25, 30, 4, 0.62) 0%, rgba(25, 30, 4, 0.08) 52%);
}

.spotlight-copy {
  position: relative;
  z-index: 1;
  padding: 48px 36px 42px;
}

.spotlight-copy h2 {
  max-width: 12ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 3.4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.spotlight-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 15px;
}

.spotlight-go span {
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}

.spotlight-go .icon {
  width: 14px;
  height: 14px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 18px;
}

.spot {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  align-items: center;
}

.spot-media {
  grid-column: 1 / -1;
  display: block;
  aspect-ratio: 1;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f0e8;
}

.spot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.spot-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.spot-price {
  font-size: 14px;
  color: var(--muted);
}

.spot-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.spot-arrow .icon {
  width: 16px;
  height: 16px;
}

.spot:hover .spot-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spot:hover .spot-arrow {
  border-color: var(--ink);
}

/* Products */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px 28px;
}

.product-grid.is-few {
  grid-template-columns: repeat(2, minmax(0, 380px));
}

.card-frame {
  position: relative;
}

.card-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: #efe8dc;
}

.wish-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  border: 0;
}

.card-frame .wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 8px;
  background: var(--sale);
  color: var(--cream);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.wish-btn svg {
  width: 18px;
  height: 18px;
}

.wish-btn.is-saved svg {
  fill: currentColor;
}

.wish-btn-label {
  width: auto;
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 14px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-media.is-wide img,
.gallery img.is-wide {
  object-fit: contain;
}

.card:hover .card-media img,
.card:focus-within .card-media img {
  transform: scale(1.03);
}

.card-info {
  padding-top: 14px;
}

.card-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.card-kicker.is-sale {
  color: var(--sale);
}

.card h3 {
  margin: 4px 0 2px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-note {
  color: var(--soft);
  font-size: 13px;
}

.card-buy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.price {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.price s {
  color: var(--soft);
  margin-right: 6px;
}

.add-btn {
  min-height: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.add-btn:hover,
.add-btn.is-added {
  background: transparent;
  color: var(--ink);
  border-bottom-color: currentColor;
}

/* Editorial */

.editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 620px;
  background: var(--cream-2);
}

.editorial-media {
  position: relative;
  min-height: 460px;
  background: #e7dfd2;
}

.editorial-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-copy {
  display: flex;
  align-items: center;
  padding: 72px 64px;
}

.editorial-copy .inner {
  max-width: 460px;
}

.editorial-copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(36px, 4vw, 56px);
  margin: 12px 0 18px;
}

.editorial-copy p {
  color: var(--muted);
}

.editorial-copy .btn {
  margin-top: 28px;
}

/* Promo */

.promo {
  background: var(--accent);
  color: var(--cream);
}

.promo .wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.promo p {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.promo .btn-light {
  flex: none;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.steps li {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.steps span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--soft);
  margin-bottom: 12px;
}

.steps h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
  max-width: 320px;
}

/* Instagram */

.ig-head {
  margin-bottom: 28px;
}

.ig-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(34px, 3.2vw, 44px);
}

.ig-lead {
  margin-top: 12px;
  max-width: 34em;
  color: var(--muted);
  font-size: 16px;
}

.ig-lead a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.ig-lead a:hover {
  border-bottom-color: var(--ink);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ig-post {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #e7dfd2;
}

.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ig-post:hover img {
  transform: scale(1.04);
}

.ig-play {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(23, 22, 20, 0.55);
}

.ig-play::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent var(--cream);
}

.tt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tt-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  background: #171614;
}

.tt-card.is-active {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.tt-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.tt-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: var(--cream);
}

.tt-sound {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #171614;
  color: var(--cream);
}

.tt-sound svg {
  width: 18px;
  height: 18px;
}

.tt-sound-on {
  display: none;
}

.tt-card.is-sound .tt-sound-off {
  display: none;
}

.tt-card.is-sound .tt-sound-on {
  display: block;
}

@media (max-width: 720px) {
  .ig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tt-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .tt-card {
    flex: 0 0 68%;
    scroll-snap-align: start;
  }
}

/* Prefooter */

.prefooter {
  background: var(--cream-2);
  color: var(--ink);
  margin-top: 0;
  padding: 72px 0 88px;
}

.prefooter :focus-visible {
  outline-color: var(--ink);
}

.prefooter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.prefooter .eyebrow {
  color: var(--soft);
  margin-bottom: 12px;
}

.prefooter h2 {
  max-width: 520px;
}

.prefooter-lead {
  margin-top: 16px;
  max-width: 420px;
  color: var(--muted);
}

.prefooter .btn-light {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.prefooter .btn-light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}

.news-form {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.news-form input {
  flex: 1;
  min-width: 0;
  height: 56px;
  background: transparent;
  border: 0;
  color: var(--ink);
}

.news-form input::placeholder {
  color: var(--soft);
}

.news-form button {
  flex: none;
  margin-bottom: 8px;
}

.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--soft);
}

.form-success {
  margin-top: 12px;
  color: var(--ink);
  font-size: 22px;
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.prefooter .form-success {
  color: var(--ink);
}

/* Footer */

.footer {
  padding: 72px 0 28px;
  background: #171614;
  color: var(--cream);
  border-top: 1px solid rgba(246, 241, 231, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer .logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer .logo img {
  height: 148px;
  filter: invert(1) hue-rotate(180deg);
}

.footer-brand p {
  color: rgba(246, 241, 231, 0.72);
  max-width: 280px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.footer .footer-social li + li {
  margin-top: 0;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 241, 231, 0.28);
  border-radius: 50%;
  color: var(--cream);
}

.footer-social a:hover {
  background: var(--cream);
  color: #171614;
  text-decoration: none;
}

.footer-social .icon {
  width: 16px;
  height: 16px;
}

.footer h2 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}

.footer li + li {
  margin-top: 8px;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  color: rgba(246, 241, 231, 0.62);
  font-size: 13px;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #171614;
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.35s,
    background-color var(--ease);
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s,
    background-color var(--ease);
}

.to-top:hover {
  background: var(--ink);
}

.to-top .icon {
  transform: rotate(180deg);
}

/* Drawer */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 30, 4, 0.46);
  z-index: 50;
}

.overlay[hidden],
.drawer[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(420px, 100%);
  height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.drawer-head,
.drawer-foot {
  padding: 20px 22px;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.ship-note {
  padding: 12px 22px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.drawer-lines {
  flex: 1;
  overflow: auto;
  padding: 8px 22px 20px;
}

.line {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.line img {
  width: 84px;
  height: 104px;
  object-fit: cover;
  background: #efe8dc;
}

.line h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.line h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.line-price {
  margin: 4px 0 10px;
  font-size: 14px;
}

.line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qty {
  display: inline-flex;
  border: 1px solid var(--line);
}

.qty button,
.qty-input {
  width: 36px;
  height: 36px;
  text-align: center;
  background: transparent;
  border: 0;
}

.qty-input {
  width: 32px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.remove-btn {
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.remove-btn:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.empty-cart {
  padding: 36px 0;
  color: var(--muted);
}

.empty-cart a {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.totals {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--muted);
}

.totals strong {
  color: var(--ink);
  font-weight: 500;
}

.totals.total {
  margin: 8px 0 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}

.drawer-foot .btn + .btn {
  margin-top: 8px;
}

/* Interior pages */

.page-head {
  padding: 64px 0 12px;
}

.page-head h1 {
  max-width: 760px;
}

.page-lead {
  margin-top: 16px;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.page-section {
  padding: 28px 0 88px;
}

.catalog {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 48px 40px;
  align-items: start;
}

.cat-side {
  position: sticky;
  top: calc(var(--head-h) + 20px);
}

.cat-side .eyebrow {
  margin-bottom: 8px;
}

.cat-side nav > a,
.cat-side-sub a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.cat-side nav > a[aria-current="page"] {
  font-weight: 500;
}

.cat-side-sub {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  padding-left: 14px;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-side-sub-inner {
  min-height: 0;
  overflow: hidden;
}

.cat-branch.is-open > .cat-side-sub {
  grid-template-rows: 1fr;
}

.cat-branch-row {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.cat-branch-row > a {
  flex: 1;
  min-width: 0;
  padding: 9px 0;
}

.cat-branch-toggle {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.cat-branch-toggle .icon {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  transform: rotate(-90deg);
}

.cat-branch.is-open .cat-branch-toggle .icon {
  transform: none;
}

.cat-side-sub a {
  color: var(--muted);
  font-size: 14px;
  border-bottom-color: transparent;
  padding: 6px 0;
}

.cat-side a:hover {
  color: var(--ink);
}

.catalog-main .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group + .group {
  margin-top: 56px;
}

.group h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  scroll-margin-top: calc(var(--head-h) + 18px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 13px;
}

.crumbs a:hover {
  color: var(--ink);
}

/* Product page */

.product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding: 36px 0 24px;
  align-items: start;
}

.gallery {
  position: relative;
  display: grid;
  gap: 12px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #efe8dc;
}

.product-buy h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  margin: 8px 0 12px;
}

.product-lead {
  color: var(--muted);
  max-width: 460px;
}

.product-price {
  margin: 22px 0;
  font-size: 20px;
}

.buy-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.buy-row .qty-input {
  width: 64px;
  height: 52px;
  border: 1px solid var(--ink);
}

.buy-row .btn {
  flex: 1;
}

.specs {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.specs div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.specs dt {
  color: var(--soft);
}

.prose {
  max-width: 680px;
  padding: 12px 0 72px;
  color: var(--muted);
}

.prose p + p {
  margin-top: 14px;
}

.related {
  padding-bottom: 88px;
}

/* Story / contact / news */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.story-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #efe8dc;
}

.story p + p,
.note p + p {
  margin-top: 14px;
}

.story p,
.note p,
.contact-copy p {
  color: var(--muted);
}

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 56px;
}

.note {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.note h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field span {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  border-radius: 0;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-list {
  margin-top: 28px;
}

.contact-list li + li {
  margin-top: 8px;
}

.order-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 88px;
}

.order-box {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.order-box h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.order-box > p {
  color: var(--muted);
  margin-bottom: 18px;
}

.mail-fallback {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  white-space: pre-wrap;
}

/* Responsive */

@media (max-width: 1100px) {
  .product-grid,
  .catalog-main .product-grid,
  .catalog-main .product-grid.is-few {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cat-side {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
}

@media (max-width: 979px) {
  .header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 68px;
  }

  .header-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  #search-open {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  #wish-open {
    order: 1;
  }

  #cart-open {
    order: 2;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: var(--cream);
    padding: 0;
    overflow: hidden;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.42s;
  }

  .nav.is-open {
    transform: none;
    visibility: visible;
    transition:
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  body.nav-open .header-tools {
    position: fixed;
    top: 0;
    right: 4px;
    z-index: 70;
    height: 68px;
  }

  body.nav-open #search-open {
    visibility: hidden;
  }

  .nav-head,
  .nav-foot {
    display: flex;
  }

  .nav-head {
    flex: none;
    align-items: center;
    height: 68px;
    padding: 0 156px 0 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-head .logo img {
    height: 36px;
    width: auto;
  }

  .nav ul {
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
  }

  .nav > ul > li {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--line);
  }

  .nav > ul > li > a,
  .nav > ul > li > .nav-drop {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    text-align: left;
    min-height: 56px;
    padding: 0 22px;
    font-size: 22px;
    font-family: var(--serif);
    letter-spacing: -0.02em;
    border-bottom: 0;
  }

  .has-mega.is-open > .mega,
  .mega {
    position: static;
    display: none;
    border: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .has-mega.is-open > .mega {
    display: block;
  }

  .mega-grid {
    width: 100%;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mega-banner {
    display: none;
  }

  .mega-main {
    display: block;
  }

  .mega-cols {
    display: block;
    flex: none;
    padding: 0 22px 10px;
  }

  .mega-col + .mega-col {
    margin-top: 2px;
  }

  .nav a.mega-head {
    display: block;
    margin: 12px 0 0;
    padding: 4px 0 4px 34px;
  }

  .mega-col a:not(.mega-head) {
    padding: 6px 0;
    font-size: 16px;
    font-family: var(--font);
    line-height: 1.3;
  }

  .mega-foot {
    display: none;
  }

  .nav-foot {
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--line);
  }

  .nav-foot a:first-child {
    font-size: 20px;
    font-family: var(--serif);
  }

  .nav-foot p {
    color: var(--soft);
    font-size: 14px;
  }

  .nav-foot .btn {
    width: 100%;
    margin-top: 14px;
  }

  .hero {
    width: calc(100% - 40px);
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .hero-copy,
  .hero-stage,
  .hero-tile-photo,
  .hero-tile-solid {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-copy,
  .hero-aside,
  .hero-stage {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero-copy,
  .hero-aside {
    padding: 24px;
  }

  .hero-aside .btn {
    margin-top: 20px;
  }

  .hero-stage {
    min-height: 504px;
  }

  .trust-line {
    width: calc(100% - 40px);
  }

  .about-grid,
  .benefits,
  .steps,
  .prefooter-grid,
  .editorial,
  .product,
  .split,
  .notes,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .benefits li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .editorial-copy {
    padding: 40px 24px 56px;
  }
}

@media (max-width: 720px) {
  .wrap,
  .header,
  .hero,
  .trust-line {
    width: calc(100% - 32px);
  }

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

  .hero-tile-photo,
  .hero-tile-solid {
    grid-column: 1;
    min-height: 336px;
  }

  .mega-grid {
    width: 100%;
  }

  .header {
    width: calc(100% - 32px);
  }

  .topbar span {
    display: none;
  }

  .logo img {
    height: 46px;
  }

  .footer .logo img {
    height: 120px;
  }

  .section {
    padding: 64px 0;
  }

  .home-cats {
    padding-bottom: 0;
  }

  .section-head,
  .promo .wrap,
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid,
  .product-grid.is-few,
  .catalog-main .product-grid,
  .catalog-main .product-grid.is-few,
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid,
  .spotlight,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-feature {
    min-height: 460px;
  }

  .card-buy {
    align-items: baseline;
  }

  .news-form {
    flex-direction: column;
    align-items: stretch;
    border-bottom: 0;
    gap: 0;
  }

  .news-form input {
    border-bottom: 1px solid var(--line);
  }

  .news-form button {
    margin: 16px 0 0;
  }

  .buy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .buy-row .qty-input {
    width: 100%;
  }

  .specs div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

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

  html,
  body {
    scroll-behavior: auto;
  }

  .card-media img,
  .cat-media img,
  .mega,
  .head-dock,
  .hero-slide,
  .hero-stage img,
  .hero-tile-photo img,
  .nav-drop svg,
  .ig-post img,
  .cat-side-sub,
  .cat-branch-toggle .icon,
  .to-top {
    transition: none;
  }
}
