:root {
  --bg: #f6f0e6;
  --surface: #fffaf3;
  --surface-2: #f1e5d0;
  --text: #3f2d20;
  --muted: #7e6a58;
  --accent: #8a6236;
  --accent-dark: #5d4021;
  --line: #e2d3be;
  --success: #e5f4e8;
  --error: #fde8e8;
  --shadow: 0 18px 40px rgba(90, 65, 30, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #f8f3ea 0%, #f1e7d7 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top-auth-bar {
  background: #3f2b18;
  color: #fff7ea;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.auth-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.auth-copy { display: flex; flex-direction: column; gap: 4px; }
.auth-copy span { font-size: 13px; color: #ecdcc8; }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.site-shell { display: flex; gap: 24px; width: min(1400px, calc(100% - 30px)); margin: 24px auto; align-items: flex-start; }
.sidebar {
  width: 250px;
  background: rgba(255, 250, 243, 0.92);
  border: 1px solid rgba(226, 211, 190, 0.9);
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}
.sidebar-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 16px; background: var(--accent);
  color: white; display: grid; place-items: center; font-size: 22px; flex: 0 0 auto;
}
.sidebar-brand small { color: var(--muted); display: block; margin-top: 4px; }
.side-nav { display: grid; gap: 10px; }
.side-nav a {
  padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  transition: .2s ease; display: flex; justify-content: space-between; align-items: center;
}
.side-nav a:hover { transform: translateY(-1px); background: var(--surface-2); }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent);
  color: #fff; display: inline-grid; place-items: center; font-size: 12px;
}
.content { flex: 1; display: grid; gap: 22px; }
.card-surface {
  background: rgba(255, 250, 243, 0.95);
  border: 1px solid rgba(226, 211, 190, 0.95);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .95fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4vw, 54px); margin: 0 0 8px; }
.hero h2 { font-size: clamp(18px, 2vw, 26px); color: var(--accent); margin: 0 0 12px; }
.hero p { line-height: 2; margin: 0 0 16px; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; color: var(--accent); background: #f2e7d6;
  padding: 8px 12px; border-radius: 999px; font-size: 13px;
}
.hero-buttons, .auth-actions, .training-buttons, .card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: none; border-radius: 16px; padding: 12px 18px; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.secondary { background: #ede0cb; color: var(--accent-dark); }
.btn.ghost, .btn.light { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn.google { background: #fff5ea; border: 1px solid #efc89e; color: #a34f08; }
.btn.small { padding: 10px 14px; border-radius: 12px; background: var(--accent-dark); color: #fff; }
.btn.danger.small { background: #b55a4d; }
.quick-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.quick-facts div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.quick-facts strong, .contact-list strong { display: block; margin-bottom: 6px; }
.hero-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-media-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; min-height: 250px; }
.hero-media-grid img:first-child { min-height: 360px; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.compact-card { height: 100%; }
.section-head { margin-bottom: 20px; text-align: center; }
.section-head.left { text-align: right; }
.section-head h2, .section-head h3 { margin: 0 0 8px; }
.section-head p, .muted { margin: 0; color: var(--muted); line-height: 1.9; }
.pill-grid, .feature-cards { display: grid; gap: 12px; }
.pill-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.pill { display: inline-flex; justify-content: center; padding: 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.gallery-grid.v3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.gallery-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.gallery-media { background: #f0e5d7; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; }
.gallery-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tag { background: #f2e5d3; color: var(--accent-dark); padding: 6px 10px; border-radius: 999px; font-size: 12px; align-self: flex-start; }
.gallery-body h3 { margin: 0; }
.gallery-body p { margin: 0; line-height: 1.9; color: var(--muted); }
.text-link { color: var(--accent-dark); font-weight: 700; }
.cart-list { display: grid; gap: 14px; }
.cart-item {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px;
  display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center;
}
.cart-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 16px; }
.cart-item span { display: block; margin-top: 6px; color: var(--muted); }
.empty-box { background: #fff; border: 1px dashed var(--line); border-radius: 18px; padding: 24px; text-align: center; color: var(--muted); }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; line-height: 1.9;
}
.info-card.highlight { background: #f7ecdd; }
.feature-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
.forms-grid, .order-layout { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.order-form, .mini-form {
  display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px;
}
.order-form h3 { margin: 0 0 4px; }
label { display: grid; gap: 8px; color: var(--accent-dark); font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid #d9c8b0; background: #fffdf9;
  font: inherit; color: var(--text);
}
textarea { resize: vertical; }
.info-stack { display: grid; gap: 16px; }
.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.alert {
  padding: 16px 18px; border-radius: 18px; border: 1px solid transparent; font-weight: 700;
}
.alert.success { background: var(--success); border-color: #b8dfbe; color: #2c5a31; }
.alert.error { background: var(--error); border-color: #f0b9b9; color: #8d2c2c; }
@media (max-width: 1100px) {
  .site-shell { flex-direction: column; }
  .sidebar {
    width: 100%; position: static; display: grid; gap: 18px;
  }
  .side-nav { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hero-grid, .grid-two, .feature-cards, .forms-grid, .order-layout { grid-template-columns: 1fr; }
  .gallery-grid.v3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quick-facts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top-auth-bar { position: static; }
  .auth-row, .footer { flex-direction: column; align-items: stretch; }
  .side-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-grid.v3, .pill-grid { grid-template-columns: 1fr; }
  .hero-media-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr; }
}
