:root {
  --red: #ad111d;
  --red-dark: #79101a;
  --red-deep: #5a0d15;
  --ink: #341016;
  --text: #55413c;
  --muted: #8b7269;
  --paper: #fffdf9;
  --soft: #fbf4ec;
  --soft-strong: #f5e8dc;
  --line: #eadacc;
  --gold: #c49a58;
  --green: #587b31;
  --shadow: 0 18px 48px rgba(72, 33, 24, 0.12);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

section[id],
footer[id] {
  scroll-margin-top: 96px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid rgba(234, 218, 204, 0.75);
  backdrop-filter: blur(16px);
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(173, 17, 29, 0.12);
  box-shadow: 0 10px 30px rgba(52, 16, 22, 0.08);
}

.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: 156px;
  height: 70px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.brand img {
  width: 156px;
  height: 156px;
  object-fit: cover;
  object-position: center;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta,
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.header-cta {
  padding: 0 25px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 24px rgba(173, 17, 29, 0.18);
}

.header-cta:hover,
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(173, 17, 29, 0.22);
}

.btn {
  padding: 0 28px;
}

.btn svg,
.text-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 24px rgba(173, 17, 29, 0.16);
}

.btn-secondary {
  color: var(--red);
  background: #fff;
  border-color: rgba(173, 17, 29, 0.24);
}

.btn-secondary:hover {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(173, 17, 29, 0.16);
}

.btn-compact {
  min-height: 44px;
  padding-inline: 22px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  overflow: hidden;
  background: var(--soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(255, 253, 249, 0.98) 0%,
      rgba(255, 253, 249, 0.92) 36%,
      rgba(255, 253, 249, 0.36) 57%,
      rgba(255, 253, 249, 0.05) 100%
    ),
    url("assets/hero.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
}

.hero-inner {
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(100%, 535px);
  padding: 72px 0 92px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  font-weight: 700;
}

h1 {
  max-width: 520px;
  margin-bottom: 22px;
  font-size: 64px;
}

.hero-content p:not(.eyebrow) {
  max-width: 500px;
  margin-bottom: 28px;
  color: #5a4741;
  font-size: 17px;
}

.ornament {
  width: 318px;
  height: 14px;
  margin: 0 0 24px;
  background:
    linear-gradient(var(--gold), var(--gold)) left 50% / 138px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 50% / 138px 1px no-repeat;
  position: relative;
  opacity: 0.72;
}

.ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.features {
  background: #fff8f0;
  border-top: 1px solid rgba(234, 218, 204, 0.82);
  border-bottom: 1px solid rgba(234, 218, 204, 0.82);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  min-height: 166px;
  padding: 30px 28px 28px;
  text-align: center;
  border-right: 1px solid rgba(196, 154, 88, 0.24);
}

.feature:last-child {
  border-right: 0;
}

.feature-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  color: var(--gold);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

.feature p {
  max-width: 210px;
  margin: 0 auto;
  color: #6f5b54;
  font-size: 14px;
  line-height: 1.45;
}

.section-pad {
  padding: 72px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.partners h2,
.about h2 {
  margin-bottom: 0;
  font-size: 38px;
}

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

.product-card {
  min-width: 0;
  padding: 18px 18px 20px;
  border: 1px solid rgba(234, 218, 204, 0.95);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(72, 33, 24, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(173, 17, 29, 0.22);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.product-card h3 {
  margin-bottom: 3px;
  font-size: 20px;
}

.product-card .product-subtitle {
  min-height: 42px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.product-pack {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(88, 123, 49, 0.1);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--red);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--red-dark);
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.partners {
  padding: 44px 0;
  background: var(--soft-strong);
}

.partners-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.partners-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 16px 0 22px;
}

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

.partner-points div {
  min-height: 126px;
  padding: 20px;
  border: 1px solid rgba(196, 154, 88, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.58);
}

.partner-points span {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.partner-points p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 56px;
  align-items: center;
}

.about-copy p:not(.eyebrow) {
  margin: 18px 0 22px;
  font-size: 17px;
}

.about-link {
  justify-content: flex-start;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 178px 178px;
  gap: 14px;
}

.about-gallery img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(72, 33, 24, 0.09);
}

.about-gallery img:first-child {
  grid-row: 1 / 3;
  object-position: center right;
}

.site-footer {
  color: #f9eee2;
  background: var(--red);
}

.footer-inner {
  min-height: 186px;
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 0.7fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: 28px 0;
}

.footer-brand img {
  width: 156px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  margin-bottom: 18px;
}

.footer-brand p,
.privacy-link {
  margin: 0;
  color: rgba(255, 248, 240, 0.76);
  font-size: 13px;
}

.footer-contacts {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.footer-contacts a,
.footer-nav a {
  color: rgba(255, 248, 240, 0.92);
}

.footer-contacts a:hover,
.footer-nav a:hover,
.privacy-link:hover {
  color: #fff;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
}

.privacy-link {
  justify-self: end;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(34, 15, 12, 0.54);
  overscroll-behavior: contain;
}

.modal-overlay[hidden] {
  display: none;
}

.product-dialog,
.contact-dialog {
  position: relative;
  width: min(92vw, 900px);
  max-height: calc(100dvh - 32px);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 24px 80px rgba(52, 16, 22, 0.28);
  overflow: hidden;
}

.product-dialog {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.product-dialog img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
}

.product-dialog > [data-dialog-body] {
  min-height: 0;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 44px 38px;
}

.product-dialog h2 {
  margin-bottom: 14px;
  font-size: 32px;
}

.dialog-lead {
  margin-bottom: 24px;
}

.product-details {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.product-detail {
  padding: 12px 14px;
  border: 1px solid rgba(234, 218, 204, 0.9);
  border-radius: 8px;
  background: var(--paper);
}

.product-detail h3 {
  margin-bottom: 5px;
  color: var(--red);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-detail p {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
}

.product-pack-detail {
  background: rgba(88, 123, 49, 0.08);
}

.contact-dialog {
  width: min(92vw, 480px);
}

.contact-dialog-content {
  padding: 42px 34px 34px;
}

.contact-dialog h2 {
  margin-bottom: 14px;
  font-size: 32px;
}

.contact-dialog p:not(.eyebrow) {
  margin-bottom: 24px;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.dialog-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

:focus-visible {
  outline: 3px solid rgba(196, 154, 88, 0.56);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 138px 1fr auto;
    gap: 20px;
  }

  .primary-nav {
    gap: 20px;
    font-size: 14px;
  }

  h1 {
    font-size: 52px;
  }

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

  .feature-grid,
  .partners-inner,
  .about-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature:nth-child(2) {
    border-right: 0;
  }

  .feature:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(196, 154, 88, 0.24);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 74px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    width: 132px;
    height: 58px;
  }

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

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

  .header-cta {
    order: 2;
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .primary-nav {
    position: fixed;
    inset: 74px 16px auto;
    display: grid;
    justify-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav a {
    padding: 14px 12px;
    border-radius: 6px;
  }

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

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    background: var(--soft);
  }

  .hero,
  .hero-inner {
    min-height: 660px;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(255, 253, 249, 0.98) 0%,
        rgba(255, 253, 249, 0.92) 44%,
        rgba(255, 253, 249, 0.38) 100%
      ),
      url("assets/hero.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 68% center;
  }

  .hero-inner {
    align-items: flex-start;
  }

  .hero-content {
    padding: 54px 0 300px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-content p:not(.eyebrow) {
    font-size: 16px;
  }

  .ornament {
    width: 220px;
    background:
      linear-gradient(var(--gold), var(--gold)) left 50% / 92px 1px no-repeat,
      linear-gradient(var(--gold), var(--gold)) right 50% / 92px 1px no-repeat;
  }

  .section-pad {
    padding: 54px 0;
  }

  .section-head h2,
  .partners h2,
  .about h2 {
    font-size: 32px;
  }

  .partners-inner,
  .about-inner,
  .partner-points {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-template-rows: 220px 160px;
  }

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

  .privacy-link {
    justify-self: start;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 10px;
  }

  .product-dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100dvh - 20px);
  }

  .product-dialog img {
    width: calc(100% - 48px);
    height: 170px;
    min-height: 170px;
    max-height: 170px;
    margin: 18px 24px 0;
    border-radius: 8px;
  }

  .product-dialog > [data-dialog-body] {
    min-height: 0;
    max-height: none;
    padding: 24px 24px 28px;
  }

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

@media (max-width: 620px) {
  .modal-overlay {
    align-items: flex-start;
    padding: 8px;
  }

  .product-dialog {
    width: min(96vw, 900px);
    max-height: calc(100dvh - 16px);
    overflow: hidden;
  }

  .product-dialog img {
    width: calc(100% - 28px);
    height: 112px;
    min-height: 112px;
    max-height: 112px;
    margin: 14px 14px 0;
    border-radius: 8px;
    object-fit: contain;
  }

  .product-dialog > [data-dialog-body] {
    padding: 16px 14px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-dialog h2 {
    margin-bottom: 8px;
    font-size: 25px;
  }

  .dialog-lead {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.45;
  }

  .product-details {
    gap: 8px;
    margin-bottom: 14px;
  }

  .product-detail {
    padding: 10px 12px;
  }

  .header-cta {
    display: none;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(255, 253, 249, 0.99) 0%,
        rgba(255, 253, 249, 0.95) 52%,
        rgba(255, 253, 249, 0.18) 100%
      ),
      url("assets/hero.webp");
    background-repeat: no-repeat;
    background-size:
      100% 100%,
      auto 48%;
    background-position:
      center,
      76% bottom;
  }

  .hero,
  .hero-inner {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 42px;
  }

  h1 {
    font-size: 36px;
  }

  .btn,
  .header-cta {
    width: 100%;
  }

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

  .feature {
    min-height: 0;
    padding: 24px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(196, 154, 88, 0.24);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .product-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    column-gap: 16px;
    align-items: center;
    text-align: left;
  }

  .product-card img {
    grid-row: span 4;
    margin-bottom: 0;
  }

  .product-card .product-subtitle {
    min-height: auto;
    margin-bottom: 6px;
  }

  .product-pack {
    justify-self: start;
    margin-bottom: 8px;
    font-size: 11px;
  }

  .product-card .text-link {
    justify-content: flex-start;
  }

  .about-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 180px);
  }

  .about-gallery img:first-child {
    grid-row: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    width: 116px;
    height: 52px;
  }

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

  .hero::before {
    background-position: 72% center;
  }

  h1 {
    font-size: 32px;
  }

  .section-head h2,
  .partners h2,
  .about h2 {
    font-size: 28px;
  }

  .product-card {
    grid-template-columns: 96px 1fr;
    padding: 14px;
  }

  .product-dialog {
    width: min(94vw, 900px);
    max-height: calc(100dvh - 16px);
  }

  .product-dialog img {
    width: calc(100% - 28px);
    height: 104px;
    min-height: 104px;
    max-height: 104px;
    margin: 14px 14px 0;
  }

  .product-dialog > [data-dialog-body] {
    padding: 14px 14px 18px;
  }

  .product-dialog h2 {
    font-size: 24px;
  }

  .dialog-lead,
  .product-detail p {
    font-size: 14px;
  }
}
