:root{
  --bg: #0E1116;
  --bg-soft: #12151b;
  --card: #171B22;
  --card-hover: #1D222B;
  --accent: #EA4335;
  --accent-dim: rgba(244, 0, 0, 0.14);
  --accent-glow: rgba(244, 0, 0, 0.35);
  --text: #FFFFFF;
  --text-secondary: #B5B5B5;
  --border: rgba(255,255,255,.08);
  --border-soft: rgba(255,255,255,.05);

  --font-display: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", "Courier New", monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-card: 0 10px 30px rgba(0,0,0,.35);
  --shadow-card-hover: 0 24px 55px rgba(0,0,0,.5);

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p{ margin: 0; }

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

section{ position: relative; }

/* ---------- typography scale ---------- */
h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
h2{ font-size: clamp(28px, 3.6vw, 42px); }
h3{ font-size: 20px; font-weight: 700; }

.eyebrow{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head{
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.light .eyebrow{ color: var(--accent); }

/* ---------- reveal-on-scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ---------- buttons ---------- */
.btn{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn--primary{
  background: var(--accent);
  color: #0E1116;
  box-shadow: 0 8px 24px rgba(244, 0, 0, 0.25);
}
.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(244, 0, 0, 0.38);
}
.btn--outline{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover{
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--ghost{
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
  padding: 11px 22px;
  font-size: 14px;
}
.btn--ghost:hover{ border-color: var(--accent); }
.btn--sm{ padding: 11px 22px; font-size: 13px; width: 100%; }

.ripple-circle{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: scale(0);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
}
.btn--primary .ripple-circle{ background: rgba(14,17,22,.35); }
@keyframes ripple{
  to{ transform: scale(2.6); opacity: 0; }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14,17,22,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .3s var(--ease);
  padding: 18px 0;
}
.navbar.scrolled{
  background: rgba(14,17,22,.55);
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.navbar__inner{
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo__mark{
  width: 50px; height: 50px;
  color: #0E1116;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.logo__text{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
}
.logo__text b{ color: var(--accent); font-weight: 800; }

.nav-menu{
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link{
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .25s;
}
.nav-link::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-link:hover{ color: var(--text); }
.nav-link:hover::after{ width: 100%; }

.nav-cta{ margin-left: 4px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(244, 0, 0, 0.1), transparent 55%),
    var(--bg);
}
.hero__inner{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero__title{
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero__desc{
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero__actions{
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero__specs{
  display: flex;
  gap: 40px;
}
.spec{ display: flex; flex-direction: column; }
.spec__num{
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}
.spec__label{
  font-size: 13px;
  color: var(--text-secondary);
}

.hero__visual{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes pulse-glow{
  0%, 100%{ opacity: .7; }
  50%{ opacity: 1; }
}
.hero__image{
  position: relative;
  width: 100%;
  max-width: 560px;
  animation: float-image 6s ease-in-out infinite;
}
@keyframes float-image{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}

.scroll-indicator{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 20px;
}
.scroll-indicator span{
  display: block;
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin: 7px auto 0;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot{
  0%{ transform: translateY(0); opacity: 1; }
  70%{ transform: translateY(14px); opacity: 0; }
  100%{ opacity: 0; }
}

/* ==========================================================================
   ADVANTAGES
   ========================================================================== */
.advantages{ 
  padding: 110px 0 90px; 
  background: var(--bg-soft);
}
.advantages__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.adv-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(244, 0, 0, 0.3);
}
.adv-card__icon{
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.adv-card__icon svg{ width: 26px; height: 26px; }
.adv-card h3{ margin-bottom: 10px; font-size: 17px; }
.adv-card p{ color: var(--text-secondary); font-size: 14px; }

/* ==========================================================================
   CATEGORIES
   ========================================================================== */
.categories{ padding: 90px 0; background: var(--bg-soft); }
.categories__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.categories__grid .cat-card:nth-child(4),
.categories__grid .cat-card:nth-child(5){
  grid-column: span 1;
}
.cat-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.cat-card:hover{
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(244,180,0,.28);
}
.cat-card__media{
  aspect-ratio: 4/3;
  background: var(--bg);
  overflow: hidden;
}
.cat-card__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.cat-card:hover .cat-card__media img{ transform: scale(1.06); }
.cat-card__body{ padding: 26px 26px 30px; }
.cat-card__body h3{ margin-bottom: 10px; }
.cat-card__body p{ color: var(--text-secondary); font-size: 14px; margin-bottom: 18px; }
.link-more{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.link-more span{ transition: transform .3s var(--ease); }
.link-more:hover span{ transform: translateX(4px); }

/* ==========================================================================
   SELECTOR
   ========================================================================== */
.selector{ padding: 100px 0; }
.selector__inner{
  background: linear-gradient(135deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.selector__inner::before{
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.selector__text p{ color: var(--text-secondary); margin-top: 16px; }
.selector__form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
}
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row label{ font-size: 13px; color: var(--text-secondary); }
.form-row input{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color .25s, box-shadow .25s;
}
.form-row input:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.selector__submit{ grid-column: 1 / -1; margin-top: 6px; }

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.products{ 
  padding: 90px 0; 
}
.products__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.product-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(244, 0, 0, 0.28);
}
.product-card__media{
  aspect-ratio: 4/4;
  background: var(--bg);
  padding: 10px;
}
.product-card__media img{ width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img{ transform: scale(1.05); }
.product-card__body{ padding: 22px 24px 26px; }
.product-card__body h3{ font-size: 16px; margin-bottom: 12px; }
.product-card__meta{ display: flex; gap: 8px; margin-bottom: 18px; }
.tag{
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
}
.tag--muted{ background: rgba(255,255,255,.06); color: var(--text-secondary); font-weight: 500; }

/* ==========================================================================
   WHY US / STATS
   ========================================================================== */
.why-us{
  padding: 100px 0;
  background: linear-gradient(160deg, #14181f, var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat{
  padding: 20px;
  border-right: 1px solid var(--border-soft);
}
.stat:last-child{ border-right: none; }
.stat__num{
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}
.stat__label{
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews{ padding: 100px 0; }

/* сетка: карусель отзывов + карточка 2ГИС */
.reviews__grid{
  display: flex;
  align-items: stretch;
  gap: 28px;
}
.reviews__carousel-wrapper{
  flex: 1 1 64%;
  min-width: 0;
}

.reviews__carousel{ position: relative; overflow: hidden; }
.reviews__track{
  display: flex;
  transition: transform .6s var(--ease);
}
.review-card{
  min-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-sizing: border-box;
}
.review-card__text{
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 22px;
  color: var(--text);
}
.review-card__author{
  display: flex;
  align-items: center;
  gap: 14px;
}
.review-card__author div{ display: flex; flex-direction: column; }
.review-card__author b{ font-size: 15px; }
.review-card__author span{ font-size: 13px; color: var(--text-secondary); }
.avatar{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reviews__dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.reviews__dots .dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  transition: background .3s, transform .3s;
}
.reviews__dots .dot.active{
  background: var(--accent);
  transform: scale(1.2);
}

/* ---------- карточка 2ГИС ---------- */
.gis-card{
  flex: 0 0 300px;
  max-width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.gis-card__image{
  width: 200px;
  color: var(--accent);
}
.gis-card__image svg{ width: 100%; height: 100%; }
.gis-card__rating{
  display: flex;
  align-items: center;
  gap: 10px;
}
.gis-card__stars{
  color: #FFD700;
  font-size: 16px;
  letter-spacing: 1px;
}
.gis-card__score{
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.gis-card__text{
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.gis-card__btn{ width: 100%; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq{ padding: 90px 0; background: var(--bg-soft); }
.accordion{ display: flex; flex-direction: column; gap: 14px; }
.accordion-item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .3s;
}
.accordion-item.active{ border-color: rgba(244, 0, 0, 0.3); }
.accordion-header{
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.accordion-icon{
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.accordion-icon::before, .accordion-icon::after{
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .35s var(--ease);
}
.accordion-icon::before{ top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion-icon::after{ left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.accordion-item.active .accordion-icon::after{ transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-body{
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.accordion-body p{
  padding: 0 26px 24px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ==========================================================================
   CONTACTS
   ========================================================================== */
.contacts{ padding: 100px 0; }
.contacts__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card{
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.contact-card:hover{ transform: translateY(-5px); border-color: rgba(244, 0, 0, 0.3); }
.contact-card--static{ cursor: default; }
.contact-card--static:hover{ transform: none; border-color: var(--border); }
.contact-card__icon{
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card__icon svg{ width: 22px; height: 22px; }
.contact-card b{ display: block; font-size: 14px; margin-bottom: 4px; }
.contact-card span{ font-size: 14px; color: var(--text-secondary); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{ 
  border-top: 1px solid var(--border); 
  padding-top: 40px; 
  padding-bottom: 40px;
}
.footer__inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 40px;
}
.footer__menu{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__menu a{
  color: var(--text-secondary);
  font-size: 14px;
  transition: color .25s;
}
.footer__menu a:hover{ color: var(--accent); }
.footer__contacts{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: right;
}
.footer__bottom{
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer__bottom p{
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10,12,16,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
  padding: 24px;
}
.modal-overlay.active{ opacity: 1; visibility: visible; }
.modal{
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  transform: translateY(20px) scale(.96);
  transition: transform .35s var(--ease);
  box-shadow: var(--shadow-card-hover);
}
.modal-overlay.active .modal{ transform: translateY(0) scale(1); }
.modal__close{
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s, color .25s;
}
.modal__close:hover{ border-color: var(--accent); color: var(--accent); }
.modal__icon{
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.modal__icon svg{ width: 30px; height: 30px; }
.modal h3{ margin-bottom: 12px; }
.modal p{ color: var(--text-secondary); font-size: 15px; margin-bottom: 26px; }

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

/* 1440 and below: slightly tighter container already handled by max-width */

/* 1024px */
@media (max-width: 1024px){
  .container{ padding: 0 24px; }
  .advantages__grid{ grid-template-columns: repeat(2, 1fr); }
  .categories__grid{ grid-template-columns: repeat(2, 1fr); }
  .products__grid{ grid-template-columns: repeat(2, 1fr); }
  .contacts__grid{ grid-template-columns: repeat(2, 1fr); }
  .selector__inner{ grid-template-columns: 1fr; padding: 40px; }
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .stat{ border-right: none; border-bottom: 1px solid var(--border-soft); }
}

/* 768px */
@media (max-width: 768px){
  .nav-menu{
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--bg-soft);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transition: right .4s var(--ease);
    z-index: 999;
  }
  .nav-menu.active{ right: 0; }
  .nav-cta{ display: none; }

  .hero__inner{ grid-template-columns: 1fr; text-align: left; }
  .hero__visual{ order: -1; margin-bottom: 12px; }
  .hero__image{ max-width: 380px; margin: 0 auto; }
  .hero__specs{ gap: 26px; flex-wrap: wrap; }

  .advantages__grid, .categories__grid, .products__grid, .contacts__grid{
    grid-template-columns: 1fr;
  }
  .selector__form{ grid-template-columns: 1fr; }
  .footer__inner{ flex-direction: column; }
  .footer__contacts{ text-align: left; }
  .review-card{ padding: 32px 26px; }
}

/* 480px */
@media (max-width: 480px){
  .container{ padding: 0 18px; }
  .hero{ padding-top: 100px; }
  .hero__actions{ flex-direction: column; }
  .hero__actions .btn{ width: 100%; }
  .hero__specs{ gap: 18px; }
  .spec__num{ font-size: 21px; }
  .selector__inner{ padding: 28px; }
  .stats{ grid-template-columns: 1fr 1fr; }
  .modal{ padding: 36px 24px; }
}

/* 320px */
@media (max-width: 340px){
  .logo__text{ font-size: 13px; }
  .btn{ padding: 13px 22px; font-size: 14px; }
  h2{ font-size: 26px; }
}

/* focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== КАТАЛОГ: ЛЕВАЯ ПАНЕЛЬ ФИЛЬТРОВ ===== */
    .catalog-layout {
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: 40px;
      align-items: start;
      padding: 20px 0 40px;
    }

    /* Фильтры — левая панель */
    .filter-sidebar {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 24px 20px;
      position: sticky;
      top: 100px;
      display: flex;
      flex-direction: column;
      gap: 28px;
    }
    .filter-sidebar__group {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .filter-sidebar__label {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 4px;
    }
    .filter-sidebar__options {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .filter-btn {
      background: transparent;
      border: none;
      border-radius: 6px;
      padding: 8px 14px;
      font-size: 14px;
      color: var(--text-secondary);
      font-weight: 500;
      text-align: left;
      transition: all 0.2s ease;
      cursor: pointer;
    }
    .filter-btn:hover {
      background: var(--bg-soft);
      color: var(--text);
    }
    .filter-btn.active {
      background: var(--accent-dim);
      color: var(--accent);
      font-weight: 600;
    }
    .filter-sidebar__reset {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 10px 16px;
      color: var(--text-secondary);
      font-size: 13px;
      font-weight: 500;
      transition: all 0.2s ease;
      cursor: pointer;
      margin-top: 8px;
      text-align: center;
    }
    .filter-sidebar__reset:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    /* Сетка товаров */
    .catalog-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 26px;
    }
    @media (max-width: 1024px) {
      .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 768px) {
      .catalog-layout {
        grid-template-columns: 1fr;
      }
      .filter-sidebar {
        position: relative;
        top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px 32px;
        padding: 18px 20px;
      }
      .filter-sidebar__group {
        flex: 1;
        min-width: 120px;
      }
      .filter-sidebar__options {
        flex-direction: row;
        flex-wrap: wrap;
      }
      .filter-btn {
        padding: 4px 12px;
        font-size: 13px;
      }
      .catalog-grid {
        grid-template-columns: 1fr 1fr;
      }
    }
    @media (max-width: 480px) {
      .catalog-grid {
        grid-template-columns: 1fr;
      }
      .filter-sidebar {
        flex-direction: column;
        gap: 16px;
      }
    }

    /* Карточка товара (переопределения) */
    .product-card__body .price {
      font-family: var(--font-mono);
      font-size: 18px;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 14px;
    }
    .product-card__body .price small {
      font-weight: 400;
      font-size: 13px;
      color: var(--text-secondary);
      margin-left: 6px;
    }

    /* Пагинация */
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      margin-top: 48px;
      flex-wrap: wrap;
    }
    .pagination button {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-secondary);
      font-size: 14px;
      font-weight: 500;
      padding: 8px 16px;
      min-width: 42px;
      transition: all 0.2s ease;
      cursor: pointer;
    }
    .pagination button:hover:not(:disabled) {
      border-color: var(--accent);
      color: var(--text);
    }
    .pagination button.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #0E1116;
      font-weight: 700;
    }
    .pagination button:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }
    .pagination .arrow {
      font-size: 18px;
      line-height: 1;
      padding: 8px 14px;
    }

    /* заголовок */
    .catalog-header {
      padding: 130px 0 20px;
      background: var(--bg);
    }
    .catalog-header h1 {
      font-size: clamp(32px, 4vw, 48px);
      margin-bottom: 8px;
    }
    .catalog-header p {
      color: var(--text-secondary);
      font-size: 17px;
    }

    .reviews__carousel {
    overflow: hidden;
    width: 100%;
}

.reviews__track {
    display: flex;
    transition: transform .4s ease;
}

.review-card {
    min-width: 100%;
    flex-shrink: 0;
}

.reviews__carousel {
    overflow: hidden;
}

.review-card {
    flex: 0 0 calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 0 10px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* на планшетах/мобильных 2ГИС уходит вниз, под блок отзывов */
@media (max-width: 900px) {
    .reviews__grid {
        flex-direction: column;
    }
    .reviews__carousel-wrapper,
    .gis-card {
        flex: 1 1 auto;
        max-width: 100%;
    }
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-body {
    max-height: 300px;
    padding: 0 20px 20px;
}

/* ---------- OVERLAY ---------- */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   MOBILE MENU (выезжает вниз)
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 32px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-height: 100vh;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
}

/* Заголовок меню с крестиком */
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.mobile-menu__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mobile-menu__close:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg);
}

.mobile-menu__close svg {
    width: 20px;
    height: 20px;
}

/* Навигация */
.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 28px;
}

.mobile-menu__link {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
}

.mobile-menu__link:hover {
    background: var(--card);
    color: var(--text);
}

.mobile-menu__link:active {
    background: var(--accent-dim);
    color: var(--accent);
}

/* Контакты внизу меню */
.mobile-menu__contacts {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu__phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: color 0.25s ease;
}

.mobile-menu__phone:hover {
    color: var(--accent);
}

.mobile-menu__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #25D366;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.mobile-menu__whatsapp::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #25D366;
    border-radius: 50%;
    flex-shrink: 0;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3a9 9 0 0 0-7.8 13.5L3 21l4.7-1.2A9 9 0 1 0 12 3Z'/%3E%3Cpath d='M8.5 8.7c.2-.4.5-.4.8-.4h.6c.2 0 .4 0 .6.5s.7 1.7.7 1.8.1.3 0 .5c-.1.2-.2.3-.4.5s-.4.4-.2.7c.2.4 1 1.6 2.1 2.5 1.4 1.2 2 1.3 2.3 1.2s.5-.5.7-.9.5-.4.8-.2 1.9 1 2.2 1.1.5.2.6.4c.1.2.1 1-.3 1.9s-2 1.6-2.8 1.6-2.2-.3-4.4-1.9c-2.6-1.9-4.1-4.4-4.3-4.7s-1.5-2-1.5-3.9c0-1.9 1-2.8 1.3-3.2Z'/%3E%3C/svg%3E") center/contain no-repeat;
    background: #25D366;
}

.mobile-menu__whatsapp:hover {
    opacity: 0.8;
}

/* ==========================================================================
   OVERLAY
   ========================================================================== */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   BURGER (иконка)
   ========================================================================== */

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger span {
    display: block;
    height: 2px;
    width: 26px;
    background: var(--text);
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   RESPONSIVE (исправленное)
   ========================================================================== */

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-menu {
        display: none !important;
    }

    .mobile-menu {
        padding: 28px 20px 28px;
    }

    .mobile-menu__link {
        font-size: 17px;
        padding: 12px 14px;
    }

    .mobile-menu__phone {
        font-size: 18px;
    }

    .mobile-menu__whatsapp {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        padding: 28px 16px 24px;
    }

    .mobile-menu__link {
        font-size: 16px;
        padding: 11px 12px;
    }

    .mobile-menu__phone {
        font-size: 17px;
    }

    .burger {
        width: 38px;
        height: 38px;
    }

    .burger span {
        width: 22px;
    }
}

/* ============================================================
   ДОПОЛНЕНИЯ ДЛЯ ВЫРАВНИВАНИЯ БЛОКОВ ОТЗЫВОВ И 2ГИС
   ============================================================ */

/* Растягиваем всю сетку по вертикали */
.reviews__grid {
    align-items: stretch !important;
}

/* Делаем обёртку карусели гибкой по вертикали */
.reviews__carousel-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 64% !important;
}

/* Растягиваем саму карусель */
.reviews__carousel {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Растягиваем трек с отзывами */
.reviews__track {
    flex: 1 !important;
}

/* Каждая карточка отзыва — растягивается, контент распределяется */
.review-card {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Текст отзыва занимает всё свободное место */
.review-card__text {
    flex: 1 !important;
}

/* Блок автора не сжимается */
.review-card__author {
    flex-shrink: 0 !important;
}

/* Карточка 2ГИС центрируется по вертикали */
.gis-card {
    justify-content: center !important;
}






















/* ============================================================
   НАШИ ФИЛИАЛЫ
   ============================================================ */

.branches {
    padding: 100px 0;
    background: var(--bg-soft);
}

.branches__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.branch-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.branch-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(244, 0, 0, 0.25);
}

.branch-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg);
}

.branch-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.branch-card:hover .branch-card__image img {
    transform: scale(1.04);
}

.branch-card__body {
    padding: 24px 28px 28px;
}

.branch-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branch-card__title .badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--accent-dim);
    color: var(--accent);
}

.branch-card__address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.branch-card__address svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent);
    margin-top: 2px;
}

.branch-card__schedule {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.branch-card__schedule svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.branch-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    margin-top: 14px;
    transition: color .25s;
    text-decoration: none;
}

.branch-card__phone:hover {
    color: var(--accent);
}

.branch-card__phone svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* Адаптив */
@media (max-width: 768px) {
    .branches__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .branch-card__image {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .branch-card__body {
        padding: 18px 20px 22px;
    }
    
    .branch-card__title {
        font-size: 16px;
    }
    
    .branch-card__image {
        height: 150px;
    }
}

/* ============================================================
   КНОПКА "ПОКАЗАТЬ НА КАРТЕ"
   ============================================================ */

.branch-card__map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--accent);
    color: #0E1116;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
    box-shadow: 0 6px 20px rgba(244, 0, 0, 0.3);
    width: 100%;
    cursor: pointer;
}

.branch-card__map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(244, 0, 0, 0.45);
    background: #d63a2e;
}

.branch-card__map-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Убираем старый стиль для телефона, если он был */
.branch-card__phone {
    display: none;
}

/* ============================================================
   КНОПКА "НАВЕРХ" (FIXED)
   ============================================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #0E1116;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(244, 0, 0, 0.35);
    transition: all .3s var(--ease);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 36px rgba(244, 0, 0, 0.5);
    background: #d63a2e;
}

.back-to-top:active {
    transform: scale(0.95);
}

.back-to-top svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.5;
}

/* ============================================================
   МИНИМАЛИСТИЧНЫЙ ФУТЕР
   ============================================================ */

.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.footer .logo {
    flex-shrink: 0;
}

.footer__nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__nav a {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color .25s;
    position: relative;
}

.footer__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width .3s var(--ease);
}

.footer__nav a:hover {
    color: var(--text);
}

.footer__nav a:hover::after {
    width: 100%;
}

.footer__socials {
    display: flex;
    gap: 10px;
}

.footer__social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s var(--ease);
    text-decoration: none;
}

.footer__social:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.footer__social svg {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    padding-top: 20px;
    text-align: center;
}

.footer__bottom p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0;
    opacity: 0.6;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer__nav {
        justify-content: center;
        gap: 16px;
    }

    .footer__nav a {
        font-size: 13px;
    }

    .footer__socials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 18px;
    }

    .footer__nav {
        gap: 12px;
    }

    .footer__nav a {
        font-size: 12px;
    }

    .footer__social {
        width: 34px;
        height: 34px;
    }

    .footer__social svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================
   КОРЗИНА В ХЕДЕРЕ
   ============================================================ */

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all .3s var(--ease);
    text-decoration: none;
    margin-left: 8px;
}

.cart-btn:hover {
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

.cart-btn svg {
    width: 24px;
    height: 24px;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #0E1116;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s var(--ease);
    pointer-events: none;
}

.cart-btn:hover .cart-badge {
    transform: scale(1.1);
}

/* ============================================================
   КОРЗИНА В МОБИЛЬНОМ МЕНЮ
   ============================================================ */

.mobile-menu__cart {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-top: 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s var(--ease);
    position: relative;
}

.mobile-menu__cart:hover {
    background: var(--accent);
    color: #0E1116;
}

.mobile-menu__cart svg {
    width: 22px;
    height: 22px;
}

.mobile-menu__cart .cart-badge {
    position: static;
    background: var(--accent);
    color: #0E1116;
    min-width: 22px;
    height: 22px;
    font-size: 12px;
    margin-left: auto;
}

.mobile-menu__cart:hover .cart-badge {
    background: #0E1116;
    color: var(--accent);
}

/* ============================================================
   АДАПТИВ ХЕДЕРА (обновлённый)
   ============================================================ */

@media (max-width: 768px) {
    .navbar__inner {
        gap: 12px;
    }

    .cart-btn {
        margin-left: auto;
        width: 40px;
        height: 40px;
    }

    .cart-btn svg {
        width: 22px;
        height: 22px;
    }

    .cart-badge {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -1px;
        right: -1px;
    }

    .burger {
        margin-left: 4px;
    }
}



































/* ============================================================
   СТРАНИЦА КОРЗИНЫ
   ============================================================ */

/* Хедер корзины */
.cart-hero {
    padding: 130px 0 40px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.cart-hero h1 {
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 8px;
}

.cart-hero p {
    color: var(--text-secondary);
    font-size: 17px;
}

/* Основная сетка */
.cart-section {
    padding: 40px 0 80px;
    background: var(--bg-soft);
}

.cart__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Список товаров */
.cart__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Пустая корзина */
.cart__empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cart__empty svg {
    width: 64px;
    height: 64px;
    color: var(--text-secondary);
    opacity: 0.4;
    margin-bottom: 16px;
}

.cart__empty h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.cart__empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Карточка товара */
.cart-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all .3s var(--ease);
}

.cart-item:hover {
    border-color: rgba(244, 0, 0, 0.2);
    box-shadow: var(--shadow-card);
}

.cart-item__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item__info {
    flex: 1;
    min-width: 0;
}

.cart-item__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item__price {
    color: var(--text-secondary);
    font-size: 14px;
}

.cart-item__controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.cart-item__remove {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item__remove:hover {
    background: rgba(244, 0, 0, 0.12);
    color: var(--accent);
}

.cart-item__remove svg {
    width: 18px;
    height: 18px;
}

.cart-item__total {
    font-weight: 700;
    font-size: 17px;
    color: var(--text);
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

/* Итоговая колонка */
.cart__summary {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: sticky;
    top: 100px;
    transition: opacity .3s;
}

.cart__summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.cart__summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.cart__summary-divider {
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

.cart__summary-total {
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.cart__summary-total span:last-child {
    color: var(--accent);
    font-size: 20px;
}

.cart__checkout {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 16px;
}

.cart__checkout:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.cart__continue {
    display: inline-block;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color .25s;
}

.cart__continue:hover {
    color: var(--accent);
}

/* ============================================================
   АДАПТИВ КОРЗИНЫ
   ============================================================ */

@media (max-width: 992px) {
    .cart__grid {
        grid-template-columns: 1fr;
    }

    .cart__summary {
        position: static;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cart-item__info {
        flex: 1 1 100%;
        order: 1;
    }

    .cart-item__controls {
        order: 2;
        flex: 1;
    }

    .cart-item__total {
        order: 3;
        text-align: left;
        min-width: auto;
        font-size: 16px;
    }

    .cart-item__image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .cart-hero {
        padding: 110px 0 30px;
    }

    .cart-section {
        padding: 24px 0 60px;
    }

    .cart-item {
        padding: 14px 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .cart-item__image {
        width: 100%;
        height: 120px;
        order: 0;
    }

    .cart-item__info {
        order: 1;
    }

    .cart-item__controls {
        order: 2;
        justify-content: space-between;
    }

    .cart-item__total {
        order: 3;
        text-align: center;
        padding-top: 8px;
        border-top: 1px solid var(--border);
        font-size: 18px;
    }

    .cart__summary {
        padding: 24px 18px;
    }

    .cart__empty {
        padding: 40px 16px;
    }

    .cart__empty svg {
        width: 48px;
        height: 48px;
    }
}

/* ============================================================
   ОТОБРАЖЕНИЕ КОНТЕНТА (БЕЗ АНИМАЦИИ)
   ============================================================ */
.reveal {
    opacity: 1 !important;
    transform: none !important;
}