:root {
  color-scheme: dark;
  --bg: #1b1e22;
  --surface: #24282e;
  --surface-2: #2d3239;
  --ink: #f2f3f4;
  --ink-soft: #d7dadd;
  --muted: #9aa0a8;
  --line: #353a42;
  --line-strong: #4a505a;
  --accent: #f7c600;
  --accent-dark: #e0b000;
  --accent-soft: rgba(247, 198, 0, 0.12);
  --accent-ink: #1b1d21;
  --accent-text: #ffd35c;
  --dark: #141619;
  --dark-2: #22262b;
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.14);
  --err: #f87171;
  --err-soft: rgba(248, 113, 113, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 550px at 50% -10%, #2b3037 0%, transparent 65%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 16px;
}

.site-main { flex: 1 0 auto; }

::selection { background: var(--accent); color: var(--accent-ink); }

input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 1; }

select option { background: var(--surface); color: var(--ink); }

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow { max-width: 820px; }

.muted { color: var(--muted); }

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 22, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 52px; width: auto; flex-shrink: 0; border-radius: 10px; }
.logo-img-footer { height: 56px; border-radius: 12px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 19px; letter-spacing: -0.01em; }
.logo-text small { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.is-active { background: var(--accent-soft); color: var(--accent-text); }
.main-nav-phone { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { font-weight: 700; white-space: nowrap; }
.header-phone:hover { color: var(--accent-text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-light { background: var(--dark); color: #fff; }
.btn-light:hover { background: #17191d; }
.btn-sm { padding: 8px 15px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(247, 198, 0, 0.18), transparent 60%),
    linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -35%;
  width: 560px;
  height: 170%;
  transform: rotate(22deg);
  opacity: 0.05;
  border-radius: 90px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #f2f3f4 0 14px, transparent 14px 44px),
    repeating-linear-gradient(0deg, #f2f3f4 0 14px, transparent 14px 44px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 780px; }
.hero-copy h1 { color: #fff; margin-bottom: 14px; font-size: clamp(34px, 5vw, 56px); max-width: 760px; }
.hero-copy p { color: #c9ccd1; font-size: 18px; max-width: 620px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(247, 198, 0, 0.14);
  color: #ffd84d;
  border: 1px solid rgba(247, 198, 0, 0.4);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero-search {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  padding: 8px;
  border-radius: 16px;
  margin: 26px 0 18px;
  max-width: 560px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 10px;
  min-width: 0;
  background: transparent;
  color: var(--ink);
}
.hero-search .btn { flex-shrink: 0; }

.hero-sizes { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; color: #9ba1a8; }
.hero-sizes a {
  color: #d9dbdf;
  border-bottom: 1px dashed rgba(217, 219, 223, 0.4);
  padding-bottom: 1px;
}
.hero-sizes a:hover { color: #ffd84d; border-color: #ffd84d; }

/* ---------------- sections ---------------- */

.section { padding: 56px 0; }
.section-lead { max-width: 720px; margin: -8px 0 22px; color: var(--muted); font-size: 16px; }
.section-muted { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head h2 { margin: 0; }
.link-more { color: var(--accent-text); font-weight: 600; font-size: 15px; }
.link-more:hover { text-decoration: underline; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon { font-size: 26px; display: block; margin-bottom: 10px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; }
.steps li > span {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { font-size: 16px; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }

.cta-band { background: var(--accent); color: var(--accent-ink); padding: 44px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner h2 { margin: 0 0 6px; color: var(--accent-ink); }
.cta-inner p { margin: 0; color: rgba(27, 29, 33, 0.8); }

/* ---------------- gallery & awards ---------------- */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(20, 22, 25, 0.78));
}
.page-section { margin-top: 30px; }
.page-section h2 { font-size: 22px; margin-bottom: 16px; }

.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.award-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.18s, transform 0.18s;
}
.award-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.award-media {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 30px;
}
.award-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.award-media-empty { background: var(--accent-soft); }
.award-body { min-width: 0; }
.award-body h3 { font-size: 16px; margin: 0 0 6px; }
.award-body h3 a:hover { color: var(--accent-text); }
.award-body p { margin: 0; color: var(--muted); font-size: 14px; }
.award-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.award-source {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.award-year { color: var(--muted); font-size: 12px; }

/* ---------------- promotions ---------------- */

.promo-banners { display: grid; gap: 18px; margin: 0 0 28px; }
.promo-banner {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
a.promo-banner { transition: transform 0.18s, box-shadow 0.18s; }
a.promo-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promo-banner img { display: block; width: 100%; height: auto; }

/* ---------------- product grid ---------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }

.product-card-media { position: relative; display: block; background: var(--surface-2); }
.product-card-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 18px; }

.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 20px); }
.badges-static { position: static; margin: 0 0 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-soft);
  white-space: nowrap;
}
.badge.season-summer { background: var(--accent-soft); color: var(--accent-text); }
.badge.season-winter { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.badge.season-allseason { background: rgba(74, 222, 128, 0.14); color: #86efac; }
.badge-promo { background: var(--accent); color: var(--accent-ink); }
.badge-used { background: rgba(255, 255, 255, 0.07); color: #c3c8cf; border: 1px solid var(--line-strong); }
.badge-new { background: rgba(74, 222, 128, 0.14); color: #86efac; }
.badge-stud { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }

.product-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.product-name { font-size: 17px; margin: 3px 0 4px; }
.product-name a:hover { color: var(--accent-text); }
.product-size { font-size: 14px; color: var(--muted); margin-bottom: 10px; }

.product-price-row { display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; flex-wrap: wrap; }
.price { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.price-lg { font-size: 34px; }
.discount { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 7px; }

.stock { font-size: 13px; margin-bottom: 12px; }
.stock-in { color: var(--ok); }
.stock-out { color: var(--err); }
.product-card .btn { margin-top: auto; }

/* ---------------- catalog ---------------- */

.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding: 18px 0; }
.breadcrumbs a:hover { color: var(--accent-text); }

.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.catalog-head h1 { margin: 0; }
.catalog-count { color: var(--muted); }

.catalog-promo-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border: 1px solid #f0dfa0;
  border-radius: 12px;
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.15s;
}
.catalog-promo-link:hover { border-color: var(--accent); }
.catalog-pick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -6px 0 18px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
}
.catalog-pick-link:hover { text-decoration: underline; }

.empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.promotions-page { padding-bottom: 60px; }
.promotions-products { margin-top: 42px; }

.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; padding-bottom: 60px; }

.catalog-search { display: flex; gap: 10px; max-width: 680px; margin-bottom: 18px; }
.catalog-search input { flex: 1; }
.catalog-search .btn { flex-shrink: 0; }

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 96px;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters-head h2 { font-size: 19px; margin: 0; }
.filters-reset { font-size: 13px; color: var(--muted); }
.filters-reset:hover { color: var(--accent-text); }

.filter-group { border-top: 1px solid var(--line); padding: 16px 0; }
.filter-group h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 10px; }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: 15px; padding: 4px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-dark); flex-shrink: 0; }
.check-accent { font-weight: 600; }

.range-row { display: flex; gap: 10px; }
.range-row input { width: 100%; }

input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface-2);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 198, 0, 0.22);
}

.size-row { display: grid; grid-template-columns: 1fr 1fr 70px; gap: 8px; }
.size-row select { padding: 10px 8px; }

.brands-list { max-height: 220px; overflow: auto; padding-right: 4px; }

.filters-toggle { display: none; margin-bottom: 16px; }

.catalog-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.catalog-toolbar form { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.catalog-toolbar select { width: auto; padding: 9px 10px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.page-link {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
}
.page-link:hover { border-color: var(--accent); color: var(--accent-text); }
.page-link.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.empty-state { text-align: center; padding: 70px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state h2 { font-size: 22px; }

/* ---------------- product page ---------------- */

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 40px; }

.product-gallery-main { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.product-gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid var(--line); background: var(--surface-2); border-radius: 10px; overflow: hidden; cursor: pointer; width: 72px; height: 72px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.thumb.is-active { border-color: var(--accent); }

.product-info h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.product-size-inline { display: block; font-size: 18px; color: var(--muted); font-weight: 600; margin-top: 4px; }

.product-price-box { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }

.buy-row { display: flex; gap: 16px; align-items: flex-end; margin: 22px 0; }
.qty-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); width: 110px; }
.qty-label input { padding: 12px; text-align: center; font-weight: 700; }
.buy-row .btn { flex: 1; }

.product-usps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.product-usps li { padding-left: 26px; position: relative; }
.product-usps li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

.product-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 20px 0 40px; }
.product-description h2, .specs h2 { font-size: 22px; }
.specs table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { color: var(--muted); font-weight: 500; width: 45%; }

.section-related { padding-top: 30px; }

/* ---------------- modal & forms ---------------- */

.modal {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.modal::backdrop { background: rgba(10, 11, 13, 0.72); backdrop-filter: blur(3px); }
.modal[open] { animation: pop 0.16s ease-out; }
@keyframes pop { from { transform: scale(0.97); opacity: 0; } }

.lead-form { padding: 24px; overflow: auto; max-height: calc(100vh - 32px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 22px; }
.modal-close { border: 0; background: var(--surface-2); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--line); }

.lead-product {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  background: var(--accent-soft);
  border: 1px solid rgba(247, 198, 0, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.lead-product strong { font-size: 15px; width: 100%; }

.lead-form label, .card-form label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.lead-form label input, .lead-form label textarea { margin-top: 5px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid-4 { grid-template-columns: repeat(4, 1fr); }

.consent { font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.45; }
.consent a { color: var(--accent-text); text-decoration: underline; }
.check-inline { align-items: center; padding-top: 24px; }

.form-note { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.form-error { background: var(--err-soft); color: var(--err); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }

.card-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.page-head { margin-bottom: 20px; }

/* ---------------- misc public ---------------- */

.text-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-bottom: 60px; }
.text-page h1 { margin-bottom: 18px; }
.text-page h2 { font-size: 21px; margin: 26px 0 10px; }
.text-page p { color: var(--ink-soft); }
.text-page ul, .text-page ol { margin: 0 0 1em; padding-left: 22px; color: var(--ink-soft); }
.text-page li { margin-bottom: 6px; }
.text-page a { color: var(--accent-text); text-decoration: underline; }

.legal-operator {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(247, 198, 0, 0.3);
  border-radius: 14px;
}
.legal-operator h2 { margin: 0 0 12px; font-size: 19px; }
.legal-operator dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.legal-operator dt { color: var(--accent-text); font-weight: 600; }
.legal-operator dd { margin: 0; color: var(--ink-soft); }
.legal-operator a { color: var(--accent-text); }

.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 14px; }
.legal-table th, .legal-table td { padding: 9px 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface-2); color: var(--ink-soft); }

.thanks-box, .error-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  margin: 30px 0 70px;
}
.thanks-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok);
  font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.thanks-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.error-code { font-size: 64px; font-weight: 800; color: var(--accent-text); line-height: 1; margin-bottom: 10px; }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; }
.alert-error { background: var(--err-soft); color: var(--err); }
.alert-success { background: var(--ok-soft); color: var(--ok); }

/* ---------------- footer ---------------- */

.site-footer { background: var(--dark); color: #c9ccd1; padding: 56px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; }
.footer-brand p { color: #9ba1a8; font-size: 14px; margin-top: 14px; max-width: 320px; }
.logo-light { color: #fff; }
.logo-light .logo-text small { color: #9ba1a8; }
.footer-title { font-size: 15px; color: #fff; margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.footer-list a:hover { color: #ffd84d; }
.footer-contacts li { color: #9ba1a8; }
.footer-bottom {
  border-top: 1px solid rgba(155, 161, 168, 0.2);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #9ba1a8;
}
.footer-bottom a:hover { color: #ffd84d; }
.footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.footer-legal a, .footer-legal-btn { color: #9ba1a8; font-size: 13px; }
.footer-legal a:hover, .footer-legal-btn:hover { color: #ffd84d; }
.footer-legal-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #9ba1a8;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.cookie-banner-text a { color: var(--accent-text); text-decoration: underline; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }

/* ---------------- responsive ---------------- */

@media (max-width: 1199px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; border-radius: 10px; }
  .main-nav-phone {
    display: block;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    font-weight: 700;
  }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .header-phone { display: none; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.is-open { display: block; margin-bottom: 20px; }
  .filters-toggle { display: inline-flex; }
  .product-layout { gap: 26px; }
}

@media (max-width: 767px) {
  .header-inner { min-height: 66px; gap: 12px; }
  .logo-img { height: 42px; }
  .logo-img-footer { height: 48px; }
  .logo-text strong { font-size: 17px; }
  .main-nav { top: 66px; }
  .hero { padding: 40px 0 46px; }
  .hero-copy p { font-size: 16px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .section { padding: 40px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .promo-banners { gap: 12px; }
  .product-card-body { padding: 12px 12px 14px; }
  .price { font-size: 19px; }
  .price-lg { font-size: 28px; }
  .features, .steps { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .product-layout, .product-details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid, .form-grid-4 { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .legal-operator dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-operator dt { margin-top: 8px; }
  .cookie-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner-actions .btn { flex: 1; }
  .size-row { grid-template-columns: 1fr 1fr 1fr; }
  .buy-row { flex-direction: column; align-items: stretch; }
  .qty-label { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .qty-label input { width: 110px; }
  .catalog-toolbar { justify-content: flex-start; }
  .catalog-toolbar form { flex-wrap: wrap; }
  .text-page { padding: 22px; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
