/* Огні ЮА — відновлений лендінг. Кольори й типографіка збережені з оригіналу ogni.com.ua. */
:root {
  --navy: #061537;
  --navy-2: #0c2152;
  --green: #1e5c15;
  --lime-1: #88de00;
  --lime-2: #498d00;
  --lime-3: #3f7404;
  --bar: #2c2a2a;
  --yellow: #ffec00;
  --footer: #05380e;
  --bg: #f4f4f4;
  --text: #222;
  --bar-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }

.vh, .lead-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; color: #000; padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 40px); }
.center { text-align: center; }
.left { text-align: left !important; }
.green { color: var(--green); }
.mt { margin-top: 48px; }

/* ---------- верхня панель ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--bar-h);
  background: var(--bar); color: #fff;
}
.topbar__in {
  width: min(1320px, 100% - 32px); height: 100%; margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: 1.5px; text-decoration: none; white-space: nowrap;
}
.brand__mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px 3px rgba(255, 236, 0, .65);
}
.nav { display: flex; gap: 20px; margin-inline: auto; }
.nav a { font-size: 14px; text-decoration: none; padding: 6px 2px; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--lime-1); }
.topbar__contact { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.topbar__hint { font-size: 15px; }
.topbar__phone { color: var(--yellow); font-weight: 700; font-size: 20px; text-decoration: none; }
.topbar__phone:hover { text-decoration: underline; }
.topbar__cta {
  border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff;
  border-radius: 40px; padding: 6px 16px; font-size: 14px; cursor: pointer;
}
.topbar__cta:hover { background: #fff; color: var(--bar); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; margin-left: 4px; }
.burger span { display: block; height: 3px; background: #fff; border-radius: 2px; margin: 4px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- головний екран ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--bar-h) + 32px) 0 48px;
  display: flex; align-items: center;
  color: #fff; text-align: center;
  background: #0b0b14 url("/img/hero.jpg") center / cover no-repeat;
}
.hero__in { width: min(1160px, 100% - 40px); margin-inline: auto; }
.hero__uptitle { font-size: 16px; font-weight: 700; letter-spacing: 2.5px; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.hero__lead {
  margin-top: 40px;
  font-size: clamp(24px, 4.2vw, 50px); font-weight: 700; line-height: 1.2; letter-spacing: 1.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
}
.hero__lead a { text-decoration: none; white-space: nowrap; }
.hero__title, .hero__descr { background: rgba(0, 0, 0, .8); padding: 20px; }
.hero__title { margin-top: clamp(32px, 9vh, 120px); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.25; }
.hero__descr { margin-top: 28px; font-size: 15px; font-weight: 700; }

/* ---------- кнопки ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 53px; padding: 6px 40px;
  border: 0; border-bottom: 3px solid var(--lime-3); border-radius: 40px;
  background: linear-gradient(180deg, var(--lime-1) 0%, var(--lime-2) 100%);
  color: #fff; font-size: 19px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: filter .2s ease-out;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { filter: grayscale(.6); cursor: progress; }
.btn--wide { width: 100%; border-radius: 5px; background: #178a08; border-bottom-color: #0f6405; }
.btn--shine::after {
  content: ""; position: absolute; top: -150px; left: -100px; width: 30px; height: 300px;
  background: rgba(255, 255, 255, .85); transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
}
@keyframes shine { 0% { left: -100px; } 30%, 100% { left: 115%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn--shine::after { animation: none; display: none; }
}

/* ---------- форми ---------- */
.lead-form { text-align: left; }
.lead-field { position: relative; }
.lead-field label:not(.vh) { display: block; font-weight: 700; margin-bottom: 6px; }
.lead-field input, .lead-field textarea {
  display: block; width: 100%;
  height: 56px; padding: 0 16px;
  border: 2px solid #fff; border-radius: 3px;
  background: #fff; color: #000; font-size: 16px;
}
.lead-field textarea { height: auto; min-height: 104px; padding: 14px 16px; resize: vertical; line-height: 1.4; }
.lead-field input::placeholder, .lead-field textarea::placeholder { color: #000; opacity: .5; }
.lead-field .is-invalid { border-color: #e53935 !important; }
.lead-error { margin-top: 6px; font-size: 13px; font-weight: 700; color: #c62828; }
.lead-status { margin-top: 14px; padding: 12px 16px; border-radius: 4px; font-weight: 700; text-align: center; }
.lead-status.is-ok { background: #fff; color: #1b5e20; border: 2px solid #2dd22d; }
.lead-status.is-warn { background: #fff8e1; color: #6d4c00; border: 2px solid #ffca28; }
.lead-status.is-error { background: #fff; color: #b71c1c; border: 2px solid #e53935; }
.lead-status a { color: inherit; white-space: nowrap; }
.lead-consent { margin-top: 12px; font-size: 13px; opacity: .85; text-align: center; }

.lead-form--hero {
  margin-top: 36px;
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px 20px; align-items: start;
}
.lead-form--hero .lead-field--wide { grid-column: 1 / 3; grid-row: 2; }
.lead-form--hero .btn { grid-column: 3; grid-row: 1 / 3; align-self: center; min-width: 254px; }
.lead-form--hero .lead-status, .lead-form--hero .lead-consent { grid-column: 1 / -1; }
.lead-form--hero .lead-error { color: #ffd0c9; background: rgba(0, 0, 0, .75); padding: 4px 8px; display: inline-block; }
.lead-form--hero .lead-consent { text-shadow: 0 1px 4px #000; margin-top: 0; }

.lead-form--main {
  margin-top: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.lead-form--main .lead-field--wide, .lead-form--main .lead-status, .lead-form--main .lead-consent { grid-column: 1 / -1; }
.lead-form--main .btn { grid-column: 1 / -1; justify-self: center; }
.lead-form--main input, .lead-form--main textarea { border: 1px solid #c9c9c9; border-radius: 5px; }

.lead-form--modal .lead-field { margin-bottom: 22px; }
.lead-form--modal input, .lead-form--modal textarea { border: 1px solid #c9c9c9; border-radius: 5px; height: 54px; }
.lead-form--modal textarea { height: auto; }

/* ---------- секції ---------- */
.sec { padding: 60px 0; }
.sec--tight { padding: 45px 0; }
.sec--navy { background: var(--navy); color: #fff; }
.sec--form { background: #fff; }
.h2 { font-size: clamp(24px, 2.9vw, 32px); line-height: 1.25; font-weight: 700; color: var(--green); text-align: center; }
.sec--navy .h2, .why__head .h2 { color: #fff; font-size: clamp(24px, 3.1vw, 36px); line-height: 1.15; }
.h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; font-weight: 700; }
.sub { margin-top: 18px; font-size: clamp(17px, 2vw, 22px); font-weight: 700; color: var(--green); text-align: center; line-height: 1.3; }
.sec--navy .sub { color: #fff; }
.center .btn, p.center > .btn { margin-top: 24px; }

.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.zoom { display: block; overflow: hidden; background: #111; cursor: zoom-in; }
.zoom img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.zoom:hover img, .zoom:focus-visible img { transform: scale(1.05); }

.card figcaption { padding: 14px 4px 0; }
.card strong { display: block; font-size: 16px; line-height: 1.3; }
.card span { display: block; margin-top: 6px; font-size: 14px; color: #555; }

.obj img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.obj figcaption { padding: 14px 0 6px; font-weight: 700; text-align: center; }

/* етапи */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.steps li {
  position: relative; min-height: 132px; padding: 22px 22px 22px 24px;
  background: var(--navy-2); border: 4px solid #0a1d55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.steps__n { align-self: flex-start; font-size: 22px; font-weight: 700; letter-spacing: 1px; padding: 2px 12px; background: #16307c; box-shadow: 4px 4px 10px rgba(0, 0, 0, .35); }
.steps strong { align-self: flex-end; text-align: right; font-size: 20px; line-height: 1.25; }
.steps li:not(:last-child)::after {
  content: "→"; position: absolute; right: -19px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: #fff; z-index: 1;
}
.steps li:nth-child(3n)::after { content: none; }

/* навіщо це потрібно */
.why__head { background: var(--navy); padding: 30px 20px; }
.why__pic {
  min-height: 560px; padding: 56px 6%;
  display: flex; justify-content: flex-end; align-items: flex-start;
  background: #1a1640 url("/img/why.jpg") center / cover no-repeat;
}
.why__box { max-width: 440px; padding: 22px 26px; background: rgba(6, 21, 55, .78); color: #fff; }
.why__box ul { margin-top: 10px; padding-left: 20px; list-style: disc; }
.why__box li { margin: 6px 0; font-weight: 700; font-size: 15px; }

/* типи підсвічування */
.types { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.types li {
  min-height: 150px; padding: 26px 24px;
  background: radial-gradient(circle at 82% 50%, rgba(255, 221, 120, .38) 0, rgba(255, 221, 120, .08) 34%, transparent 36%), var(--navy-2);
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.types strong { font-size: 28px; line-height: 1.1; }
.types span { max-width: 62%; font-size: 14px; color: #d5dcef; }
.note { margin-top: 26px; text-align: center; font-size: 15px; color: #d5dcef; }

.figure-pic { margin: 32px auto 0; max-width: 760px; }
.figure-pic .zoom img { aspect-ratio: 16 / 9; }

/* ціна */
.price { font-size: 18px; line-height: 22px; }
.price ul { margin: 12px 0 0; padding-left: 22px; list-style: disc; }
.price li { margin: 6px 0; }
.price__free { margin: 28px 0 44px; font-size: 22px; line-height: 1.3; }

/* пакети */
.pack { display: grid; grid-template-columns: 42% 1fr; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.pack img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.pack__body { padding: 22px 24px 24px; }
.pack h3 { font-size: 22px; color: var(--green); line-height: 1.2; }
.pack__sub { margin-top: 8px; font-weight: 700; font-size: 15px; }
.pack ul { margin-top: 12px; padding-left: 18px; list-style: disc; font-size: 14px; }
.pack li { margin: 5px 0; }

.lead-text { margin-top: 12px; font-size: 20px; }
.list { margin-top: 18px; padding-left: 22px; list-style: disc; font-size: 18px; }
.list li { margin: 8px 0; }

/* переваги */
.adv { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.adv li { position: relative; padding-left: 58px; }
.adv li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 42px; height: 42px; border-radius: 50%;
  background: #fffbd1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23061537' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.adv strong { display: block; font-size: 20px; line-height: 1.2; }
.adv span { display: block; margin-top: 8px; font-size: 15px; color: #d5dcef; }
.adv a { color: var(--yellow); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* підвал */
.footer { background: var(--footer); color: #fff; padding: 60px 0 40px; font-size: 14px; line-height: 22px; }
.footer__in { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.footer__about p { margin-bottom: 8px; }
.footer__phone { font-size: 18px; font-weight: 700; text-decoration: none; }
.footer__nav { columns: 2; column-gap: 32px; }
.footer__nav a { display: block; margin-bottom: 4px; break-inside: avoid; }
.footer a:hover { color: var(--yellow); }

/* мобільна панель дій */
.mobilebar { display: none; }

/* модальне вікно */
.modal {
  position: fixed; inset: 0; z-index: 1500; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .6); overflow-y: auto;
}
.modal__box { position: relative; width: min(560px, 100%); margin: auto; padding: 40px 45px; background: #fff; color: #222; text-align: center; }
.modal__title { font-size: 24px; line-height: 1.25; margin-bottom: 24px; }
.modal__close { position: absolute; right: 6px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 34px; line-height: 1; cursor: pointer; color: #444; }

/* перегляд фото */
.lightbox { position: fixed; inset: 0; z-index: 1600; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.lightbox__fig { max-width: 92vw; max-height: 92vh; text-align: center; color: #fff; }
.lightbox__fig img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; margin-inline: auto; }
.lightbox__fig figcaption { padding: 10px 12px 0; font-size: 15px; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; width: 52px; height: 52px; font-size: 36px; line-height: 1; border-radius: 50%; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
body.is-locked { overflow: hidden; }

/* ---------- адаптивність ---------- */
@media (max-width: 1440px) {
  .topbar__hint { display: none; }
}
@media (max-width: 1180px) {
  .nav { gap: 14px; }
  .topbar__in { gap: 16px; }
}
@media (max-width: 1020px) {
  .burger { display: block; }
  .topbar__contact { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--bar-h) 0 auto 0;
    display: none; flex-direction: column; gap: 0;
    background: var(--bar); border-top: 1px solid #444; padding: 6px 20px 14px;
    max-height: calc(100vh - var(--bar-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 17px; padding: 13px 0; border-bottom: 1px solid #3a3838; }
  .grid--3, .types, .adv, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3n)::after { content: "→"; }
  .steps li:nth-child(2n)::after { content: none; }
  .pack { grid-template-columns: 1fr; }
  .pack img { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 760px) {
  body { padding-bottom: 60px; }
  .topbar__cta { display: none; }
  .topbar__phone { font-size: 17px; }
  .brand { font-size: 16px; letter-spacing: 1px; }
  .hero { padding-bottom: 36px; }
  .hero__uptitle { font-size: 13px; letter-spacing: 1.5px; }
  .hero__lead { margin-top: 22px; letter-spacing: .5px; }
  .hero__title { margin-top: 28px; padding: 16px; }
  .hero__descr { margin-top: 18px; padding: 14px; font-size: 14px; }
  .lead-form--hero { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .lead-form--hero .lead-field--wide, .lead-form--hero .btn { grid-column: 1; grid-row: auto; }
  .lead-form--hero .btn { width: 100%; }
  .lead-form--main { grid-template-columns: 1fr; }
  .sec { padding: 44px 0; }
  .sec--tight { padding: 36px 0; }
  .grid { margin-top: 28px; gap: 14px; }
  .grid--2 { grid-template-columns: 1fr; }
  .why__pic { min-height: 0; padding: 200px 16px 20px; background-position: 30% top; background-size: auto 240px; background-color: var(--navy); display: block; }
  .why__box { max-width: none; background: rgba(6, 21, 55, .92); }
  .types span { max-width: 70%; }
  .footer__in { grid-template-columns: 1fr; }
  .modal__box { padding: 34px 20px 24px; }
  .mobilebar {
    position: fixed; inset: auto 0 0 0; z-index: 900;
    display: grid; grid-template-columns: 1fr 1fr;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .35);
  }
  .mobilebar a { min-height: 56px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; text-decoration: none; color: #fff; }
  .mobilebar__call { background: var(--bar); }
  .mobilebar__lead { background: linear-gradient(180deg, var(--lime-1), var(--lime-2)); }
  .lightbox__nav { width: 44px; height: 44px; font-size: 30px; }
}
@media (max-width: 600px) {
  .grid--3, .types, .adv, .steps { grid-template-columns: 1fr; }
  .steps li::after { content: none !important; }
  .steps li { min-height: 0; flex-direction: row; align-items: center; }
  .steps strong { text-align: right; font-size: 17px; }
  .steps__n { font-size: 17px; white-space: nowrap; }
  .footer__nav { columns: 1; }
  .types li { min-height: 120px; }
  .types strong { font-size: 24px; }
}
@media (max-width: 380px) {
  .topbar__phone { font-size: 15px; }
  .brand__mark { display: none; }
  .btn { padding-inline: 22px; font-size: 17px; }
}
