/* BPN VOX — стилі лендінгу, стиль claymorphism під 3D-графіку замовника.
   Шрифт Nunito лежить на сайті (assets/fonts), Google Fonts не підключаємо — GDPR. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* кольори з логотипа: темно-синій, блакитна й жовта хвилі Wi-Fi */
  --navy: #1c2137;
  --navy-2: #2b3256;
  /* Кольори прапора обраної мови: <html data-theme="ua|da|en|tr"> ставить app.js / legal.js.
     accent — основний (кнопки, посилання), sun — другий (значки, виділення),
     cta — кнопка оплати на темному тлі. Відтінки рахуються з них через color-mix. */
  --accent: #0057b7;
  --accent-soft: #e3effc;
  --accent-tint: #bcd8fb;
  --sun: #ffd700;
  --sun-ink: #1c2137;
  --sun-soft: #fff6d6;
  --sun-tint: #ffe9a3;
  --sun-dark: #8a6200;
  --cta: #ffd700;
  --cta-ink: #1c2137;
  --accent-dark: color-mix(in srgb, var(--accent) 82%, black);
  --text: #1c2137;
  --muted: #667089;
  --line: #e4e9f2;
  --bg: #f4f7fc;
  --bg-alt: #eaf1fb;
  --card: #ffffff;
  --green: #17803d;
  --radius: 28px;
  --radius-sm: 18px;

  /* «пластилінова» тінь: м'яка зовнішня + світлий відблиск зверху + легка тінь знизу всередині */
  --clay: 0 18px 40px -12px rgba(36, 52, 98, .22),
          inset 0 2px 0 rgba(255, 255, 255, .9),
          inset 0 -6px 14px rgba(36, 52, 98, .06);
  --clay-sm: 0 10px 22px -10px rgba(36, 52, 98, .25),
             inset 0 2px 0 rgba(255, 255, 255, .9),
             inset 0 -4px 10px rgba(36, 52, 98, .06);
  --clay-btn: 0 10px 20px -6px color-mix(in srgb, var(--accent) 55%, transparent),
              inset 0 2px 0 rgba(255, 255, 255, .35),
              inset 0 -5px 0 rgba(0, 0, 0, .2);
  --header-h: 72px;
}

/* Данія — червоний і білий */
:root[data-theme="da"] {
  --accent: #c8102e; --accent-soft: #fbe7ea; --accent-tint: #f6c3cb;
  --sun: #c8102e; --sun-ink: #fff; --sun-soft: #fdeef0; --sun-tint: #f8cdd3; --sun-dark: #8e0b20;
  --cta: #ffffff; --cta-ink: #c8102e;
}
/* Англійська — кольори британського прапора: синій, червоний, білий */
:root[data-theme="en"] {
  --accent: #012169; --accent-soft: #e2e7f4; --accent-tint: #bfc9e6;
  --sun: #c8102e; --sun-ink: #fff; --sun-soft: #fdeef0; --sun-tint: #f8cdd3; --sun-dark: #8e0b20;
  --cta: #c8102e; --cta-ink: #fff;
}
/* Туреччина — червоний і білий */
:root[data-theme="tr"] {
  --accent: #e30a17; --accent-soft: #fde7e8; --accent-tint: #f7c2c5;
  --sun: #e30a17; --sun-ink: #fff; --sun-soft: #fdeeef; --sun-tint: #f9cdd0; --sun-dark: #990710;
  --cta: #ffffff; --cta-ink: #e30a17;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 820px; }

/* ---------- кнопки ---------- */
.btn {
  text-align: center;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, white) 0%, var(--accent) 100%); color: #fff; box-shadow: var(--clay-btn); }
.btn--primary:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, white) 0%, color-mix(in srgb, var(--accent) 90%, white) 100%); }
.btn--ghost { background: var(--card); color: var(--navy); box-shadow: var(--clay-sm); }
.btn--ghost:hover { color: var(--accent-dark); }
.btn--lg { padding: 17px 32px; font-size: 18px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 252, .85); backdrop-filter: saturate(1.5) blur(14px);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.header__logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: var(--card); box-shadow: var(--clay-sm); }
.lang { display: flex; gap: 4px; padding: 4px; background: var(--card); border-radius: 999px; box-shadow: var(--clay-sm); }
.lang button {
  border: 0; background: transparent; padding: 6px 11px; font: inherit; font-size: 13px; border-radius: 999px;
  font-weight: 800; color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.lang button.is-active { background: var(--navy); color: #fff; }
.burger { display: none; background: var(--card); border: 0; padding: 10px; cursor: pointer; border-radius: 14px; box-shadow: var(--clay-sm); }
.burger span { display: block; width: 20px; height: 2.5px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* ---------- перший екран ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 88px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: var(--accent-tint); top: -160px; right: -80px; }
.hero::after { width: 380px; height: 380px; background: var(--sun-tint); bottom: -160px; left: -100px; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.02em; }
.hero__sub { font-size: 19px; color: #3b4562; max-width: 560px; margin-bottom: 30px; }
.hero__visual { position: relative; }
.hero__visual img {
  border-radius: 36px; box-shadow: var(--clay); background: var(--card);
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  animation: float 6s ease-in-out infinite;
}
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  background: var(--card); border-radius: 999px; box-shadow: var(--clay-sm); font-weight: 700; font-size: 14px; color: #3b4562;
}
.trust li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* на жовтому (UA) галочка темна, на червоному — біла */
:root:not([data-theme]) .trust li::before, :root[data-theme="ua"] .trust li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231c2137' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- секції ---------- */
.section { padding: 88px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-radius: 48px; margin: 0 12px; }
.section__title { font-size: clamp(28px, 3.2vw, 40px); text-align: center; margin-bottom: 44px; }
.section__lead { text-align: center; color: var(--muted); margin: -28px auto 36px; max-width: 560px; font-size: 18px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: var(--card); border-radius: var(--radius); padding: 22px 22px 28px; position: relative; box-shadow: var(--clay); }
.step__num {
  position: absolute; top: 34px; left: 34px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; font-weight: 800; color: var(--sun-ink);
  background: var(--sun); box-shadow: 0 6px 12px -4px color-mix(in srgb, var(--sun-dark) 45%, transparent), inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -4px 0 color-mix(in srgb, var(--sun-dark) 20%, transparent);
}
.step p { margin: 0; font-weight: 700; font-size: 17px; }
.step__img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 22px; margin-bottom: 20px; }
.step__img--stub { background: linear-gradient(160deg, #eef5fe, #dbe9fb); display: grid; place-items: center; box-shadow: inset 0 -8px 18px rgba(36, 52, 98, .06); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--clay); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.card:hover { transform: translateY(-6px) rotate(-.4deg); }
.card h3 { font-size: 19px; }
.card p { color: #4a5470; font-size: 15.5px; margin: 0; }
.card__icon {
  width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(160deg, #eef5fe, #d5e6fb); box-shadow: 0 8px 16px -8px rgba(31, 99, 180, .4), inset 0 2px 0 #fff;
}
.card:nth-child(2n) .card__icon { background: linear-gradient(160deg, #fff8dc, #ffe8a0); box-shadow: 0 8px 16px -8px rgba(138, 98, 0, .4), inset 0 2px 0 #fff; }
.card__icon--img { background: none !important; box-shadow: none !important; }
.card__icon img { width: 60px; height: 60px; object-fit: contain; }
.step__img--stub svg, .card__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step__img--stub svg { width: 34%; height: 34%; stroke: var(--accent); stroke-width: 1.2; }

/* ---------- конфігуратор ---------- */
.config { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; align-items: start; }
.config__left, .config__right { display: grid; gap: 22px; }
.config__img { border-radius: var(--radius); background: var(--card); box-shadow: var(--clay); aspect-ratio: 1 / 1; object-fit: contain; width: 100%; padding: 12px; }
.block { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--clay); }
.block h3 { font-size: 20px; margin-bottom: 16px; }
.opt {
  display: flex; gap: 14px; align-items: flex-start; padding: 15px 16px; margin-bottom: 12px;
  background: var(--bg); border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(36, 52, 98, .06); transition: border-color .2s, background .2s, transform .15s;
}
.opt:hover { background: #eef4fc; }
.opt:active { transform: scale(.99); }
.opt:has(input:checked) { border-color: var(--accent); background: #fff; box-shadow: var(--clay-sm); }
.opt input { margin-top: 4px; accent-color: var(--accent); width: 20px; height: 20px; flex: none; }
.opt del { color: #9aa3b8; margin-left: 4px; }
.opt__desc { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.opt-group {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sun-dark); background: var(--sun-soft); padding: 5px 12px; border-radius: 999px; margin: 10px 0 12px;
}
.badge-date { margin-top: 8px; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-dark); font-size: 15.5px; }

.stepper { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.stepper--center { justify-content: center; }
.stepper__btn {
  width: 44px; height: 44px; border-radius: 16px; border: 0; background: var(--card); box-shadow: var(--clay-sm);
  font: inherit; font-size: 22px; font-weight: 800; line-height: 1; color: var(--navy); cursor: pointer; transition: transform .15s;
}
.stepper__btn:active { transform: scale(.92); }
.stepper__btn:disabled { opacity: .35; cursor: default; transform: none; }
.stepper__value { min-width: 110px; text-align: center; font-weight: 800; }
.stepper__price { margin-left: auto; padding: 7px 14px; border-radius: 999px; background: var(--bg); color: var(--muted); font-weight: 800; font-size: 14px; }
.stepper__price.is-active { background: var(--accent-soft); color: var(--accent-dark); }

.checkout {
  margin-top: 26px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, #34407a 0%, var(--navy) 60%); color: #dfe5f3;
  border-radius: 34px; padding: 32px 36px;
  box-shadow: 0 24px 48px -16px rgba(28, 33, 55, .55), inset 0 2px 0 rgba(255, 255, 255, .08), inset 0 -8px 20px rgba(0, 0, 0, .25);
}
.checkout__label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #9aa6c6; }
.checkout__total { font-size: 46px; font-weight: 800; color: #fff; margin: 2px 0 8px; letter-spacing: -.02em; }
.checkout__line { font-size: 15.5px; margin-top: 4px; }
.checkout__line--rec { color: var(--accent-tint); }
.checkout .muted { color: #9aa6c6; }
.checkout__action { display: grid; gap: 12px; justify-items: stretch; max-width: 360px; }
.checkout .btn--primary { background: linear-gradient(180deg, color-mix(in srgb, var(--cta) 75%, white) 0%, var(--cta) 100%); color: var(--cta-ink); box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--cta) 50%, transparent), inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -5px 0 rgba(0, 0, 0, .18); }
.promo { font-size: 15px; color: #cdd5ea; }
.promo__code { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font-weight: 800; letter-spacing: .04em; }
.promo__sub { display: block; color: #9ee6b3; margin-top: 4px; }
.pay-error { font-size: 15px; color: #fecaca; }

.note { margin-top: 22px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--clay-sm); text-align: center; }
.note b { display: block; color: var(--navy); }

/* ---------- продовжити сервіс ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.plan { background: var(--card); border-radius: var(--radius); padding: 30px 26px; text-align: center; box-shadow: var(--clay); display: grid; gap: 12px; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.plan:hover { transform: translateY(-6px); }
.plan:nth-child(2) { outline: 3px solid var(--sun); }
.plan__period { font-weight: 800; color: var(--muted); }
.plan__price { font-size: 40px; font-weight: 800; color: var(--navy); }
.plan__price small { font-size: 16px; color: var(--muted); }

.offer { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(160deg, var(--sun-soft), var(--sun-tint)); border-radius: 34px; padding: 30px 34px; box-shadow: var(--clay); }
.offer__title { font-size: 26px; margin-bottom: 6px; }
.offer p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
#faq-hidden { margin-top: 14px; }
.faq__item { border-radius: 22px; background: var(--card); box-shadow: var(--clay-sm); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; font-weight: 800; color: var(--navy); position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; width: 32px; height: 32px; margin-top: -16px;
  border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; line-height: 1;
  background: var(--accent-soft); color: var(--accent-dark); transition: transform .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--sun); color: var(--sun-ink); }
.faq__a { padding: 0 24px 20px; color: #3b4562; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__more { display: flex; margin: 28px auto 0; }

/* ---------- підвал ---------- */
.footer { background: var(--navy); color: #c7cfe3; padding: 52px 0 40px; font-size: 15px; text-align: center; border-radius: 48px 48px 0 0; margin-top: 40px; }
.footer__logo { height: 28px; width: auto; margin: 0 auto 20px; filter: brightness(0) invert(1); opacity: .92; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.footer a { color: #eef2fb; }
.footer__copy { color: #8e98b5; margin: 0; }

/* ---------- кукі й вікно ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  display: flex; gap: 16px; align-items: center; background: var(--card);
  border-radius: 24px; padding: 14px 16px 14px 22px; box-shadow: 0 20px 50px -10px rgba(28, 33, 55, .35), inset 0 2px 0 #fff; font-size: 15px;
}
.cookie p { margin: 0; flex: 1; }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(28, 33, 55, .5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.modal__box { background: var(--card); border-radius: 34px; padding: 32px; max-width: 460px; width: 100%; text-align: center; box-shadow: var(--clay); animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- поява при прокрутці ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in:hover, .plan.reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__visual img { animation: none; }
  .btn, .card, .plan { transition: none; }
}

/* ---------- юридичні сторінки ---------- */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(28px, 3vw, 36px); }
.legal h2 { font-size: 21px; margin-top: 32px; }
.legal p, .legal li { color: #3b4562; }
.legal .updated { color: var(--muted); font-size: 15px; }
.legal__back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 800; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .config { grid-template-columns: 1fr; }
  .config__img { max-height: 360px; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; top: var(--header-h); left: 12px; right: 12px; flex-direction: column; gap: 2px; margin: 0;
    background: var(--card); border-radius: 24px; box-shadow: var(--clay); padding: 10px;
    transform: translateY(-140%); transition: transform .3s cubic-bezier(.3, 1.2, .5, 1); z-index: -1;
  }
  .nav a { padding: 12px 14px; }
  .nav-open .nav { transform: none; }
  .lang { margin-left: auto; }
  .burger { display: block; }
  .hero { padding: 32px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual { order: -1; }
  .steps, .plans { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; padding: 26px; }
  .checkout__action { max-width: none; }
  .section { padding: 64px 0; }
  .section--alt { margin: 0 6px; border-radius: 32px; }
  .offer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; }
  .header__logo img { height: 24px; }
  .header__inner { gap: 10px; }
  .lang button { padding: 6px 8px; }
  .btn--lg { width: 100%; }
  .checkout__total { font-size: 38px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .stepper__price { margin-left: 0; }
  .trust li { font-size: 13px; }
  .footer { border-radius: 32px 32px 0 0; }
}
