:root {
  --surface: #fbf9f4;
  --surface-low: #f5f3ee;
  --surface-container: #f0eee9;
  --surface-high: #e4e2dd;
  --text: #322f2b;
  --text-soft: #53433e;
  --muted: #86736d;
  --outline: #d8c2bb;
  --terracotta: #c67d63;
  --terracotta-dark: #894b34;
  --gold: #d1a054;
  --sage: #8a8e75;
  --white: #ffffff;
  --wildberries: #7c35ec;
  --ozon: #075dff;
  --shadow: 0 18px 44px rgba(50, 47, 43, 0.08);
  --shadow-strong: 0 28px 70px rgba(50, 47, 43, 0.14);
  --container: 1280px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
.brand {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 80px);
  background: rgba(251, 249, 244, 0.88);
  border-bottom: 1px solid rgba(216, 194, 187, 0.25);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  background: rgba(251, 249, 244, 0.96);
  box-shadow: 0 8px 26px rgba(50, 47, 43, 0.06);
}

.brand {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.main-nav a {
  position: relative;
  color: var(--text);
  font-family: "Merriweather", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--terracotta);
  content: "";
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--terracotta-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-container);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

.hero-section {
  min-height: clamp(600px, 78vh, 880px);
  display: flex;
  align-items: center;
  padding: 96px clamp(20px, 5vw, 80px);
  background:
    linear-gradient(90deg, rgba(162, 148, 125, 0.18) 0%, rgba(251, 249, 244, 0.02) 46%, rgba(97, 73, 50, 0.18) 100%),
    linear-gradient(90deg, rgba(251, 249, 244, 0.58), rgba(251, 249, 244, 0.18)),
    url("assets/hero-baskets.jpg") right bottom / min(760px, 62vw) auto no-repeat,
    #aa9e8c;
}

.hero-card {
  width: min(820px, 100%);
  padding: clamp(28px, 4vw, 60px);
  border-radius: 16px;
  background: rgba(251, 249, 244, 0.64);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(14px);
}

.hero-card h1 {
  max-width: 650px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.16;
}

.hero-card p {
  max-width: 690px;
  margin-top: 28px;
  color: var(--text-soft);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(50, 47, 43, 0.12);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-outline {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(251, 249, 244, 0.42);
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 64px);
}

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

.section-heading h2,
.story-copy h2,
.order-form h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.28;
}

.section-heading p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 14px;
}

.text-link {
  color: var(--terracotta-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

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

.collection-tile {
  position: relative;
  aspect-ratio: 460 / 360;
  grid-column: span 4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.collection-tile.wide {
  aspect-ratio: 948 / 360;
  grid-column: span 8;
}

.collection-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bestsellers-section {
  max-width: none;
  background: var(--surface-container);
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}

.bestsellers-section .section-heading,
.product-strip {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.slider-controls,
.social-row {
  display: flex;
  gap: 12px;
}

.icon-btn,
.social-btn,
.favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--outline);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.icon-btn {
  width: 44px;
  height: 44px;
}

.icon-btn svg,
.social-btn svg,
.favorite svg,
.sort-select svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover,
.social-btn:hover,
.favorite:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 330px);
  gap: 28px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scrollbar-width: thin;
}

.mini-product,
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mini-product {
  min-height: 520px;
}

.mini-product img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.favorite {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  background: rgba(251, 249, 244, 0.9);
}

.favorite svg {
  width: 18px;
  height: 18px;
}

.favorite.active {
  color: var(--terracotta-dark);
  background: #fff1ec;
}

.mini-product-body {
  padding: 18px 20px 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 5px 12px 0;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(138, 142, 117, 0.16);
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
}

.mini-product h3,
.product-card h3 {
  font-size: 18px;
  line-height: 1.35;
}

.mini-product p,
.product-card .price {
  margin-top: 8px;
  color: var(--terracotta);
  font-size: 18px;
  font-weight: 800;
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.story-copy {
  padding: clamp(36px, 6vw, 88px);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-copy > p:not(.eyebrow) {
  margin-top: 24px;
  color: var(--text-soft);
  max-width: 480px;
}

.story-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.story-facts strong,
.story-facts span {
  display: block;
}

.story-facts strong {
  margin-bottom: 6px;
  font-weight: 800;
}

.story-facts span {
  color: var(--text-soft);
  font-size: 13px;
}

.story-panel img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.order-section {
  padding-top: 0;
}

.order-form {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px) clamp(22px, 8vw, 190px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.order-form > p {
  max-width: 760px;
  margin: 14px auto 36px;
  color: var(--text-soft);
}

.order-form label {
  display: block;
  margin-top: 20px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.order-form label span {
  display: block;
  margin-bottom: 8px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: #fbf7f0;
  color: var(--text);
  outline: 0;
  transition: border 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 48px;
  padding: 0 16px;
}

textarea {
  resize: vertical;
  min-height: 150px;
  padding: 16px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(198, 125, 99, 0.14);
}

.order-form .btn {
  margin-top: 34px;
  border-radius: 999px;
}

.form-status {
  min-height: 24px;
  margin-top: 16px;
  color: var(--terracotta-dark);
  font-weight: 700;
}

.site-footer {
  padding: 52px clamp(20px, 5vw, 80px) 32px;
  border-top: 1px solid rgba(216, 194, 187, 0.42);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(160px, 1fr));
  gap: clamp(36px, 7vw, 110px);
  max-width: var(--container);
  margin: 0 auto;
}

.site-footer p {
  max-width: 320px;
  margin-top: 22px;
  color: var(--text-soft);
}

.site-footer h2 {
  margin-bottom: 20px;
  font-family: "Merriweather", Georgia, serif;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
}

.site-footer a:not(.brand):not(.social-btn) {
  display: block;
  margin: 12px 0;
  color: var(--text-soft);
  font-weight: 600;
}

.copyright {
  max-width: none;
  margin: 48px auto 0;
  color: var(--muted);
  text-align: center;
}

.social-btn {
  width: 48px;
  height: 48px;
  color: var(--text-soft);
  background: var(--surface-container);
  border: 0;
}

.catalog-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(78px, 11vw, 130px) 20px 58px;
  text-align: center;
}

.catalog-hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.18;
}

.catalog-hero p {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--text-soft);
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.75;
}

.catalog-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 64px) 112px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 62px;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-group > span {
  margin-right: 10px;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
}

.filter-pill {
  min-width: 86px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid rgba(134, 115, 109, 0.18);
  border-radius: 999px;
  background: var(--surface-container);
  color: rgba(83, 67, 62, 0.66);
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-1px);
}

.sort-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 294px;
  min-height: 68px;
  gap: 18px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(50, 47, 43, 0.07);
}

.sort-select svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.sort-select select {
  height: 48px;
  padding: 0 30px 0 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 760px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px 30px 30px;
}

.product-card h3 {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.32;
}

.product-card .description {
  margin-top: 18px;
  color: var(--text-soft);
  font-family: "Merriweather", Georgia, serif;
  font-size: 17px;
  line-height: 1.58;
}

.product-card .price {
  margin-top: 22px;
  font-size: 28px;
}

.market-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
  padding-top: 30px;
}

.market-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 8px;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.market-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(50, 47, 43, 0.16);
}

.market-link.wb {
  background: var(--wildberries);
}

.market-link.ozon {
  background: var(--ozon);
}

@media (max-width: 1080px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    min-height: 680px;
  }

  .story-panel {
    grid-template-columns: 1fr;
  }

  .story-panel img {
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 70px 16px auto;
    display: grid;
    gap: 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 16px 14px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero-section {
    align-items: end;
    min-height: 640px;
    padding-top: 140px;
    background-size: 92vw auto;
    background-position: right top;
  }

  .hero-card {
    padding: 28px;
  }

  .hero-card h1 {
    font-size: 36px;
  }

  .section-heading,
  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .collection-tile,
  .collection-tile.wide {
    grid-column: 1;
  }

  .catalog-toolbar {
    margin-bottom: 34px;
  }

  .sort-select {
    width: 100%;
    min-width: 0;
  }

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

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

  .form-grid,
  .story-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding-inline: 20px;
  }

  .brand {
    font-size: 24px;
  }

  .hero-section {
    min-height: 620px;
    padding: 220px 20px 32px;
    background-size: 118vw auto;
  }

  .hero-card {
    border-radius: 8px;
  }

  .hero-card p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions,
  .market-actions {
    grid-template-columns: 1fr;
    display: grid;
    width: 100%;
  }

  .btn,
  .market-link {
    width: 100%;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .bestsellers-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .product-strip {
    grid-auto-columns: minmax(240px, 82vw);
  }

  .mini-product {
    min-height: 480px;
  }

  .mini-product img {
    height: 280px;
  }

  .story-copy,
  .order-form {
    padding: 28px 20px;
  }

  .story-panel img {
    min-height: 300px;
  }

  .catalog-hero {
    padding-top: 58px;
  }

  .filter-group {
    align-items: flex-start;
  }

  .filter-group > span {
    flex-basis: 100%;
  }

  .filter-pill {
    flex: 1 1 42%;
    padding-inline: 16px;
  }

  .product-card {
    min-height: auto;
  }

  .product-card-body {
    padding: 24px 20px 22px;
  }

  .product-card .description {
    font-size: 15px;
  }

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