/* ─── Variables ─── */
:root {
  --bg: #F5F3EE;
  --bg-alt: #EDEAE3;
  --fg: #1C1B18;
  --fg-muted: #6B6860;
  --accent: #E07B20;
  --accent-dark: #B8611A;
  --surface: #FFFFFF;
  --border: #D8D4CC;
  --nav-height: 64px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─── */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tag {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
}

/* ─── Hero ─── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 72px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--fg);
  margin-bottom: 20px;
  max-width: 700px;
  letter-spacing: -0.025em;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 1.65;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 36px;
  flex-wrap: wrap;
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  align-self: center;
  margin: 0 8px;
}

/* ─── Problem ─── */
.problem {
  background: var(--fg);
  padding: 80px 32px;
}
.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.problem-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.problem-headline {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  color: #F5F3EE;
  max-width: 640px;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.problem-card {
  background: #2A2923;
  padding: 36px 32px;
}
.problem-icon {
  color: var(--accent);
  margin-bottom: 20px;
}
.problem-card h3 {
  font-size: 1.0625rem;
  color: #F5F3EE;
  margin-bottom: 12px;
}
.problem-card p {
  font-size: 0.9375rem;
  color: #8A8880;
  line-height: 1.65;
}

/* ─── Categories ─── */
.categories {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.categories-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.categories-headline {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  color: var(--fg);
  margin-bottom: 48px;
  max-width: 580px;
  letter-spacing: -0.02em;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.category-card {
  background: var(--bg);
  padding: 32px 28px;
}
.category-icon {
  color: var(--accent);
  margin-bottom: 20px;
}
.category-card h3 {
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 10px;
}
.category-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── Advantages ─── */
.advantages {
  background: var(--bg-alt);
  padding: 80px 32px;
}
.advantages .advantages-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.advantages {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.advantages-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.advantages-headline {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.advantages-body {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}
.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.advantage-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.advantage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}
.advantage-item strong {
  display: block;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.advantage-item div {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.55;
}
.advantage-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-illustration {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.map-region {
  text-align: center;
  position: relative;
}
.map-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  animation: pulse 2.5s ease-in-out infinite;
}
.map-dot-1 { top: -60px; left: -80px; animation-delay: 0s; }
.map-dot-2 { top: -40px; right: -90px; animation-delay: 0.8s; }
.map-dot-3 { bottom: -50px; left: -40px; animation-delay: 1.6s; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}
.map-label {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.map-sublabel {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ─── Trust ─── */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 32px;
}
.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-quote {
  flex: 1;
  min-width: 280px;
}
.quote-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 8px;
  line-height: 1.4;
}
.quote-attr {
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.trust-badges {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.badge {
  text-align: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.badge-title {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}
.badge-sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ─── Closing ─── */
.closing {
  padding: 96px 32px;
  background: var(--fg);
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: #F5F3EE;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.closing-sub {
  font-size: 1.0625rem;
  color: #8A8880;
  line-height: 1.65;
}

/* ─── Footer ─── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fg);
  margin-bottom: 6px;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.footer-contact {
  text-align: right;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.8;
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* ─── Portal Shared ─── */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
}
.page-header {
  margin-bottom: 40px;
}
.page-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  display: inline-block;
  background: var(--surface);
  color: var(--fg);
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--bg-alt); }

/* ─── Catalog ─── */
.catalog-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.catalog-sidebar { }
.category-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.category-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.15s;
}
.category-list a:hover, .category-list a.active {
  background: var(--accent);
  color: white;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.product-image {
  width: 100%;
  height: 120px;
  background: var(--bg-alt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.8125rem;
}
.product-name {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}
.product-desc {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.5;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--fg);
}
.product-unit {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.add-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-body);
}
.add-btn:hover { background: var(--accent-dark); }
.add-btn:disabled { background: var(--fg-muted); cursor: not-allowed; }

/* ─── Cart Badge ─── */
.cart-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.6875rem;
  text-align: center;
  line-height: 20px;
  font-weight: 700;
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--fg); }
.nav-left { display: flex; align-items: center; gap: 12px; }

/* ─── Cart Page ─── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.cart-item-image {
  width: 64px;
  height: 64px;
  background: var(--bg-alt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.75rem;
}
.cart-item-info { display: flex; flex-direction: column; gap: 4px; }
.cart-item-name { font-weight: 600; font-size: 0.9375rem; }
.cart-item-unit { font-size: 0.8125rem; color: var(--fg-muted); }
.cart-item-controls { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}
.qty-num { font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-price {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}
.cart-remove {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  padding: 4px;
}
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.cart-summary-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9375rem;
}
.summary-row.muted { color: var(--fg-muted); }
.summary-row .label { color: var(--fg-muted); }
.summary-row .value { font-weight: 600; }
.summary-total {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 700;
}
.summary-total .amount {
  font-family: var(--font-head);
  font-size: 1.5rem;
}
.empty-cart {
  text-align: center;
  padding: 64px 32px;
  color: var(--fg-muted);
}
.empty-cart p { font-size: 1rem; margin-bottom: 24px; }
.empty-cart .hint { font-size: 0.875rem; }

/* ─── Checkout ─── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.checkout-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--accent); }
.form-error {
  color: #c00;
  font-size: 0.8125rem;
  margin-top: 4px;
}
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.delivery-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.delivery-option input[type="radio"] { accent-color: var(--accent); }
.delivery-option.selected { border-color: var(--accent); background: rgba(224, 123, 32, 0.05); }
.delivery-option-label { font-weight: 600; font-size: 0.9375rem; }
.delivery-option-desc { font-size: 0.8125rem; color: var(--fg-muted); }
.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.checkout-btn:hover { background: var(--accent-dark); }
.checkout-btn:disabled { background: var(--fg-muted); cursor: not-allowed; }

/* ─── About ─── */
.about-layout {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 32px;
}
.about-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 12px;
}
.about-subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 40px;
  line-height: 1.65;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.about-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 8px;
}
.about-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.contact-form .btn-primary { width: 100%; }
.success-msg {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  color: #15803d;
  font-size: 0.9375rem;
  margin-bottom: 16px;
  display: none;
}

/* ─── Success ─── */
.success-layout {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 32px;
  text-align: center;
}
.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}
.success-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 12px;
}
.success-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 40px;
  line-height: 1.65;
}
.order-receipt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  text-align: left;
  margin-bottom: 32px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.receipt-row:last-child { border-bottom: none; }
.receipt-label { color: var(--fg-muted); font-size: 0.875rem; }
.receipt-value { font-weight: 600; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 40px; }
  .problem { padding: 56px 20px; }
  .problem-grid { grid-template-columns: 1fr; gap: 1px; }
  .categories { padding: 56px 20px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .advantages { grid-template-columns: 1fr; padding: 56px 20px; }
  .advantage-right { display: none; }
  .trust-inner { flex-direction: column; }
  .trust-contact { text-align: left; }
  .closing { padding: 64px 20px; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
}
@media (max-width: 480px) {
  .stat-divider { display: none; }
  .hero-stats { gap: 20px; }
  .category-grid { grid-template-columns: 1fr; }
  .trust-badges { gap: 16px; }
}