/* =====================================================
   ЗахистПром — Main Styles (Light & High-Contrast Edition)
   Шрифты: Unbounded (назви) + Manrope (тіло)
   Палітра: Контрастний графіт, фірмовий янтарно-жовтий акцент
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Новая чистая светлая палитра */
  --bg:         #ffffff;        /* Чистый белый фон сайта */
  --bg2:        #14171a;        /* Темно-графитовый для шапки хедера и акцентов */
  --bg3:        #f4f6f9;        /* Светлый структурированный фон */
  --card:       #ffffff;        /* Белые карточки товаров */
  --border:     #e2e7ee;        /* Четкие аккуратные границы элементов */
  
  /* Фирменные цвета из логотипа */
  --accent:     #e2a11c;        /* Насыщенный янтарно-желтый */
  --accent-dim: #c98e14;        /* Темно-янтарный для hover-эффектов */
  
  /* Контрастная читаемая типографика */
  --text:       #14171a;        /* Основной текст (глубокий графит) */
  --text2:      #5c667a;        /* Вторичный текст */
  --text3:      #9da5b4;        /* Плейсхолдеры и второстепенные подписи */
  
  /* Системные цвета и ТВОИ оригинальные формы */
  --danger:     #d9383a;        
  --success:    #27ae60;        
  --radius:     10px;           /* Твой оригинальный радиус кнопок */
  --radius-lg:  16px;           /* Твой оригинальный радиус карточек */
  --shadow:     0 4px 24px rgba(20, 23, 26, 0.06); 
  --trans:      0.22s ease;     /* Твоя скорость анимации */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.header-top {
  background: #0d0f11;
  padding: 6px 0;
  font-size: 13px;
  color: #9da5b4;
}

.header-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a:hover { color: var(--accent); }

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span { color: #ffffff; font-weight: 400; }

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex; /* Гарантирует правильное поведение флекс-контейнера */
  align-items: center;
}

.header-search input {
  width: 100%;
  height: 42px; /* Фиксируем высоту инпута для идеального центрирования кнопки */
  background: rgba(255, 255, 255, 0.08); /* Чуть прибавили яркости для читаемости */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0 50px 0 18px; /* Четкий отступ справа, чтобы текст не залезал под лупу */
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color var(--trans);
}

.header-search input::placeholder { 
  color: rgba(255, 255, 255, 0.5); /* Сделали подсказку чуть контрастнее */
}

.header-search input:focus { 
  border-color: var(--accent); 
}

.header-search button {
  position: absolute;
  right: 3px; /* Минимальный аккуратный отступ от правого края */
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  border-radius: 50px;
  width: 36px; 
  height: 36px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: var(--bg2); /* Твой темно-графитовый цвет иконки на желтом фоне */
  font-size: 16px;
  cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }

.cart-btn {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: var(--bg2);
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--trans), transform var(--trans);
}

.cart-btn:hover { background: var(--accent-dim); transform: translateY(-1px); }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  border: 2px solid #14171a;
}

.cart-count.hidden { display: none; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--trans);
}

/* ===== NAVBAR ===== */
.site-nav {
  background: #1a1e24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-inner a {
  white-space: nowrap;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
  border-bottom: 2px solid transparent;
  transition: all var(--trans);
}

.nav-inner a:hover,
.nav-inner a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  /* Сначала идет осветляющий градиент, затем через запятую — сама картинка */
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(226, 232, 240, 0.7) 100%), 
              url('/home.png') center/cover no-repeat;
  
  padding: 64px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(226,161,28,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(226,161,28,0.1);
  border: 1px solid rgba(226,161,28,0.25);
  color: #bd8311;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--accent-dim); }

.hero p {
  font-size: 18px;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: var(--bg2);
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--trans);
  text-decoration: none;
}

.btn-primary:hover { background: var(--accent-dim); color: var(--bg2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(226,161,28,0.3); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 14px 28px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--trans);
  text-decoration: none;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.trust-items {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}

.trust-item .icon {
  width: 36px; height: 36px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--accent-dim);
  flex-shrink: 0;
}

/* ===== SECTION ===== */
.section { padding: 48px 20px; }

.section-header {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.section-title span { color: var(--accent-dim); }
.section-link { font-size: 14px; color: var(--accent-dim); font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ===== PRODUCT GRID ===== */
.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(226,161,28,0.2);
}

.product-img {
  aspect-ratio: 4/3;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img { transform: scale(1.05); }

.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  opacity: 0.2;
}

.badge-sale {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--danger);
  color: #fff;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.badge-new {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--accent);
  color: var(--bg2);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-current {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.price-old {
  font-size: 14px;
  color: var(--text3);
  text-decoration: line-through;
}

.price-bulk {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-buy {
  background: var(--accent);
  color: var(--bg2);
  border: none;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  transition: all var(--trans);
  font-family: 'Manrope', sans-serif;
}

.btn-buy:hover { background: var(--accent-dim); transform: translateY(-1px); }

.btn-detail {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  transition: all var(--trans);
  font-family: 'Manrope', sans-serif;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
}

.btn-detail:hover { border-color: var(--accent); color: var(--accent); }

/* ===== CATEGORY GRID ===== */
.categories-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cat-card:hover {
  border-color: rgba(226,161,28,0.3);
  background: var(--bg3);
  transform: translateY(-2px);
}

.cat-icon { font-size: 36px; }

.cat-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

/* ===== PRODUCT PAGE ===== */
.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Галерея */
.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--card);
  transition: border-color var(--trans);
}

.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Info panel */
.product-info {}

.breadcrumbs {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text3); }

.product-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.product-price-block { margin-bottom: 20px; }

.product-price-main {
  font-family: 'Unbounded', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
}

.product-price-old {
  font-size: 20px;
  color: var(--text3);
  text-decoration: line-through;
  margin-left: 10px;
}

.product-price-bulk {
  font-size: 14px;
  color: var(--text2);
  margin-top: 6px;
  padding: 8px 14px;
  background: rgba(226,161,28,0.07);
  border: 1px solid rgba(226,161,28,0.2);
  border-radius: 8px;
  display: inline-block;
}

/* Розміри */
.size-label { font-weight: 600; font-size: 14px; margin-bottom: 10px; color: var(--text2); }

.sizes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.size-btn {
  padding: 8px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
  font-family: 'Manrope', sans-serif;
}

.size-btn:hover { border-color: var(--accent); color: var(--accent); }
.size-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg2); }
.size-btn.out-of-stock { opacity: 0.4; pointer-events: none; text-decoration: line-through; }

/* Кількість */
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 40px; height: 44px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--trans);
}

.qty-btn:hover { background: var(--border); }

.qty-input {
  width: 50px;
  text-align: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  outline: none;
}

/* Кнопки дії */
.action-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.btn-add-cart {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--bg2);
  border: none;
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: all var(--trans);
}

.btn-add-cart:hover { background: var(--accent-dim); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(226,161,28,0.3); }

.btn-buy-now {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--trans);
}

.btn-buy-now:hover { border-color: var(--accent); color: var(--accent); }

/* Характеристики */
.product-attrs {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.attrs-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text2);
}

.attr-row {
  display: flex;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  gap: 16px;
}

.attr-key { color: var(--text2); flex: 0 0 160px; }
.attr-val { font-weight: 600; }

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(440px, 100vw);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.cart-close {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: all var(--trans);
}

.cart-close:hover { background: var(--border); color: var(--text); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 80px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg3);
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--text2); margin-bottom: 8px; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-qty button {
  width: 28px; height: 28px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}

.cart-item-qty button:hover { border-color: var(--accent); color: var(--accent); }
.cart-item-qty span { font-size: 14px; font-weight: 700; min-width: 24px; text-align: center; }

.cart-item-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}

.cart-item-remove {
  grid-column: 3;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color var(--trans);
}

.cart-item-remove:hover { color: var(--danger); }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}

.cart-empty .icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty p { font-size: 15px; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-label { font-size: 15px; color: var(--text2); }

.cart-total-price {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--bg2);
  border: none;
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: all var(--trans);
}

.btn-checkout:hover { background: var(--accent-dim); transform: translateY(-1px); }

/* ===== CHECKOUT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color var(--trans);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-note {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg3);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

/* ===== BLOCKS: FEATURES / GUARANTEE ===== */
.features-section {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
}

.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.feature-text { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 20px 20px;
  color: #ffffff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo { font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: #9da5b4; line-height: 1.6; }

.footer-col h4 { font-weight: 700; font-size: 14px; margin-bottom: 14px; color: #ffffff; }
.footer-col a { display: block; font-size: 14px; color: #cbd5e1; margin-bottom: 8px; transition: color var(--trans); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== UTILS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success { background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.2); color: #27ae60; }
.alert-error { background: rgba(217,56,58,0.1); border: 1px solid rgba(217,56,58,0.2); color: var(--danger); }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 400;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 24px 0;
}

.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--trans);
}

.page-btn:hover,
.page-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg2); }

/* ===== FILTERS (каталог) ===== */
.catalog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 120px;
}

.filter-title { font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.filter-group { margin-bottom: 20px; }
.filter-group-title { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }

.filter-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  color: var(--text2);
  transition: color var(--trans);
}

.filter-opt:hover { color: var(--text); }
.filter-opt input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .product-page { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-search { display: none; }
  .burger { display: flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-inner { flex-direction: column; align-items: flex-start; padding: 8px 16px; }
  .nav-inner a { padding: 8px 0; border-bottom: none; }
  .hero { padding: 40px 20px; }
  .trust-items { gap: 20px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col:not(:first-child) { display: none; }
  .product-page { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}