/* =========================================================
   Теплотехніка — стилі
   ========================================================= */
:root {
  --bg: #060b16;
  --bg-2: #0a1222;
  --bg-3: #0e182c;
  --glass: rgba(18, 28, 48, 0.55);
  --glass-strong: rgba(14, 22, 40, 0.78);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hi: rgba(255, 255, 255, 0.22);
  --text: #eef3fb;
  --muted: #9fb0c9;
  --muted-2: #6f819c;
  --accent: #2f8cff;
  --accent-2: #5aa8ff;
  --accent-glow: rgba(47, 140, 255, 0.35);
  --green: #9be15d;
  --green-2: #5cc96b;
  --red: #e8342a;
  --viber: #7360f2;
  --viber-2: #8f5cf0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --header-h: 92px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.ico { width: 22px; height: 22px; flex: none; }
.ico--sm { width: 16px; height: 16px; }
.ico--xs { width: 14px; height: 14px; }
.accent { color: var(--accent-2); }

/* ---------- скло ---------- */
.glass {
  background: linear-gradient(160deg, rgba(40, 56, 86, 0.42), rgba(12, 20, 36, 0.62));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 14px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-head); letter-spacing: 0.02em;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--accent), #1a63d6); box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn--primary:hover { box-shadow: 0 14px 36px -10px rgba(47, 140, 255, .6); }
.btn--viber { background: linear-gradient(135deg, var(--viber-2), var(--viber)); box-shadow: 0 10px 30px -10px rgba(115, 96, 242, .6); }
.btn--glass { background: rgba(255, 255, 255, .06); border-color: var(--glass-border-hi); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
.btn--outline { border-color: rgba(90, 168, 255, .45); color: var(--accent-2); background: rgba(47, 140, 255, .06); }
.btn--outline:hover { background: rgba(47, 140, 255, .14); }
.btn--block { width: 100%; }
.btn--xl { min-height: 60px; padding: 16px 30px; font-size: 17px; border-radius: 16px; }
.btn--xl .ico { width: 26px; height: 26px; }

/* ---------- логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 62px; height: 62px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font: 900 30px/1 var(--font-head); letter-spacing: 0.01em; color: #fff; }
.logo__red { color: var(--red); }
.logo__tag { margin-top: 6px; font: 700 9.5px/1 var(--font-head); letter-spacing: 0.06em; color: #dbe5f4; white-space: nowrap; }
.logo--sm .logo__mark { width: 46px; height: 46px; }
.logo--sm .logo__name { font-size: 22px; }
.logo--sm .logo__tag { font-size: 7.5px; }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .3s; }
.header.is-scrolled { background: rgba(6, 11, 22, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--glass-border); }
.header.is-scrolled .header__inner { height: 72px; }
.header.is-scrolled .logo__mark { width: 50px; height: 50px; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  font: 600 14px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  background: none; border: 0; cursor: pointer; border-radius: 10px; color: #fff;
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--accent-2); }
.nav__drop-btn .ico { opacity: .6; transition: transform .25s; }
.nav__item--drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 290px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 16px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: .22s;
}
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: 15px; color: #dfe8f6; transition: background .2s, color .2s; }
.dropdown a .ico { color: var(--accent-2); width: 20px; height: 20px; }
.dropdown a:hover { background: rgba(47, 140, 255, .12); color: #fff; }
.nav__item--drop:hover .dropdown, .nav__item--drop.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item--drop:hover .nav__drop-btn .ico, .nav__item--drop.is-open .nav__drop-btn .ico { transform: rotate(180deg); }
.nav__mobile-cta { display: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px;
  border-radius: 16px; font: 600 18px/1 var(--font-head); letter-spacing: .02em;
  border-color: rgba(90, 168, 255, .35);
  background: linear-gradient(160deg, rgba(30, 70, 140, .45), rgba(10, 22, 44, .7));
  transition: border-color .2s, box-shadow .2s;
}
.header__phone:hover { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(47, 140, 255, .12), var(--shadow); }
.burger { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; padding: calc(var(--header-h) + 24px) 0 36px; isolation: isolate; }
.hero__bg, .hero__bg > * { position: absolute; inset: 0; }
.hero__bg { z-index: -1; overflow: hidden; }
.hero__fallback {
  background:
    radial-gradient(1200px 500px at 78% 70%, rgba(255, 140, 60, .28), transparent 60%),
    radial-gradient(900px 600px at 15% 20%, rgba(47, 100, 200, .25), transparent 60%),
    linear-gradient(180deg, #050a15 0%, #0b1730 45%, #1c2a4a 72%, #3a2f45 88%, #5a3a3a 100%);
}
.hero__scene { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; opacity: .9; }
.hero__photo { opacity: 0; transition: opacity 1s; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero.has-photo .hero__photo { opacity: 1; }
.hero.has-photo .hero__fallback { visibility: hidden; transition: visibility 0s 1s; }
/* з фото: затемнення лише під шапкою, панелями й нижньою смугою — центр лишається яскравим */
.hero.has-photo .hero__shade {
  background:
    linear-gradient(180deg, rgba(6, 11, 22, .7) 0, rgba(6, 11, 22, 0) 150px),
    radial-gradient(ellipse 30% 42% at 20% 50%, rgba(6, 11, 22, .5), rgba(6, 11, 22, 0) 75%),
    radial-gradient(ellipse 26% 50% at 80% 46%, rgba(6, 11, 22, .45), rgba(6, 11, 22, 0) 75%),
    linear-gradient(0deg, var(--bg) 0, rgba(6, 11, 22, .55) 90px, rgba(6, 11, 22, 0) 260px);
}
.hero__shade {
  background:
    linear-gradient(180deg, rgba(6, 11, 22, .75) 0%, rgba(6, 11, 22, .05) 22%, rgba(6, 11, 22, 0) 55%, rgba(6, 11, 22, .55) 85%, var(--bg) 100%),
    linear-gradient(90deg, rgba(6, 11, 22, .45), transparent 35%);
}
.hero__inner {
  display: grid; grid-template-columns: 250px 230px 1fr 470px; grid-template-rows: 1fr auto;
  gap: 24px; align-items: center;
}
.hero__brands { display: contents; }
.hero-brand { padding: 22px 20px; align-self: center; }
.hero-brand--nibe { grid-column: 1; }
.hero-brand--gree { grid-column: 2; margin-top: -60px; }
/* Логотипи брендів: білі монохромні файли з прозорим фоном.
   --logo-h — базова висота; --k вирівнює візуальну вагу (широкі логотипи трохи нижчі, компактні — вищі). */
.bl { --logo-h: 34px; height: calc(var(--logo-h) * var(--k, 1)); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.bl--nibe { --k: .94; }
.bl--gree { --k: .9; }
.bl--baxi { --k: 1.02; }
.bl--deye { --k: 1.12; }
.hero-brand__logo { display: block; margin-bottom: 2px; }
.hero-brand__sub { margin: 4px 0 16px; font: 700 13px/1.2 var(--font-head); letter-spacing: .08em; color: #fff; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.feature-list li {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
  font: 600 12.5px/1.25 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: #e9eef7;
  transition: background .2s;
}
.feature-list li:hover { background: rgba(255, 255, 255, .05); }
.feature-list .ico { width: 26px; height: 26px; padding: 3px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 7px; color: #fff; }

/* калькулятор */
.calc { grid-column: 4; grid-row: 1; padding: 28px 28px 22px; }
.calc__title { font: 500 23px/1.2 var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.calc__subtitle { margin: 6px 0 20px; color: #cfd9e8; font-size: 16px; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 7px; }
.field__label { font-size: 13px; color: #c3cfdf; }
.field__box {
  position: relative; display: flex; align-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 140, 255, .2); background: rgba(255, 255, 255, .08); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 11px 14px; background: none; border: 0; outline: 0; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.field select option { background: #0e182c; color: #fff; }
.field__box--select .ico { position: absolute; right: 12px; pointer-events: none; opacity: .7; }
.field__unit { padding-right: 14px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.field input[type=number] { -moz-appearance: textfield; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc__result {
  margin-top: 18px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 14px; border: 1px solid rgba(155, 225, 93, .28);
  background: linear-gradient(120deg, rgba(47, 140, 255, .14), rgba(155, 225, 93, .14));
  box-shadow: inset 0 0 30px rgba(155, 225, 93, .06);
}
.calc__result-label { display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: var(--accent-2); }
.calc__result-label .ico { color: var(--green); }
.calc__result-value { margin-top: 8px; font: 700 44px/1 var(--font-head); color: var(--green); letter-spacing: .01em; text-shadow: 0 0 30px rgba(155, 225, 93, .35); font-variant-numeric: tabular-nums; }
.calc__result-value small { font-size: 26px; font-weight: 600; }
.calc__leaf { width: 42px; height: 42px; color: var(--green); opacity: .85; flex: none; }
.calc__note { margin: 10px 2px 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.calc__perks {
  list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--glass-border);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.calc__perks li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  font: 600 10.5px/1.2 var(--font-head); letter-spacing: .03em; text-transform: uppercase; color: #dfe7f3;
}
.calc__perks li + li { border-left: 1px solid var(--glass-border); }
.calc__perks .ico { width: 30px; height: 30px; color: #fff; }
.calc__perks .is-green .ico { color: var(--green); }

/* смуга внизу hero */
.hero__strip {
  grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 24px 40px 24px 48px; margin-top: 8px;
}
.hero__strip-title { margin: 0; font: 500 21px/1.45 var(--font-head); letter-spacing: .03em; text-transform: uppercase; }
.hero__strip-title span { color: #d6e0ee; }
.hero__strip-list { display: flex; list-style: none; margin: 0; padding: 0; }
.hero__strip-list li + li { border-left: 1px solid var(--glass-border); }
.hero__strip-list a {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 28px;
  font: 600 15px/1.2 var(--font-head); letter-spacing: .03em; text-transform: uppercase; color: var(--accent-2);
  transition: color .2s, transform .2s;
}
.hero__strip-list a:hover { color: #fff; transform: translateY(-2px); }
.hero__strip-list .ico { width: 34px; height: 34px; }

/* ---------- секції ---------- */
.section { position: relative; padding: 110px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section--alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 360px at 85% 10%, rgba(47, 140, 255, .08), transparent 70%), radial-gradient(600px 300px at 10% 90%, rgba(155, 225, 93, .04), transparent 70%);
}
.section__head { max-width: 720px; margin-bottom: 48px; }
.eyebrow { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--red), var(--accent)); border-radius: 2px; }
.section__title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.01em; }
.section__desc, .lead { margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.lead { color: #c5d1e3; }

/* про нас */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; color: #c5d1e3; }
.checks .ico { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: rgba(47, 140, 255, .15); color: var(--accent-2); margin-top: 1px; }
.checks b { color: #fff; font-weight: 600; }
.about__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { padding: 30px 26px; display: flex; flex-direction: column; gap: 6px; }
.stat .ico { width: 30px; height: 30px; color: var(--accent-2); margin-bottom: 10px; }
.stat b { font: 800 46px/1 var(--font-head); background: linear-gradient(120deg, #fff, #a9c9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 15px; }
.stat:nth-child(2) { transform: translateY(28px); }
.stat:nth-child(4) { transform: translateY(28px); }

/* послуги */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { padding: 32px 28px; transition: transform .3s, border-color .3s, box-shadow .3s; scroll-margin-top: 100px; }
.service:hover, .service:target { transform: translateY(-4px); border-color: rgba(90, 168, 255, .4); box-shadow: var(--shadow), 0 0 0 1px rgba(47, 140, 255, .1), 0 20px 50px -20px rgba(47, 140, 255, .35); }
.service__icon {
  width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 22px;
  border-radius: 16px; background: linear-gradient(140deg, rgba(47, 140, 255, .28), rgba(47, 140, 255, .06)); border: 1px solid rgba(90, 168, 255, .3);
  color: #fff;
}
.service__icon .ico { width: 30px; height: 30px; }
.service h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* бренди */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brand { padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .3s, border-color .3s; }
.brand:hover { transform: translateY(-4px); border-color: var(--glass-border-hi); }
.brand__logo { --logo-h: 38px; align-self: flex-start; transition: filter .35s; }
/* при наведенні — легке підсвічування */
.brand:hover .brand__logo { filter: drop-shadow(0 0 10px rgba(120, 180, 255, .55)) drop-shadow(0 0 2px rgba(255, 255, 255, .5)); }
.brand p { margin: 0; color: var(--muted); font-size: 15px; }
.brand__country { font: 700 12px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.brand--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; overflow: hidden; gap: 0; }
.brand__media { position: relative; min-height: 320px; }
.brand__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(12, 20, 36, .85)); }
.brand__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.brand--feature p { font-size: 16.5px; }
.tags { list-style: none; margin: auto 0 0; padding: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: #cfe0f8; background: rgba(47, 140, 255, .1); border: 1px solid rgba(90, 168, 255, .2); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-border);
  font: 600 14px/1 var(--font-head); color: #d4deec; transition: .2s;
}
.chip:hover { border-color: var(--glass-border-hi); color: #fff; }
.chip.is-active { background: linear-gradient(135deg, var(--accent), #1a63d6); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px var(--accent-glow); }

/* каталог */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.products__empty { grid-column: 1 / -1; padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--glass-border); border-radius: var(--radius); margin: 0; }
.product { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s, border-color .3s; animation: fadeUp .45s both; }
.product:hover { transform: translateY(-4px); border-color: var(--glass-border-hi); }
.product__media { position: relative; aspect-ratio: 4 / 3.4; background: #fff; overflow: hidden; }
.product__media img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; transition: transform .4s; }
.product__media > .ico { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; color: #9fb0c9; }
.product:hover .product__media img { transform: scale(1.04); }
.badge { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; font: 700 12px/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; background: linear-gradient(135deg, var(--green-2), #3aa152); color: #fff; box-shadow: 0 6px 18px -6px rgba(92, 201, 107, .7); }
.badge--pct { left: auto; right: 14px; background: var(--red); box-shadow: none; }
.product__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product__cat { font: 700 11px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.product__name { font: 700 16.5px/1.35 var(--font-head); }
.product__desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price__now { font: 800 28px/1 var(--font-head); color: #fff; }
.price--sale .price__now { color: var(--green); }
.price__old { font-size: 16px; color: var(--muted-2); text-decoration: line-through; }
.product__actions { display: grid; gap: 10px; margin-top: 8px; }
.product__actions .btn { min-height: 46px; font-size: 14px; }

/* галерея */
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery__item {
  position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; cursor: zoom-in;
  break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--bg-3);
  animation: fadeUp .5s both;
}
.gallery__item img { width: 100%; height: auto; transition: transform .6s, filter .3s; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, transparent 60%, rgba(6, 11, 22, .6)); opacity: .7; transition: opacity .3s;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-size: 13px; font-weight: 500; text-align: left; color: #fff; opacity: 0; transform: translateY(6px); transition: .3s; }
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
.gallery__item--soon { cursor: default; }
.gallery__item--soon .gallery__cap { opacity: 1; transform: none; }
.gallery__note { column-span: all; margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; color: #cfe0f8; background: rgba(47, 140, 255, .08); border: 1px solid rgba(90, 168, 255, .2); font-size: 15px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* контакти */
.contacts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.contacts__info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.info-card { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.info-card > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(47, 140, 255, .14); color: var(--accent-2); }
.info-card div { display: grid; gap: 3px; }
.info-card span { font-size: 13px; color: var(--muted); }
.info-card a, .info-card b { font: 700 17px/1.35 var(--font-head); }
.info-card small { color: var(--green); font-size: 13px; }
.info-card small.muted { color: var(--muted); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 4px 0 0; font: 700 16px/1.45 var(--font-head); }
.hours dt { color: var(--muted); font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours__off { color: var(--muted-2); font-weight: 600; }
/* карта: темна скляна рамка */
.map { margin-top: 16px; padding: 8px; overflow: hidden; }
.map__frame {
  display: block; width: 100%; aspect-ratio: 16 / 10; min-height: 260px; border: 0; border-radius: 12px;
  background: var(--bg-3); filter: saturate(.85) brightness(.92); transition: filter .3s;
}
.map:hover .map__frame { filter: none; }
.map__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 14px 10px 8px; }
.map__addr { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #c5d1e3; }
.map__addr .ico { width: 18px; height: 18px; color: var(--red); }
.map__btn { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.contact-card { padding: 38px 34px; position: sticky; top: 96px; text-align: center; }
.contact-card__icon { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(140deg, rgba(115, 96, 242, .45), rgba(47, 140, 255, .15)); border: 1px solid rgba(143, 92, 240, .4); }
.contact-card__icon .ico { width: 32px; height: 32px; }
.contact-card h3 { font-size: 30px; font-weight: 800; }
.contact-card__desc { margin: 12px 0 28px; color: var(--muted); }
.contact-card__buttons { display: grid; gap: 14px; }
.contact-card__number { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--glass-border); display: grid; gap: 6px; }
.contact-card__number span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card__number a { font: 800 34px/1.1 var(--font-head); letter-spacing: .02em; color: #fff; user-select: all; -webkit-user-select: all; }

/* футер */
.footer { border-top: 1px solid var(--glass-border); padding: 40px 0 28px; background: #04080f; }
/* запас унизу сторінки, щоб плаваюча кнопка Viber не накривала останній контент */
.footer { padding-bottom: 130px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; color: #c5d1e3; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--accent-2); }
.footer__contacts { display: flex; gap: 22px; font: 700 16px/1 var(--font-head); }
.footer__address { flex-basis: 100%; order: 3; display: flex; flex-wrap: wrap; gap: 8px 28px; font-style: normal; font-size: 14px; color: var(--muted); }
.footer__address span { display: inline-flex; align-items: flex-start; gap: 8px; }
.footer__address .ico { margin-top: 3px; color: var(--accent-2); }
.footer__bottom { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 13px; color: var(--muted-2); display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.footer__credit { font-size: 12px; color: #7d8aa0; }
.footer__credit a { color: #9aa6ba; text-decoration: underline; text-decoration-color: rgba(154, 166, 186, .35); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.footer__credit a:hover { color: #d3dbe8; text-decoration-color: rgba(211, 219, 232, .6); }

@keyframes fade { from { opacity: 0; } }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: rgba(3, 6, 12, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .25s both; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; grid-column: 2; display: grid; justify-items: center; gap: 12px; padding: 60px 0 24px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 130px); max-height: calc(100svh - 130px); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: fade .3s both; }
.lightbox__figure figcaption { color: #c5d1e3; font-size: 14px; text-align: center; }
.lightbox__btn { width: 54px; height: 54px; margin: 0 18px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; border: 1px solid var(--glass-border-hi); background: rgba(255, 255, 255, .07); transition: background .2s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .16); }
.lightbox__prev .ico { transform: rotate(90deg); }
.lightbox__next .ico { transform: rotate(-90deg); }
.lightbox__close { position: absolute; top: 16px; right: 0; width: 48px; height: 48px; z-index: 2; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 110; max-width: calc(100% - 40px); padding: 14px 20px; border-radius: 14px; background: rgba(14, 22, 40, .95); border: 1px solid var(--glass-border-hi); box-shadow: var(--shadow); font-size: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .3s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* плаваюча кнопка Viber */
.viber-fab {
  position: fixed; right: 24px; bottom: 90px; z-index: 80;
  display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 22px 0 18px;
  border-radius: 999px; color: #fff; font: 700 16px/1 var(--font-head);
  background: linear-gradient(135deg, var(--viber-2), var(--viber));
  box-shadow: 0 14px 34px -8px rgba(115, 96, 242, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s, opacity .2s;
}
.viber-fab .ico { width: 30px; height: 30px; }
.viber-fab:hover { transform: translateY(-3px) scale(1.03); }
.viber-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(115, 96, 242, .55); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(115, 96, 242, 0); } 100% { box-shadow: 0 0 0 0 rgba(115, 96, 242, 0); } }

/* поява при скролі */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.stats.reveal.is-visible .stat:nth-child(2n) { transform: translateY(28px); }
.no-js .reveal { opacity: 1; transform: none; }

/* окремі сторінки (дякуємо / 404) */
.page-simple { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 20px 60px; background: radial-gradient(900px 500px at 70% 80%, rgba(255, 140, 60, .14), transparent 60%), radial-gradient(800px 500px at 20% 10%, rgba(47, 100, 200, .2), transparent 60%), var(--bg); }
.page-simple__card { max-width: 560px; padding: 48px 40px; text-align: center; }
.page-simple__card h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin: 18px 0 12px; }
.page-simple__card p { color: var(--muted); margin: 0 0 28px; }
.page-simple__card .big { font: 900 96px/1 var(--font-head); background: linear-gradient(120deg, var(--red), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-simple__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1360px) {
  .hero__inner { grid-template-columns: 230px 215px 1fr 440px; }
  .nav__link { padding: 10px 12px; font-size: 13px; }
  .header__phone { padding: 13px 20px; font-size: 16px; }
}
@media (max-width: 1180px) {
  .logo__name { font-size: 25px; }
  .logo__tag { font-size: 8px; }
  .logo__mark { width: 52px; height: 52px; }
  .hero__inner { grid-template-columns: 1fr 1fr 440px; grid-template-rows: auto auto auto; align-items: start; }
  .hero-brand--nibe { grid-column: 1; grid-row: 1; }
  .hero-brand--gree { grid-column: 2; grid-row: 1; margin-top: 0; }
  .calc { grid-column: 3; grid-row: 1 / span 2; }
  .hero__brands { display: contents; }
  .hero__strip { grid-row: 3; flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 28px; }
  .hero__strip-list { width: 100%; justify-content: space-between; }
  .hero__strip-list a { padding: 4px 12px; }
  .services, .brands { grid-template-columns: 1fr 1fr; }
  .brand--feature { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .header__inner { gap: 14px; }
  .header__phone { margin-left: auto; padding: 0; width: 48px; height: 48px; justify-content: center; border-radius: 14px; }
  .header__phone span { display: none; }
  .burger {
    display: grid; place-content: center; gap: 5px; width: 48px; height: 48px; flex: none;
    border-radius: 14px; border: 1px solid var(--glass-border-hi); background: rgba(255, 255, 255, .06); cursor: pointer;
  }
  .burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s; }
  .nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; margin: 0; padding: 20px 20px calc(30px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 20px; overflow-y: auto;
    background: rgba(6, 11, 22, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .header { background: rgba(6, 11, 22, .97); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 6px; font-size: 16px; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; display: none; min-width: 0; margin: 0 0 12px; background: rgba(255, 255, 255, .03); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__item--drop:hover .dropdown { transform: none; }
  .nav__item--drop.is-open .dropdown { display: block; transform: none; }
  .nav__item--drop:hover .nav__drop-btn .ico { transform: none; }
  .nav__item--drop.is-open .nav__drop-btn .ico { transform: rotate(180deg); }
  .nav__mobile-cta { display: grid; gap: 12px; margin-top: auto; }
  body.nav-open { overflow: hidden; }
  .header.is-scrolled .header__inner { height: var(--header-h); }

  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero-brand--nibe, .hero-brand--gree { grid-row: 1; }
  .calc { grid-column: 1 / -1; grid-row: 2; }
  .hero__strip { grid-row: 3; }
  .about, .contacts { grid-template-columns: 1fr; gap: 48px; }
  .contact-card { position: static; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .logo { gap: 9px; }
  .logo__mark { width: 44px; height: 44px; }
  .header.is-scrolled .logo__mark { width: 44px; height: 44px; }
  .logo__name { font-size: 20px; }
  .logo__tag { font-size: 6.4px; margin-top: 4px; letter-spacing: .04em; }
  .header__phone, .burger { width: 44px; height: 44px; }

  .hero { min-height: 0; padding-bottom: 20px; }
  .hero__inner { grid-template-columns: 1fr; gap: 14px; }
  .hero-brand--nibe, .hero-brand--gree, .calc, .hero__strip { grid-column: 1; grid-row: auto; }
  .hero-brand { padding: 18px 16px; }
  .hero-brand__logo { --logo-h: 30px; }
  .hero-brand__sub { margin-bottom: 10px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .feature-list li { padding: 7px 4px; font-size: 11.5px; gap: 9px; }
  .calc { padding: 22px 18px 18px; }
  .calc__title { font-size: 19px; }
  .calc__subtitle { font-size: 14px; margin-bottom: 16px; }
  .calc__grid { gap: 12px; }
  .calc__result { padding: 14px 16px; }
  .calc__result-value { font-size: 36px; }
  .calc__result-value small { font-size: 20px; }
  .calc__leaf { width: 34px; height: 34px; }
  .calc__perks li { font-size: 9px; gap: 6px; }
  .calc__perks .ico { width: 26px; height: 26px; }
  .hero__strip { padding: 20px 16px; margin-top: 0; }
  .hero__strip-title { font-size: 15px; }
  .hero__strip-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__strip-list li + li { border-left: 0; }
  .hero__strip-list a { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 12.5px; }
  .hero__strip-list .ico { width: 24px; height: 24px; }

  .section { padding: 72px 0; }
  .section__head { margin-bottom: 32px; }
  .section__desc, .lead { font-size: 16px; }
  .services, .brands { grid-template-columns: 1fr; gap: 16px; }
  .service { padding: 26px 22px; }
  .brand--feature { grid-template-columns: 1fr; }
  .brand__media { min-height: 220px; }
  .brand__media::after { background: linear-gradient(180deg, transparent 55%, rgba(12, 20, 36, .85)); }
  .brand__body { padding: 26px 22px; }
  .stats { gap: 12px; }
  .stat { padding: 22px 18px; }
  .stat b { font-size: 36px; }
  .stat:nth-child(2), .stat:nth-child(4), .stats.reveal.is-visible .stat:nth-child(2n) { transform: none; }
  .about__cta .btn { flex: 1 1 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 26px; padding: 0 16px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .products { grid-template-columns: 1fr; gap: 16px; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; border-radius: 10px; }
  .contacts__info { grid-template-columns: 1fr; }
  .map__frame { aspect-ratio: 4 / 3.4; }
  .map__btn { width: 100%; }
  .contact-card { padding: 30px 20px; }
  .contact-card__number a { font-size: 30px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .viber-fab { right: max(14px, env(safe-area-inset-right)); bottom: calc(76px + env(safe-area-inset-bottom)); height: 58px; width: 58px; padding: 0; justify-content: center; }
  .footer { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  /* на телефоні фото займає перший екран і плавно переходить у фон */
  .hero__photo { bottom: auto; height: 110svh; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hero.has-photo .hero__shade { background: linear-gradient(180deg, rgba(6, 11, 22, .65) 0, rgba(6, 11, 22, .2) 140px, rgba(6, 11, 22, .25) 60%, var(--bg) 110svh); }
  .viber-fab__label { display: none; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__figure { grid-column: 1; padding: 64px 8px 90px; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 20px; margin: 0; }
  .lightbox__prev { left: calc(50% - 66px); }
  .lightbox__next { right: calc(50% - 66px); }
  .lightbox__close { right: 12px; top: 12px; }
}
@media (max-width: 380px) {
  .logo__tag { display: none; }
  .calc__grid { grid-template-columns: 1fr; }
}
.nav-open .viber-fab { opacity: 0; pointer-events: none; }
