:root {
  --ink: #17150f;
  --graphite: #222019;
  --muted: #746b5b;
  --milk: #fff8e8;
  --cream: #f6ead0;
  --gold: #f6dc63;
  --gold-dark: #d0a928;
  --green: #596b3b;
  --line: rgba(34, 32, 25, 0.13);
  --shadow: 0 20px 50px rgba(34, 32, 25, 0.14);
  --radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--milk);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(246, 220, 99, 0.2), transparent 34rem),
    linear-gradient(180deg, #fff9e9 0%, #fffaf0 44%, #f7ead0 100%);
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(23, 21, 15, 0.94);
  color: var(--milk);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(246, 220, 99, 0.4);
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 22px;
  color: var(--gold);
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 248, 232, 0.75);
}

.main-nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-size: 15px;
  color: rgba(255, 248, 232, 0.82);
}

.main-nav a:hover {
  color: var(--gold);
}

.header-actions,
.hero-actions,
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-actions {
  flex-wrap: nowrap;
}

.button,
.cart-button,
.filters button,
.icon-button,
.link-button {
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(208, 169, 40, 0.24);
}

.button-light {
  background: rgba(255, 248, 232, 0.12);
  color: var(--milk);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero .button-ghost,
.final-cta .button-ghost {
  color: var(--milk);
  border-color: rgba(255, 248, 232, 0.28);
}

.cart-button {
  height: 46px;
  min-width: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.cart-icon {
  font-size: 20px;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
  padding: clamp(30px, 4vw, 48px) clamp(18px, 6vw, 76px) clamp(24px, 3vw, 36px);
  background:
    linear-gradient(90deg, rgba(23, 21, 15, 0.98) 0%, rgba(23, 21, 15, 0.93) 42%, rgba(23, 21, 15, 0.72) 100%),
    url("../assets/farm-story.svg") center / cover;
  color: var(--milk);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 78px 0 auto auto;
  width: 44vw;
  height: 44vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(246, 220, 99, 0.16), transparent 62%);
  pointer-events: none;
}

.hero-content,
.hero-media {
  position: relative;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(38px, 3.8vw, 48px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p,
.final-cta p {
  max-width: 720px;
  color: rgba(255, 248, 232, 0.78);
  font-size: 17px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  border-left: 3px solid var(--gold);
  padding: 10px 0 10px 14px;
  color: rgba(255, 248, 232, 0.86);
  font-size: 13px;
}

.hero-media {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.benefits,
.catalog-section,
.reviews,
.final-cta,
.section-grid {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 6vw, 86px);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: #efe3c8;
  color: var(--ink);
}

.benefits article {
  min-height: 178px;
  padding: 22px 18px;
  background: #fffaf0;
  text-align: center;
}

.benefits span {
  color: var(--gold-dark);
  font-weight: 900;
}

.benefits h2 {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.15;
}

.benefits p {
  font-size: 13px;
  line-height: 1.45;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.story img,
.fair img {
  border-radius: 14px;
  box-shadow: var(--shadow);
}

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

.section-head p {
  margin-bottom: 0;
}

.section-head span {
  color: var(--gold-dark);
  font-weight: 800;
}

.filters button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: #fffef8;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 800;
}

.filters button.is-active {
  background: var(--ink);
  color: var(--gold);
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fffdf5;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(34, 32, 25, 0.07);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream);
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
}

.qty-row,
.cart-row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-row button,
.cart-row-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff8e8;
  font-weight: 900;
  cursor: pointer;
}

.qty-row input {
  width: 64px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: #fff;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 220, 99, 0.2);
}

.delivery {
  background: #fffdf5;
}

.delivery-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 14px;
  background: var(--ink);
  color: var(--milk);
  box-shadow: var(--shadow);
}

.delivery-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.05;
}

.delivery-card p {
  color: rgba(255, 248, 232, 0.78);
}

.payment {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.fair {
  background: #1d1a13;
  color: var(--milk);
}

.fair p {
  color: rgba(255, 248, 232, 0.74);
}

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

.review-list article {
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fffdf5;
  border: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.45;
}

.final-cta {
  background:
    linear-gradient(90deg, rgba(23, 21, 15, 0.92), rgba(23, 21, 15, 0.74)),
    url("../assets/farm-story.svg") center / cover;
  color: var(--milk);
}

.final-cta h2 {
  max-width: 840px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 6vw, 86px);
  background: var(--ink);
  color: rgba(255, 248, 232, 0.76);
}

.footer-brand strong {
  color: var(--gold);
}

.site-footer p {
  margin: 0;
  color: inherit;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(23, 21, 15, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  width: min(100%, 460px);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  padding: 24px;
  background: #fffdf5;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow: auto;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-head h2 {
  margin-bottom: 6px;
  font-size: 34px;
}

.cart-head p,
.cart-summary p {
  margin: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 14px;
}

.empty-cart {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--muted);
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-row strong {
  display: block;
  margin-bottom: 5px;
}

.cart-row small {
  color: var(--muted);
}

.cart-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--cream);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
}

.link-button {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--green);
  font-weight: 900;
}

.order-form {
  display: grid;
  gap: 12px;
}

.order-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

@media (min-width: 1200px) {
  body {
    padding-right: 340px;
  }

  .site-header {
    right: 340px;
    gap: 14px;
    min-height: 74px;
  }

  .site-header .button-light {
    display: none;
  }

  .main-nav {
    gap: 18px;
    font-size: 14px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    font-size: 12px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 34px;
  }

  .hero-media,
  .hero-media img {
    min-height: 300px;
  }

  .cart-drawer {
    top: 82px;
    left: auto;
    bottom: 0;
    width: 340px;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
  }

  .cart-panel {
    width: 340px;
    transform: none;
    background: #17150f;
    color: var(--milk);
    border-left: 1px solid rgba(246, 220, 99, 0.18);
  }

  .cart-head p,
  .cart-row small,
  .cart-summary p {
    color: rgba(255, 248, 232, 0.72);
  }

  .cart-row {
    border-bottom-color: rgba(255, 248, 232, 0.14);
  }

  .cart-summary {
    background: rgba(255, 248, 232, 0.08);
  }

  .order-form input,
  .order-form textarea {
    background: rgba(255, 248, 232, 0.95);
  }

  .icon-button[data-cart-close] {
    display: none;
  }

  .empty-cart {
    background: rgba(255, 248, 232, 0.08);
    color: rgba(255, 248, 232, 0.75);
  }
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

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

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
  }

  .brand small,
  .button-light {
    display: none;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-facts,
  .benefits,
  .products,
  .review-list {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .filters button {
    flex: 0 0 auto;
  }
}

/* Catalog-first layout inspired by the kurochka01.ru reference. */
:root {
  --accent-red: #ba003a;
  --page-gray: #f4f5f9;
}

body {
  padding-right: 0;
  background: var(--page-gray);
}

main {
  display: flex;
  flex-direction: column;
}

.site-header {
  right: auto;
  min-height: 72px;
  padding: 16px clamp(22px, 6.8vw, 98px);
  background: #fff;
  color: #25262b;
  backdrop-filter: none;
}

.brand {
  gap: 12px;
}

.brand img {
  width: 36px;
  height: 36px;
  border: 0;
}

.brand strong {
  font-size: 20px;
  font-weight: 500;
  color: #25262b;
}

.brand small {
  display: none;
}

.main-nav {
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #111217;
}

.main-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
}

.main-nav a.is-active {
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--accent-red);
}

.worktime {
  display: grid;
  margin-left: auto;
  font-size: 13px;
  line-height: 1.08;
  color: #111217;
}

.worktime strong {
  font-size: 14px;
  font-weight: 500;
}

.phone-link {
  font-size: clamp(20px, 2vw, 24px);
  color: #111217;
  white-space: nowrap;
}

.cart-button {
  height: 40px;
  min-width: 56px;
  border-radius: 999px;
  background: #292a2d;
  color: #fff;
}

.cart-icon {
  font-size: 15px;
}

.hero,
.benefits,
.story {
  display: none;
}

.catalog-section {
  order: -1;
  padding: 30px clamp(22px, 6.8vw, 98px) 48px;
  background: var(--page-gray);
}

.catalog-section .section-head {
  display: block;
  margin-bottom: 28px;
}

.catalog-section .section-head > div:first-child {
  display: none;
}

.filters {
  gap: 10px;
}

.filters button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #2a2b2f;
  font-size: 18px;
  font-weight: 400;
}

.filters button.is-active {
  background: #292a2d;
  color: #fff;
}

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

.product-card {
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  padding: 16px;
}

.product-card img {
  aspect-ratio: 1 / 0.92;
  border-radius: 12px;
  background: #111;
}

.product-body {
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  padding: 12px 0 0;
}

.product-body > div:first-child {
  grid-column: 1 / -1;
}

.product-body h3 {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.2;
  color: #2a2b2f;
}

.product-body p {
  margin-bottom: 8px;
  color: #87878d;
  font-size: 16px;
  line-height: 1.35;
}

.qty-row {
  display: none;
}

.product-card .button-primary {
  grid-column: 1;
  grid-row: 2;
  width: 46px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  background: #292a2d;
  color: #fff;
  box-shadow: none;
  font-size: 0;
}

.product-card .button-primary::before {
  content: "\25A3";
  font-size: 14px;
}

.product-meta {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  color: #292a2d;
  font-size: 18px;
  font-weight: 800;
}

.product-meta small {
  display: none;
}

.product-meta span::before {
  content: "\00B1 ";
}

.cart-drawer {
  background: rgba(17, 18, 23, 0.42);
}

.cart-panel {
  background: #fff;
  color: #25262b;
  transform: translateX(100%);
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.delivery,
.payment,
.fair,
.reviews,
.final-cta {
  padding-left: clamp(22px, 6.8vw, 98px);
  padding-right: clamp(22px, 6.8vw, 98px);
}

@media (min-width: 1200px) {
  body {
    padding-right: 0;
  }

  .site-header {
    right: auto;
  }

  .cart-drawer {
    inset: 0;
    display: flex;
    width: auto;
    opacity: 0;
    pointer-events: none;
  }

  .cart-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .cart-panel {
    width: min(100%, 460px);
    height: 100%;
    margin-left: auto;
    border-left: 0;
  }

  .icon-button[data-cart-close] {
    display: inline-grid;
  }
}

@media (max-width: 1100px) {
  .worktime,
  .phone-link {
    display: none;
  }

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

@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px;
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .catalog-section {
    padding: 22px 14px 36px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .filters button {
    flex: 0 0 auto;
    min-height: 38px;
    font-size: 16px;
  }

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

/* Premium color and icon polish. */
:root {
  --accent-red: #6f1d35;
  --accent-red-deep: #461220;
  --premium-ink: #18171b;
  --premium-muted: #777176;
  --premium-line: #e8e1d6;
  --premium-card: #fbfaf7;
  --premium-chip: #f3efe8;
  --premium-gold: #b99655;
  --page-gray: #fff;
}

body {
  background: #fff;
  color: var(--premium-ink);
}

.site-header {
  border-bottom: 1px solid var(--premium-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--premium-ink);
}

.brand img {
  box-shadow: 0 0 0 1px rgba(70, 18, 32, 0.1), 0 8px 18px rgba(24, 23, 27, 0.08);
}

.brand strong,
.phone-link,
.worktime {
  color: var(--premium-ink);
}

.main-nav a.is-active {
  background: var(--accent-red);
  box-shadow: 0 10px 22px rgba(111, 29, 53, 0.16);
}

.main-nav a:hover {
  color: var(--accent-red);
}

.cart-button,
.product-card .button-primary {
  background: var(--premium-ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(24, 23, 27, 0.13);
}

.cart-button:hover,
.product-card .button-primary:hover {
  background: var(--accent-red-deep);
}

.cart-button svg,
.product-card .button-primary svg,
.icon-button svg,
.cart-row-controls svg,
.qty-row svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-icon {
  display: inline-grid;
  place-items: center;
}

.cart-icon svg {
  width: 18px;
  height: 18px;
}

.catalog-section {
  background: #fff;
}

.filters button {
  background: var(--premium-chip);
  color: var(--premium-ink);
}

.filters button.is-active {
  background: var(--premium-ink);
  color: #fff;
}

.product-card {
  background: var(--premium-card);
  border: 1px solid rgba(232, 225, 214, 0.75);
  box-shadow: 0 16px 34px rgba(24, 23, 27, 0.055);
}

.product-card img {
  box-shadow: inset 0 0 0 1px rgba(24, 23, 27, 0.04);
}

.product-body h3 {
  color: var(--premium-ink);
}

.product-body p {
  color: var(--premium-muted);
}

.product-card .button-primary {
  display: inline-grid;
  place-items: center;
  font-size: 0;
}

.product-card .button-primary::before {
  content: none;
}

.product-meta {
  color: var(--premium-ink);
}

.product-meta span::before {
  color: var(--premium-gold);
}

.cart-drawer {
  background: rgba(24, 23, 27, 0.46);
}

.cart-panel {
  background: #fff;
  color: var(--premium-ink);
  box-shadow: -24px 0 60px rgba(24, 23, 27, 0.18);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  background: var(--premium-chip);
  color: var(--premium-ink);
}

.icon-button:hover {
  background: var(--accent-red);
  color: #fff;
}

.cart-row-controls button,
.qty-row button {
  display: inline-grid;
  place-items: center;
  border-color: var(--premium-line);
  background: #fff;
  color: var(--premium-ink);
}

.cart-row-controls button:hover,
.qty-row button:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.cart-summary,
.empty-cart {
  background: var(--premium-chip);
}

.link-button,
.form-status {
  color: var(--accent-red);
}

.order-form input,
.order-form textarea {
  border-color: var(--premium-line);
}

.button-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 12px 24px rgba(111, 29, 53, 0.18);
}

.button-primary:hover {
  background: var(--accent-red-deep);
}

.delivery,
.payment,
.reviews {
  background: #fff;
}

.delivery-card,
.final-cta {
  background: var(--premium-ink);
}

.review-list article {
  background: var(--premium-card);
  border-color: var(--premium-line);
}

/* Darker premium pass: remove beige warmth and lock readable contrast. */
:root {
  --accent-red: #d7a928;
  --accent-red-deep: #a77b12;
  --premium-ink: #111116;
  --premium-graphite: #202027;
  --premium-muted: #6f727a;
  --premium-line: #dfe1e7;
  --premium-card: #ffffff;
  --premium-chip: #eef0f5;
  --premium-panel: #15151b;
  --premium-panel-soft: #202029;
  --premium-gold: #d7a928;
}

html,
body {
  background: #fff;
  color: var(--premium-ink);
}

p,
.product-body p,
.section-head p,
.cart-head p,
.cart-row small,
.cart-summary p,
.site-footer p {
  color: var(--premium-muted);
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--premium-line);
}

.main-nav a.is-active,
.button-primary {
  background: var(--accent-red);
  color: var(--premium-ink);
}

.main-nav a:hover,
.link-button,
.form-status {
  color: var(--accent-red);
}

.cart-button,
.filters button.is-active,
.product-card .button-primary {
  background: var(--premium-ink);
  color: #fff;
}

.cart-button:hover,
.product-card .button-primary:hover,
.button-primary:hover {
  background: var(--premium-gold);
  color: var(--premium-ink);
}

.catalog-section,
.delivery,
.payment,
.reviews {
  background: #fff;
}

.filters button {
  background: var(--premium-chip);
  color: var(--premium-ink);
}

.product-card,
.review-list article {
  background: var(--premium-card);
  border: 1px solid var(--premium-line);
  box-shadow: 0 18px 40px rgba(17, 17, 22, 0.07);
}

.product-body h3,
.product-meta,
.review-list article {
  color: var(--premium-ink);
}

.product-meta span::before {
  color: var(--premium-gold);
}

.check-list li::before {
  background: var(--premium-gold);
  box-shadow: 0 0 0 4px rgba(215, 169, 40, 0.16);
}

.delivery-card,
.fair,
.final-cta,
.site-footer {
  background: var(--premium-panel);
  color: #fff;
}

.delivery-card strong,
.fair h2,
.final-cta h2,
.site-footer strong {
  color: #fff;
}

.delivery-card p,
.fair p,
.final-cta p,
.site-footer,
.site-footer p {
  color: rgba(255, 255, 255, 0.76);
}

.final-cta {
  background:
    linear-gradient(90deg, rgba(17, 17, 22, 0.96), rgba(17, 17, 22, 0.86)),
    url("https://images.unsplash.com/photo-1642102903996-cdad15f5dcdd?auto=format&fit=crop&q=80&w=1600") center / cover;
}

.final-cta .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.final-cta .button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cart-panel {
  background: #fff;
}

.cart-summary,
.empty-cart,
.icon-button {
  background: var(--premium-chip);
}

.order-form input,
.order-form textarea,
.qty-row input {
  background: #fff;
  color: var(--premium-ink);
  border-color: var(--premium-line);
}

.company-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(54px, 7vw, 92px) clamp(22px, 6.8vw, 98px);
  background:
    linear-gradient(90deg, rgba(17, 17, 22, 0.96) 0%, rgba(17, 17, 22, 0.88) 48%, rgba(17, 17, 22, 0.66) 100%),
    url("../assets/market-wings.png") center / cover;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.company-section h2 {
  max-width: 820px;
  color: #fff;
}

.company-section p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.company-points {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.company-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.company-photo-strip img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  border: 1px solid rgba(215, 169, 40, 0.34);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.company-points article {
  padding: 20px;
  border: 1px solid rgba(215, 169, 40, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.company-points strong {
  display: block;
  margin-bottom: 8px;
  color: var(--premium-gold);
  font-size: 20px;
}

.company-points span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

@media (max-width: 820px) {
  .company-section {
    grid-template-columns: 1fr;
    padding: 44px 18px;
  }
}

.filters button.is-active {
  background: var(--premium-gold);
  color: var(--premium-ink);
}

.company-section {
  display: grid;
  order: 0;
}

.documents-section {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 6vw, 86px);
  background: #fff;
  color: var(--premium-ink);
}

.documents-head {
  margin-bottom: 24px;
}

.documents-head p {
  max-width: 760px;
  color: var(--premium-muted);
}

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

.documents-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(215, 169, 40, 0.08), transparent 42%),
    #fff;
  box-shadow: 0 18px 38px rgba(17, 17, 22, 0.07);
}

.documents-grid h3 {
  margin: 0 0 14px;
  color: var(--premium-ink);
  font-size: 22px;
}

.documents-grid p,
.documents-grid li {
  color: var(--premium-muted);
  line-height: 1.6;
}

.documents-grid p {
  margin: 0 0 12px;
}

.documents-grid p:last-child {
  margin-bottom: 0;
}

.documents-grid ul {
  margin: 0;
  padding-left: 18px;
}

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

.documents-note {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(215, 169, 40, 0.34);
  border-radius: 14px;
  background: var(--premium-chip);
  color: var(--premium-ink);
  line-height: 1.55;
}

.site-footer a {
  color: var(--premium-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-legal-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--premium-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 22, 0.64);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.legal-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.legal-panel {
  width: min(1120px, 100%);
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(215, 169, 40, 0.24);
  border-radius: 18px;
  background: #fff;
  color: var(--premium-ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(12px);
  transition: transform 0.22s ease;
}

.legal-modal.is-open .legal-panel {
  transform: translateY(0);
}

.legal-panel .cart-head {
  margin-bottom: 20px;
  color: var(--premium-ink);
}

.legal-panel .cart-head p {
  margin: 8px 0 0;
  color: var(--premium-muted);
}

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

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

@media (max-width: 680px) {
  .documents-section {
    padding: 44px 18px;
  }

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

  .documents-grid article {
    min-height: auto;
    padding: 20px;
  }

  .legal-modal {
    padding: 10px;
  }

  .legal-panel {
    max-height: 92vh;
    border-radius: 14px;
  }
}

/* Premium product-led hero. */
.hero {
  order: -2;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 56px;
  padding: 40px clamp(22px, 6.8vw, 98px) 46px;
  background:
    linear-gradient(112deg, rgba(17, 17, 22, 0.98) 0%, rgba(17, 17, 22, 0.94) 50%, rgba(17, 17, 22, 0.8) 100%),
    url("../assets/market-wings.png") center / cover;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 112px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.98));
  pointer-events: none;
  z-index: 0;
}

.hero-content,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: #fff;
  font-size: 66px;
  line-height: 0.94;
  font-weight: 850;
}

.hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.58;
}

.hero .button {
  min-height: 52px;
  padding-inline: 24px;
  border-radius: 999px;
  font-size: 15px;
}

.hero .button-primary {
  background: var(--premium-gold);
  color: var(--premium-ink);
  box-shadow: 0 18px 42px rgba(215, 169, 40, 0.28);
}

.hero .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.hero .button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 34px;
}

.hero-facts li {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(215, 169, 40, 0.32);
  border-left: 3px solid var(--premium-gold);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

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

.hero-facts strong {
  margin-bottom: 7px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.hero-facts span {
  font-size: 13px;
  line-height: 1.35;
}

.hero-media {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1fr 0.52fr;
  grid-template-rows: 1fr 0.72fr;
  gap: 14px;
  overflow: visible;
  box-shadow: none;
}

.hero-photo {
  overflow: hidden;
  border: 1px solid rgba(215, 169, 40, 0.3);
  border-radius: 22px;
  background: #111116;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.hero-photo-main {
  grid-row: 1 / 3;
}

.hero-photo-main img {
  object-position: 46% 48%;
}

.hero-photo-side img {
  object-position: 48% 42%;
}

.hero-photo-bottom img {
  object-position: 48% 52%;
}

.catalog-section {
  order: 0;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-top: 46px;
  }

  .hero h1 {
    max-width: 680px;
    font-size: 58px;
  }

  .hero-media {
    min-height: 460px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 34px 18px 48px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hero-facts li {
    min-height: auto;
  }

  .hero-media {
    height: 390px;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 0.68fr;
  }

  .hero-photo img {
    min-height: 0;
  }

  .hero-photo {
    border-radius: 16px;
  }

  .hero-photo-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
