/* =====================================================================
   ДИЗАЙН САЙТА ТопКлимат  (внешний вид)
   Обычно этот файл менять не нужно.
   Фирменные цвета взяты из логотипа: голубой #22b3e8 и оранжевый #f0852b.
   ===================================================================== */

:root {
  --cyan: #22b3e8;
  --cyan-dark: #0e8fc4;
  --orange: #f0852b;
  --orange-dark: #d96f15;
  --navy: #0b1f30;          /* глубокий тёмно-синий (hero, подвал) */
  --navy-2: #10293e;
  --ink: #16283a;           /* основной текст */
  --muted: #5d7186;         /* серый текст */
  --bg: #f2f7fb;            /* фон страницы */
  --card: #ffffff;
  --line: #e3ecf3;
  --shadow: 0 4px 20px rgba(11, 31, 48, 0.07);
  --shadow-lg: 0 18px 50px rgba(11, 31, 48, 0.16);
  --radius: 18px;
  --font: "Manrope", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }

/* ======================= SVG-ИКОНКИ ======================= */
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; display: inline-block; }
.btn-primary .ic, .btn-ghost .ic, .whatsapp-btn .ic { width: 19px; height: 19px; }
.cart-header .ic { width: 20px; height: 20px; color: var(--cyan-dark); }
.sidebar-help .ic { width: 16px; height: 16px; }
.footer-list li { display: flex; align-items: flex-start; gap: 9px; }
.footer-list .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--cyan); }
.big-ico .ic, .no-results .big-ico svg, .cart-empty .big-ico svg {
  width: 60px; height: 60px; color: #c2d2df;
}
.no-results .big-ico, .cart-empty .big-ico { display: block; margin: 0 auto 16px; width: 60px; }

/* Появление блоков при прокрутке (класс ставит js/app.js) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ======================= ШАПКА ======================= */
.header {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(11,31,48,.1); }
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; }
.brand .wordmark { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1; }
.wordmark .b { color: var(--cyan); }
.wordmark .o { color: var(--orange); }
.brand small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .6px; text-transform: uppercase; margin-top: 3px; }

.search-box { flex: 1; min-width: 190px; max-width: 440px; position: relative; }
.search-box input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  font-family: var(--font);
  outline: none;
  background: #f6fafd;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-box input:focus {
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(34, 179, 232, .14);
}
.search-box svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  stroke: var(--muted);
}

.header-phone { text-align: right; line-height: 1.2; }
.header-phone small { color: var(--muted); font-size: 11px; display: block; }
.header-phone b { color: var(--navy); font-size: 15.5px; white-space: nowrap; }

.cart-btn {
  position: relative;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14.5px;
  display: flex; align-items: center; gap: 9px;
  transition: transform .15s, box-shadow .25s, filter .2s;
  box-shadow: 0 8px 20px rgba(34, 179, 232, .35);
}
.cart-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.cart-btn:active { transform: translateY(0); }
.cart-count {
  background: var(--orange);
  color: #fff;
  border-radius: 20px;
  min-width: 21px; height: 21px;
  padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.cart-count.pop { animation: pop .35s ease; }
@keyframes pop { 0%{transform:scale(1)} 40%{transform:scale(1.55)} 100%{transform:scale(1)} }

/* ======================= HERO / БАННЕР ======================= */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1100px 600px at 78% 10%, #16405e 0%, transparent 55%),
              linear-gradient(150deg, var(--navy) 20%, var(--navy-2) 60%, #0d3450 100%);
  color: #fff;
}
/* «северное сияние» — мягкие плывущие пятна фирменных цветов */
.hero .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .32;
  pointer-events: none;
}
.hero .glow.g1 { width: 520px; height: 520px; background: var(--cyan);   top: -180px; left: -120px; animation: drift1 16s ease-in-out infinite alternate; }
.hero .glow.g2 { width: 420px; height: 420px; background: var(--orange); bottom: -200px; right: 6%;  animation: drift2 20s ease-in-out infinite alternate; opacity: .2; }
.hero .glow.g3 { width: 300px; height: 300px; background: #4fd0ff;       top: 30%; left: 44%;        animation: drift1 24s ease-in-out infinite alternate-reverse; opacity: .14; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(90px, 60px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-80px, -50px) scale(1.1); } }

/* летящие потоки воздуха (полоски с хвостом, как в логотипе) */
.air-flow { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.air-flow i {
  position: absolute;
  height: 2.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(34,179,232,.7) 55%, rgba(255,255,255,.9));
  filter: drop-shadow(0 0 6px rgba(34,179,232,.5));
  opacity: 0;
  animation: airflow linear infinite;
}
.air-flow i:nth-child(1) { top: 16%; width: 180px; animation-duration: 7s;   animation-delay: 0s; }
.air-flow i:nth-child(2) { top: 34%; width: 260px; animation-duration: 9.5s; animation-delay: 1.6s; }
.air-flow i:nth-child(3) { top: 52%; width: 140px; animation-duration: 6.5s; animation-delay: .7s; }
.air-flow i:nth-child(4) { top: 66%; width: 220px; animation-duration: 8.5s; animation-delay: 2.4s;
  background: linear-gradient(90deg, transparent, rgba(240,133,43,.6) 55%, rgba(255,220,180,.9));
  filter: drop-shadow(0 0 6px rgba(240,133,43,.45)); }
.air-flow i:nth-child(5) { top: 80%; width: 160px; animation-duration: 7.8s; animation-delay: 3.4s; }
.air-flow i:nth-child(6) { top: 24%; width: 120px; animation-duration: 10s;  animation-delay: 4.5s;
  background: linear-gradient(90deg, transparent, rgba(240,133,43,.5) 55%, rgba(255,220,180,.8));
  filter: drop-shadow(0 0 6px rgba(240,133,43,.4)); }
@keyframes airflow {
  0%   { left: -280px; opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}

/* эмблема-водяной знак на мобильных (когда правая колонка скрыта) */
.hero-mobile-emblem { display: none; }

/* тонкая сетка-чертёж поверх фона */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 20px 110px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,179,232,.14);
  border: 1px solid rgba(34,179,232,.35);
  color: #8fdcff;
  font-size: 13px; font-weight: 700;
  padding: 7px 15px;
  border-radius: 30px;
  margin-bottom: 22px;
  letter-spacing: .3px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--cyan) 20%, #7fd8ff 50%, var(--orange) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: clamp(15px, 1.8vw, 18px);
  color: #b8cadb;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.btn-primary, .btn-ghost {
  padding: 14px 30px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .25s, background .2s, filter .2s;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 10px 28px rgba(240,133,43,.4);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-ghost { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }

.hero-stats { display: flex; gap: 42px; flex-wrap: wrap; }
.stat .num {
  font-size: 34px; font-weight: 800; letter-spacing: -1px;
  color: #fff;
}
.stat .num em { font-style: normal; color: var(--cyan); }
.stat .lbl { font-size: 13px; color: #8ba2b8; margin-top: 2px; }

/* Правая часть hero — парящая эмблема */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.emblem-wrap { position: relative; width: min(380px, 80%); }
.emblem-wrap::before {
  /* мягкое свечение позади логотипа */
  content: "";
  position: absolute; inset: -12%;
  background: radial-gradient(circle, rgba(34,179,232,.35) 0%, transparent 65%);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
.emblem-wrap img {
  position: relative; z-index: 2;
  width: 100%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-20px) rotate(1.5deg); } }
/* вращающееся пунктирное кольцо вокруг эмблемы */
.emblem-ring {
  position: absolute; inset: -9%;
  border: 1.5px dashed rgba(34,179,232,.4);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.emblem-ring::before {
  content: "";
  position: absolute; top: -5px; left: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px var(--orange);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* плавная волна-переход из hero в контент */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; }
.hero-wave svg { display: block; width: 100%; height: 70px; }

/* ======================= ПРЕИМУЩЕСТВА ======================= */
.advantages {
  max-width: 1320px;
  margin: -46px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.adv-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.adv-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.adv-card:hover::before { transform: scaleX(1); }
.adv-card .ico {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #e5f6fd, #d1effb);
  border-radius: 14px;
  margin-bottom: 14px;
}
.adv-card b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.adv-card small { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; }

/* ======================= КАТАЛОГ ======================= */
.container {
  max-width: 1320px;
  margin: 48px auto 0;
  padding: 0 20px;
  display: flex;
  gap: 26px;
  align-items: flex-start;
}

.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 86px;
}
.sidebar h3 {
  font-size: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
}
.category-list { list-style: none; }
.category-list li {
  padding: 11px 13px;
  border-radius: 11px;
  cursor: pointer;
  margin-bottom: 3px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all .18s;
  display: flex; align-items: center; gap: 10px;
}
.category-list li:hover { background: #ecf7fd; color: var(--cyan-dark); }
.category-list li.active {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(34,179,232,.32);
}
.category-list li .cat-ico { display: flex; align-items: center; }
.category-list li .cat-ico .ic { width: 17px; height: 17px; opacity: .8; }
.category-list li .label { flex: 1; }
.category-list li .count {
  font-size: 11px; font-weight: 700;
  background: rgba(11,31,48,.07);
  color: var(--muted);
  padding: 2px 9px;
  border-radius: 12px;
}
.category-list li.active .count { background: rgba(255,255,255,.25); color: #fff; }

.sidebar-help {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--navy), #123c5c);
  color: #cfe3f2;
  font-size: 13px;
  line-height: 1.5;
}
.sidebar-help b { color: #fff; display: block; margin-bottom: 4px; font-size: 14px; }
.sidebar-help a {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  color: #fff; font-weight: 700;
  background: rgba(37, 211, 102, .9);
  padding: 8px 14px; border-radius: 9px;
  transition: filter .2s;
}
.sidebar-help a:hover { filter: brightness(1.1); }

.main-content { flex: 1; min-width: 0; }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.section-title {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--navy);
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: "";
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 5px; border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--orange));
}
.section-sub { color: var(--muted); font-size: 14px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .5s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(34,179,232,.45);
}

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 11.5px; font-weight: 800;
  padding: 4px 11px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(240,133,43,.4);
  letter-spacing: .3px;
}
.product-badge.sale { background: linear-gradient(135deg, #ef4444, #c62828); box-shadow: 0 4px 10px rgba(239,68,68,.4); }

.product-image {
  width: 100%;
  height: 172px;
  background:
    radial-gradient(circle at 30% 25%, rgba(34,179,232,.12), transparent 60%),
    linear-gradient(150deg, #f2f9fd 0%, #e2f1fa 100%);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 62px;
  margin-bottom: 13px;
  overflow: hidden;
  position: relative;
}
/* фото лежит ПОВЕРХ значка-подложки: если не загрузится — виден значок */
.product-image img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: contain;
  padding: 16px;
  transition: transform .4s;
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-image .p-ico svg { width: 60px; height: 60px; color: var(--cyan-dark); opacity: .75; stroke-width: 1.3; }
/* значок мягко «плывёт по воздуху» при наведении */
.product-image .p-ico { display: inline-block; }
.product-card:hover .p-ico { animation: sway 1.8s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}
/* подсказка «подробнее» при наведении */
.product-image::after {
  content: "Подробнее →";
  position: absolute; left: 50%; bottom: 10px;
  transform: translate(-50%, 10px);
  background: rgba(11,31,48,.85);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  backdrop-filter: blur(4px);
}
.product-card:hover .product-image::after { opacity: 1; transform: translate(-50%, 0); }

.product-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}
.product-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.in-stock { color: #16a34a; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; display: inline-block; box-shadow: 0 0 0 3px rgba(22,163,74,.15); }

.product-price { margin-bottom: 13px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-price .now { font-size: 21px; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.product-price .cur { font-size: 13px; color: var(--muted); font-weight: 600; }
.product-price .old { font-size: 14px; color: #a9b6c2; text-decoration: line-through; }

.product-actions { display: flex; gap: 9px; align-items: stretch; }
.qty-input {
  width: 56px;
  padding: 10px 6px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-family: var(--font);
  outline-color: var(--cyan);
}
.add-btn {
  flex: 1;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13.5px;
  transition: background .2s, transform .12s, box-shadow .2s;
}
.add-btn:hover { background: var(--cyan-dark); box-shadow: 0 6px 16px rgba(34,179,232,.35); }
.add-btn:active { transform: scale(.96); }
.add-btn.added { background: #16a34a; }

.no-results { text-align: center; padding: 80px 20px; color: var(--muted); font-size: 16px; }
.no-results .emoji { font-size: 54px; margin-bottom: 16px; display: block; }

/* ======================= ОКНО ТОВАРА (модальное) ======================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 23, 38, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .28s, visibility .28s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff;
  border-radius: 22px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  position: relative;
  transform: translateY(30px) scale(.97);
  transition: transform .32s cubic-bezier(.2,.9,.3,1.2);
  box-shadow: 0 40px 90px rgba(0,0,0,.35);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: rgba(11,31,48,.06);
  font-size: 18px; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 5;
}
.modal-close:hover { background: rgba(11,31,48,.12); transform: rotate(90deg); }

.modal-media {
  position: relative;
  background:
    radial-gradient(circle at 30% 25%, rgba(34,179,232,.14), transparent 60%),
    linear-gradient(150deg, #f2f9fd 0%, #dcedf8 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 120px;
  min-height: 340px;
  border-radius: 22px 0 0 22px;
  overflow: hidden;
}
.modal-media img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.modal-media .p-ico svg { width: 120px; height: 120px; color: var(--cyan-dark); opacity: .7; stroke-width: 1.1; }
.modal-cat { align-items: center; gap: 6px; }
.modal-cat .ic { width: 14px; height: 14px; }
.modal-note .ic { width: 16px; height: 16px; color: var(--cyan-dark); }

.modal-info { padding: 34px 32px 28px; display: flex; flex-direction: column; }
.modal-cat {
  display: inline-flex; align-self: flex-start;
  font-size: 12px; font-weight: 800;
  color: var(--cyan-dark);
  background: #e3f5fd;
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.modal-info h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.3; margin-bottom: 8px; color: var(--navy); }
.modal-art { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.modal-desc { font-size: 14.5px; color: #40566b; line-height: 1.65; margin-bottom: 22px; flex: 1; }

.modal-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.modal-price-row .now { font-size: 32px; font-weight: 800; letter-spacing: -1px; color: var(--navy); }
.modal-price-row .cur { font-size: 15px; color: var(--muted); font-weight: 600; }
.modal-price-row .old { font-size: 17px; color: #a9b6c2; text-decoration: line-through; }

.modal-buy { display: flex; gap: 12px; }
.modal-qty {
  display: flex; align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.modal-qty button {
  width: 42px; height: 48px;
  border: none; background: #f4f8fb;
  font-size: 19px; cursor: pointer; color: var(--navy);
  transition: background .2s;
}
.modal-qty button:hover { background: #e6eff6; }
.modal-qty span { width: 46px; text-align: center; font-weight: 800; font-size: 16px; }
.modal-add {
  flex: 1;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; border: none;
  border-radius: 12px;
  font-size: 15.5px; font-weight: 800;
  cursor: pointer;
  transition: transform .15s, filter .2s, box-shadow .2s;
  box-shadow: 0 10px 24px rgba(240,133,43,.35);
}
.modal-add:hover { transform: translateY(-2px); filter: brightness(1.06); }
.modal-add.added { background: #16a34a; box-shadow: 0 10px 24px rgba(22,163,74,.3); }
.modal-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }

/* ======================= CTA-ПОЛОСА ======================= */
.cta-strip {
  max-width: 1320px;
  margin: 60px auto 0;
  padding: 0 20px;
}
.cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--navy) 30%, #114a6e 75%, #16608d 100%);
  color: #fff;
  padding: 46px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-inner::before {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(240,133,43,.35), transparent 70%);
  border-radius: 50%;
}
/* фирменный «свуш» из логотипа — как водяной знак */
.cta-inner::after {
  content: "";
  position: absolute;
  right: 4%; top: 50%;
  transform: translateY(-50%);
  width: 340px; height: 200px;
  background: url("../images/logo/logo-mark.svg") no-repeat center / contain;
  opacity: .1;
  pointer-events: none;
}
.cta-inner .air-flow.small i { height: 2px; opacity: 0; }
.cta-inner .air-flow.small i:nth-child(1) { top: 25%; width: 130px; animation-duration: 6s; }
.cta-inner .air-flow.small i:nth-child(2) { top: 55%; width: 180px; animation-duration: 8s; animation-delay: 1.8s; }
.cta-inner .air-flow.small i:nth-child(3) { top: 78%; width: 110px; animation-duration: 7s; animation-delay: 3.2s; }
.cta-text { position: relative; z-index: 2; }
.cta-inner h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.cta-inner p { color: #b8cadb; font-size: 15px; max-width: 520px; }
.cta-inner .btn-primary { position: relative; z-index: 2; white-space: nowrap; }

/* ======================= ПОДВАЛ ======================= */
.footer { background: var(--navy); color: #b8c8d8; margin-top: 60px; }
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 50px 20px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}
.footer .brand img { width: 52px; height: 52px; }
.footer .wordmark { color: #fff; }
.footer p, .footer li { font-size: 14px; margin-bottom: 9px; }
.footer ul { list-style: none; }
.footer h4 {
  color: #fff; font-size: 15px; margin-bottom: 15px;
  text-transform: uppercase; letter-spacing: 1px; font-size: 12.5px;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 17px;
  font-size: 13px;
  color: #7a8fa5;
}

/* ======================= КНОПКА WHATSAPP ======================= */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.5);
  z-index: 1500;
  animation: pulse 2.4s infinite;
  transition: transform .2s;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 10px 28px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 10px 28px rgba(37,211,102,.5), 0 0 0 20px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ======================= КОРЗИНА ======================= */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 23, 38, .55);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0; visibility: hidden;
  transition: all .3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0;
  width: 440px; max-width: 100%; height: 100%;
  background: #fff;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.25,.8,.3,1);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,.22);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  background: #f6fafd;
}
.cart-header h2 { font-size: 19px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 9px; }
.close-cart {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--muted); width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.close-cart:hover { background: #e9eef3; transform: rotate(90deg); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-item { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid #eef2f6; animation: fadeUp .3s ease; }
.cart-item-img {
  position: relative;
  width: 60px; height: 60px;
  background: linear-gradient(150deg, #f2f9fd, #e2f1fa);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0; overflow: hidden;
}
.cart-item-img img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-item-img .p-ico svg { width: 28px; height: 28px; color: var(--cyan-dark); opacity: .75; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: var(--cyan-dark); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.cart-item-qty button {
  width: 28px; height: 28px;
  border: 1.5px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.cart-item-qty button:hover { background: #f0f6fa; border-color: var(--cyan); }
.cart-item-qty span { font-size: 14px; min-width: 22px; text-align: center; font-weight: 700; }
.remove-item {
  color: #ef4444; cursor: pointer; font-size: 16px;
  padding: 5px; background: none; border: none; align-self: flex-start;
  transition: transform .15s;
}
.remove-item:hover { transform: scale(1.2); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty .emoji { font-size: 58px; margin-bottom: 16px; display: block; }

.cart-footer { padding: 20px 22px; border-top: 1px solid var(--line); background: #f6fafd; }
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 19px; font-weight: 800; margin-bottom: 15px; color: var(--navy);
}
.whatsapp-btn {
  width: 100%; background: #25d366; color: #fff; border: none;
  padding: 15px; border-radius: 13px; font-size: 15.5px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter .2s, transform .15s;
  box-shadow: 0 8px 22px rgba(37,211,102,.35);
}
.whatsapp-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.clear-cart {
  width: 100%; background: transparent; color: var(--muted);
  border: 1.5px solid var(--line); padding: 10px; border-radius: 11px;
  margin-top: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.clear-cart:hover { background: #eef3f7; }

/* ======================= АДАПТИВ ======================= */
@media (max-width: 1000px) {
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 90px; }
  .hero-visual { display: none; }
  /* вместо правой колонки — большая полупрозрачная эмблема за текстом */
  .hero-mobile-emblem {
    display: block;
    position: absolute;
    right: -70px; top: 40px;
    width: 300px;
    opacity: .1;
    animation: float 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
  }
  .cta-inner::after { display: none; }
}
@media (max-width: 900px) {
  .container { flex-direction: column; }
  .sidebar { width: 100%; position: static; padding: 16px; }
  /* категории — горизонтальная лента с прокруткой пальцем */
  .category-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .category-list::-webkit-scrollbar { display: none; }
  .category-list li {
    margin: 0;
    padding: 9px 15px;
    font-size: 13.5px;
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #eef5fa;
  }
  .category-list li .count { display: none; }
  .sidebar-help { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .cta-inner { padding: 34px 26px; }
  .cta-inner .btn-primary { width: 100%; justify-content: center; }
}
/* окно товара на телефоне — «шторка» снизу */
@media (max-width: 700px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    grid-template-columns: 1fr;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    transform: translateY(100%);
    transition: transform .34s cubic-bezier(.25,.8,.3,1);
  }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal::before {
    /* «ручка» шторки */
    content: "";
    position: absolute; top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 4px;
    border-radius: 4px;
    background: rgba(11,31,48,.18);
    z-index: 6;
  }
  .modal-media { min-height: 190px; max-height: 230px; font-size: 76px; border-radius: 24px 24px 0 0; }
  .modal-info { padding: 22px 20px 26px; }
  .modal-info h2 { font-size: 19px; }
  .modal-price-row .now { font-size: 27px; }
  .modal-qty button { width: 46px; height: 52px; }
  .modal-add { padding: 14px 8px; }
}
@media (max-width: 600px) {
  .header-inner { gap: 10px; padding: 10px 14px; }
  .header-phone { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand .wordmark { font-size: 19px; }
  .brand small { display: none; }
  /* кнопка корзины — компактная, только значок и счётчик */
  .cart-btn { padding: 10px 14px; }
  .cart-btn .cart-label { display: none; }
  .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
  .search-box input { padding: 12px 16px 12px 42px; font-size: 16px; } /* 16px — чтобы iPhone не зумил */

  .hero-inner { padding: 44px 18px 78px; }
  .hero-eyebrow { font-size: 12px; padding: 6px 12px; }
  .hero p { margin-bottom: 24px; }
  .hero-actions { margin-bottom: 34px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { flex: 1 1 100%; justify-content: center; text-align: center; }
  .hero-stats { gap: 0; justify-content: space-between; width: 100%; }
  .stat .num { font-size: 25px; }
  .stat .lbl { font-size: 11.5px; }

  /* преимущества — компактные строки: значок слева, текст справа */
  .advantages { grid-template-columns: 1fr; gap: 10px; margin-top: -40px; }
  .adv-card { display: flex; align-items: center; gap: 13px; padding: 14px 16px; }
  .adv-card .ico { margin-bottom: 0; width: 44px; height: 44px; font-size: 21px; flex-shrink: 0; }
  .adv-card b { font-size: 14.5px; margin-bottom: 1px; }
  .adv-card small { font-size: 12.5px; }

  .container { margin-top: 30px; }
  .section-title { font-size: 21px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card { padding: 10px; border-radius: 14px; }
  .product-image { height: 120px; font-size: 44px; border-radius: 10px; margin-bottom: 10px; }
  .product-image::after { display: none; }  /* подсказка не нужна на тач-экране */
  .product-name { font-size: 12.5px; }
  .product-meta { font-size: 11px; }
  .product-price .now { font-size: 17px; }
  .product-price .cur { font-size: 11.5px; }
  .qty-input { width: 44px; padding: 9px 4px; font-size: 13px; }
  .add-btn { padding: 10px 6px; font-size: 12.5px; }
  .product-badge { font-size: 10.5px; padding: 3px 9px; top: 8px; left: 8px; }

  .cta-strip { margin-top: 44px; }
  .cta-inner { padding: 28px 20px; }
  .footer { margin-top: 44px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 28px; height: 28px; }
  .cart-drawer { width: 100%; }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-image { height: 150px; }
}

/* Уважение к пользователям, отключившим анимации */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}