/* ===== Астра Энерджи — Design System ===== */
:root {
  --red: #E31E24;
  --red-dark: #B8181D;
  --red-light: #FF3B42;
  --yellow: #FFC107;
  --yellow-dark: #E6AC00;
  --yellow-light: #FFD54F;
  --dark: #0B1220;
  --dark-soft: #132033;
  --dark-mid: #1A2D4D;
  --navy-accent: #243B5C;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top bar ===== */
.top-bar {
  background: linear-gradient(90deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: 8px 0;
  min-height: 36px;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: var(--yellow);
  font-weight: 600;
  transition: color var(--transition);
}

.top-bar a:hover { color: var(--yellow-light); }

/* ===== Header ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  min-height: 80px;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
  flex-wrap: nowrap;
  min-height: 48px;
}

@media (min-width: 769px) {
  .nav {
    flex-shrink: 0;
  }

  .header-search--desktop {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .header__actions {
    flex-shrink: 0;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__icon {
  width: 48px;
  height: 48px;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo__name span { color: var(--red); }

.logo__tagline {
  font-size: 0.6875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--red);
  background: rgba(227, 30, 36, 0.06);
}

.nav .nav__link[href*="catalog"] {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255, 193, 7, 0.35);
}

.nav .nav__link[href*="catalog"]:hover,
.nav .nav__link[href*="catalog"].nav__link--active {
  background: linear-gradient(135deg, var(--yellow-light), var(--yellow));
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.45);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(227, 30, 36, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn--outline:hover {
  background: var(--red);
  color: var(--white);
}

.btn--yellow {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
}

.btn--yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 193, 7, 0.45);
}

.btn--lg { padding: 16px 32px; font-size: 1rem; }

.btn--sm { padding: 8px 16px; font-size: 0.875rem; }

/* ===== Icons ===== */
.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }

.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(227,30,36,0.12), rgba(255,193,7,0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.icon-wrap--hero {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  color: var(--white);
}

/* ===== Header search ===== */
.header-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.header-search__wrap {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 14px;
  transition: all var(--transition);
}

.header-search__wrap:focus-within {
  background: var(--white);
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227,30,36,0.1);
}

.header-search__wrap .icon { color: var(--gray-500); margin-right: 8px; }

.header-search__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--dark);
  outline: none;
  min-width: 0;
}

.header-search__input::placeholder { color: var(--gray-500); }

.header-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 150;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}

.header-search__item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}

.header-search__item:last-child { border-bottom: none; }

.header-search__item:hover { background: rgba(227,30,36,0.04); }

.header-search__item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.header-search__item-meta {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.header-search__empty {
  padding: 16px;
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
}

.mobile-search {
  margin-bottom: 16px;
  padding: 0 4px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-search .header-search { max-width: none; }

.hero__badge .icon { color: var(--yellow); margin-right: 4px; }

.hero__preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.hero__preview img {
  border-radius: 10px;
  height: 80px;
  width: 100%;
  object-fit: cover;
}

.hero__card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__card-list li .icon {
  color: var(--yellow);
  width: 16px;
  height: 16px;
}

.hero__card-list li::before { content: none; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    linear-gradient(155deg, rgba(11, 18, 32, 0.84) 0%, rgba(19, 32, 51, 0.78) 42%, rgba(26, 45, 77, 0.74) 100%),
    radial-gradient(ellipse at 82% 18%, rgba(227, 30, 36, 0.18) 0%, transparent 48%),
    radial-gradient(ellipse at 12% 88%, rgba(255, 193, 7, 0.1) 0%, transparent 45%),
    url('../images/hero/hero-bg.jpg') center / cover no-repeat;
  background-color: var(--dark);
  color: var(--white);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(227,30,36,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--red));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--yellow);
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__card {
  background: rgba(19, 32, 51, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(36, 59, 92, 0.45);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

.hero__card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

.hero__card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.hero__card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.hero__card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}


/* ===== Section ===== */
.section {
  padding: 80px 0;
}

.section--gray { background: var(--gray-100); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__desc {
  color: var(--gray-500);
  font-size: 1.0625rem;
}

/* ===== Categories ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.category-card:hover::before { transform: scaleX(1); }

.category-card--image { padding: 0; }

.category-card__img {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.category-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-card__img img { transform: scale(1.08); }

.category-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.65), transparent);
}

.category-card__body { padding: 24px; }

.category-card > .icon-wrap { margin-bottom: 20px; }

.contact-card .icon-wrap { margin: 0 auto 16px; }

.category-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(227,30,36,0.1), rgba(255,193,7,0.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.category-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.category-card__desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.5;
}

.category-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.category-card:hover .category-card__link { gap: 10px; }

/* ===== Products preview ===== */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.product-card__link {
  display: block;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.product-card__link--static { cursor: default; }

.product-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px 16px;
  margin-top: auto;
}

.product-card__more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
}

.product-card__more:hover { text-decoration: underline; }

.product-card__order { flex-shrink: 0; }

.product-card__img {
  aspect-ratio: 1;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__img img { transform: scale(1.06); }

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.product-card__body { padding: 16px; }

.product-card__cat {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.product-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card__price {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.product-card__price strong {
  color: var(--red);
  font-size: 1rem;
}

.product-card__sku {
  font-size: 0.6875rem;
  color: var(--gray-500);
  margin-bottom: 6px;
}


/* ===== About preview ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image {
  background: var(--dark);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.about__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.88), rgba(26, 45, 77, 0.75), rgba(227, 30, 36, 0.35));
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.about__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.about__image-inner {
  text-align: center;
  color: var(--white);
  padding: 32px;
}

.about__image-inner .logo__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.about__feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about__feature .icon-wrap--accent {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  color: var(--white);
  flex-shrink: 0;
}

.about__feature h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about__feature p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,193,7,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta__content { position: relative; z-index: 1; }

.cta__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta__text {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  max-width: 480px;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cta__phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yellow);
}

/* ===== Brands ===== */
.brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
}

.brand-item {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

/* ===== Page header (inner pages) ===== */
.page-hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-soft) 55%, var(--dark-mid) 100%);
  color: var(--white);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(36, 59, 92, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(227, 30, 36, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--red));
}

.page-hero__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.breadcrumbs a { color: var(--yellow); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ===== Placeholder content ===== */
.placeholder {
  text-align: center;
  padding: 80px 24px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-300);
}

.placeholder__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.placeholder__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.placeholder__text {
  color: var(--gray-500);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== Catalog sidebar layout ===== */
.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 48px 0 80px;
}

.sidebar {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.sidebar__list { display: flex; flex-direction: column; gap: 4px; }

.sidebar__link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--gray-700);
  transition: all var(--transition);
}

.sidebar__link:hover,
.sidebar__link--active {
  background: rgba(227, 30, 36, 0.06);
  color: var(--red);
  font-weight: 600;
}

/* ===== Contact cards ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(227,30,36,0.1), rgba(255,193,7,0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.contact-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card__value {
  font-size: 1.0625rem;
  color: var(--red);
  font-weight: 600;
}

.contact-card__value a { color: var(--red); }

/* ===== Footer ===== */
.footer {
  background: linear-gradient(180deg, var(--dark-soft) 0%, var(--dark) 100%);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer .logo__name { color: var(--white); }
.footer .logo__tagline { color: rgba(255,255,255,0.5); }

.footer__desc {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 20px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--yellow); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__credit {
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  transition: color var(--transition);
}

.footer__credit a:hover { color: var(--yellow); }

/* ===== Mobile nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-nav--open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  padding: 24px 32px 32px;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.mobile-nav--open .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 24px;
  color: var(--gray-700);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.mobile-nav__links a {
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  color: var(--gray-700);
}

.mobile-nav__links a:hover {
  background: rgba(227,30,36,0.06);
  color: var(--red);
}

.mobile-nav__links a[href*="catalog"] {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--dark);
  font-weight: 700;
}

.mobile-nav__links a[href*="catalog"]:hover {
  background: linear-gradient(135deg, var(--yellow-light), var(--yellow));
  color: var(--dark);
}

.mobile-nav__phone {
  margin-top: 24px;
  padding: 24px 4px 0;
  border-top: 1px solid var(--gray-100);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .header-search--desktop { max-width: 220px; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .header-search--desktop { display: none; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .header { min-height: 72px; }
  .header__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }
  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav,
  .header-search--desktop,
  .header__actions {
    display: none;
  }
  .burger {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }
  .mobile-nav { display: block; }
  .top-bar .container,
  .hero .container,
  .page-hero .container {
    padding-left: 32px;
    padding-right: 32px;
  }
  .hero__grid {
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .categories { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
  .cta { flex-direction: column; text-align: center; padding: 40px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .top-bar .container,
  .hero .container,
  .page-hero .container {
    padding-left: 36px;
    padding-right: 36px;
  }
  .products { grid-template-columns: 1fr; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
}

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 20px 0;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-item .icon-wrap { flex-shrink: 0; }

.trust-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--dark);
}

.trust-item span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ===== Brands ===== */
.brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.brand-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.brand-logo:hover { opacity: 1; color: var(--dark); }

/* ===== Catalog ===== */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.catalog-toolbar__count {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.catalog-section {
  margin-bottom: 56px;
  scroll-margin-top: 120px;
}

.catalog-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.catalog-section__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--dark);
}

.catalog-section__more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
}

.products--catalog {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== Product page ===== */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0 80px;
}

.product-gallery__main {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info__cat {
  font-size: 0.8125rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.product-info__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 12px;
}

.product-info__sku {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.product-info__price-box {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.product-info__price-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.product-info__price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
}

.product-info__price-note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 8px;
}

.product-specs {
  margin-top: 32px;
}

.product-specs h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--gray-100);
}

.spec-table td {
  padding: 12px 0;
  font-size: 0.875rem;
}

.spec-table td:first-child {
  color: var(--gray-500);
  width: 40%;
}

.spec-table td:last-child {
  font-weight: 500;
  color: var(--dark);
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .products--catalog { grid-template-columns: repeat(2, 1fr); }
  .product-page { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .trust-strip__grid { grid-template-columns: 1fr; }
  .products--catalog { grid-template-columns: 1fr; }
}

/* ===== Blog ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

.blog-list { display: flex; flex-direction: column; gap: 32px; }

.blog-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-2px);
}

.blog-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__img img { transform: scale(1.05); }

.blog-card__body { padding: 28px 28px 28px 0; }

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-card__date {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.blog-card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  background: rgba(227,30,36,0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

.blog-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card__title a:hover { color: var(--red); }

.blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
}

.blog-sidebar { display: flex; flex-direction: column; gap: 24px; }

.blog-widget {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
}

.blog-widget__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--yellow);
}

.blog-widget__list { display: flex; flex-direction: column; gap: 10px; }

.blog-widget__list a {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.4;
  transition: color var(--transition);
}

.blog-widget__list a:hover { color: var(--red); }

.blog-widget__list a.blog-widget__list--active {
  color: var(--red);
  font-weight: 600;
}

.blog-widget__cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border: none;
  color: var(--white);
}

.blog-widget__cta .blog-widget__title {
  color: var(--yellow);
  border-bottom-color: rgba(255,255,255,0.2);
}

.blog-widget__cta p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  line-height: 1.5;
}

.blog-widget__cta a { color: var(--yellow); font-weight: 700; }

.blog-article__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 21/9;
  background: var(--gray-100);
}

.blog-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-article__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 24px;
}

.blog-article__content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-700);
}

.blog-article__content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin: 32px 0 16px;
}

.blog-article__content p { margin-bottom: 16px; }

.blog-article__content ul {
  list-style: disc;
  margin: 0 0 16px 24px;
}

.blog-article__content li { margin-bottom: 8px; }

@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card__body { padding: 0 24px 24px; }
  .blog-card__img { aspect-ratio: 16/9; }
}

/* ===== Callback modal ===== */
.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.callback-modal--open {
  opacity: 1;
  visibility: visible;
}

.callback-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.62);
  backdrop-filter: blur(4px);
}

.callback-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.callback-modal--open .callback-modal__dialog {
  transform: translateY(0) scale(1);
}

.callback-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--gray-700);
  transition: background var(--transition);
}

.callback-modal__close:hover { background: var(--gray-200); }

.callback-modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  padding-right: 32px;
}

.callback-modal__subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.5;
}

.callback-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.callback-form__field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.callback-form__field input,
.callback-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.callback-form__field input:focus,
.callback-form__field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12);
}

.callback-form__note {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

.callback-modal__success {
  text-align: center;
  padding: 16px 0;
}

.callback-modal__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
}

.callback-modal__success h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.callback-modal__success p {
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ===== Contact FAB (messengers) ===== */
.contact-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-fab__items {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}

.contact-fab__item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-16px) scale(0.6);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  transition-delay: calc(var(--fab-i) * 0.05s);
  pointer-events: none;
}

.contact-fab--open .contact-fab__item {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.contact-fab__label {
  padding: 8px 14px;
  background: var(--white);
  color: var(--dark);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(11, 18, 32, 0.15);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  transition-delay: calc(var(--fab-i) * 0.05s + 0.08s);
}

.contact-fab--open .contact-fab__label {
  opacity: 1;
  transform: translateX(0);
}

.contact-fab__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-fab__icon svg {
  width: 22px;
  height: 22px;
}

.contact-fab__item:hover .contact-fab__icon {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.contact-fab__item--phone .contact-fab__icon { background: linear-gradient(135deg, #22c55e, #16a34a); }
.contact-fab__item--telegram .contact-fab__icon { background: linear-gradient(135deg, #2AABEE, #229ED9); }
.contact-fab__item--viber .contact-fab__icon { background: linear-gradient(135deg, #8B5CF6, #7360F2); }
.contact-fab__item--whatsapp .contact-fab__icon { background: linear-gradient(135deg, #25D366, #128C7E); }
.contact-fab__item--form .contact-fab__icon { background: linear-gradient(135deg, var(--red), var(--red-dark)); }

.contact-fab__toggle {
  position: relative;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 6px 28px rgba(227, 30, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.contact-fab__toggle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(227, 30, 36, 0.4);
  animation: contact-fab-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

.contact-fab--open .contact-fab__toggle::before {
  animation: none;
  opacity: 0;
}

.contact-fab__toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(227, 30, 36, 0.55);
}

.contact-fab--open .contact-fab__toggle {
  background: linear-gradient(135deg, var(--dark-mid), var(--dark));
  box-shadow: 0 6px 24px rgba(11, 18, 32, 0.4);
}

.contact-fab__toggle-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.contact-fab__toggle-icon svg {
  width: 26px;
  height: 26px;
}

.contact-fab__toggle-icon--open {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.contact-fab__toggle-icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.contact-fab--open .contact-fab__toggle-icon--open {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.contact-fab--open .contact-fab__toggle-icon--close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.contact-fab__hint {
  position: absolute;
  left: 68px;
  bottom: 18px;
  padding: 6px 12px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-fab:not(.contact-fab--open):hover .contact-fab__hint {
  opacity: 1;
  transform: translateX(0);
}

@keyframes contact-fab-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 640px) {
  .contact-fab {
    left: 16px;
    bottom: 16px;
  }

  .contact-fab__icon {
    width: 44px;
    height: 44px;
  }

  .contact-fab__toggle {
    width: 54px;
    height: 54px;
  }

  .contact-fab__hint { display: none; }
}
