:root {
  --navy: #152c5d;
  --ink: #23262b;
  --muted: #6b6f76;
  --paper: #f5f5f5;
  --surface: #ffffff;
  --line: #ebebeb;
  --primary: #0060a7;
  --primary-dark: #06549c;
  --accent-2: #06966e;
  --danger: #d3362d;
  --price: #e05a2b;
  --sidebar-w: 340px;
  --shadow: 0 1px 2px rgba(21,44,93,0.06), 0 10px 28px rgba(21,44,93,0.08);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, .logo, .price {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: none;
  letter-spacing: 0.01em;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Каркас: боковое меню + основная колонка (как на прототипе) */
.app-shell { display: flex; align-items: stretch; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-content { flex: 1; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--navy); color: #fff;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 22px 0;
}
.sidebar-logo {
  display: block; padding: 0 20px; margin-bottom: 20px;
}
.sidebar-logo img { width: 100%; height: auto; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
  display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 26px 24px;
  color: #cfd8e8; text-decoration: none; font-size: 0.95rem; font-weight: 500;
  border-left: 3px solid transparent;
}
.sidebar-icon { width: 22px; height: 22px; flex-shrink: 0; }
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-link.active { background: rgba(255,255,255,0.1); color: #fff; border-left-color: var(--primary); font-weight: 700; }
.sidebar-link-cart { margin-top: auto; }
.sidebar-contact-row { display: flex; flex-direction: row; justify-content: center; gap: 12px; padding: 16px 24px 24px; }
.sidebar-contact-btn {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,0.08); color: #cfd8e8;
}
.sidebar-contact-btn svg { width: 19px; height: 19px; }
.sidebar-contact-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.sidebar-link-cart .cart-count {
  margin-left: auto; background: var(--price); color: #fff; font-size: 0.72rem; font-weight: 700;
  border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 5px;
}

.topbar-slim {
  background: var(--navy); color: #fff; display: flex; justify-content: flex-end;
  align-items: center; gap: 6px; padding: 12px 24px;
}
.icon-btn {
  background: none; border: none; color: #fff; cursor: pointer; padding: 8px;
  display: inline-flex; position: relative; text-decoration: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.cart-count-badge {
  position: absolute; top: 2px; right: 2px; background: var(--price); color: #fff;
  font-size: 0.62rem; font-weight: 700; border-radius: 999px; min-width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

@media (max-width: 860px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: static; padding: 14px 0;
    flex-direction: row; align-items: center; overflow-x: auto;
  }
  .sidebar-logo { margin-bottom: 0; padding: 0 16px; }
  .sidebar-nav { flex-direction: row; }
  .sidebar-link { padding: 10px 14px; border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .sidebar-link.active { border-left-color: transparent; border-bottom-color: var(--primary); }
  .sidebar-link-cart { margin-top: 0; margin-left: auto; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background-color: var(--navy);
  background-size: cover; background-position: 100% 30%; background-repeat: no-repeat;
  min-height: 420px; display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,29,64,0.88) 0%, rgba(11,29,64,0.55) 45%, rgba(11,29,64,0.15) 100%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  margin: 0; padding: 56px 32px 56px 40px;
}
.hero-text { max-width: 400px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: #fff; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding-bottom: 6px; margin-bottom: 16px; border-bottom: 2px solid rgba(255,255,255,0.5);
  transition: border-color .15s ease, gap .15s ease;
}
.hero-eyebrow::after { content: "→"; }
.hero-eyebrow:hover { border-color: #fff; gap: 12px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin: 0 0 14px; text-wrap: balance; text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.hero p { color: #e7ebf3; max-width: 48ch; font-size: 1.05rem; margin: 0 0 24px; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
@media (max-width: 640px) { .hero { min-height: 320px; } .hero::before { background: linear-gradient(180deg, rgba(11,29,64,0.55) 0%, rgba(11,29,64,0.92) 80%); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; border: 2px solid var(--primary);
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  font-family: "Oswald", "Arial Narrow", sans-serif; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--accent-2); border-color: var(--accent-2); }
.btn-green:hover { background: #058059; border-color: #058059; }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.price-accent { font-size: 1.7rem; color: var(--price); font-weight: 700; }
.price-accent small { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.price-total { color: var(--muted); font-weight: 700; font-size: 1.7rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 48px 0; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 4px 6px rgba(21,44,93,0.08), 0 16px 32px rgba(21,44,93,0.1); }
.cat-tile h3 { margin: 0 0 8px; font-size: 1.3rem; }
.cat-tile p { margin: 0; color: var(--muted); font-size: 0.92rem; }

section.block { padding: 12px 0 48px; }
section.block h2 { font-size: 1.6rem; margin: 0 0 20px; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
}
.product-thumb {
  display: block; aspect-ratio: 1 / 1; border-radius: 8px; background: var(--paper);
  overflow: hidden; margin: -4px -4px 4px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card .swatch-strip { height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--navy), var(--primary), var(--accent-2)); }

.product-detail { display: grid; grid-template-columns: 360px 1fr; gap: 40px; max-width: 900px; align-items: start; }
.product-detail-thumb {
  aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.product-detail-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
@media (max-width: 720px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-thumb { max-width: 320px; }
}

/* Чипы (блеск, база, поверхности, комнаты) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 5px 12px;
  border-radius: 999px; background: var(--accent-soft, var(--paper)); color: var(--primary-dark);
  background: #e8f1f8; white-space: nowrap;
}
.chip-outline { background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }

/* Выбор объёма / базы */
.variant-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-top: 18px; max-width: 360px; box-shadow: var(--shadow);
}
.variant-card h3 { margin: 0 0 16px; font-size: 1.05rem; }
.option-group { margin: 0 0 16px; }
.option-group:last-of-type { margin-bottom: 0; }
.option-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn {
  padding: 7px 18px; border-radius: 6px; border: 1.5px solid var(--accent-2); background: var(--surface);
  font-weight: 700; font-size: 0.9rem; cursor: pointer; color: var(--ink);
  font-family: "Oswald", "Arial Narrow", sans-serif;
}
.option-btn.active { background: var(--accent-2); color: #fff; }
.option-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary-dark); }

/* Блок характеристик */
.spec-section { padding: 32px 0; border-top: 1px solid var(--line); }
.spec-section h2 { font-size: 1.3rem; margin: 0 0 18px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.spec-block h3 { font-size: 0.95rem; margin: 0 0 10px; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; vertical-align: top; }
.spec-table th { width: 260px; color: var(--muted); font-weight: 600; background: var(--paper); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* Описание / характеристики простыми списками — как в карточке товара прототипа */
.info-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.info-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin-bottom: 6px; font-size: 0.95rem; }
.plain-list li::marker { color: var(--accent-2); }

.room-icons { display: flex; gap: 28px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.room-icon { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 88px; text-align: center; }
.room-icon svg { width: 30px; height: 30px; color: var(--navy); }
.room-icon span { font-size: 0.82rem; color: var(--ink); }

.full-info { margin-top: 8px; }
.full-info summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
.full-info summary::-webkit-details-marker { display: none; }
.full-info summary::before { content: '▾'; color: var(--accent-2); transition: transform .15s ease; }
.full-info[open] summary::before { transform: rotate(180deg); }
.full-info summary span { color: var(--accent-2); font-weight: 600; }
@media (max-width: 720px) { .info-grid { grid-template-columns: 1fr; } }

/* Калькулятор расхода */
.calc-mode-switch { display: flex; gap: 10px; margin: 16px 0; }
.calc-mode-btn {
  padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface);
  font-weight: 700; cursor: pointer; font-size: 0.85rem; color: var(--muted); font-family: "Oswald", sans-serif;
}
.calc-mode-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.calc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 640px; }
.calc-wall-title { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.calc-hint { color: var(--muted); font-size: 0.85rem; margin: 0 0 16px; }
.calc-note { color: var(--muted); font-size: 0.85rem; font-weight: 600; margin: 0 0 16px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.calc-field label { display: flex; align-items: center; gap: 6px; }
.calc-field label svg { width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; }
.calc-result { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 0.92rem; }
.calc-result p { margin: 0 0 8px; }
.calc-result p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-table th { width: 45%; }
}
.card .brand { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card .desc { color: var(--muted); font-size: 0.88rem; flex: 1; }
.card .price { font-size: 1.25rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.card .price small { color: var(--muted); font-weight: 400; font-size: 0.75rem; }

/* Subcategory nav on catalog page */
.subnav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.subnav a {
  text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem; font-weight: 600; background: var(--surface);
}
.subnav a.active, .subnav a:hover { border-color: var(--primary); color: var(--primary-dark); }

/* Breadcrumbs */
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 20px 0; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--primary-dark); }

/* Color picker */
.picker-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.picker-tab {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; cursor: pointer; font-size: 0.92rem; color: var(--muted);
}
.picker-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.picker-search { margin-bottom: 20px; position: relative; }
.picker-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; width: 100%; max-width: 340px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
  max-height: 320px; overflow-y: auto; z-index: 20;
}
.picker-suggestion-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.picker-suggestion-item:last-child { border-bottom: none; }
.picker-suggestion-item:hover { background: var(--paper); }
.picker-suggestion-swatch { width: 22px; height: 22px; border-radius: 4px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.15); }
.picker-suggestion-text { display: flex; flex-direction: column; font-size: 0.85rem; overflow: hidden; }
.picker-suggestion-code { font-weight: 700; font-family: "JetBrains Mono", monospace; }
.picker-suggestion-meta { color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-suggestion-empty { padding: 10px 12px; color: var(--muted); font-size: 0.85rem; }
.picker-search input {
  width: 100%; max-width: 340px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line);
  font-family: inherit; font-size: 0.95rem;
}
.picker-mode-switch { display: flex; gap: 10px; margin-bottom: 20px; }
.picker-mode-btn {
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface);
  font-weight: 700; cursor: pointer; font-size: 0.92rem; color: var(--muted); font-family: "Oswald", sans-serif;
}
.picker-mode-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.photo-upload-btn { display: inline-block; cursor: pointer; margin-bottom: 16px; }
.photo-canvas-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-top: 4px; }
.photo-canvas-wrap {
  flex: 1 1 420px; max-width: 640px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: crosshair; box-shadow: var(--shadow); line-height: 0;
}
#photo-canvas { display: block; width: 100%; height: auto; }
.photo-loupe-panel { width: 120px; text-align: center; flex: 0 0 auto; }
#photo-loupe-canvas {
  border-radius: 50%; border: 3px solid var(--surface); box-shadow: var(--shadow);
  image-rendering: pixelated; background: var(--paper);
}
.photo-loupe-hex { margin-top: 8px; font-weight: 700; font-family: "JetBrains Mono", monospace; }
.photo-loupe-hint { margin-top: 4px; font-size: 0.78rem; color: var(--muted); }
.photo-picked { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; font-size: 0.95rem; }
.photo-picked .chip { width: 28px; height: 28px; padding: 0; border-radius: 6px; flex-shrink: 0; border: 1px solid var(--line); }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatch-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s ease;
}
.swatch-card:hover { transform: translateY(-2px); }
.swatch-card .chip { display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border-radius: 0; }
.swatch-card .info { padding: 10px 12px; }
.swatch-card .code { font-weight: 700; font-size: 0.85rem; font-family: "JetBrains Mono", monospace; }
.swatch-card .name { color: var(--muted); font-size: 0.8rem; }
.picker-note {
  margin-top: 28px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--primary); border-radius: 8px; color: var(--muted); font-size: 0.9rem;
}
.picker-selected {
  position: sticky; bottom: 16px; margin-top: 24px; background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 16px 20px; display: none; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
}
.picker-selected.show { display: flex; }
.picker-selected .chip-lg { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; }
.picker-context-banner {
  margin-bottom: 16px; padding: 12px 16px; background: var(--accent-soft, var(--paper)); border: 1px solid var(--line);
  border-left: 3px solid var(--primary); border-radius: 8px; font-size: 0.9rem;
}
.picker-context-banner a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
.cart-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: middle; border: 1px solid rgba(0,0,0,0.15); }
.cart-item-link { color: inherit; text-decoration: none; font-weight: 600; }
.cart-item-link:hover { color: var(--primary-dark); text-decoration: underline; }
.cart-table th { background: var(--paper); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.qty-input { width: 56px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); text-align: center; font-family: inherit; }
.qty-stepper-controls { display: flex; align-items: center; gap: 8px; }
.qty-stepper-controls .qty-input { width: 56px; height: 40px; font-size: 1rem; }
.qty-step-btn {
  width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--accent-2); background: var(--surface);
  font-size: 1.2rem; font-weight: 700; cursor: pointer; color: var(--ink); line-height: 1;
}
.qty-step-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.remove-btn { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.85rem; font-weight: 700; }
.cart-summary { display: flex; justify-content: flex-end; margin-top: 20px; }
.cart-summary .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; min-width: 280px; box-shadow: var(--shadow); }
.cart-summary .total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Checkout form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  font-family: inherit; font-size: 0.95rem; background: var(--surface);
}
.field textarea { resize: vertical; min-height: 80px; }
.form-note { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.92rem; max-width: 680px; }
.form-note-ok { background: #e6f6ec; color: #1f7a43; border: 1px solid #b7e4c7; }
.form-note-err { background: #fdecec; color: var(--danger); border: 1px solid #f5c2c2; }
.pay-options { display: flex; gap: 12px; margin: 8px 0 4px; flex-wrap: wrap; }
.pay-option { flex: 1 1 200px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; background: var(--surface); }
.pay-option input { width: auto; margin-right: 8px; }
.pay-option.active { border-color: var(--primary); background: #e8f1f8; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d0e0; margin-top: 40px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 48px 20px 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-col h3 { color: #fff; font-size: 0.95rem; margin: 0 0 12px; }
.footer-col a { display: block; text-decoration: none; color: #c7d0e0; font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-col span { display: block; color: #c7d0e0; font-size: 0.9rem; margin-bottom: 8px; }
.footer-address { white-space: nowrap; }
.footer-col .logo { margin-bottom: 10px; }
.footer-col .logo img { height: 150px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 20px; text-align: center; font-size: 0.8rem; }

/* Legal pages */
.legal-text { max-width: 760px; padding: 20px 0 60px; line-height: 1.6; }
.legal-text h2 { font-size: 1.6rem; margin: 0 0 4px; }
.legal-text .legal-date { color: var(--muted); font-size: 0.85rem; margin: 0 0 28px; }
.legal-text h3 { font-size: 1.05rem; margin: 28px 0 10px; }
.legal-text p, .legal-text ul { margin: 0 0 14px; color: var(--ink); }
.legal-text ul { padding-left: 20px; }
.legal-text li { margin-bottom: 6px; }
.legal-text a { color: var(--primary-dark); }

/* About page */
.about-tabs { display: flex; gap: 10px; margin: 28px 0 20px; flex-wrap: wrap; }
.about-tab {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; cursor: pointer; font-size: 0.92rem; color: var(--muted);
}
.about-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.about-panel { display: none; }
.about-panel.active { display: block; }
.about-banner { width: 100%; max-width: 760px; border-radius: 12px; margin-bottom: 20px; display: block; }
.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 760px; margin: 16px 0 24px; }
.about-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; text-align: center; background: var(--surface); }
.about-card img { max-height: 60px; max-width: 100%; margin-bottom: 12px; }
.about-card p { margin: 0; color: var(--ink); font-size: 0.92rem; }
.cert-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; max-width: 900px; }
.cert-item { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); text-decoration: none; }
.cert-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.cert-item span { display: block; padding: 8px 10px; font-size: 0.82rem; color: var(--muted); text-align: center; }

@media (max-width: 860px) {
  .cat-tiles { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-inner { flex-wrap: wrap; }
}
