/* =============================================================================
   AVI-MAKS — Landing styles
   Visual language: light minimal (Apple-like) — air, large type, soft shadows,
   big radii, bento grids, gentle reveal-on-scroll.
   Mobile-first.
   ============================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --c-brand:        #0EA5E9;
  --c-brand-deep:   #0369A1;
  --c-brand-ink:    #075985;
  --c-accent:       #06B6D4;
  --c-mint:         #10B981;

  /* Surfaces */
  --c-bg:           #FFFFFF;
  --c-bg-soft:      #F4F7FB;   /* alt sections */
  --c-bg-sunken:    #EEF3F9;
  --c-tint:         #ECF7FE;   /* faint brand wash */

  /* Ink */
  --c-ink:          #0A0F1C;
  --c-ink-2:        #2A3645;
  --c-muted:        #61708A;
  --c-line:         #E6EBF2;

  /* WhatsApp */
  --c-wa:           #25D366;
  --c-wa-dark:      #1AA851;

  /* Soft, diffuse shadows */
  --sh-xs: 0 1px 2px rgba(10, 15, 28, 0.04);
  --sh-sm: 0 2px 10px rgba(10, 15, 28, 0.05);
  --sh-md: 0 10px 34px rgba(10, 15, 28, 0.07);
  --sh-lg: 0 28px 70px rgba(10, 15, 28, 0.12);
  --sh-brand: 0 16px 40px rgba(14, 165, 233, 0.30);

  /* Radii — generous */
  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   26px;
  --r-xl:   34px;
  --r-full: 999px;

  /* Gradients */
  --g-brand: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 45%, #0891B2 100%);
  --g-tint:  linear-gradient(135deg, #E0F2FE 0%, #CFFAFE 100%);
  --g-ink:   linear-gradient(160deg, #0B1220 0%, #0E1B30 60%, #0A2540 100%);

  --container-w:      1180px;
  --container-narrow: 760px;
  --header-h:         72px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; padding: 0; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-brand);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Tabler icons base ---------- */
.ti {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: -0.125em;
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--alt { background: var(--c-bg-soft); }

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}
.section__head--start { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
  background: var(--c-tint);
  color: var(--c-brand-ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-brand);
}
.eyebrow--light {
  background: rgba(255, 255, 255, 0.14);
  color: #E0F2FE;
}
.eyebrow--light::before { background: #67E8F9; }

/* keep old hook used in markup */
.section__eyebrow { /* fallback if any remains */ }

.section__title {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__lead {
  color: var(--c-muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  margin-top: 1rem;
}

/* ---------- 5. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--c-line);
  box-shadow: var(--sh-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: var(--header-h);
}
.header__inner > .logo { margin-right: auto; }
.header__inner .lang-switcher { order: 3; }
.header__inner .nav { order: 2; }
.header__inner .header__phone { order: 4; }
.header__inner .burger { order: 5; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--g-brand);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--sh-brand);
}
.logo--light { color: #fff; }

.nav { display: none; gap: 0.35rem; }
.nav__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-ink-2);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-full);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--c-brand-deep); background: var(--c-tint); }

.header__phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-ink);
  padding: 0.6rem 1.05rem;
  border-radius: var(--r-full);
  background: var(--c-ink);
  color: #fff;
  transition: transform 0.15s, box-shadow 0.2s;
}
.header__phone i { font-size: 1.1rem; color: #67E8F9; }
.header__phone:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }

/* Language switcher (pill toggle) */
.lang-switcher {
  display: inline-flex;
  background: var(--c-bg-sunken);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
}
.lang-switcher__btn {
  padding: 0.375rem 0.6rem;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  min-height: 30px;
  min-width: 34px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.lang-switcher__btn.is-active {
  background: #fff;
  color: var(--c-brand-deep);
  box-shadow: var(--sh-xs);
}
.lang-switcher__btn:not(.is-active):hover { color: var(--c-ink); }

.burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--r-sm);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  padding: 0.75rem 1.25rem 1rem;
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-md);
  gap: 0;
}
.nav.is-open .nav__link {
  padding: 0.95rem 0.5rem;
  border-radius: 0;
  border-bottom: 1px solid var(--c-line);
}
.nav.is-open .nav__link:last-child { border-bottom: 0; }
.nav.is-open .nav__link:hover { background: transparent; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  min-height: 48px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn i { font-size: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--lg    { padding: 1.05rem 1.8rem; font-size: 1.06rem; min-height: 56px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--c-ink);
  color: #fff;
  box-shadow: var(--sh-md);
}
.btn--primary:hover { box-shadow: var(--sh-lg); }

.btn--brand {
  background: var(--g-brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--brand:hover { box-shadow: 0 20px 50px rgba(14, 165, 233, 0.4); }

.btn--ghost {
  background: #fff;
  color: var(--c-ink);
  box-shadow: inset 0 0 0 1.5px var(--c-line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--c-brand); color: var(--c-brand-deep); }

.btn--whatsapp { background: var(--c-wa); color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3); }
.btn--whatsapp:hover { background: var(--c-wa-dark); }

/* ---------- 7. Hero (split + interactive) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem);
  isolation: isolate;
}
/* soft gradient mesh background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 12% 8%,  rgba(56, 189, 248, 0.20) 0%, transparent 60%),
    radial-gradient(55% 50% at 92% 12%, rgba(6, 182, 212, 0.16) 0%, transparent 55%),
    radial-gradient(70% 60% at 78% 95%, rgba(14, 165, 233, 0.10) 0%, transparent 60%),
    var(--c-bg);
}
/* faint frost grid */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(10, 15, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 15, 28, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 75%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__grid > * { min-width: 0; }   /* let columns shrink below content min-width */
.hero__content { max-width: 620px; }
.hero__title {
  font-size: clamp(1.85rem, 6.2vw, 3.9rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  margin-bottom: 1.1rem;
  overflow-wrap: break-word;
}
.hero__title em {
  font-style: normal;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  color: var(--c-muted);
  max-width: 540px;
  margin-bottom: 1.85rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  margin-top: 1.85rem;
  font-size: 0.94rem;
  color: var(--c-ink-2);
}
.hero__badges li { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.hero__badges li i {
  color: var(--c-mint);
  font-size: 1.05rem;
  background: rgba(16, 185, 129, 0.12);
  width: 22px; height: 22px;
  border-radius: 50%;
}

/* Hero interactive card — quick AC sizing */
.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-lg);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.6), rgba(255, 255, 255, 0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.hero-card__head { display: flex; align-items: center; gap: 0.75rem; }
.hero-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--g-tint);
  color: var(--c-brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.hero-card__title { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.01em; }
.hero-card__sub { font-size: 0.88rem; color: var(--c-muted); margin-top: 0.1rem; }
.hero-card__field { display: flex; flex-direction: column; gap: 0.4rem; }
.hero-card__field label { font-weight: 600; font-size: 0.9rem; }
.hero-card__input-row { display: flex; gap: 0.6rem; }
.hero-card__input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-card__input::-webkit-outer-spin-button,
.hero-card__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hero-card__input:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.hero-card__go {
  flex-shrink: 0;
  width: 52px;
  min-height: 52px;
  border-radius: var(--r-md);
  background: var(--c-ink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.15s, background 0.2s;
}
.hero-card__go:hover { transform: translateY(-2px); background: var(--c-brand-deep); }
.hero-card__result {
  border-radius: var(--r-md);
  background: var(--g-tint);
  padding: 1rem 1.15rem;
  animation: pop 0.35s var(--ease);
}
.hero-card__result[hidden] { display: none; }
.hero-card__result-num {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  line-height: 1.1;
}
.hero-card__result-num small { font-size: 0.5em; font-weight: 700; color: var(--c-brand-deep); }
.hero-card__result-note { font-size: 0.86rem; color: var(--c-ink-2); margin: 0.25rem 0 0.85rem; }
.hero-card__foot { font-size: 0.8rem; color: var(--c-muted); text-align: center; }
.hero-card__foot a { color: var(--c-brand-deep); font-weight: 700; }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 8. Marquee / trust strip (brands quick) ---------- */
.trust {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: #fff;
}
.trust__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding: 1.1rem 1.25rem;
  justify-content: center;
}
.trust__label { font-size: 0.82rem; color: var(--c-muted); font-weight: 600; }
.trust__brands { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.trust__brands span { font-weight: 800; color: var(--c-ink-2); letter-spacing: 0.02em; opacity: 0.7; }

/* ---------- 9. Services (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: transparent; }
.bento-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--g-tint);
  color: var(--c-brand-deep);
  font-size: 1.6rem;
  margin-bottom: auto;
}
.bento-card__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin-top: 1.1rem; }
.bento-card__text { color: var(--c-muted); font-size: 0.96rem; margin-top: 0.4rem; }
.bento-card__link {
  margin-top: 1rem;
  color: var(--c-brand-deep);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: gap 0.2s;
}
.bento-card:hover .bento-card__link { gap: 0.6rem; }

/* Feature (large) card with photo */
.bento-card--feature {
  min-height: 320px;
  color: #fff;
  border: 0;
  justify-content: flex-end;
}
.bento-card--feature .bento-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.bento-card--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 18, 36, 0.05) 0%, rgba(7, 18, 36, 0.78) 100%);
}
.bento-card--feature .bento-card__img--install { background-image: url("images/service-install.jpg"); }
.bento-card--feature .bento-card__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(4px);
}
.bento-card--feature .bento-card__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.bento-card--feature .bento-card__text { color: rgba(255, 255, 255, 0.88); }
.bento-card--feature .bento-card__link { color: #fff; }

/* tinted small cards */
.bento-card--tint   { background: var(--c-bg-soft); }
.bento-card--accent { background: var(--g-ink); border: 0; color: #fff; }
.bento-card--accent .bento-card__title { color: #fff; }
.bento-card--accent .bento-card__text { color: rgba(255, 255, 255, 0.8); }
.bento-card--accent .bento-card__icon { background: rgba(255, 255, 255, 0.14); color: #67E8F9; }
.bento-card--accent .bento-card__link { color: #67E8F9; }

/* ---------- 10. Stats + features ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.stats__item {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--sh-xs);
}
.stats__num {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats__label {
  display: block;
  color: var(--c-muted);
  font-size: 0.88rem;
  margin-top: 0.6rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.features__item {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.features__item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.features__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--g-tint);
  color: var(--c-brand-deep);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.features__title { font-size: 1.18rem; font-weight: 800; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.features__text { color: var(--c-muted); font-size: 0.95rem; }

/* ---------- 11. Process (connected timeline) ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}
.process__step {
  position: relative;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--sh-xs);
}
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.process__step:nth-child(1) .process__num { background: var(--g-brand); }
.process__title { font-size: 1.18rem; font-weight: 800; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.process__text { color: var(--c-muted); font-size: 0.95rem; }

/* ---------- 12. Brands ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.brands__item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 1.5rem 1rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--c-ink-2);
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.brands__item:hover {
  background: #fff;
  color: var(--c-brand-deep);
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

/* ---------- 13. Calculator ---------- */
.calc {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--sh-md);
}
.calc__field { display: flex; flex-direction: column; gap: 0.5rem; }
.calc__field label { font-weight: 700; font-size: 0.95rem; }
.calc__field input[type="number"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg-soft);
  font-size: 1.06rem;
  font-weight: 700;
  min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.calc__field input[type="number"]:focus {
  outline: none;
  background: #fff;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.calc__field input[type="number"]::-webkit-outer-spin-button,
.calc__field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc__group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.calc__group legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; padding: 0; }
.calc__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 56px;
}
.calc__check:hover { border-color: var(--c-brand); }
.calc__check input { position: absolute; opacity: 0; pointer-events: none; }
.calc__check-box {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--c-line);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  font-size: 1rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-top: 0.0625rem;
}
.calc__check input:checked + .calc__check-box {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}
.calc__check input:focus-visible + .calc__check-box { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.calc__check:has(input:checked) { border-color: var(--c-brand); background: var(--c-tint); }
.calc__check-text { display: flex; flex-direction: column; gap: 0.125rem; font-size: 0.95rem; }
.calc__check-text strong { font-weight: 700; color: var(--c-ink); }
.calc__check-text small { color: var(--c-muted); font-size: 0.82rem; }

.calc__result {
  background: var(--g-tint);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-align: center;
  animation: pop 0.35s var(--ease);
}
.calc__result-label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-brand-deep); font-weight: 700; margin-bottom: 0.5rem;
}
.calc__result-num {
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--c-ink); line-height: 1.1; margin-bottom: 0.25rem;
}
.calc__result-num small { font-size: 0.5em; font-weight: 700; color: var(--c-muted); }
.calc__result-class { font-size: 1.06rem; font-weight: 700; color: var(--c-brand-deep); margin-bottom: 0.5rem; }
.calc__result-note { color: var(--c-ink-2); font-size: 0.95rem; margin-bottom: 1.25rem; }

/* ---------- 14. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq__item {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq__item.is-open { border-color: var(--c-brand); box-shadow: var(--sh-md); }
.faq__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  text-align: left;
  padding: 1.2rem 1.35rem;
  font-weight: 700; font-size: 1.02rem;
  min-height: 56px;
}
.faq__icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--c-bg-sunken);
  color: var(--c-brand-deep);
  font-size: 1rem;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.faq__item.is-open .faq__icon { transform: rotate(135deg); background: var(--c-brand); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq__item.is-open .faq__a { max-height: 600px; }
.faq__a p { padding: 0 1.35rem 1.35rem; color: var(--c-muted); }

/* ---------- 15. CTA ---------- */
.cta { padding: clamp(3rem, 8vw, 5rem) 0; }
.cta__panel {
  position: relative;
  overflow: hidden;
  background: var(--g-ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
.cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 60% at 85% 10%, rgba(56, 189, 248, 0.4) 0%, transparent 60%),
    radial-gradient(40% 50% at 5% 90%, rgba(6, 182, 212, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.cta__title { font-size: clamp(1.75rem, 4.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.75rem; }
.cta__lead { font-size: 1.06rem; color: rgba(255, 255, 255, 0.82); margin-bottom: 1.5rem; }
.cta__call { margin-bottom: 1.25rem; }
.cta__call-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.6rem;
}
.cta__phone {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 0.7rem 0.95rem;
  box-shadow: var(--sh-md);
  transition: transform 0.15s var(--ease), box-shadow 0.25s;
}
.cta__phone:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.cta__phone-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--g-brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.45rem;
  box-shadow: var(--sh-brand);
}
.cta__phone-num {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.cta__phone-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--c-muted);
  font-size: 1.25rem;
  transition: transform 0.2s var(--ease), color 0.2s;
}
.cta__phone:hover .cta__phone-arrow { transform: translateX(4px); color: var(--c-brand-deep); }
.cta__info { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.cta__info li { display: flex; align-items: center; gap: 0.5rem; }
.cta__info li i { font-size: 1.1rem; color: #67E8F9; }

/* ---------- 16. WhatsApp form ---------- */
.form-wa {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 4vw, 1.85rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.form-wa__title { font-size: 1.25rem; font-weight: 800; color: #fff; }
.form-wa__lead { font-size: 0.94rem; color: rgba(255, 255, 255, 0.82); margin-bottom: 0.5rem; }
.form-wa__field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-wa__field label { font-size: 0.88rem; font-weight: 700; color: #fff; }
.form-wa__field input,
.form-wa__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-ink);
  font-size: 1rem;
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-wa__field input::placeholder,
.form-wa__field textarea::placeholder { color: var(--c-muted); }
.form-wa__field input:focus,
.form-wa__field textarea:focus {
  outline: none;
  background: #fff;
  border-color: #67E8F9;
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.25);
}
.form-wa__field textarea { resize: vertical; min-height: 88px; font-family: inherit; line-height: 1.5; }
.form-wa__field input:invalid:not(:placeholder-shown),
.form-wa__field textarea:invalid:not(:placeholder-shown) { border-color: #FCA5A5; }
.form-wa__hint { font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); text-align: center; margin-top: 0.25rem; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--c-ink); color: #9FB0C5; font-size: 0.95rem; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
/* specific selector so the media `.container` rule can't reset vertical padding */
.footer > .footer__inner {
  padding-top: clamp(2.5rem, 6vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
}
.footer__about { margin-top: 0.85rem; line-height: 1.7; }
.footer__title { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 0.85rem; }
.footer__list { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__list a { transition: color 0.2s; }
.footer__list a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1.35rem 0; font-size: 0.82rem; text-align: center; }

/* ---------- 18. Floating WhatsApp button ---------- */
.fab-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--c-wa);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab-wa:hover { transform: translateY(-2px) scale(1.05); }
.fab-wa:active { transform: translateY(0) scale(1); }
.fab-wa__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--c-wa); z-index: -1;
  animation: fab-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0;    }
}

/* ---------- 19. Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 20. Responsive ---------- */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
  .hero__cta { flex-wrap: nowrap; }

  .stats    { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .brands   { grid-template-columns: repeat(3, 1fr); }
  .process  { grid-template-columns: repeat(2, 1fr); }

  /* bento 2-col on tablet */
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card--feature { grid-column: span 2; }

  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
  .fab-wa { right: 1.5rem; bottom: 1.5rem; }
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__phone { display: inline-flex; }
  .burger { display: none; }

  .hero__grid { grid-template-columns: 1.65fr 1fr; }
  .hero-card { max-width: 410px; margin-left: auto; }

  .features { grid-template-columns: repeat(4, 1fr); }
  .brands   { grid-template-columns: repeat(6, 1fr); }
  .process  { grid-template-columns: repeat(4, 1fr); }

  /* bento layout: big feature + wide top + 2 small */
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    grid-template-areas:
      "install install wide  wide"
      "install install low1  low2";
  }
  .bento-card--feature { grid-column: auto; grid-area: install; }
  .bento-card--repair  { grid-area: wide; }   /* Ремонт — широкий верхний (развёрнутое описание) */
  .bento-card--freon   { grid-area: low1; }   /* Заправка — нижний левый */
  .bento-card--vent    { grid-area: low2; }   /* Вентиляция — нижний правый */

  .cta__inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .fab-wa { display: none; }
}

/* connecting line on desktop timeline */
@media (min-width: 1024px) {
  .process::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--c-line) 0 8px, transparent 8px 16px);
    z-index: 0;
  }
  .process__step { z-index: 1; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fab-wa__pulse { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
