/* ===================================
   iPlatforma — style.css
   Apple-inspired e-commerce design
   =================================== */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary:    #0071e3;
  --color-primary-h:  #0077ed;
  --color-accent:     #ff3b30;
  --color-background: #ffffff;
  --color-bg-alt:     #f5f5f7;
  --color-bg-dark:    #1d1d1f;
  --color-text:       #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-border:     #d2d2d7;
  --color-success:    #34c759;
  --color-warning:    #ff9f0a;
  --color-badge-hit:  #ff3b30;
  --color-badge-new:  #34c759;
  --color-badge-sale: #ff9f0a;

  --font-base:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --radius-xl:        28px;
  --shadow-sm:        0 1px 4px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.04);
  --shadow-md:        0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:        0 12px 40px rgba(0,0,0,.12);
  --transition:       .2s cubic-bezier(.4,0,.2,1);
  --container-width:  1240px;
  --header-height:    100px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section ---------- */
.section { padding: 72px 0; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--color-text);
  margin-bottom: 40px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,113,227,.35);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--full { width: 100%; }

/* ---------- Icon Button ---------- */
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--color-text);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--color-bg-alt); }

.icon-btn__badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--color-accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

/* ===================================
   HEADER
   =================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Top Bar */
.topbar {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.75);
  font-size: .8125rem;
  padding: 7px 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.topbar__link:hover { color: #fff; }
.topbar__icon { width: 14px; height: 14px; flex-shrink: 0; }
.topbar__schedule { color: rgba(255,255,255,.5); }

.topbar__lang { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  color: rgba(255,255,255,.6);
  font-size: .8125rem;
  font-weight: 600;
  transition: color var(--transition);
}
.lang-btn--active { color: #fff; }
.lang-btn:hover { color: #fff; }
.lang-sep { color: rgba(255,255,255,.3); }

/* Main Header Row */
.header__main { padding: 12px 0; }
.header__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Catalog Button */
.catalog-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.catalog-btn:hover { background: var(--color-primary-h); }

.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.burger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}

.catalog-btn__text { display: block; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo__icon {
  font-size: 1.7rem;
  line-height: 1;
}
.logo__text {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--color-text);
}
.logo--light .logo__text { color: #fff; }
.logo--light .logo__icon { filter: invert(1); }

/* Search */
.search-form {
  flex: 1;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.search-form__input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 18px;
  border-radius: 980px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-alt);
  font-family: var(--font-base);
  font-size: .9375rem;
  color: var(--color-text);
  transition: var(--transition);
  outline: none;
}
.search-form__input::placeholder { color: var(--color-text-muted); }
.search-form__input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,113,227,.12);
}
.search-form__btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.search-form__btn svg { width: 18px; height: 18px; }
.search-form__btn:hover { color: var(--color-primary); }

/* Header Icons */
.header__icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

/* Navigation Menu */
.nav-menu { border-top: 1px solid rgba(0,0,0,.06); }
.nav-menu__list {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}
.nav-menu__list::-webkit-scrollbar { display: none; }
.nav-menu__link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  transition: var(--transition);
}
.nav-menu__link:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.nav-menu__link--accent { color: var(--color-primary); font-weight: 600; }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}
.mobile-menu.is-open { visibility: visible; }

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__panel {
  position: absolute;
  top: 0; left: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #fff;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mobile-menu__title { font-size: 1.25rem; font-weight: 700; }
.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-menu__close svg { width: 20px; height: 20px; }
.mobile-menu__close:hover { background: var(--color-bg-alt); }

.mobile-menu__list { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
}
.mobile-menu__link:hover { background: var(--color-bg-alt); }
.mobile-menu__link--accent { color: var(--color-primary); font-weight: 600; }

/* ===================================
   HERO SLIDER
   =================================== */
.hero { overflow: hidden; }

.hero-swiper { width: 100%; }

.hero__slide {
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 60px 0;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.hero__slide--1 { background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%); }
.hero__slide--2 { background: linear-gradient(135deg, #f5f5f7 0%, #e8ece8 100%); }
.hero__slide--3 { background: linear-gradient(135deg, #fff8f0 0%, #fdebd0 100%); }

.hero__slide > .hero__slide-content,
.hero__slide > .hero__slide-image {
  width: 50%;
}

.hero__slide-content {
  padding-left: calc((100vw - var(--container-width)) / 2 + 20px);
  padding-right: 40px;
  z-index: 1;
}

.hero__slide-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: calc((100vw - var(--container-width)) / 2 + 20px);
}
.hero__slide-image img {
  width: 100%;
  max-width: 460px;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: transform .6s ease;
}
.swiper-slide-active .hero__slide-image img {
  animation: heroImageIn .6s ease forwards;
}

@keyframes heroImageIn {
  from { opacity: 0; transform: translateX(30px) scale(.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.hero__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 980px;
  background: var(--color-primary);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 16px;
  animation: fadeInDown .5s ease both;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeInDown .5s .1s ease both;
}
.hero__title-accent { color: var(--color-primary); }

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  animation: fadeInDown .5s .2s ease both;
}
.hero__subtitle strong { color: var(--color-text); }

.hero__cta { animation: fadeInDown .5s .3s ease both; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Swiper custom styles */
.hero-pagination { bottom: 20px !important; }
.hero-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: rgba(0,0,0,.2);
  opacity: 1;
  transition: var(--transition);
}
.hero-pagination .swiper-pagination-bullet-active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

.hero-btn-prev,
.hero-btn-next {
  width: 44px !important; height: 44px !important;
  background: rgba(255,255,255,.85) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md) !important;
  transition: var(--transition) !important;
  color: var(--color-text) !important;
}
.hero-btn-prev:hover, .hero-btn-next:hover {
  background: #fff !important;
  transform: scale(1.08) !important;
}
.hero-btn-prev::after, .hero-btn-next::after {
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* ===================================
   CATEGORIES
   =================================== */
.categories { background: var(--color-bg-alt); }

.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.cat-card__icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.cat-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.cat-card__label {
  font-size: .75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cat-card__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-card__count {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.cat-card__arrow {
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.cat-card:hover .cat-card__arrow { transform: translateX(4px); }

/* ===================================
   PRODUCTS
   =================================== */
.products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.products__header .section-title { margin-bottom: 0; }

.products__tabs {
  display: flex;
  gap: 8px;
  background: var(--color-bg-alt);
  padding: 4px;
  border-radius: 980px;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 980px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.tab-btn--active {
  background: #fff;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.tab-btn:hover:not(.tab-btn--active) { color: var(--color-text); }

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

/* Product Card */
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-4px);
}

.product-card__image-wrap {
  position: relative;
  background: var(--color-bg-alt);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card__img { transform: scale(1.06); }

.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 980px;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.product-card__badge--hit  { background: var(--color-badge-hit); }
.product-card__badge--new  { background: var(--color-badge-new); }
.product-card__badge--sale { background: var(--color-badge-sale); }

.product-card__actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
}
.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-muted);
  transition: var(--transition);
}
.product-card__action svg { width: 16px; height: 16px; }
.product-card__action:hover { color: var(--color-accent); transform: scale(1.1); }
.product-card__action.is-active { color: var(--color-accent); }
.product-card__action.is-active svg { fill: var(--color-accent); }

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card__condition {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-card__condition--used { color: var(--color-warning); }
.product-card__condition--new  { color: var(--color-success); }

.product-card__name {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.product-card__name a {
  color: inherit;
  transition: color var(--transition);
}
.product-card__name a:hover { color: var(--color-primary); }

.product-card__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.product-card__price-old {
  font-size: .875rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.product-card__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -.02em;
}

.add-to-cart {
  margin-top: 8px;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: .875rem;
}

.products__more {
  text-align: center;
  margin-top: 44px;
}

/* ===================================
   ADVANTAGES
   =================================== */
.advantages { background: var(--color-bg-alt); }

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

.advantage-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.advantage-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.advantage-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.advantage-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.advantage-card__text {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===================================
   TRADE-IN PROMO
   =================================== */
.tradein-promo {
  background: linear-gradient(135deg, #0071e3 0%, #0040a0 100%);
  color: #fff;
}
.tradein-promo .section-title { color: #fff; }

.tradein-promo__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.tradein-promo__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.tradein-promo__text {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  max-width: 520px;
}

.tradein-promo__steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.tradein-promo__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .9375rem;
  color: rgba(255,255,255,.9);
}

.tradein-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  font-weight: 700;
  font-size: .875rem;
  flex-shrink: 0;
}

.tradein-promo .btn--primary {
  background: #fff;
  color: var(--color-primary);
}
.tradein-promo .btn--primary:hover {
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.tradein-promo__badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tradein-badge {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  min-width: 200px;
}
.tradein-badge strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 4px;
}
.tradein-badge span {
  font-size: .8125rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

/* ===================================
   SEO BLOCK
   =================================== */
.seo-block { background: var(--color-bg-alt); }

.seo-block__title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}

.seo-block__content p,
.seo-block__hidden p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 760px;
}

.seo-block__hidden {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease;
}
.seo-block__hidden.is-open { max-height: 500px; }

.seo-block__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--color-primary);
  font-size: .9375rem;
  font-weight: 600;
  transition: var(--transition);
}
.seo-block__toggle:hover { color: var(--color-primary-h); }
.seo-block__toggle::after {
  content: '↓';
  display: inline-block;
  transition: transform var(--transition);
}
.seo-block__toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}

/* Newsletter */
.footer__newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.footer__newsletter-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.footer__newsletter-text p { font-size: .875rem; color: rgba(255,255,255,.6); }

.footer__newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer__newsletter-input {
  padding: 0 18px;
  height: 44px;
  border-radius: 980px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-base);
  font-size: .9375rem;
  min-width: 260px;
  outline: none;
  transition: var(--transition);
}
.footer__newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.footer__newsletter-input:focus {
  border-color: var(--color-primary);
  background: rgba(255,255,255,.12);
}

/* Footer Grid */
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__brand-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-top: 12px;
  max-width: 220px;
  line-height: 1.6;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.footer__social svg { width: 18px; height: 18px; }
.footer__social:hover { background: var(--color-primary); color: #fff; }

.footer__nav-title {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.footer__nav-list { display: flex; flex-direction: column; gap: 10px; }
.footer__nav-link {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
  display: block;
}
.footer__nav-link:hover { color: #fff; }

.footer__contacts-block .footer__nav-title { margin-bottom: 20px; }
.footer__address { display: flex; flex-direction: column; gap: 10px; }
.footer__address p { font-size: .9rem; color: rgba(255,255,255,.7); }

/* Footer Bottom */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.footer__copy { font-size: .8125rem; color: rgba(255,255,255,.4); }

.footer__payments { display: flex; align-items: center; gap: 8px; }
.payment-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,.15);
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .02em;
}

/* ===================================
   FLOATING CART
   =================================== */
.floating-cart {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,113,227,.45);
  transition: var(--transition);
}
.floating-cart svg { width: 24px; height: 24px; }
.floating-cart:hover { transform: scale(1.08); background: var(--color-primary-h); }

.floating-cart__count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--color-accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   TOAST
   =================================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-bg-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: .9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 999;
  white-space: nowrap;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */

/* ---- Tablet ≤ 1024px ---- */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .tradein-promo__inner { grid-template-columns: 1fr; }
  .tradein-promo__badges { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero__slide-content { padding-left: 20px; }
  .hero__slide-image { padding-right: 20px; }
}

/* ---- Tablet ≤ 768px ---- */
@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .topbar__contacts { gap: 10px; }
  .topbar__schedule { display: none; }

  .catalog-btn__text { display: none; }
  .catalog-btn { padding: 9px 12px; }

  .search-form { max-width: none; }

  .header__icons .icon-btn:not(.cart-btn):not(#wishlistBtn) { display: none; }

  .nav-menu { display: none; }

  /* Hero: stack vertically */
  .hero__slide {
    flex-direction: column;
    min-height: auto;
    padding: 40px 20px;
    text-align: center;
  }
  .hero__slide > .hero__slide-content,
  .hero__slide > .hero__slide-image { width: 100%; padding: 0; }
  .hero__slide-content { margin-bottom: 24px; }
  .hero__slide-image img { max-height: 220px; margin: 0 auto; }

  .categories__grid { grid-template-columns: 1fr 1fr; }

  .products__header { flex-direction: column; align-items: flex-start; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }

  .advantages__grid { grid-template-columns: 1fr 1fr; }

  .footer__grid { grid-template-columns: 1fr; }

  .footer__newsletter {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__newsletter-input { min-width: 100%; }

  .floating-cart { display: flex; }
}

/* ---- Mobile ≤ 480px ---- */
@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .categories__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__body { padding: 12px; }
  .advantage-card { padding: 24px 16px; }
  .tradein-promo__badges { flex-direction: column; align-items: center; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Scroll animation helper */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   DRAWERS (CART / WISHLIST)
   =================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 90vw);
  background: #fff;
  z-index: 310;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.drawer.is-open {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.drawer__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}
.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.drawer__close svg {
  width: 20px;
  height: 20px;
}
.drawer__close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--color-text-muted);
  gap: 16px;
}
.drawer__empty-icon {
  font-size: 4rem;
  margin-bottom: 8px;
}

.drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: var(--color-bg-alt);
}
.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  margin-bottom: 16px;
}
.drawer__total strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.drawer-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.drawer-item__img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.drawer-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-item__name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}
.drawer-item__price {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--color-primary);
}
.drawer-item__remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
.drawer-item__remove:hover {
  background: rgba(255,59,48,.1);
  color: var(--color-accent);
}
.drawer-item__remove svg {
  width: 18px;
  height: 18px;
}
