/* ============================================
   FCT — Factory Component Technologies
   Brand Design System (per Brand Book)
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* FCT Brand Colors */
  --dark: #1A1D21;        /* Gunmetal Dark — primary */
  --dark-light: #2A2D32;  /* Steel Dark — secondary */
  --white: #FFFFFF;
  --gray-bg: #F5F5F5;     /* Soft White — backgrounds */
  --red: #DB141E;          /* FCT Red — accent */
  --red-hover: #F01825;    /* FCT Red Hover — brighter */
  --green: #28a745;
  --chrome: #C0C0C0;       /* Chrome Silver */
  --text: #1A1D21;
  --text-secondary: #4A4F57; /* Iron Gray */
  --border: #dee0e3;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;           /* FCT: 8px (was 12px) */
  --radius-sm: 6px;
  --max-width: 1280px;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  height: 36px;
  display: flex;
  align-items: center;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.top-bar__left, .top-bar__right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar__item svg { width: 14px; height: 14px; fill: currentColor; opacity: 0.6; }
.top-bar__messengers { display: flex; gap: 12px; }
.top-bar__messengers a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.top-bar__messengers a:hover { color: #fff; }

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--dark);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--red);
}
.header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.header__logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.header__logo-icon svg { display: none; }
.header__logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  letter-spacing: 3px;
  white-space: nowrap;
  text-transform: uppercase;
}
.header__search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.header__search input {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 52px 0 16px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.header__search input::placeholder { color: #999; }
.header__search-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 42px;
  width: 46px;
  background: var(--red);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.header__search-btn:hover { background: var(--red-hover); }
.header__search-btn svg { width: 18px; height: 18px; fill: #fff; }

.header__nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header__nav a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.header__nav a:hover { color: #fff; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header__cart {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.header__cart svg { width: 22px; height: 22px; fill: #fff; }
.header__cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header__cta {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.header__cta:hover { background: var(--green); color: #fff; }

.header__auth {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.header__auth:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* Auth & Profile pages */
.auth-page { padding: 60px 0; }
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.auth-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.auth-card__subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}
.auth-card__error {
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  color: #c62828;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
.auth-card__field {
  margin-bottom: 16px;
}
.auth-card__field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-card__field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s;
}
.auth-card__field input:focus {
  outline: none;
  border-color: var(--red);
}
.auth-card__btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 16px;
}
.auth-card__footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.auth-card__footer a { color: var(--red); font-weight: 600; }

.profile-card {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.profile-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}
.profile-card__row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.profile-card__label {
  color: var(--text-secondary);
  font-weight: 500;
}
.profile-card__discount {
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}
.profile-card__note {
  margin-top: 24px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #166534;
  line-height: 1.6;
}
.profile-card__logout {
  margin-top: 24px;
  width: 100%;
  background: var(--dark);
  padding: 14px;
  font-size: 16px;
}
.profile-card__logout:hover { background: var(--dark-light); }

/* Mobile menu toggle */
.header__burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: 4px;
}
.header__burger svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: url('/images/hero-banner.jpg') center/cover no-repeat;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--red);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,29,33,0.92) 0%, rgba(26,29,33,0.75) 50%, rgba(26,29,33,0.4) 100%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}
.hero__content {
  max-width: 640px;
}
.hero__logo {
  max-width: 200px;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 44px;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero__subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero__stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
}
.hero__stat {
  text-align: center;
}
.hero__stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--red);
  text-shadow: 0 0 20px rgba(219,20,30,0.3);
}
.hero__stat-label {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-top: 4px;
}
.hero__search {
  max-width: 560px;
  position: relative;
}
.hero__search input {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius);
  padding: 0 60px 0 20px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero__search input::placeholder { color: #999; }
.hero__search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 40px;
  width: 48px;
  background: var(--red);
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero__search-btn:hover { background: var(--red-hover); }
.hero__search-btn svg { width: 20px; height: 20px; fill: #fff; }

/* ============================================
   TRUST STRIP
   ============================================ */
.trust {
  background: var(--gray-bg);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.trust .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust__icon svg { width: 24px; height: 24px; fill: var(--text-secondary); }
.trust__text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.trust__text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================
   BRANDS GRID
   ============================================ */
.brands {
  padding: 64px 0;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
}
.brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.brand-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.brand-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  background: var(--dark);
  color: #fff;
}
.brand-card:hover .brand-card__logo,
.brand-card:hover .brand-card__name {
  color: #fff;
}
.brand-card:hover .brand-card__count {
  color: var(--chrome);
}
.brand-card__logo {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  letter-spacing: 1px;
}
.brand-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.brand-card__count {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============================================
   POPULAR PRODUCTS
   ============================================ */
.popular {
  padding: 64px 0;
  background: var(--gray-bg);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--red);
}
.product-card__image {
  aspect-ratio: 1;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}
.product-card__image img { max-height: 100%; object-fit: contain; }
.product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.product-card__badge--stock { background: #e8f5e9; color: var(--green); }
.product-card__badge--order { background: #fff3e0; color: #e65100; }
.product-card__info { padding: 16px; }
.product-card__article {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.product-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--red);
  margin-bottom: 4px;
}
.product-card__old-price {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 8px;
}
.product-card__stock {
  font-size: 12px;
  color: var(--green);
  margin-bottom: 12px;
}
.product-card__stock--none { color: #e65100; }
.btn-cart {
  width: 100%;
  height: 44px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-cart:hover { background: var(--red-hover); box-shadow: var(--shadow-hover); }

/* ============================================
   ADVANTAGES
   ============================================ */
.advantages {
  padding: 64px 0;
}
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.advantage-card {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: #fff;
  border-top: 3px solid var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.advantage-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.advantage-card__icon svg { width: 26px; height: 26px; fill: var(--red); }
.advantage-card__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.advantage-card__text {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
  padding: 64px 0;
  background: var(--gray-bg);
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.review-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.review-card__stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 20px;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.review-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.review-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.review-card__role {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .reviews__grid { grid-template-columns: 1fr; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--red);
  padding: 56px 0;
  text-align: center;
}
.cta-section__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
}
.cta-section__text {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-bottom: 28px;
}
.btn-cta {
  background: var(--white);
  color: var(--red);
  border: 2px solid var(--white);
  padding: 14px 40px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-cta:hover { background: transparent; color: var(--white); border-color: var(--white); box-shadow: var(--shadow-hover); }

/* ============================================
   CONTACTS / MAP
   ============================================ */
.contacts {
  padding: 64px 0;
  background: var(--gray-bg);
}
.contacts .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contacts__info h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 24px;
}
.contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.contacts__item svg {
  width: 20px;
  height: 20px;
  fill: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.contacts__item p { font-size: 15px; line-height: 1.5; }
.contacts__item a { color: var(--red); font-weight: 600; }
.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  background: #e5e5e5;
}
.contacts__map iframe { width: 100%; height: 100%; border: none; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  padding: 48px 0 24px;
  color: rgba(255,255,255,0.6);
  border-top: 4px solid var(--red);
}
.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}
.footer__desc { font-size: 13px; line-height: 1.6; }
.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer ul a:hover { color: #fff; }
.footer__contacts p {
  font-size: 14px;
  margin-bottom: 8px;
}
.footer__contacts a { color: var(--red); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.float-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  border: none;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn--max {
  background: linear-gradient(135deg, #00B2FF, #7B61FF);
  width: auto;
  height: 48px;
  border-radius: 24px;
  padding: 0 18px;
  gap: 8px;
  flex-direction: row;
  display: flex;
}
.float-btn__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.5px;
}
.float-btn--phone { background: var(--red); }
.float-btn svg { width: 24px; height: 24px; fill: #fff; }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumbs a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs__sep { margin: 0 8px; }

/* ============================================
   CATALOG PAGE
   ============================================ */
.catalog { padding: 32px 0 64px; }
.catalog .container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.catalog__sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 112px;
}
.filter-group { margin-bottom: 20px; }
.filter-group__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.filter-group__list { max-height: 200px; overflow-y: auto; }
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.filter-checkbox small { color: var(--text-secondary); }
.filter-checkbox input[type=checkbox],
.filter-checkbox input[type=radio] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}
.filter-price {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-price input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 14px;
  outline: none;
}
.filter-price input:focus { border-color: var(--red); }
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.filter-toggle input { accent-color: var(--green); width: 16px; height: 16px; }
.btn-filter-reset {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.btn-filter-reset:hover { border-color: var(--red); color: var(--red); }

.catalog__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.catalog__count { font-size: 14px; color: var(--text-secondary); }
.catalog__sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.catalog__sort select {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 14px;
  outline: none;
}
.catalog__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.pagination button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}
.pagination button:hover { border-color: var(--red); color: var(--red); }
.pagination__active {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}
.pagination__dots { line-height: 40px; color: var(--text-secondary); }

/* ============================================
   PRODUCT PAGE
   ============================================ */
.product-page { padding: 32px 0 64px; overflow-x: hidden; }
.product-page .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  overflow: hidden;
}
.product-gallery__main {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  overflow: hidden;
}
.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery__thumb--active { border-color: var(--red); }
.product-gallery__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-detail__article { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.product-detail__name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}
.product-detail__price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--red);
  margin-bottom: 12px;
}
.product-detail__old-price {
  font-size: 20px;
  color: var(--text-secondary);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 12px;
}
.product-detail__stock {
  font-size: 16px;
  margin-bottom: 24px;
}
.product-detail__stock--yes { color: var(--green); }
.product-detail__stock--no { color: #e65100; }
.product-detail__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.product-detail__qty button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 20px;
  font-weight: 600;
}
.product-detail__qty input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
}
.btn-add-cart {
  width: 100%;
  height: 52px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.btn-add-cart:hover { background: var(--red-hover); }
.btn-oneclick {
  width: 100%;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
}
.btn-oneclick:hover { border-color: var(--red); color: var(--red); }
.product-detail__desc {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.product-detail__desc h3 { font-size: 18px; margin-bottom: 12px; }
.product-detail__desc p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; word-break: break-word; overflow-wrap: break-word; }

.similar-products {
  grid-column: 1 / -1;
  margin-top: 48px;
}
.similar-products h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Product Reviews (product page) */
.product-reviews {
  grid-column: 1 / -1;
  margin-top: 48px;
}
.product-reviews h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 20px;
}
.product-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-review-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px 24px;
  border-left: 3px solid var(--red);
}
.product-review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.product-review-card__author {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
}
.product-review-card__city {
  font-size: 13px;
  color: var(--text-light);
}
.product-review-card__stars {
  color: #f5a623;
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.product-review-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
}
.product-review-card__date {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* Gallery Dots (mobile swipe) */
.product-gallery__dots {
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}
.product-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.product-gallery__dot--active {
  background: var(--red);
  transform: scale(1.3);
}

/* Sticky Buy Bar (mobile) */
.sticky-buy-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  z-index: 150;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.sticky-buy-bar__price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--red);
}
.sticky-buy-bar__btn {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 0.2s;
  min-height: 48px;
}
.sticky-buy-bar__btn:hover { background: var(--red-hover); }

/* Cart Toast */
.cart-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 300;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: bottom 0.3s ease;
  white-space: nowrap;
}
.cart-toast--show { bottom: 24px; }
.cart-toast a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

/* Header phone (mobile) */
.header__phone {
  display: none;
  color: #fff;
  flex-shrink: 0;
}
.header__phone svg { width: 22px; height: 22px; fill: #fff; }

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
  padding: 32px 0 80px;
}
.cart-page__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 24px;
}
.cart-page__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.cart-item:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.cart-item__image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}
.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item__info {
  flex: 1;
  min-width: 0;
}
.cart-item__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item__name:hover {
  color: var(--red);
}
.cart-item__article {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.cart-item__qty button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item__qty button:hover {
  border-color: var(--red);
  color: var(--red);
}
.cart-item__qty input {
  width: 50px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
}
.cart-item__price {
  text-align: right;
  flex-shrink: 0;
  min-width: 120px;
}
.cart-item__unit {
  font-size: 13px;
  color: var(--text-secondary);
}
.cart-item__total {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}
.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 4px;
  flex-shrink: 0;
}
.cart-item__remove:hover {
  opacity: 1;
}
.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.cart-summary h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.cart-summary__total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.btn-checkout {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 20px;
  transition: background 0.2s;
}
.btn-checkout:hover {
  background: var(--red-hover);
}
.cart-summary__continue {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}
.cart-summary__continue:hover {
  color: var(--red);
}
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}
.cart-empty svg {
  margin-bottom: 16px;
}
.cart-empty h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 8px;
}
.cart-empty p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.btn-cart-action {
  display: inline-block;
  padding: 12px 32px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-cart-action:hover {
  background: var(--red-hover);
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page {
  padding: 32px 0 80px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.checkout-section {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}
.checkout-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row:last-child {
  margin-bottom: 0;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group input,
.checkout-section textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  background: var(--white);
  box-sizing: border-box;
}
.form-group input:focus,
.checkout-section textarea:focus {
  outline: none;
  border-color: var(--red);
}
.checkout-section textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.delivery-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.delivery-option:hover {
  border-color: #ccc;
}
.delivery-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.delivery-option input[type="radio"]:checked ~ .delivery-option__content {
  color: var(--text);
}
.delivery-option:has(input:checked) {
  border-color: var(--red);
  background: rgba(219, 20, 30, 0.02);
}
.delivery-option__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.delivery-option__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.delivery-option__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  margin-top: 6px;
}
.btn-submit-order {
  width: 100%;
  height: 52px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit-order:hover {
  background: var(--red-hover);
}
.btn-submit-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.checkout-summary {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.checkout-summary h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}
.checkout-summary__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.checkout-summary__name {
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checkout-summary__price {
  font-weight: 600;
  flex-shrink: 0;
}
.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
}
.checkout-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  gap: 16px;
}
.checkout-success h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 28px;
}
.checkout-success p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 400px;
  line-height: 1.6;
}

/* ============================================
   INFO PAGES (about, delivery, payment, contacts)
   ============================================ */
.info-page {
  padding: 32px 0 80px;
}
.info-page__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 32px;
}
.info-page__content {
  max-width: 900px;
}
.info-block {
  margin-bottom: 40px;
}
.info-block h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 16px;
}
.info-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.info-block ul {
  padding-left: 20px;
  margin: 12px 0;
}
.info-block ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.info-advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.info-advantage {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.info-advantage__icon {
  margin-bottom: 12px;
}
.info-advantage h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.info-advantage p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.info-brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.info-brands-list span {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}
.info-requisites p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Delivery cards */
.info-delivery-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.info-delivery-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-delivery-card__icon {
  margin-bottom: 16px;
}
.info-delivery-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.info-delivery-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}
.info-delivery-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.info-delivery-card ul {
  padding-left: 18px;
  margin: 10px 0;
}
.info-delivery-card ul li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.info-tk-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.info-tk {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.info-tk strong {
  font-size: 15px;
}
.info-tk span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Steps */
.info-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.info-step__number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
}
.info-step__text h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.info-step__text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contacts page */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contacts-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contacts-card__icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.contacts-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.contacts-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.contacts-card__link {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.contacts-card__link:hover {
  color: var(--red);
}
.contacts-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 400px;
}
.contacts-map iframe {
  display: block;
}
.contacts-callback {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contacts-callback h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 8px;
}
.contacts-callback > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.callback-form {
  text-align: left;
}
.callback-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.callback-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.callback-form .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.callback-form .form-group input,
.callback-form .form-group textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.callback-form .form-group textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}
.callback-form .form-group input:focus,
.callback-form .form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.callback-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
}
.callback-success h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
}
.callback-success p {
  color: var(--text-secondary);
}

/* Active nav link */
.header__nav-active {
  color: var(--red) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   RESPONSIVE — Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero .container { text-align: center; overflow: hidden; }
  .hero__content { max-width: 100%; }
  .hero__title { font-size: 32px; }
  .hero__search { max-width: 100%; margin: 0 auto; }
  .hero__stats { justify-content: center; flex-wrap: wrap; }
  .hero__logo { margin: 0 auto 24px; display: block; }
  .brands__grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .advantages__grid { grid-template-columns: repeat(3, 1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .header__search { max-width: none; }
}

/* ============================================
   RESPONSIVE — Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Top bar hidden */
  .top-bar { display: none; }

  /* Header mobile layout */
  .header { height: auto; min-height: 60px; padding: 10px 0; }
  .header .container {
    flex-wrap: wrap;
    gap: 10px;
  }
  .header__logo-text { font-size: 18px; letter-spacing: 2px; }
  .header__search {
    order: 10;
    max-width: none;
    flex: 0 0 100%;
  }
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__burger { display: block; }
  .header__actions { margin-left: auto; }
  .header__auth { padding: 6px 12px; font-size: 12px; }

  /* Mobile nav open */
  .header__nav--open {
    display: flex !important;
    flex-direction: column;
    order: 20;
    flex: 0 0 100%;
    gap: 0;
    background: var(--dark-light);
    border-radius: var(--radius);
    padding: 8px 0;
    margin-top: 4px;
  }
  .header__nav--open a {
    padding: 12px 20px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .header__nav--open a:last-child { border-bottom: none; }
  .header__nav--open a:hover { background: rgba(255,255,255,0.05); color: #fff; }

  /* Hero */
  .hero { padding: 40px 0; overflow: hidden; }
  .hero__title { font-size: 22px; line-height: 1.3; }
  .hero__subtitle { font-size: 14px; }
  .hero__stats { flex-direction: column; gap: 12px; }
  .hero__stat-number { font-size: 22px; }
  .hero__search { max-width: 100%; }

  /* Sections */
  .section-title { font-size: 22px; }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }

  /* Catalog */
  .catalog .container { grid-template-columns: 1fr; }
  .catalog__sidebar { position: static; width: 100%; }

  /* Product page */
  .product-page .container { grid-template-columns: 1fr; }
  .product-detail__name { font-size: 20px; }
  .product-detail__price { font-size: 26px; }
  .product-gallery__main { max-height: 300px; }
  .product-gallery__thumbs { gap: 8px; }
  .product-gallery__thumb { width: 56px; height: 56px; }
  .btn-add-cart, .btn-oneclick { font-size: 13px; padding: 12px; }
  .product-reviews { margin-top: 32px; }
  .product-review-card { padding: 16px; }

  /* Swipe gallery: show dots, hide thumbs */
  .product-gallery__dots { display: flex; }
  .product-gallery__thumbs { display: none; }
  .product-gallery__main { cursor: grab; touch-action: pan-y; }

  /* Sticky buy bar */
  .sticky-buy-bar { display: flex; }

  /* Phone in header */
  .header__phone { display: flex; }

  /* Cart toast above sticky bar */
  .cart-toast--show { bottom: 72px; }

  /* Pad bottom for sticky bar */
  .product-page { padding-bottom: 80px; }

  /* Cart */
  .cart-page__layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 14px;
    align-items: center;
  }
  .cart-item__image { width: 56px; height: 56px; grid-row: 1 / 3; }
  .cart-item__info { grid-column: 2; grid-row: 1; min-width: 0; }
  .cart-item__name { font-size: 13px; -webkit-line-clamp: 2; }
  .cart-item__article { font-size: 11px; }
  .cart-item__remove { grid-column: 3; grid-row: 1; padding: 2px; }
  .cart-item__qty {
    grid-column: 2; grid-row: 2;
    justify-self: start;
  }
  .cart-item__qty button { width: 28px; height: 28px; font-size: 14px; }
  .cart-item__qty input { width: 36px; height: 28px; font-size: 13px; }
  .cart-item__price {
    grid-column: 3; grid-row: 2;
    min-width: auto; text-align: right;
  }
  .cart-item__unit { font-size: 11px; }
  .cart-item__total { font-size: 14px; }

  /* Checkout */
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
  .form-row { grid-template-columns: 1fr; }

  /* Info pages */
  .info-advantages { grid-template-columns: 1fr; }
  .info-delivery-cards { grid-template-columns: 1fr; }
  .contacts .container { grid-template-columns: 1fr; }
  .contacts-layout { grid-template-columns: 1fr; }
  .callback-form .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer .container { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 32px 0 16px; }

  /* Floating buttons */
  .float-buttons { bottom: 16px; right: 16px; gap: 10px; }
  .float-btn { width: 48px; height: 48px; }
  .float-btn--max { width: 48px; padding: 0; border-radius: 50%; }
  .float-btn__label { display: none; }

  /* Auth pages */
  .auth-card { padding: 24px; margin: 0 8px; }

  /* Breadcrumbs */
  .breadcrumbs { font-size: 13px; }
  .breadcrumbs .container { overflow-x: auto; white-space: nowrap; padding: 10px 16px; }

  /* CTA section */
  .cta-section { padding: 40px 0; }
  .cta-section__title { font-size: 22px; }
  .btn-cta { padding: 12px 28px; font-size: 13px; }
}

/* ============================================
   RESPONSIVE — Small mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .hero__title { font-size: 18px; }
  .hero__subtitle { font-size: 13px; }
  .hero__stats { gap: 8px; }
  .hero__stat-number { font-size: 20px; }
  .brands__grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: 1fr; }
  .trust .container { grid-template-columns: 1fr; }
  .product-detail__name { font-size: 18px; }
  .product-detail__price { font-size: 22px; }
  .header__logo-text { font-size: 16px; }
  .section-title { font-size: 20px; }
  .product-gallery__thumb { width: 48px; height: 48px; }

  /* Oneclick modal */
  #oneclick-modal > div { padding: 20px; margin: 0 8px; }
}

/* ============================================
   Admin Panel
   ============================================ */

.admin-page {
  padding: 32px 0 64px;
  min-height: 60vh;
}

/* Stats cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
}

.admin-stat__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.2;
}

.admin-stat__label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.admin-tab {
  padding: 10px 24px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.admin-tab:hover {
  color: var(--text);
}

.admin-tab--active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Filters row */
.admin-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-input {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  min-width: 280px;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input:focus {
  border-color: var(--red);
}

.admin-select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  cursor: pointer;
  outline: none;
}

.admin-btn {
  padding: 8px 20px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-btn:hover {
  background: var(--red-hover);
}

/* Table */
.admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: var(--gray-bg);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

/* Small inline select */
.admin-select-sm {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--white);
  cursor: pointer;
  outline: none;
}

/* Status badges */
.admin-badge-new {
  border-color: #3b82f6;
  color: #1e40af;
  background: #eff6ff;
}

.admin-badge-processing {
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
}

.admin-badge-completed {
  border-color: #10b981;
  color: #065f46;
  background: #ecfdf5;
}

.admin-badge-cancelled {
  border-color: #ef4444;
  color: #991b1b;
  background: #fef2f2;
}

/* Pagination */
.admin-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 16px 0;
}

.admin-pagination button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-pagination button:hover {
  border-color: var(--red);
  color: var(--red);
}

.admin-pagination .admin-pg-active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* Order detail modal */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.admin-modal__content {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
}

.admin-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-modal__header h3 {
  font-size: 18px;
  font-weight: 700;
}

.admin-modal__header button {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
}

.admin-modal__info p {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.admin-modal__info strong {
  color: var(--text);
}

/* Admin content sections */
.admin-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

@media (max-width: 768px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-filters { flex-direction: column; }
  .admin-input { min-width: auto; width: 100%; }
  .admin-table { font-size: 13px; }
  .admin-table th, .admin-table td { padding: 8px; }
  .admin-modal__content { padding: 20px; }
}
