/* =========================================================
   Бризеры Ballu ASP — лендинг
   Mobile-first, тёмная тема, без внешних зависимостей
   ========================================================= */

:root {
  --bg: #0b0f14;
  --bg-soft: #0e141b;
  --surface: #141b24;
  --surface-2: #1b2430;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);

  --text: #e6edf3;
  --muted: #9aa7b4;

  --accent: #22d3ee;
  --accent-2: #38bdf8;
  --accent-ink: #062028;
  --accent-glow: rgba(34, 211, 238, .35);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 64px;

  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --grad-accent: linear-gradient(135deg, var(--accent), var(--accent-2));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  padding-bottom: 76px; /* место под мобильный бар */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.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 {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}
.container-narrow { max-width: 820px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .6em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .8em 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--grad-accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 30px var(--accent-glow); filter: brightness(1.05); }

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--accent); }

.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: .5em 1em; font-size: .85rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .04em;
  margin-right: auto;
}
.logo-mark { color: var(--accent); display: inline-flex; }
.logo-text em { color: var(--accent); font-style: normal; }

.nav {
  display: none;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }
.nav-phone { color: var(--text) !important; white-space: nowrap; }

.header-cta { display: none; }

.burger {
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.nav.is-open {
  display: flex;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 18px 20px;
  background: rgba(11, 15, 20, .98);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav.is-open a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.nav.is-open .nav-phone { color: var(--accent) !important; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 40px 0 8px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero-copy .lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  font-size: .88rem;
  color: var(--muted);
}
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.hero-visual { position: relative; }
.hero-visual img { margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }

.hero-card {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  white-space: nowrap;
}
.hero-card strong { display: block; font-size: 1.1rem; }
.hero-card span { font-size: .8rem; color: var(--muted); }
.pulse {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
  70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.glass {
  background: rgba(20, 27, 36, .72);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: -160px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  opacity: .5;
  pointer-events: none;
}

/* ===== Sections ===== */
.section { padding: 56px 0; position: relative; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: .4em; }
.section-head .muted { margin-bottom: 0; }

/* ===== Grids ===== */
.grid { display: grid; gap: 16px; }
.grid-3, .grid-4 { grid-template-columns: 1fr; }

/* ===== Features ===== */
.feature {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  font-size: 1.35rem;
  border-radius: 14px;
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .25);
  margin-bottom: 14px;
}
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ===== Product cards ===== */
.product {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.product-media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(34,211,238,.12), transparent 70%);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.product-media img { width: 78%; }
.product-tag {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34,211,238,.1);
  border: 1px solid rgba(34,211,238,.25);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product h3 { margin-bottom: .15em; }
.product-sub { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.product-specs {
  list-style: none;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
  font-size: .9rem;
}
.product-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.product-specs span:first-child { color: var(--muted); }
.product-specs span:last-child { font-weight: 600; text-align: right; }
.product-actions { margin-top: auto; display: flex; gap: 10px; }
.product-actions .btn { flex: 1; }

.note {
  margin: 24px 0 0;
  font-size: .82rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* ===== Compare table ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: .9rem;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare thead th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--surface-2);
  position: sticky;
  top: 0;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: rgba(34, 211, 238, .05); }
.compare td:first-child { font-weight: 700; color: var(--text); }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-accent);
  color: var(--accent-ink);
  font-weight: 800;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ===== Reviews ===== */
.review {
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.review::before {
  content: "“";
  position: absolute;
  top: 6px; right: 18px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(34, 211, 238, .18);
  font-family: Georgia, serif;
}
.review p { color: var(--text); }
.review footer { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: .95rem; }

/* ===== Contacts ===== */
.contact-inner { display: grid; gap: 28px; }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 20px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.contact-list li > span:first-child {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.contact-list a { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-form h3 { margin-bottom: 1em; }
.contact-form label { display: block; margin-bottom: 14px; }
.contact-form label span {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.contact-form textarea { resize: vertical; }
.form-hint { margin: 12px 0 0; font-size: .75rem; color: var(--muted); }
.field-error { border-color: #f87171 !important; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 40px 0 90px;
}
.footer-inner {
  display: grid;
  gap: 24px;
}
.footer-inner .logo { margin-bottom: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.footer-nav a { color: var(--muted); font-weight: 600; font-size: .9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}

/* ===== Mobile sticky bar ===== */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 15, 20, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.mobile-bar .btn { width: 100%; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
}

/* =========================================================
   Планшет ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  .container { padding: 0 26px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   Десктоп ≥ 960px
   ========================================================= */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .section { padding: 84px 0; }
  .hero { padding: 72px 0 32px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 40px; }

  .nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav.is-open a { padding: 0; border: 0; font-size: .92rem; }
  .burger { display: none; }
  .header-cta { display: inline-flex; }
}

@media (min-width: 1100px) {
  .hero-copy .lead { font-size: 1.12rem; }
}
