/* Портативний інвертор 3в1 — mobile-first */

:root {
  --milk: #FBF7EF;
  --paper: #FFFFFF;
  --navy: #0C2340;
  --navy-soft: #45597A;
  --teal: #0E7C8B;
  --teal-deep: #0A5C68;
  --teal-wash: #D9EFEC;
  --orange: #F7A51E;
  --orange-deep: #D98A06;
  --line: #E0DACB;
  --err: #B3261E;

  --display: "Geologica", "Segoe UI", sans-serif;
  --body: "Golos Text", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 16px;
  --r-lg: 28px;
  --r-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 88px; /* місце під нижню панель */
  background: var(--milk);
  color: var(--navy);
  font: 400 1.0625rem/1.55 var(--body);
  overflow-x: hidden;
}

::selection { background: var(--teal); color: #fff; }

img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; }

h2 {
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.2; }

p { max-width: 62ch; }

a { color: inherit; text-underline-offset: 0.2em; }

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

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

main > section { padding-block: 56px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  padding: 10px 14px; border-radius: 10px;
  background: var(--navy); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* поле-ловушка для ботов */

/* Кнопка */
.btn {
  display: block;
  width: 100%; padding: 20px 22px;
  border: 0; border-radius: var(--r-md);
  background: var(--navy); color: #fff;
  font: 800 1.1875rem/1.15 var(--display); letter-spacing: 0.04em;
  text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 22px -14px rgba(12, 35, 64, 0.7);
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #173A66; }
}

/* Ціна */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; max-width: none; }
.price__now { font: 800 2.5rem/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price__old { font-size: 1.125rem; color: var(--navy-soft); }
.price__off {
  align-self: center; padding: 5px 10px; border-radius: 999px;
  background: var(--teal); color: #fff;
  font: 700 0.9375rem/1 var(--display);
}

.topbar {
  display: flex; justify-content: center; align-items: center;
  padding: 10px var(--gutter);
  background: #D93A3A; color: #fff;
}
.topbar[hidden] { display: none; }
.topbar p { max-width: none; font: 800 1rem/1.2 var(--display); letter-spacing: 0.03em; text-align: center; }

/* Перший екран: фон-картинка з товаром, поверх неї текст */
.hero { padding: 0; background: var(--milk); overflow: hidden; }
.hero__grid {
  position: relative; container-type: inline-size;
  max-width: 560px; margin-inline: auto;
}
.hero__bg, .hero__bg img { display: block; width: 100%; height: auto; }

.hero__head { position: absolute; left: 4cqw; right: 4cqw; top: 4.2cqw; top: 4.2%; }
.tag { display: flex; align-items: center; gap: 5px; max-width: none; }
.tag span {
  padding: 6px 24px 6px 12px; background: var(--orange);
  font: 700 clamp(0.6875rem, 3.2cqw, 0.9375rem)/1.2 var(--display); letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.tag::after { content: ""; width: 4px; height: 28px; margin-left: -6px; background: #2FB3BD; transform: skewX(-24deg); }

.hero h1 {
  margin-top: 3.4cqw;
  font-size: 7.7cqw; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
}
.hero h1::after, .hero__price::after {
  content: ""; display: block; width: 15cqw; height: 5px; margin-top: 3.4cqw;
  border-radius: 3px; background: var(--orange);
}
.hero__sub { margin-top: 2.6cqw; font-size: clamp(0.8125rem, 3.9cqw, 1.125rem); line-height: 1.3; max-width: 43cqw; }

.pills { position: absolute; left: 4cqw; top: 39.5%; z-index: 1; display: grid; gap: 2cqw; justify-items: start; }
.pills li {
  display: flex; align-items: center; gap: 1.8cqw; padding: 1.4cqw 2.8cqw 1.4cqw 2.2cqw;
  border: 1.5px solid #4FBFC6; border-radius: 999px; background: #fff;
  font: 700 clamp(0.6875rem, 3.1cqw, 1rem)/1.2 var(--display); white-space: nowrap;
}
.pills svg, .pay svg { flex: none; fill: none; stroke: var(--orange-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pills svg { width: 5cqw; height: 4.6cqw; min-width: 16px; min-height: 15px; }

.hero__buy { position: absolute; left: 4cqw; right: 4cqw; bottom: 2.4%; }
.hero__price { font: 800 clamp(2.25rem, 10.4cqw, 3.5rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; max-width: none; }
.hero__price small { font-size: 0.5em; font-weight: 700; letter-spacing: -0.01em; }
.hero__price::after { margin-top: 2cqw; }
.hero__buy .btn { margin-top: 3cqw; padding-block: 15px; }
.pay {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 2.4cqw; padding: 1.6cqw 3.6cqw 1.6cqw 2.4cqw;
  border: 1.5px solid #4FBFC6; border-radius: 999px; background: #fff;
  font-size: clamp(0.8125rem, 3.8cqw, 1rem); font-weight: 700; max-width: none;
}
.pay svg { width: 24px; height: 24px; }

.hero__bg { animation: dawn 1100ms var(--ease-out) 60ms both; }
@keyframes dawn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: none; }
}

/* Сценарій відключення */

.ticks li { position: relative; padding-left: 32px; }
.ticks li + li { margin-top: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks--no li::before {
  background: var(--navy-soft);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Три функції */

/* Комплект */
.kit__grid { display: grid; gap: 28px; }
.kit__photo { order: -1; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); padding: 6%; }
.kit__text > * + * { margin-top: 18px; }
.kit__list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.kit__list > div:first-child { border-top: 2px solid var(--navy); }
.kit__list dt { font-weight: 500; }
.kit__list dd { font: 700 1.125rem/1 var(--display); white-space: nowrap; }
.kit__bat { border-radius: var(--r-md); overflow: hidden; }
.kit__bat img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; }

/* Характеристики */
.specs__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: 24px; border-radius: var(--r-md); overflow: hidden;
  background: var(--line); border: 1px solid var(--line);
}
.specs__grid > div { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; background: var(--paper); }
.specs__grid dt { font-size: 0.875rem; line-height: 1.3; color: var(--navy-soft); }
.specs__grid dd { font: 700 1.1875rem/1.2 var(--display); font-variant-numeric: tabular-nums; }

/* Сумісність */

/* Як користуватися + відео */
.use__grid { display: grid; gap: 28px; }
.use__steps { counter-reset: use; margin-top: 24px; border-top: 2px solid var(--navy); }
.use__steps li { counter-increment: use; position: relative; padding: 18px 0 18px 52px; border-bottom: 1px solid var(--line); }
.use__steps li::before {
  content: counter(use); position: absolute; left: 0; top: 18px; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: #fff; font: 700 1rem/1 var(--display);
}
.use__steps p { margin-top: 4px; color: var(--navy-soft); }
.use__tip { margin-top: 18px; color: var(--navy-soft); }
.use__media { max-width: 520px; }
.video { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: #0B1420; }
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  border: 0; border-radius: 999px; background: var(--orange); color: var(--navy);
  font: 800 1rem/1 var(--display); white-space: nowrap; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.6);
  transition: transform 140ms var(--ease-out);
}
.video__play:active { transform: translateX(-50%) scale(0.97); }
.video__play svg { width: 20px; height: 20px; fill: currentColor; }
.video.is-playing .video__play { display: none; }

/* Доставка */
.how__steps { counter-reset: step; display: grid; gap: 0; margin-top: 24px; }
.how__steps li { counter-increment: step; position: relative; padding: 0 0 26px 56px; }
.how__steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: #fff; font: 700 1rem/1 var(--display);
}
.how__steps li::after { content: ""; position: absolute; left: 18px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.how__steps li:last-child { padding-bottom: 0; }
.how__steps li:last-child::before { background: var(--orange); color: var(--navy); }
.how__steps li:last-child::after { display: none; }
.how__steps p { margin-top: 4px; color: var(--navy-soft); }

/* Форма */
.order { background: var(--navy); color: #fff; }
.order__grid { display: grid; gap: 28px; }
.order__text > * + * { margin-top: 14px; }
.order__text p { color: #C6D3E3; }
.price--light .price__now { color: #fff; }
.price--light .price__old {
  align-self: center; padding: 7px 16px; border-radius: 999px;
  background: var(--orange); color: var(--navy);
  font: 700 1.25rem/1.1 var(--display); font-variant-numeric: tabular-nums;
}
.price--light .price__old s { text-decoration-thickness: 2px; text-decoration-color: var(--navy); }
.order__kit { font-size: 0.9375rem; }

.form { padding: 22px 18px; border-radius: var(--r-lg); background: var(--paper); color: var(--navy); }
.deal { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 14px; border-radius: var(--r-md); background: #FFF1D9; }
.deal[hidden] { display: none; }
.deal__text { font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }
.deal__time { display: block; margin-top: 2px; font: 800 1.5rem/1 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.field + .field { margin-top: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 600; }
.field input {
  width: 100%; min-height: 54px; padding: 12px 14px;
  border: 1.5px solid #9AA7B5; border-radius: 12px;
  background: #fff; color: var(--navy); caret-color: var(--teal);
  font: 500 1.0625rem/1.2 var(--body);
  transition: border-color 150ms ease;
}
.field input::placeholder { color: #66758A; }
.field input:focus-visible { outline: 3px solid rgba(14, 124, 139, 0.35); outline-offset: 0; border-color: var(--teal); border-radius: 12px; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__err { margin-top: 6px; font-size: 0.875rem; color: var(--err); }
.form .btn { margin-top: 20px; }
.form__pay { margin-top: 10px; text-align: center; font-size: 0.9375rem; font-weight: 500; color: var(--teal-deep); max-width: none; }
.form__status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--teal-wash); font-size: 0.9375rem; max-width: none; }
.form__status[data-kind="warn"] { background: #FFE9D2; }

/* Відгуки: слайдер */
.reviews[hidden] { display: none; }
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.reviews__stage { position: relative; }
.reviews__btn {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%;
  background: rgba(12, 35, 64, 0.42); color: #fff; cursor: pointer;
  transform: translateY(-50%);
  transition: transform 140ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.reviews__btn[data-dir="-1"] { left: 6px; }
.reviews__btn[data-dir="1"] { right: 6px; }
.reviews__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.reviews__btn:active { transform: translateY(-50%) scale(0.94); }
.reviews__btn:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .reviews__btn:hover { background: rgba(12, 35, 64, 0.7); } }
.reviews__track {
  display: flex; gap: 14px; margin: 24px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
}
.reviews__track::-webkit-scrollbar { display: none; }
.rev {
  flex: 0 0 min(82%, 340px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 14px; padding: 22px 20px;
  border: 1px solid var(--line); border-radius: 28px; background: var(--paper);
}
.rev--shot { padding: 0; gap: 0; overflow: hidden; background: #fff; flex-basis: min(92%, 400px); }
.rev__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.rev--shot img { display: block; width: 100%; height: auto; }
.rev__who { display: flex; align-items: center; gap: 12px; }
.rev__ava {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--teal-wash); color: var(--teal-deep); font: 700 1.125rem/1 var(--display);
}
.rev__name { font: 700 1rem/1.2 var(--display); }
.rev__date { margin-top: 2px; font-size: 0.8125rem; color: var(--navy-soft); }
.rev__text { color: var(--navy); }
.rev__photo { border-radius: 18px; overflow: hidden; }
.rev__photo img { aspect-ratio: 3 / 4; object-fit: cover; }
.rev__photo { max-width: 78%; }
.reviews__dots { margin-top: 14px; text-align: center; font: 700 0.9375rem/1 var(--display); color: var(--navy-soft); font-variant-numeric: tabular-nums; }
.reviews__src { margin-top: 10px; font-size: 0.875rem; color: var(--navy-soft); }
.reviews__hint { margin-top: 4px; font-size: 0.875rem; color: var(--navy-soft); }

/* FAQ */
.faq__list { margin-top: 20px; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding-block: 14px;
  font: 700 1.0625rem/1.3 var(--display); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { padding-bottom: 18px; color: var(--navy-soft); }

/* Футер */
.foot { padding-block: 28px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--navy-soft); }
.foot p { max-width: none; }
.foot p + p { margin-top: 4px; }
.foot__name { font-weight: 700; color: var(--navy); }
.foot__ship { margin-top: 14px !important; }
.foot a { color: var(--navy); font-weight: 600; }

/* Нижня панель */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 239, 0.97);
  border-top: 1px solid var(--line);
  transition: transform 260ms var(--ease-out), visibility 0s;
}
.bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform 200ms var(--ease-out), visibility 0s 200ms; }
.bar__left { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.bar__sum { font: 800 1.25rem/1.1 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; max-width: none; }
.bar__pay {
  padding: 3px 9px; border-radius: 999px; background: var(--orange); color: var(--navy);
  font: 700 0.6875rem/1.2 var(--body); white-space: nowrap; max-width: none;
}
.btn--bar { width: 100%; padding: 17px 8px; }

/* ≥ 640px */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  main > section { padding-block: 80px; }
  .specs__grid { grid-template-columns: repeat(4, 1fr); }
  .form { padding: 32px; }
}

/* ≥ 960px */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  main > section { padding-block: 104px; }

  .hero { padding-block: 56px 96px; }
  .hero__grid {
    display: grid; max-width: 1160px; padding-inline: 32px; container-type: normal;
    grid-template-columns: 1.1fr 1fr; column-gap: 56px; margin-inline: auto;
    grid-template-areas: "head bg" "pills bg" "buy bg"; grid-template-rows: auto auto 1fr; align-items: start;
  }
  .hero__bg { grid-area: bg; }
  .hero__bg img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 62%; border-radius: var(--r-lg); }
  .hero__head, .pills, .hero__buy { position: static; }
  .hero__sub { max-width: 24ch; }
  .hero__head { grid-area: head; }
  .tag span { font-size: 0.875rem; padding: 8px 28px 8px 14px; }
  .hero h1 { margin-top: 20px; font-size: clamp(2.75rem, 4.3vw, 3.75rem); }
  .hero h1::after, .hero__price::after { width: 64px; margin-top: 18px; }
  .hero__sub { margin-top: 18px; font-size: 1.3125rem; }
  .pills { grid-area: pills; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .pills li { gap: 10px; padding: 9px 18px 9px 12px; font-size: 1rem; }
  .pills svg { width: 22px; height: 20px; }
  .hero__buy { grid-area: buy; margin-top: 36px; max-width: 420px; }
  .hero__price { font-size: 4.25rem; }
      .hero__price::after { margin-top: 14px; }
  .hero__buy .btn { margin-top: 20px; padding-block: 20px; }
  .pay { margin-top: 14px; font-size: 1rem; }
  .price__now { font-size: 3.25rem; }

  .kit__grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
  .kit__photo { order: 0; }
  .reviews__track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .use__grid { grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
  .use__media { order: 0; }
  .how__steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .how__steps li { padding: 56px 0 0; }
  .how__steps li::after { left: 46px; right: -24px; top: 15px; bottom: auto; width: auto; height: 2px; }
  .order__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .faq__in { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
  .faq__list { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg { animation: none; }
  .btn, .bar, .faq summary::after { transition: none; }
}

/* Комплект: ролі акумуляторів */
.kit__role { display: block; margin-top: 3px; font-size: 0.875rem; font-weight: 600; color: var(--teal-deep); }
.kit__list dt { line-height: 1.3; }

/* Збільшений перегляд відгуків */
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(12, 35, 64, 0.96); overflow: auto; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(12, 35, 64, 0.8); }
.lightbox img { display: block; width: min(640px, 150vw); max-width: none; height: auto; margin: 64px auto 32px; background: #fff; }
.lightbox__close {
  position: fixed; top: 10px; right: 10px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: var(--orange); color: var(--navy); cursor: pointer;
}
.lightbox__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Світла немає: ситуація і рішення */

/* Комплект: підписи на фото */
.kit__frame { position: relative; }
.kit__tag {
  position: absolute; transform: translate(-50%, -50%); padding: 4px 11px; border-radius: 999px;
  background: var(--orange); color: var(--navy); font: 800 0.75rem/1.2 var(--display); white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(12, 35, 64, 0.6);
}
.kit__tag--on { left: 34%; top: 82%; }
.kit__tag--spare { left: 77%; top: 84.5%; }

/* Пояснення під відео */

/* Не лише вдома */
.outdoor { background: var(--teal-wash); }
.outdoor__grid { display: grid; gap: 24px; }
.outdoor__photo { border-radius: var(--r-lg); overflow: hidden; background: #0B1420; }
.outdoor__photo img { aspect-ratio: 1 / 1; object-fit: cover; }
.outdoor__text > * + * { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border: 1.5px solid #4FBFC6; border-radius: 999px; background: #fff; font: 700 0.9375rem/1.2 var(--display); }
@media (min-width: 960px) {
  .outdoor__grid { grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
  .kit__tag { font-size: 0.875rem; padding: 5px 14px; }
}

/* Чому обирають саме цей інвертор */
.why__grid { display: grid; gap: 24px; }
.why__lead { margin-top: 14px; color: var(--navy); }
.why__photo { border-radius: var(--r-lg); overflow: hidden; background: #0B1420; }
.why__photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.why__cards { display: grid; gap: 12px; }
.why__card { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.why__ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 50%; background: var(--teal-wash); }
.why__ico svg { width: 24px; height: 24px; fill: none; stroke: var(--teal-deep); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.why__card h3 { font-size: 1.1875rem; }
.why__card p { margin-top: 6px; color: var(--navy-soft); }
@media (min-width: 640px) {
  .why__cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .why__grid {
    grid-template-columns: 5fr 6fr; column-gap: 72px; row-gap: 28px;
    grid-template-areas: "photo head" "photo cards"; grid-template-rows: auto 1fr; align-items: start;
  }
  .why__head { grid-area: head; }
  .why__photo { grid-area: photo; position: sticky; top: 24px; }
  .why__cards { grid-area: cards; }
}

/* Характеристики: фото зі схемою */
.specs__layout { display: grid; gap: 20px; margin-top: 24px; }
.specs__layout .specs__grid { margin-top: 0; }
.specs__photo { border-radius: var(--r-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.specs__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.specs__zoom img { display: block; width: 100%; height: auto; }
.specs__photo figcaption { padding: 10px 16px 12px; font-size: 0.875rem; color: var(--navy-soft); text-align: center; }
@media (min-width: 960px) {
  .specs__photo { max-width: 640px; margin-inline: auto; }
}


/* Як користуватися: спочатку відео, потім кроки */
.use__grid { grid-template-areas: "title" "media" "steps"; }
.use__title { grid-area: title; }
.use__media { grid-area: media; }
.use__text { grid-area: steps; }
.use__steps { margin-top: 0; }
@media (min-width: 960px) {
  .use__grid { grid-template-areas: "title media" "steps media"; grid-template-rows: auto 1fr; align-items: start; row-gap: 24px; }
}
