:root {
  color-scheme: light;
  --ink: #241f1b;
  --muted: #6f6258;
  --paper: #fffaf3;
  --panel: #ffffff;
  --rose: #c84d70;
  --moss: #5f7b58;
  --sky: #dbeaf0;
  --gold: #d6a84f;
  --line: #eadfd4;
  --shadow: 0 18px 45px rgba(36, 31, 27, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); letter-spacing: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.8rem); line-height: 0.9; letter-spacing: 0; }
h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.2; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand { font-weight: 850; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; color: var(--muted); font-size: 0.95rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--rose); }

.hero, .commerce-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  min-height: calc(100vh - 70px);
  padding: clamp(36px, 6vw, 84px) clamp(18px, 6vw, 84px);
}

.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 12px; color: var(--rose); font-size: 0.82rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
.slogan { margin: 18px 0 0; color: var(--moss); font-size: clamp(1.25rem, 3vw, 2.2rem); font-weight: 850; line-height: 1.08; }
.hero-text, .section-copy { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.hero-text { max-width: 650px; margin: 24px 0 0; }

.hero-actions, .inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--ink); color: var(--paper); }
.button.secondary { background: transparent; color: var(--ink); }
.button:hover { transform: translateY(-1px); }

.hero-photo, .commerce-image-card {
  width: min(100%, 520px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.commerce-image-card figcaption, .product-card figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
  font-weight: 850;
}
.commerce-image-card, .product-card figure { position: relative; }

.section { padding: clamp(56px, 8vw, 110px) clamp(18px, 6vw, 84px); border-top: 1px solid var(--line); }
.two-column { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 78px); }
.facts, .platform-grid, .feature-grid, .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.facts div, .platform-grid article, .feature-grid article, .stats-grid article, .form-panel, .timeline-list article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(36, 31, 27, 0.06);
}
.facts dt, .stats-grid span { color: var(--muted); font-size: 0.82rem; font-weight: 850; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font-weight: 850; }
.stats-grid strong { display: block; margin-top: 6px; font-size: 2rem; }

.offer-grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.offer-card, .product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(36, 31, 27, 0.08);
}
.offer-card img, .product-card figure { height: 250px; margin: 0; }
.offer-card div, .product-card div { padding: 20px; color: var(--muted); line-height: 1.6; }

.form-panel { display: grid; gap: 14px; max-width: 520px; margin-top: 28px; }
label { display: grid; gap: 7px; font-weight: 800; }
input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.alert { max-width: 520px; padding: 14px; border: 1px solid #e0a0a0; border-radius: 8px; background: #fff1f1; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.admin-nav a { padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); text-decoration: none; font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; }
.timeline-list { display: grid; gap: 10px; margin-top: 18px; }
.timeline-list span, .timeline-list small { display: block; color: var(--muted); margin-top: 4px; }

.image-modal[hidden] { display: none; }
.image-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }
.image-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(36, 31, 27, 0.72); cursor: pointer; }
.image-modal__content { position: relative; z-index: 1; width: min(94vw, 980px); max-height: 90vh; margin: 0; border-radius: 8px; overflow: hidden; background: var(--panel); }
.image-modal__content img { height: min(74vh, 720px); object-fit: contain; background: #111; }
.image-modal__content figcaption { padding: 14px 18px; font-weight: 850; }
.image-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 10px 12px; border: 0; border-radius: 999px; background: var(--paper); font-weight: 850; cursor: pointer; }
.has-image-modal { overflow: hidden; }

.site-footer { padding: 32px clamp(18px, 6vw, 84px); color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .site-header, .site-nav { align-items: flex-start; }
  .site-header, .hero, .commerce-hero, .two-column { grid-template-columns: 1fr; }
  .facts, .platform-grid, .feature-grid, .stats-grid, .offer-grid, .product-grid { grid-template-columns: 1fr; }
  .hero, .commerce-hero { min-height: auto; }
  h1 { font-size: clamp(2.8rem, 16vw, 4.5rem); }
}

