:root {
  --bg: #f4efe8;
  --bg-soft: #ece3d7;
  --surface: #ffffff;
  --surface-strong: #f7efe2;
  --text: #2e241c;
  --muted: #74675b;
  --border: rgba(46, 36, 28, 0.09);
  --primary: #8f5b3a;
  --primary-dark: #774528;
  --accent: #d2a676;
  --footer: #261c16;
  --shadow: 0 18px 50px rgba(70, 49, 33, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(210, 166, 118, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(166, 125, 92, 0.14), transparent 26%),
    var(--bg);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem 1rem;
  color: var(--text);
}

input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(143, 91, 58, 0.2);
  outline-offset: 2px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  background: rgba(244, 239, 232, 0.88);
  border-bottom: 1px solid rgba(46, 36, 28, 0.05);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand strong,
.section-heading h1,
.section-heading h2,
.hero h1,
.product-card h3,
.steps-grid h3,
.info-card dt,
.site-footer h3,
.cart-header h2,
.modal-header h2 {
  font-family: "Manrope", sans-serif;
}

.brand span {
  display: grid;
  gap: 0.1rem;
}

.brand small,
.section-heading p,
.hero p,
.hero-points,
.product-card p,
.product-card li,
.steps-grid p,
.contact-list p,
.site-footer p,
.site-footer span,
.site-footer a,
.legal-panel p,
.cart-note,
.form-feedback {
  color: var(--muted);
}

.site-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  font-size: 0.96rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(143, 91, 58, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--surface-strong);
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(143, 91, 58, 0.1);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1rem 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
  max-width: 12ch;
}

.hero p {
  max-width: 56ch;
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.hero-points li {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 251, 247, 0.85);
  border: 1px solid var(--border);
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-content: start;
}

.hero-card,
.hero-note,
.panel,
.product-card,
.steps-grid article,
.info-card,
.cart-drawer,
.legal-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-card-main {
  grid-column: 1 / -1;
}

.hero-card-main img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card-main div {
  padding: 1.2rem 1.25rem 1.35rem;
}

.hero-card-main p,
.hero-note p {
  margin: 0.45rem 0 0;
}

.hero-card-accent {
  padding: 1.3rem 1.4rem;
  min-height: 100%;
  background: linear-gradient(135deg, #4f3628, #8f5b3a);
  color: #fff;
}

.hero-card-accent span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.hero-note {
  padding: 1.25rem;
  border-radius: 24px;
}

.hero-note span {
  font-size: 0.60rem;
}


.hero-note p {
  font-size: 0.75rem;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading.left {
  justify-items: start;
  text-align: left;
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
  margin: 0;
  max-width: 60ch;
  line-height: 1.7;
}

.products-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(236, 227, 215, 0.88));
}

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

.product-card {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(70, 49, 33, 0.16);
}

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

.product-body {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
}

.product-body h3,
.product-body p,
.product-body ul {
  margin: 0;
}

.product-body ul {
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.product-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-purchase strong {
  font-size: 1.35rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
}

.qty-control input {
  width: 48px;
  padding: 0;
  border: 0;
  text-align: center;
  background: transparent;
}

.add-cart-btn {
  width: 100%;
}

.steps-section {
  background: var(--bg-soft);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.steps-grid article {
  padding: 1.7rem;
  border-radius: 24px;
}

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: #f6e7d4;
  font-weight: 800;
}

.company-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.info-card,
.panel {
  border-radius: var(--radius-lg);
  padding: 1.7rem;
}

.info-card dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.info-card div {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(46, 36, 28, 0.06);
}

.info-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-card dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.info-card dd {
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list p {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.contact-list strong {
  color: var(--text);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.contact-form,
#order-form {
  display: grid;
  gap: 1rem;
}

.form-feedback {
  min-height: 1.4em;
  margin: 0;
}

.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.92);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-bottom: 0.65rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(17, 24, 39, 0.5);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(440px, 100vw);
  height: 100vh;
  padding: 1.25rem;
  border-radius: 0;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

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

.cart-header,
.modal-header,
.cart-total,
.summary-total,
.cart-line,
.cart-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-items,
[data-order-summary] {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  overflow: auto;
}

.cart-item,
.summary-item {
  padding: 1rem;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid rgba(16, 32, 51, 0.06);
}

.cart-item h3,
.summary-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.cart-item p,
.summary-item p {
  margin: 0;
  color: var(--muted);
}

.cart-line {
  margin-top: 0.9rem;
}

.remove-btn,
.icon-close {
  border: 0;
  background: transparent;
  color: var(--text);
}

.remove-btn {
  color: #b42318;
}

.icon-close {
  font-size: 2rem;
  line-height: 1;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.order-modal {
  width: min(980px, calc(100vw - 24px));
  border: 0;
  border-radius: 28px;
  padding: 0;
  background: transparent;
}

.order-modal::backdrop {
  background: rgba(17, 24, 39, 0.5);
}

.modal-shell {
  border: 0;
  padding: 1.4rem;
  background: var(--surface);
  border-radius: 28px;
}

.order-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 1rem;
  margin-top: 1rem;
}

.summary-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 32, 51, 0.06);
}

.legal-main {
  min-height: calc(100vh - 210px);
}

.legal-wrap {
  max-width: 780px;
}

.legal-panel {
  border-radius: 28px;
}

.legal-panel p {
  margin: 0 0 1rem;
  line-height: 1.75;
}

.legal-panel p:last-child {
  margin-bottom: 0;
}

.sr-only-empty {
  color: var(--muted);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hero-grid,
  .company-grid,
  .contact-grid,
  .order-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 760px) {
  .site-nav:not(.legal-nav) {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .legal-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .header-cta {
    display: none;
  }

  .hero,
  .section {
    padding: 4rem 0;
  }

  .product-grid,
  .steps-grid,
  .field-row,
  .field-row-triple,
  .footer-grid,
  .drawer-actions {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cart-drawer {
    padding: 1rem;
  }
}
