:root {
  --bg: #0b1410;
  --bg-2: #101c16;
  --fg: #e8eee9;
  --muted: #9aa8a0;
  --accent: #4cdb92;
  --line: #22302a;
  --card: #13211a;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Шапка */
header.top { position: absolute; inset: 0 0 auto; z-index: 2; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 20px; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.lang { color: var(--muted); font-size: 15px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.lang:hover { color: var(--fg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 0;
  background:
    radial-gradient(70% 90% at 15% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(160deg, #2c7a4f 0%, #153a28 52%, var(--bg) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 20px; text-wrap: balance; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: rgba(232,238,233,.85); margin: 0 0 32px; max-width: 30em; }
.hero .phone { justify-self: center; width: min(320px, 78vw); margin-bottom: -64px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 170px; height: 56px; padding: 0 20px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.25); line-height: 1.15;
}
.store small { font-size: 11px; opacity: .75; }
.store b { font-size: 19px; font-weight: 600; }
.store[aria-disabled="true"] { cursor: default; opacity: .8; }
.note { margin-top: 14px; font-size: 14px; color: rgba(232,238,233,.65); }

/* Рамка телефона */
.phone {
  border-radius: 36px;
  border: 8px solid #050807;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.16), 0 30px 70px rgba(0,0,0,.55);
  overflow: hidden;
  background: #050807;
}
.phone img { width: 100%; height: auto; aspect-ratio: 1290 / 2796; }

/* Фічі */
section { padding: 96px 0; }
.hero + section { padding-top: 140px; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature:nth-of-type(odd) .text { order: 2; }
.feature .phone { width: min(300px, 74vw); justify-self: center; }
.feature + .feature { border-top: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 16px; text-wrap: balance; }
.text p { color: var(--muted); margin: 0 0 16px; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Приватність */
.privacy { background: var(--bg-2); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card b { display: block; font-size: 18px; margin-bottom: 6px; }
.card span { color: var(--muted); font-size: 15px; }

/* Ще */
.more .cards { grid-template-columns: repeat(3, 1fr); }

/* Підтримка */
.support { text-align: center; }
.support p { color: var(--muted); max-width: 34em; margin: 0 auto 24px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: #062014; font-weight: 700; text-decoration: none; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding-top: 96px; }
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .stores { justify-content: center; }
  .feature:nth-of-type(odd) .text { order: 0; }
  section { padding: 72px 0; }
  .cards, .more .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cards, .more .cards { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; }
}

/* ---------- Анімації ---------- */

/* Світіння, що повільно пливе за hero */
.hero::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  right: -120px; top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76,219,146,.28), transparent 65%);
  filter: blur(20px);
  animation: glow 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero .wrap { position: relative; }
@keyframes glow {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-180px, 120px) scale(1.2); }
}

/* Поява hero при завантаженні */
.hero h1, .hero .lead, .hero .stores, .hero .note, .hero .phone {
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero .lead   { animation-delay: .12s; }
.hero .stores { animation-delay: .24s; }
.hero .note   { animation-delay: .32s; }
.hero .phone  { animation: rise-phone 1.1s .15s cubic-bezier(.2,.7,.2,1) both, float 6s 1.3s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-phone { from { opacity: 0; transform: translateY(80px) rotate(4deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Знімки в hero змінюють один одного */
.hero .phone { position: relative; }
.hero .phone img + img { position: absolute; inset: 0; }
.hero .phone img { transition: opacity .9s ease; }
.hero .phone img.off { opacity: 0; }

/* Кнопки */
.store, .btn, .card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.store:not([aria-disabled="true"]):hover, .btn:hover { transform: translateY(-2px); }
.btn:hover { box-shadow: 0 10px 30px rgba(76,219,146,.3); }
.card:hover { transform: translateY(-4px); border-color: rgba(76,219,146,.4); }

/* Поява при прокручуванні (класи ставить site.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .feature .phone.reveal:not(.in) { transform: translateY(60px) rotate(var(--tilt, -4deg)) scale(.94); }
.js .feature:nth-of-type(even) .phone.reveal { --tilt: 4deg; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.card:hover { transform: translateY(-4px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; }
  .js .reveal, .js .feature .phone.reveal:not(.in) { transform: none; }
}
