/* Енергетична незалежність+ — версія C */
:root {
  --navy: #061532;
  --navy-2: #0a2152;
  --ink: #0a1a33;
  --muted: #4a5d7a;
  --line: #dbe6f5;
  --ice: #f1f7ff;
  --ice-2: #e2eeff;
  --blue: #0b63e5;      /* кнопки: білий текст ≥ 4.5 */
  --blue-h: #0a55c7;
  --sky: #4fb8ff;
  --sky-2: #9fdcff;
  --sun: #ffc83d;
  --red: #e5262f;
  --ok: #19c37d;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 26, 51, .06), 0 12px 32px -12px rgba(10, 40, 100, .18);
  --shadow-lg: 0 30px 80px -30px rgba(6, 21, 50, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
svg { flex-shrink: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }


/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 14px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 99, 229, .7); }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -10px rgba(79, 184, 255, .8); }
.btn--glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn--glass svg { color: var(--sun); }
.btn--sun { background: var(--sun); color: #1b1300; }
.btn.is-added { background: #0b7a4e !important; color: #fff !important; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--blue-h); transform: translateY(-2px); }
  .btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(79, 184, 255, .9); }
  .btn--glass:hover { background: rgba(255,255,255,.16); }
  .btn--sun:hover { transform: translateY(-2px); filter: brightness(1.05); }
}

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.eyebrow--light { color: var(--sky-2); }
.h2 { font-size: clamp(28px, 4.2vw, 44px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }
.sec-head__sub { color: var(--muted); max-width: 620px; font-size: 17px; }
section { padding: 88px 0; }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(10, 40, 100, .35); }
.top__in { display: flex; align-items: center; gap: 16px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__mark { width: 40px; height: 40px; }
.logo__mark rect { fill: var(--blue); }
.logo__mark path { fill: #fff; }
.logo__name { font-weight: 800; font-size: 14px; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.logo__name b { color: var(--sky); }
.nav { display: none; gap: 26px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--blue); transition: right .25s var(--ease); }
@media (hover: hover) { .nav a:hover { color: var(--ink); } }
@media (hover: hover) { .nav a:hover::after { right: 0; } }
.top__phone { display: none; font-weight: 700; text-decoration: none; white-space: nowrap; }
.top__call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ice); color: var(--blue); }
.top__call svg { width: 20px; height: 20px; }
.cart-btn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--navy); color: #fff; font-weight: 700; white-space: nowrap; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__label, .cart-btn__sum { display: none; }
.cart-btn__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--sky); color: var(--navy); font-size: 12px; display: grid; place-items: center; }
.cart-btn__sum:empty { display: none !important; }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (min-width: 720px) {
  .top__phone { display: block; }
  .top__call { display: none; }
  .cart-btn__label { display: inline; }
}
@media (min-width: 1280px) {
  .nav { display: flex; }
  .logo { margin-right: 12px; }
  .nav { margin-right: auto; }
  .cart-btn__sum { display: inline; font-weight: 600; opacity: .85; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 0; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 420px at 82% 18%, rgba(79, 184, 255, .42), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(11, 99, 229, .5), transparent 70%),
    linear-gradient(180deg, #061532 0%, #0a2152 100%);
}
.hero__bg::after { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero__in { display: grid; gap: 48px; padding-bottom: 64px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(25, 195, 125, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(25, 195, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 195, 125, 0); } }
.hero h1 { font-size: clamp(36px, 6.4vw, 66px); letter-spacing: -.035em; }
.grad { background: linear-gradient(90deg, #9fdcff 0%, #4fb8ff 50%, #7fd0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 20px; font-size: 18px; color: #c4d6f2; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; }
.hero__facts li { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.hero__facts b { display: block; font-size: 15px; }
.hero__facts span { font-size: 13px; color: #a9c1e6; }

.hero__visual { position: relative; }
.stage { position: relative; border-radius: 28px; background: linear-gradient(160deg, #ffffff 0%, #e8f3ff 100%); padding: 28px 24px 40px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.6); }
.stage__glow { position: absolute; inset: -30px; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgba(79, 184, 255, .55), transparent); filter: blur(20px); }
.stage__img { mix-blend-mode: multiply; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero__tag { position: absolute; right: 12px; top: -18px; display: grid; padding: 12px 16px; border-radius: 16px; background: var(--sun); color: #1b1300; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(255, 200, 61, .8); transform: rotate(3deg); transition: transform .3s var(--ease); }
@media (hover: hover) { .hero__tag:hover { transform: rotate(0) scale(1.04); } }
.hero__tag span { font-size: 12px; font-weight: 600; }
.hero__tag b { font-size: 26px; line-height: 1; }

.live { position: relative; margin: -56px 12px 0; padding: 14px 16px; border-radius: 20px; background: rgba(6, 21, 50, .82); border: 1px solid rgba(159, 220, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.live__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #dceaff; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); transition: background .3s, box-shadow .3s; }
.live.is-outage .live__dot { background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.flow { width: 100%; height: auto; margin: 6px 0 2px; }
.flow__line { fill: none; stroke: rgba(159, 220, 255, .22); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.flow__line--grid, .flow__line--sun, .flow__line--home, .flow__line--bat { stroke: var(--sky); stroke-dasharray: 4 9; animation: dash 1.1s linear infinite; }
.live.is-outage .flow__line--grid { stroke: rgba(255,255,255,.14); animation: none; }
.live.is-outage .flow__line--bat { animation-direction: reverse; stroke: var(--sun); }
@keyframes dash { to { stroke-dashoffset: -26; } }
.node circle, .node rect:not(.fill) { fill: #0c2a5e; stroke: rgba(159, 220, 255, .45); stroke-width: 1.5; }
.node path { fill: none; stroke: #cfe6ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node .fill, .node path.fill { fill: var(--sky); stroke: none; }
.node--sun .fill { fill: var(--sun); }
.node--inv rect:not(.fill) { fill: var(--blue); stroke: var(--sky); }
.node--inv .fill { fill: #fff; }
.node--inv path.wave { stroke: #fff; stroke-width: 2.2; }
.bat-lvl { transition: width .4s; }
.live.is-outage .node--grid { opacity: .35; }
.live.is-outage .node--bat .fill { fill: var(--sun); }
.live__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.live__stats div { padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.06); }
.live__stats div > span { display: block; font-size: 11px; color: #9fb7dc; }
.live__stats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.live.is-outage [data-live-grid] { color: var(--sun); }

.ticker { border-top: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); overflow: hidden; padding: 16px 0; }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { font-weight: 700; font-size: 15px; color: #c4d6f2; white-space: nowrap; }
.ticker i { width: 6px; height: 6px; border-radius: 2px; background: var(--sky); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (min-width: 960px) {
  .hero { padding-top: 72px; }
  .hero__in { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; padding-bottom: 88px; }
  .hero__visual { padding: 0 0 0 0; }
  .live { position: absolute; margin: 0; left: -56px; bottom: -120px; width: 330px; }
  .hero__visual { margin-bottom: 60px; }
  .hero__tag { right: -10px; top: -24px; }
}

/* ---------- Акція ---------- */
.promo { padding: 72px 0 0; }
.promo__card { position: relative; overflow: hidden; display: grid; gap: 28px; padding: 28px; border-radius: 28px; color: #fff;
  background: radial-gradient(500px 300px at 100% 0%, rgba(79,184,255,.35), transparent 70%), linear-gradient(135deg, #0a2152, #061532); box-shadow: var(--shadow-lg); }
.bf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bf__title { font-weight: 800; font-size: 22px; letter-spacing: .02em; color: #fff; text-shadow: 0 0 18px rgba(229, 38, 47, .7); background: var(--red); padding: 4px 12px; border-radius: 10px; transform: skew(-8deg); }
.bf__tag { font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.12); }
.promo h2 { font-size: clamp(24px, 3.2vw, 34px); }
.promo__desc { margin-top: 10px; color: #c4d6f2; max-width: 520px; }
.promo__prices { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.promo__old { color: #8ea6cc; font-size: 20px; }
.promo__new { font-size: clamp(36px, 5vw, 52px); font-weight: 800; color: var(--sun); letter-spacing: -.02em; }
.promo__save { color: var(--sky-2); font-weight: 600; margin-top: 4px; }
.promo__until { color: #a9c1e6; font-size: 14px; margin: 12px 0 20px; }
.promo__until:empty { display: none; }
.timer { margin-top: 18px; }
.timer__label { font-size: 13px; color: #a9c1e6; }
.timer__cells { display: flex; gap: 8px; margin-top: 6px; }
.timer__cells div { min-width: 58px; padding: 8px 6px; text-align: center; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.timer__cells b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.timer__cells span { font-size: 11px; color: #a9c1e6; }
.timer + .promo__until { margin-top: 10px; }
.promo__img { margin: 0; border-radius: 20px; overflow: hidden; align-self: center; }
.promo__img img { width: 100%; transition: transform .8s var(--ease); }
@media (hover: hover) { .promo__card:hover .promo__img img { transform: scale(1.04); } }
@media (min-width: 900px) {
  .promo__card { grid-template-columns: 1fr 1fr; padding: 48px; gap: 48px; align-items: center; }
}

/* ---------- Каталог ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .2s; }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (hover: hover) { .chip:not(.is-on):hover { border-color: var(--blue); color: var(--blue); } }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: flex; flex-direction: column; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card__img { position: relative; margin: 0; aspect-ratio: 1 / .86; background: radial-gradient(circle at 50% 60%, #fff 0%, var(--ice) 55%, var(--ice-2) 100%); display: grid; place-items: center; overflow: hidden; }
.card__img img { width: 78%; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card__brand { position: absolute; left: 14px; top: 14px; z-index: 1; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card__kind { font-size: 13px; color: var(--muted); font-weight: 600; }
.card h3 { font-size: 19px; margin-top: 4px; }
.card__specs { list-style: none; padding: 0; margin: 12px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__specs li { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--ice); color: #2a4470; }
.card__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .card:hover .card__img img { transform: scale(1.06) rotate(-1deg); }
}
@media (max-width: 400px) {
  .card__buy { flex-direction: column; align-items: stretch; }
  .card__buy .btn { width: 100%; }
}
.catalog__note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- Підбір ---------- */
.picker { background: linear-gradient(180deg, var(--ice) 0%, #fff 100%); }
.picker__box { display: grid; gap: 24px; }
.picker__form fieldset { border: 0; margin: 0 0 24px; padding: 0; }
.picker__form legend { font-weight: 700; font-size: 17px; margin-bottom: 14px; padding: 0; }
.appl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ap { position: relative; cursor: pointer; }
.ap input, .hours input { position: absolute; opacity: 0; pointer-events: none; }
.ap__in { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); transition: all .2s var(--ease); height: 100%; }
.ap__in svg { width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.ap__name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.ap__w { font-size: 12px; color: var(--muted); }
.ap input:checked + .ap__in { border-color: var(--blue); background: #f4f9ff; box-shadow: 0 0 0 3px rgba(11, 99, 229, .12); }
.ap input:checked + .ap__in svg { stroke: var(--blue); }
.ap input:focus-visible + .ap__in, .hours input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.ap input:checked + .ap__in::after { content: ''; position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (hover: hover) { .ap:hover .ap__in { border-color: #9cc2f5; } }
.hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 520px; }
.hours label { cursor: pointer; }
.hours span { display: grid; place-items: center; height: 48px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; transition: all .2s; }
.hours input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }

.result { align-self: start; padding: 24px; border-radius: 24px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.result::before { content: ''; position: absolute; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(79,184,255,.45), transparent); pointer-events: none; }
.result__meters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meter { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); }
.meter > span { display: block; font-size: 12px; color: #a9c1e6; }
.meter b { font-size: 22px; font-variant-numeric: tabular-nums; }
.result__kit { margin-top: 18px; }
.kit__label { font-size: 13px; color: var(--sky-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.kit__list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.kit__list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: #fff; color: var(--ink); animation: pop .4s var(--ease); }
.kit__list img { width: 56px; height: 56px; border-radius: 10px; background: var(--ice); mix-blend-mode: multiply; }
.kit__list span { flex: 1; min-width: 0; }
.kit__list b { display: block; font-size: 14px; line-height: 1.25; }
.kit__list small { color: var(--muted); font-weight: 600; }
.kit__list em { font-style: normal; font-weight: 800; padding-right: 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.kit__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px; }
.kit__total span { color: #a9c1e6; }
.kit__total b { font-size: 32px; letter-spacing: -.02em; }
.kit__hint { font-size: 14px; color: #c4d6f2; margin-bottom: 16px; }
.kit__hint b { color: #fff; }
.kit__empty, .kit__big { color: #c4d6f2; margin-bottom: 14px; }
.kit__big { font-size: 18px; color: #fff; font-weight: 600; }
.result .btn--primary { background: var(--sky); color: var(--navy); box-shadow: none; }
@media (hover: hover) { .result .btn--primary:hover { background: #7fcbff; } }
.result__note { margin-top: 14px; font-size: 12px; color: #8ea6cc; }
@media (min-width: 960px) {
  .picker__box { grid-template-columns: 1.4fr 1fr; gap: 32px; }
  .result { position: sticky; top: 96px; padding: 28px; }
}

/* ---------- Кому підходить ---------- */
.tabs { display: flex; gap: 8px; padding: 6px; border-radius: 18px; background: var(--ice); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role=tab] { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 0; border-radius: 13px; background: transparent; font-weight: 700; color: var(--muted); white-space: nowrap; transition: all .25s var(--ease); }
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tabs [aria-selected=true] { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.panel { display: grid; gap: 28px; padding: 28px; border-radius: 28px; border: 1px solid var(--line); background: #fff; }
.panel.is-shown { animation: pop .45s var(--ease); }
.panel h3 { font-size: clamp(24px, 3vw, 32px); }
.panel__lead { color: var(--muted); font-size: 17px; margin: 12px 0 20px; max-width: 520px; }
.free { font-weight: 800; letter-spacing: .14em; font-size: 14px; color: var(--blue); margin-bottom: 8px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; background: var(--ice-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%230b63e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.panel__art { border-radius: 22px; background: linear-gradient(150deg, var(--navy-2), var(--navy)); padding: 24px; min-height: 240px; position: relative; overflow: hidden; }
.panel__art--flat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.art-card { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.art-card span { display: block; font-size: 13px; color: #a9c1e6; }
.art-card b { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.art-card b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.art-card--accent { grid-column: 1 / -1; background: var(--sky); border-color: var(--sky); }
.art-card--accent span { color: var(--navy-2); }
.art-card--accent b { color: var(--navy); font-size: 18px; }
.art-card--accent b::before { background: var(--navy); box-shadow: none; }
.panel__art--house svg { width: 100%; height: auto; }
.panel__art--house .sun { fill: var(--sun); filter: drop-shadow(0 0 16px rgba(255, 200, 61, .8)); }
.panel__art--house .rays { stroke: var(--sun); stroke-width: 3; stroke-linecap: round; transform-origin: 262px 46px; animation: spin 18s linear infinite; }
.panel__art--house .roof { fill: none; stroke: #cfe6ff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.panel__art--house .panels-sv { fill: var(--blue); stroke: var(--sky); stroke-width: 1.5; }
.panel__art--house .wall { fill: rgba(255,255,255,.08); stroke: rgba(207, 230, 255, .5); stroke-width: 2; }
.panel__art--house .win { fill: var(--sun); opacity: .9; }
.panel__art--house .beam { stroke: var(--sun); stroke-width: 2; stroke-dasharray: 3 7; animation: dash 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel__nums { display: grid; gap: 12px; }
.bignum { padding: 24px; border-radius: 22px; background: var(--navy); color: #fff; }
.bignum b { display: block; font-size: clamp(40px, 6vw, 60px); line-height: 1; letter-spacing: -.03em; color: var(--sky); font-variant-numeric: tabular-nums; }
.bignum > span { display: block; margin-top: 10px; color: #c4d6f2; }
@media (min-width: 900px) {
  .panel { grid-template-columns: 1.1fr 1fr; padding: 40px; gap: 48px; align-items: center; }
}

/* ---------- Як замовити ---------- */
.how { background: var(--ice); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; position: relative; }
.steps li { position: relative; padding: 24px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px; box-shadow: 0 8px 20px -8px rgba(11,99,229,.8); }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps li > span:last-child { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps::before { content: ''; position: absolute; left: 12%; right: 12%; top: 46px; height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 16px); z-index: 0; }
  .steps li { z-index: 1; }
}

/* ---------- Доставка і оплата ---------- */
.delivery { background: linear-gradient(135deg, #0a2152, #061532); color: #fff; }
.delivery__in { display: grid; gap: 32px; }
.delivery .h2 { margin-bottom: 28px; }
.pay { display: grid; gap: 14px; }
.pay__row { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.pay__row svg { width: 40px; height: 40px; fill: none; stroke: var(--sky); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pay__row h3 { font-size: 18px; }
.pay__row p { color: #c4d6f2; margin-top: 4px; }
.req { align-self: start; padding: 24px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.req__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.req__head h3 { font-size: 20px; }
.req__copy { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--ice); font-weight: 600; font-size: 14px; color: var(--blue); }
.req__list { margin: 0; display: grid; gap: 2px; }
.req__list div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.req__list dt { font-size: 13px; color: var(--muted); }
.req__list dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (min-width: 900px) { .delivery__in { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }

/* ---------- Контакти ---------- */
.contacts__in { display: grid; gap: 32px; }
.contacts__phone { display: inline-block; margin-top: 20px; font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--blue); }
.contacts__addr { margin-top: 6px; color: var(--muted); font-size: 17px; }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cbtn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px; border-radius: 14px; text-decoration: none; font-weight: 700; color: #fff; transition: transform .2s var(--ease); }
.cbtn svg { width: 20px; height: 20px; }
.cbtn--viber { background: #6550e0; }
.cbtn--tg { background: #1a77ad; }
.cbtn--map { background: var(--navy); }
@media (hover: hover) { .cbtn:hover { transform: translateY(-2px); } }
.map { border-radius: 24px; overflow: hidden; min-height: 320px; background: var(--ice); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
@media (min-width: 900px) { .contacts__in { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; } .map, .map iframe { min-height: 400px; } }

/* ---------- Футер ---------- */
.foot { background: var(--navy); color: #a9c1e6; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-right: 72px; }
.logo--light { color: #fff; margin-right: 0; }
.foot__in p { flex: 1; min-width: 220px; }
.foot__up { color: #fff; font-weight: 600; text-decoration: none; }

/* ---------- Поява при прокрутці ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal .card.reveal.is-in { transition: opacity .7s var(--ease) var(--d, 0ms), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }

/* ---------- Плаваюча кнопка зв'язку ---------- */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; }
.fab__btn { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(11, 99, 229, .9); }
.fab__btn::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sky); animation: ring 2.4s var(--ease) infinite; }
.fab__btn[aria-expanded=true]::before { animation: none; opacity: 0; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.fab__btn svg { width: 26px; height: 26px; }
.fab__ico-close { display: none; }
.fab__btn[aria-expanded=true] .fab__ico-open { display: none; }
.fab__btn[aria-expanded=true] .fab__ico-close { display: block; }
.fab__menu { position: absolute; right: 0; bottom: 72px; display: grid; gap: 6px; padding: 8px; min-width: 180px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); animation: pop .25s var(--ease); }
.fab__menu a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; }
@media (hover: hover) { .fab__menu a:hover { background: var(--ice); } }
body.has-cart .fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { body.has-cart .fab { bottom: calc(16px + env(safe-area-inset-bottom)); } }

/* ---------- Плаваючий кошик (мобільний) ---------- */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 44; display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 20px; border: 0; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease); }
@media (min-width: 720px) { .cartbar { display: none !important; } }
body.has-cart .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { body.has-cart .foot { padding-bottom: calc(32px + env(safe-area-inset-bottom)); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0 auto; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.toast__msg { flex: 1; min-width: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast__act { flex-shrink: 0; border: 0; background: var(--sky); color: var(--navy); font-weight: 700; padding: 8px 12px; border-radius: 10px; }

/* ---------- Кошик ---------- */
.drawer { margin: 0 0 0 auto; padding: 0; border: 0; width: min(440px, 100%); max-width: 100%; height: 100%; max-height: 100%; background: #fff; color: var(--ink); display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer::backdrop { background: rgba(6, 21, 50, .55); backdrop-filter: blur(3px); }
.drawer__head { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { flex: 1; font-size: 20px; }
.drawer__back, .drawer__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--ice); }
.drawer__back svg, .drawer__close svg { width: 20px; height: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 6px 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); }
.line img { grid-row: span 2; width: 64px; height: 64px; border-radius: 12px; background: var(--ice); object-fit: contain; mix-blend-mode: multiply; }
.line__name { font-weight: 700; line-height: 1.3; }
.line__unit { font-size: 13px; color: var(--muted); }
.line__row { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.line__sum { font-weight: 800; }
.line__del { grid-column: 2; justify-self: start; border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: 13px; text-decoration: underline; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 38px; height: 38px; border: 0; background: var(--ice); font-size: 18px; font-weight: 700; }
.qty output { min-width: 34px; text-align: center; font-weight: 700; }
.empty { text-align: center; padding: 40px 0; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
.sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.sum b { font-size: 24px; }
.sum__note { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.form { display: grid; gap: 14px; align-content: start; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 99, 229, .12); }
.field.is-bad input { border-color: var(--red); }
.field__err { color: var(--red); font-size: 13px; margin-top: 4px; }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form__err { padding: 12px; border-radius: 12px; background: #fff0f0; color: #a3121a; font-size: 14px; }
.form__err a { font-weight: 700; }
.done { text-align: center; display: grid; justify-items: center; align-content: center; gap: 12px; }
.done svg { width: 72px; height: 72px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done circle { stroke: var(--ok); }
.done path { stroke: var(--ok); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done p { color: var(--muted); }

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts li:last-child { grid-column: 1 / -1; }
  .live__stats b { font-size: 13px; }
  .logo__name { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; }
}
.node--grid .fill { fill: var(--sky); }
.live.is-outage .node--grid .fill { fill: #5a6f93; }
@media (max-width: 480px) {
  .hero__facts { gap: 8px; }
  .hero__facts li { padding: 10px; }
  .hero__facts b { font-size: 14px; }
  .hero__facts span { font-size: 12px; line-height: 1.3; display: block; }
}
.meter b { white-space: nowrap; }
.panel__art--flat { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) {
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .tabs [role=tab] { justify-content: center; padding: 0 8px; font-size: 14px; gap: 6px; }
  .meter b { font-size: 18px; }
  .panel { padding: 22px; }
  .panel__art { padding: 16px; min-height: 0; }
  .art-card { padding: 10px; }
  .art-card b { font-size: 13px; }
}
@media (max-width: 380px) { .tabs svg { display: none; } }
.panel__art--house .panels-grid { stroke: var(--sky); stroke-width: 1.5; }

/* ---------- SEO-доповнення: H1, FAQ, футер ---------- */
.h1-kicker { display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 2.3vw, 24px); font-weight: 800; letter-spacing: -.02em; color: var(--sky-2); margin-bottom: 14px; line-height: 1.25; }
.h1-kicker .pulse { flex: none; }
.hero__place { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--sky-2); }
.faq { background: var(--ice); }
.faq__list { display: grid; gap: 10px; max-width: 880px; }
.faq__item { border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s; }
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ''; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%230b63e5' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 20px 20px; color: var(--muted); max-width: 720px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot__nav a { color: #c4d6f2; text-decoration: none; }
@media (hover: hover) { .foot__nav a:hover { color: #fff; } }

/* ---------- QA-правки 24.11 ---------- */
/* 3. Кошик на 320: рядок товару не вилазить за екран */
.line { grid-template-columns: 56px minmax(0, 1fr); }
.line img { width: 56px; height: 56px; }
.line__row { flex-wrap: wrap; min-width: 0; }
.line__sum { white-space: nowrap; }
.line__name { overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .drawer__body, .drawer__head, .drawer__foot { padding-left: 14px; padding-right: 14px; }
  .line { padding: 10px; gap: 6px 10px; }
  .sum b { font-size: 20px; }
}
/* 6. Тост над FAB, коли є кошик (мобільний) */
body.has-cart .toast { bottom: calc(152px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { body.has-cart .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
/* 7. Тост усередині кошика — зверху, щоб не закривав «Разом» */
.drawer .toast { position: absolute; top: 76px; bottom: auto !important; transform: translateY(-8px); }
.drawer .toast.is-on { transform: none; }
.drawer { position: fixed; }
/* 13. «Квартира» на вузьких екранах — 2 колонки */
@media (max-width: 420px) { .panel__art--flat { grid-template-columns: 1fr 1fr; } }
/* 15. Сума в шапці не розпирає шапку */
.cart-btn__sum { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1399px) { .cart-btn__sum { display: none !important; } }
/* 19. Живий віджет на планшеті не розтягується */
@media (min-width: 600px) and (max-width: 959px) {
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .live { max-width: 400px; margin: -56px auto 0; }
}
@media (max-width: 420px) { .bignum b { font-size: clamp(32px, 10vw, 40px); } }
