:root {
  --bg: #f6f3ed;
  --surface: #fffaf2;
  --surface-2: #efe7d8;
  --text: #1d241c;
  --muted: #66705f;
  --line: #dfd5c4;
  --green: #326235;
  --green-2: #244927;
  --accent: #c86d3c;
  --shadow: 0 18px 45px rgba(45, 58, 35, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

button { cursor: pointer; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(246, 243, 237, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(50, 98, 53, .14);
}

.brand, .phone, .primary-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-contact {
  display: grid;
  gap: 1px;
  text-align: right;
}

.header-contact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.phone {
  color: var(--green-2);
  font-weight: 700;
}

.instagram-link,
.original-instagram {
  color: #b81a83;
  font-weight: 800;
  text-decoration: none;
}

.instagram-link {
  white-space: nowrap;
}

.cart-button,
.primary,
.secondary,
.primary-link,
.icon-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
}

.cart-button,
.primary,
.primary-link {
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.cart-button span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
}

.primary,
.secondary {
  padding: 0 16px;
}

button:disabled,
select:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.primary:disabled {
  background: #9b9b9b;
}

.secondary {
  background: #eee5d6;
  color: var(--green-2);
  font-weight: 700;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  grid-template-areas:
    "title media"
    "actions actions";
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  gap: clamp(24px, 3vw, 36px);
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 48px);
}

.hero-title,
.hero-actions {
  max-width: 680px;
}

.hero-title {
  grid-area: title;
  align-self: center;
}

.hero-actions {
  grid-area: actions;
  grid-column: 1 / -1;
  align-self: start;
  max-width: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
}

.original-instagram {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 20px;
}

.promo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid rgba(50, 98, 53, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 250, 242, .94), rgba(238, 229, 213, .94));
  box-shadow: 0 12px 28px rgba(43, 51, 35, .08);
}

.promo-strip > div {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 82px;
  padding: 16px clamp(14px, 3vw, 28px);
  border-right: 1px solid rgba(50, 98, 53, .14);
  background: transparent;
}

.promo-strip > div:last-child {
  border-right: 0;
}

.promo-strip span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.promo-strip s,
.promo-strip strong {
  color: var(--green-2);
  font-size: 24px;
  line-height: 1.1;
}

.order-terms strong {
  font-size: clamp(20px, 3vw, 28px);
}

.delivery-note {
  margin: 0 0 20px;
  color: var(--green-2);
  font-size: 18px;
  font-weight: 800;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(50, 98, 53, .16);
  border-bottom: 1px solid rgba(50, 98, 53, .16);
  background: linear-gradient(90deg, rgba(50, 98, 53, .12), rgba(255, 250, 242, .88), rgba(200, 109, 60, .12));
}

.marquee-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: marquee 28s linear infinite;
}

.marquee span {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 28px;
  color: var(--green-2);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.marquee span::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(200, 109, 60, .55);
  transform: translateY(-50%);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 250, 242, .7);
  color: var(--green-2);
  font-weight: 700;
}

.hero-media {
  grid-area: media;
  justify-self: end;
  width: min(100%, 520px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.hero-media picture {
  display: block;
}

.hero-media img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.catalog-head p:last-child {
  max-width: 520px;
  color: var(--muted);
}

@media (min-width: 981px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "actions";
    gap: 22px;
    width: min(100%, 1320px);
  }

  .hero-title {
    max-width: none;
    text-align: center;
  }

  .hero-title h1 {
    margin-bottom: 0;
  }

  .hero-media {
    justify-self: center;
    width: min(100%, 1120px);
    border-radius: 8px;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .hero-actions {
    width: min(100%, 1120px);
    justify-self: center;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 48px) 56px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(43, 51, 35, .08);
}

.product-gallery {
  position: relative;
  background: #fff;
}

.product-gallery img {
  display: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

.product-gallery img.active {
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(50, 98, 53, .18);
  border-radius: 999px;
  background: rgba(255, 250, 242, .88);
  color: var(--green-2);
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(43, 51, 35, .12);
  transform: translateY(-50%);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--green);
  color: #fff;
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-dots {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.gallery-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
}

.gallery-dots button.active {
  background: var(--green);
}

.product-gallery:not(:has([data-gallery-next])) .gallery-dots {
  display: none;
}

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

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.availability-note {
  margin: 6px 0 0;
  color: #a44728;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.price {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  line-height: 1.15;
}

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

.price strong {
  color: var(--green);
  font-size: 22px;
}

.qty-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  align-items: center;
  gap: 12px;
}

.qty-row label {
  color: var(--muted);
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

select,
input {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.details {
  color: #3f473b;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.details p {
  white-space: normal;
}

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

.tiers li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}

.product-actions {
  display: grid;
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.cart-panel.open {
  display: block;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 18, .45);
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(520px, 100%);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: var(--surface);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .18);
}

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

.icon-button {
  width: 44px;
  background: #efe5d5;
  color: var(--text);
  font-size: 28px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.cart-item h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.remove-item {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #f2e4dc;
  color: #8d3a1d;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 22px;
}

.minimum-note {
  border: 1px solid rgba(163, 58, 36, .24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(242, 228, 220, .55);
  color: #8d3a1d;
  font-weight: 700;
}

.minimum-note.success {
  border-color: rgba(50, 98, 53, .24);
  background: rgba(50, 98, 53, .1);
  color: var(--green-2);
}

.cart-next-actions {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 10px;
  margin: -2px 0 2px;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(255, 250, 242, .82), var(--surface) 38%);
}

.cart-empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
}

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

.order-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.submit {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note.error {
  color: #a33a24;
}

.form-note.success {
  color: var(--green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px clamp(16px, 4vw, 48px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.bottom-order-note {
  display: grid;
  gap: 12px;
  margin: 0 clamp(16px, 4vw, 48px) 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.bottom-order-note p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.site-footer a {
  color: var(--green-2);
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.thanks > div {
  max-width: 560px;
  text-align: center;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "actions";
    min-height: auto;
    width: 100%;
  }

  .hero-media {
    max-width: 560px;
  }

  .hero-title {
    align-self: start;
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: start;
  }

  .brand span:last-child {
    max-width: 130px;
    line-height: 1.15;
  }

  .phone {
    display: none;
  }

  .header-contact {
    display: none;
  }

  .instagram-link {
    display: none;
  }

  .hero {
    padding-top: 26px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .original-instagram {
    margin-bottom: 18px;
    font-size: 17px;
  }

  .promo-strip {
    grid-template-columns: 1fr;
  }

  .promo-strip > div {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid rgba(50, 98, 53, .14);
  }

  .promo-strip > div:last-child {
    border-bottom: 0;
  }

  .promo-strip s,
  .promo-strip strong {
    font-size: 21px;
  }

  .catalog-head {
    display: grid;
    align-items: start;
  }

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

  .product-actions {
    grid-template-columns: 1fr;
  }

  .qty-row {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    padding: 18px;
  }

  .cart-next-actions {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: start;
  }
}

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

  .marquee-track {
    animation: none;
    transform: none;
  }
}
