/* ============ ArtiLex site — dark / yellow ============ */
:root {
  --bg:      #06070a;
  --panel:   #0d1015;
  --panel-2: #12161d;
  --border:  #1e242e;
  --text:    #eceef2;
  --muted:   #98a0ac;
  --accent:  #f5b301;
  --accent-2:#ffd34d;
  --radius:  18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Заокруглена «рамка» сторінки — на весь екран, з тонким відступом по краях */
.frame {
  max-width: none;
  margin: 10px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(245,179,1,.05), transparent 60%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 26px;
  /* env(safe-area-inset-top) — відступ під «чубчик»/годинник айфона в режимі PWA */
  padding: calc(18px + env(safe-area-inset-top)) clamp(24px, 4vw, 72px) calc(18px + env(safe-area-inset-bottom));
  min-height: calc(100vh - 20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
main { flex: 1; }

.accent { color: var(--accent); }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 6px 0 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { height: 34px; width: auto; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: .2px; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 2px; position: relative; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
  transition: right .28s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { color: var(--text); }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; transition: all .25s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.icon-btn.soon { opacity: .45; cursor: default; }
.icon-btn.soon:hover { color: var(--muted); border-color: var(--border); transform: none; }

.user-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}

/* Burger (мобільний) */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Кнопки ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #141002;
  font-weight: 800; font-size: 16px; text-decoration: none;
  padding: 15px 28px; border-radius: 14px; border: 0; cursor: pointer;
  transition: transform .22s, box-shadow .22s, background .22s;
  box-shadow: 0 6px 24px rgba(245,179,1,.22);
}
.btn-primary svg { transition: transform .22s; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245,179,1,.32); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-big { font-size: 18px; padding: 17px 34px; }
.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--text); font-weight: 700; font-size: 15px;
  text-decoration: none; padding: 13px 24px; border-radius: 14px;
  border: 1px solid var(--border); transition: all .25s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: 40px; padding: 60px 0 30px; min-height: 480px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13.5px; font-weight: 700;
  border: 1px solid rgba(245,179,1,.4); background: rgba(245,179,1,.07);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -.5px;
}
.hero .sub { color: var(--muted); font-size: 16.5px; line-height: 1.6; margin: 0 0 34px; }

/* Hero art */
.hero-art { position: relative; height: 420px; }
.glow {
  position: absolute; inset: 10% 0 0 10%;
  background: radial-gradient(closest-side, rgba(245,179,1,.13), transparent 70%);
  border-radius: 50%; filter: blur(10px);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.art-tablet {
  position: absolute; left: 6%; top: 18%; width: 66%;
  background: linear-gradient(160deg, #14181f, #0c0f14);
  border: 1px solid var(--border); border-radius: 18px; padding: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.wire { stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 3.2s ease forwards; }
.wire:nth-child(2) { animation-delay: .4s; }
.wire:nth-child(3) { animation-delay: .8s; }
.wire:nth-child(4) { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.art-card {
  position: absolute; background: linear-gradient(160deg, #171b23, #10131a);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.45); width: 180px;
}
.art-card-title { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.art-card-1 { right: 0; top: 0; }
.art-card-2 { right: 6%; bottom: 8%; }
.art-lines { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.art-lines i { display: block; height: 6px; width: 90%; border-radius: 3px; background: #232936; }
.art-lines i:nth-child(odd)::after { content: ""; }
.art-cube {
  position: absolute; left: 2%; bottom: 2%; width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #171b23, #10131a);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}
.float { animation: floaty 6s ease-in-out infinite; }
.float.delay-2 { animation-delay: 1.5s; }
.float.delay-3 { animation-delay: 3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Feature cards ---------- */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 40px 0 30px;
}
.card {
  background: linear-gradient(170deg, #12161d, #0d1015);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-decoration: none; color: var(--text);
  transition: transform .28s, border-color .28s, box-shadow .28s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(245,179,1,.45); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.card-ico { color: var(--accent); margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Page head ---------- */
.page-head { text-align: center; padding: 60px 0 20px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 14px; font-weight: 800; }
.page-head .sub { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 30px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ---------- Slider ---------- */
.slider-wrap, .videos { padding: 40px 0; }
.slider-wrap h2, .videos h2, .group-title { font-size: 24px; margin: 0 0 22px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.slides { display: flex; transition: transform .55s cubic-bezier(.22,.8,.24,1); }
.slide { min-width: 100%; margin: 0; position: relative; }
.slide img { width: 100%; display: block; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff; padding: 30px 20px 14px; font-size: 14px;
}
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(13,16,21,.75); backdrop-filter: blur(6px);
  border: 1px solid var(--border); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .25s;
}
.slider-btn:hover { color: var(--accent); border-color: var(--accent); }
.slider-btn.prev { left: 14px; } .slider-btn.next { right: 14px; }
.dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: all .25s; padding: 0; }
.dots button.on { background: var(--accent); width: 22px; border-radius: 4px; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-card { text-decoration: none; color: var(--text); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--panel-2); transition: transform .28s, border-color .28s; }
.video-card:hover { transform: translateY(-5px); border-color: rgba(245,179,1,.45); }
.video-thumb { aspect-ratio: 16/9; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.play { width: 52px; height: 52px; border-radius: 50%; background: rgba(245,179,1,.92); color: #141002; display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.video-card:hover .play { transform: scale(1.12); }
.video-title { padding: 14px 16px; font-size: 14.5px; font-weight: 600; }

/* ---------- Empty blocks ---------- */
.empty-block {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 46px 20px; text-align: center; color: var(--muted);
}
.empty-block.big { padding: 80px 20px; max-width: 640px; margin: 20px auto; }
.empty-block svg { opacity: .6; margin-bottom: 12px; }
.empty-block p { margin: 0; line-height: 1.6; font-size: 14.5px; }

/* ---------- Web tabs ---------- */
.tabs-section { padding: 26px 0; }
.group-title { display: flex; align-items: center; gap: 10px; color: var(--text); }
.group-title svg { color: var(--accent); }
.tab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tab-tile {
  position: relative; background: linear-gradient(170deg, #12161d, #0d1015);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 18px; text-decoration: none; color: var(--text);
  transition: transform .28s, border-color .28s;
}
.tab-tile:hover { transform: translateY(-5px); border-color: rgba(245,179,1,.45); }
.tab-ico { font-size: 30px; margin-bottom: 12px; }
.tab-name { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.soon-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; font-weight: 700; color: var(--accent);
  background: rgba(245,179,1,.1); border: 1px solid rgba(245,179,1,.35);
  padding: 3px 9px; border-radius: 999px;
}
.soon-tile { opacity: .8; cursor: default; }

/* ---------- Pricing ---------- */
.tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #141002; font-size: 12px; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price .num { font-size: 46px; font-weight: 800; color: var(--text); }
.price .per { font-size: 14px; }
.save { color: var(--accent); font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.pricing-note { text-align: center; color: var(--muted); font-size: 13.5px; padding-bottom: 30px; }

/* ---------- Login ---------- */
.login-wrap { display: flex; justify-content: center; padding: 60px 0; }
.login-card {
  width: 100%; max-width: 380px; background: linear-gradient(170deg, #12161d, #0d1015);
  border: 1px solid var(--border); border-radius: 22px; padding: 34px 30px;
  text-align: center;
}
.login-logo { height: 52px; margin-bottom: 14px; }
.login-card h1 { font-size: 22px; margin: 0 0 6px; }
.login-card .sub { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 22px; }
.login-card label { display: block; text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 7px; }
.login-card input {
  width: 100%; padding: 14px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 16px; transition: border-color .25s;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
.login-card .btn-primary { margin-top: 24px; }
.err { background: rgba(220,50,50,.12); border: 1px solid rgba(220,50,50,.4); color: #ff9d9d; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 6px; }
.login-hint { color: var(--muted); font-size: 13px; margin-top: 18px; }
.login-hint a { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 6px; border-top: 1px solid var(--border); margin-top: 30px;
  color: var(--muted); font-size: 13.5px;
}
.socials { display: flex; gap: 10px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .glow, .wire { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features, .tab-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding-top: 30px; min-height: 0; }
  .hero-art { height: 360px; max-width: 560px; }
}
@media (max-width: 800px) {
  /* ВАЖЛИВО: зберігаємо env(safe-area-inset-top) — інакше в PWA на айфоні
     контент залазить під статус-бар (годинник/батарею). */
  .frame { margin: 8px; padding: calc(16px + env(safe-area-inset-top)) 18px calc(14px + env(safe-area-inset-bottom)); border-radius: 20px; }
  .nav {
    position: absolute; top: 64px; left: 12px; right: 12px; z-index: 50;
    flex-direction: column; gap: 4px;
    background: rgba(13,16,21,.97); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 16px; padding: 12px;
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .28s, transform .28s;
  }
  .nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a.active { background: rgba(245,179,1,.08); }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .user-chip { display: none; }  .hero h1 br { display: none; }
  .hero .sub br { display: none; }
  .page-head .sub br { display: none; }
}
@media (max-width: 520px) {
  .features, .tab-grid, .video-grid { grid-template-columns: 1fr; }
  .hero-art { height: 300px; }
  .art-card { width: 150px; }
  .footer { flex-direction: column; gap: 14px; }
}

/* ================= Web-версія: інструменти ================= */
.tool-head { display: flex; align-items: center; gap: 14px; padding: 18px 0 6px; }
.tool-back {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: 18px; transition: all .25s;
}
.tool-back:hover { border-color: var(--accent); color: var(--accent); }
.tool-head h1 { font-size: clamp(20px, 3vw, 28px); margin: 0; font-weight: 800; }
.tool-head .tool-sub { color: var(--muted); font-size: 12.5px; margin: 2px 0 0; }

.tool-grid { display: grid; grid-template-columns: 420px 1fr; gap: 18px; padding: 14px 0 30px; align-items: start; }
.panel {
  background: linear-gradient(170deg, #12161d, #0d1015);
  border: 1px solid var(--border); border-radius: 20px; padding: 22px;
}
.panel h2 { font-size: 18px; margin: 0 0 6px; }
.panel .p-hint { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; line-height: 1.5; }

.field-label { display: block; color: var(--muted); font-size: 12px; font-weight: 800; margin: 14px 0 7px; letter-spacing: .3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.chip:hover { border-color: rgba(245,179,1,.5); }
.chip.on { background: rgba(245,179,1,.12); border-color: var(--accent); color: var(--accent-2); }

.tool-input {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 16px; font-weight: 600; font-family: inherit; transition: border-color .2s;
}
.tool-input:focus { outline: none; border-color: var(--accent); }

.select-btn {
  width: 100%; text-align: left; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: border-color .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.select-btn:hover { border-color: var(--accent); }

.result-big {
  font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -1px;
  cursor: pointer; margin: 4px 0; word-break: break-word; user-select: none;
}
.result-big:active { color: var(--accent); }
.copy-hint { color: var(--muted); font-size: 12.5px; }
.warn-text { color: #ff8f87; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.spec-line { color: var(--muted); font-size: 13.5px; font-weight: 600; }

/* Слоти 400 В */
.slots { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-top: 8px; }
.slots-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.slots-head b { font-size: 14px; flex: 1; }
.mini-btn {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 6px 11px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }
.slot-row { display: flex; align-items: center; gap: 8px; padding: 4px 2px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.slot-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Каталог кабелів */
.cable-toolbar { display: flex; gap: 12px; align-items: center; padding: 14px 0; flex-wrap: wrap; }
.cable-toolbar .tool-input { flex: 1; min-width: 200px; width: auto; }
.count-pill {
  background: var(--accent); color: #141002; font-size: 12px; font-weight: 800;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding-bottom: 30px; }
.c-card {
  background: linear-gradient(170deg, #12161d, #0d1015);
  border: 1px solid var(--border); border-radius: 18px; padding: 18px 16px;
  cursor: pointer; text-align: center; transition: transform .22s, border-color .22s;
}
.c-card:hover { transform: translateY(-4px); border-color: rgba(245,179,1,.5); }
.c-card .c-name { font-weight: 800; font-size: 15px; margin-bottom: 10px; word-break: break-word; }
.c-chip {
  display: block; background: var(--bg); border: 1px solid var(--border);
  color: var(--muted); border-radius: 10px; padding: 5px 10px;
  font-size: 12px; font-weight: 600; margin: 5px auto 0; max-width: 190px;
}
.c-card .brand-count { color: var(--muted); font-size: 12.5px; }

/* Модальний вибір кабелю */
.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 3000; /* вище за Leaflet (панелі мапи мають z-index до ~1000) */
}
.modal-back.open { display: flex; }
.modal {
  width: 100%; max-width: 560px; max-height: 82vh; overflow: auto;
  background: #0f1319; border: 1px solid var(--border);
  border-radius: 22px 22px 0 0; padding: 20px;
  animation: slide-up .3s ease;
}
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { margin: 0 0 12px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.modal h3 .mini-btn { margin-left: auto; }
.modal .list-btn {
  display: block; width: 100%; text-align: left; margin-top: 8px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: border-color .2s;
}
.modal .list-btn:hover { border-color: var(--accent); }
.modal .list-btn small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }

/* Таблиця 230/400 */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 30px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.data-table th {
  background: var(--panel-2); color: var(--muted); text-align: center;
  padding: 12px 10px; font-size: 12px; letter-spacing: .3px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0;
}
.data-table td {
  text-align: center; padding: 10px 10px; border-bottom: 1px solid rgba(30,36,46,.6);
  cursor: pointer; font-weight: 600; transition: background .15s;
}
.data-table tr:hover td { background: rgba(245,179,1,.05); }
.data-table td:active { background: rgba(245,179,1,.18); }
.data-table tr:last-child td { border-bottom: none; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(80px);
  background: var(--accent); color: #141002; font-weight: 800; font-size: 14px;
  padding: 12px 22px; border-radius: 999px; z-index: 200; opacity: 0;
  transition: all .3s cubic-bezier(.22,.8,.24,1); pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.toast.show { transform: translateX(-50%); opacity: 1; }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
}

/* Чекбокс «Запам'ятати мене» на сторінці входу */
.remember {
  display: flex; align-items: center; gap: 9px; margin: 16px 0 0;
  cursor: pointer; user-select: none;
}
.remember input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.remember span { color: var(--muted); font-size: 13.5px; font-weight: 600; }

/* ============ ArtilexSolar вкладки ============ */
/* Каталог: зображення в картках */
.cat-img {
  width: 100%; aspect-ratio: 4/3; border-radius: 12px; margin-bottom: 10px;
  background-color: #fff; background-size: contain;
  background-position: center; background-repeat: no-repeat;
}
.cat-img-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); color: var(--muted); font-size: 30px;
}
.kv {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 12px; margin-top: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px;
}
.kv span { color: var(--muted); }
.kv b { text-align: right; word-break: break-word; }
.model-photo {
  width: 100%; height: 220px; border-radius: 14px; background-color: #fff;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.doc-row { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.doc-btn { padding: 10px 16px; font-size: 14px; }
.modal-wide { max-width: 720px; }

/* SketchDown */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label.small { font-size: 11px; margin: 10px 0 6px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.metric {
  background: linear-gradient(170deg, #12161d, #0d1015);
  border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px;
}
.metric span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; margin-bottom: 6px; }
.metric b { font-size: 22px; font-weight: 800; }
.sketch-block { margin-bottom: 14px; padding: 16px; }
.sketch-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sketch-head b { font-size: 15px; }
.sketch-head span { color: var(--muted); font-size: 12.5px; flex: 1; }
.sketch-canvas { width: 100%; display: block; border-radius: 12px; }

/* Карта досягнень */
.map-wrap {
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  height: clamp(320px, 55vh, 560px);
}
#map { width: 100%; height: 100%; background: #0b1b30; }
.artx-pin-wrap { background: transparent; border: 0; }
.artx-pin {
  width: 22px; height: 22px; border-radius: 50% 50% 50% 0;
  background: #e23b3b; border: 2px solid #fff; transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.45); position: relative;
}
.artx-pin::after {
  content: ""; position: absolute; left: 6px; top: 6px;
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.85);
}
.artx-popup .leaflet-popup-content-wrapper {
  background: #0f2238; color: #eaf2ff; border-radius: 16px;
  box-shadow: 0 16px 38px rgba(0,0,0,.5); border: 1px solid rgba(127,178,255,.25);
}
.artx-popup .leaflet-popup-tip { background: #0f2238; }
.artx-popup .leaflet-popup-content { margin: 0; }
.leaflet-popup { animation: artxpop .18s ease-out; }
@keyframes artxpop {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to { opacity: 1; transform: none; }
}
.artx-card { display: flex; gap: 11px; padding: 11px 13px; color: #eaf2ff; align-items: center; cursor: pointer; min-width: 200px; }
.artx-card:hover { background: rgba(127,178,255,.08); border-radius: 16px; }
.artx-av {
  width: 58px; height: 58px; border-radius: 12px; background-size: cover;
  background-position: center; flex: none; border: 1px solid rgba(255,255,255,.18);
}
.artx-av-empty { display: flex; align-items: center; justify-content: center; background: #1c3a5e; font-weight: 800; font-size: 15px; color: #9fc0f0; }
.artx-meta { display: flex; flex-direction: column; }
.artx-name { font-weight: 800; font-size: 14px; }
.artx-pow { font-size: 12px; color: #f5c84c; margin: 3px 0; font-weight: 700; }
.artx-hint { font-size: 11px; color: #9fb4d4; }
.st-card .cat-img { background-size: cover; background-color: var(--panel-2); }

/* Фотострічка станції */
.photo-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.photo-item {
  width: 170px; height: 120px; border-radius: 12px; flex: none;
  background-size: cover; background-position: center;
  border: 1px solid var(--border); transition: transform .2s;
}
.photo-item:hover { transform: scale(1.03); }

@media (max-width: 620px) {
  .metric-row { grid-template-columns: 1fr; }
  .metric b { font-size: 18px; }
}

/* Панель фільтрів каталогу (як у ПЗ): підписані поля в адаптивній сітці */
.filter-panel {
  background: linear-gradient(170deg, #12161d, #0d1015);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 14px; margin-bottom: 16px;
}
.f-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 12px;
  margin-bottom: 12px;
}
.f-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f-field > span {
  color: var(--muted); font-size: 11.5px; font-weight: 700;
  letter-spacing: .2px; text-transform: uppercase;
}
.f-field .tool-input { width: 100%; min-width: 0; }
.f-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.f-select option { background: #12161d; color: var(--text); }
@media (max-width: 620px) {
  .f-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
}

/* ---- Немає доступу до вкладки (права з «Учасників») ---- */
.no-access-box {
  max-width: 620px; margin: 0 auto; padding: 46px 32px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
}
.no-access-ico {
  font-size: 44px; line-height: 1; margin-bottom: 18px;
  filter: grayscale(.2);
}
.no-access-box h1, .no-access-box h2 { margin: 0 0 14px; font-size: 26px; font-weight: 800; }
.no-access-box p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 26px; }
.no-access-box .btn-primary { display: inline-block; }

/* ==================== Кнопки «Увійти / Зареєструватись» ==================== */
.btn-auth {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 800; font-size: 14.5px; white-space: nowrap;
  padding: 11px 20px; border-radius: 12px; text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn-auth-ghost {
  color: var(--text); background: transparent; border: 1px solid rgba(245,179,1,.55);
}
.btn-auth-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-auth-solid {
  color: #141002; background: var(--accent); border: 1px solid var(--accent);
  box-shadow: 0 6px 20px rgba(245,179,1,.22);
}
.btn-auth-solid:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245,179,1,.32); }

/* ============================ Сторінки авторизації ======================== */
.auth-wrap { display: flex; justify-content: center; padding: 42px 0 60px; }
.auth-card {
  width: 100%; max-width: 420px; text-align: center;
  background: linear-gradient(170deg, #12161d, #0d1015);
  border: 1px solid var(--border); border-radius: 24px; padding: 30px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.auth-card.wide { max-width: 520px; }
.auth-logo { height: 52px; margin-bottom: 16px; }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; font-weight: 800; }
.auth-sub { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0 0 20px; }

/* Перемикач Вхід / Реєстрація */
.auth-tabs {
  display: flex; gap: 4px; padding: 4px; margin: 0 0 22px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
}
.auth-tab {
  flex: 1; padding: 10px 8px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-size: 14px; font-weight: 700; transition: all .22s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--accent); color: #141002; box-shadow: 0 4px 14px rgba(245,179,1,.25); }

/* Поля */
.fld { display: block; text-align: left; margin-bottom: 16px; }
.fld > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.fld input {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 16px; font-family: inherit; transition: border-color .2s;
}
.fld input:focus { outline: none; border-color: var(--accent); }
.fld-hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.hint-ok { color: #5bc97a; }
.hint-bad { color: #ff8f87; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 9px;
}
.pw-eye:hover, .pw-eye.on { color: var(--accent); }

.pw-meter { display: block; height: 4px; margin-top: 9px; background: var(--border); border-radius: 3px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .28s, background .28s; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 8px; }
.link-muted { color: var(--muted); font-size: 13px; text-decoration: none; }
.link-muted:hover { color: var(--accent); }
.auth-switch { color: var(--muted); font-size: 13.5px; margin: 18px 0 0; }
.auth-switch a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.agree { text-align: left; margin: 6px 0 4px; align-items: flex-start; }
.agree span { font-size: 13px; line-height: 1.45; }
.agree a { color: var(--accent); }

.ok-box {
  background: rgba(91,201,122,.09); border: 1px solid rgba(91,201,122,.35);
  color: #b8e9c6; border-radius: 12px; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; text-align: left;
}
.ok-box.big { text-align: center; padding: 22px 18px; }
.ok-box.big svg { color: #5bc97a; margin-bottom: 10px; }
.ok-box.big p { margin: 0; }

/* Оформлення підписки */
.order-box { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 6px 16px; margin: 18px 0; }
.order-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 14.5px; border-bottom: 1px solid rgba(30,36,46,.7); }
.order-row:last-child { border-bottom: none; }
.order-row span { color: var(--muted); }
.order-row.total b { color: var(--accent); font-size: 20px; }

/* ================================ Ціни =================================== */
.pricing-head { text-align: center; padding: 46px 0 8px; }
.pricing-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 14px 0 12px; font-weight: 800; letter-spacing: -.5px; }
.pricing-head .sub { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0 auto 12px; max-width: 560px; }


/* Нижній ряд переваг */
.pricing-assure {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 34px 0 40px;
}
.assure-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: linear-gradient(170deg, #12161d, #0d1015);
  border: 1px solid var(--border); border-radius: 16px; padding: 22px 18px;
}
.assure-item svg { color: var(--accent); margin-bottom: 4px; }
.assure-item b { font-size: 15px; }
.assure-item span { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ============================ Мобільна адаптація ========================== */
@media (max-width: 800px) {
  .btn-auth { padding: 9px 14px; font-size: 13.5px; }
  .btn-auth-ghost { display: none; }
  .pricing-assure { grid-template-columns: 1fr; }
  .pricing-head { padding-top: 26px; }
  .pricing-head .sub br { display: none; }
  .auth-wrap { padding: 20px 0 40px; }
  .auth-card { padding: 26px 20px; border-radius: 20px; }
  .auth-sub br { display: none; }
}
@media (max-width: 480px) {  .btn-auth-solid { padding: 9px 13px; font-size: 13px; }
}

/* Футер: підпис + коротка згадка про проєкт (для пошуку кирилицею) */
.footer-left { display: flex; flex-direction: column; gap: 5px; }
.footer-about { color: #5d6672; font-size: 11.5px; line-height: 1.45; max-width: 620px; }
@media (max-width: 620px) {
  .footer-about { font-size: 11px; }
}

/* Кнопки на сторінці «доступ обмежено» */
.no-access-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px;
}
@media (max-width: 520px) {
  .no-access-actions { flex-direction: column; }
  .no-access-actions a { width: 100%; }
}

/* ==================== Розділ «Можливості» (ft-*) ==================== */
/* Свіжіша палітра поверх темної бази: більше повітря, кольору і світла */

.ft-grad {
  background: linear-gradient(92deg, #f5b301, #ffd34d 45%, #7fb2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Шапка розділу */
.ft-hero { position: relative; text-align: center; padding: 56px 0 30px; }
.ft-hero-glow {
  position: absolute; inset: 0 0 auto; height: 320px; pointer-events: none;
  background:
    radial-gradient(46% 45% at 32% 50%, rgba(245,179,1,.12), transparent 70%),
    radial-gradient(46% 45% at 70% 50%, rgba(96,150,255,.10), transparent 70%);
}
.ft-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 16px 0 14px; font-weight: 800; letter-spacing: -.5px; position: relative; }
.ft-hero .sub { color: #b9c0cc; font-size: 18px; line-height: 1.65; margin: 0 auto; max-width: 680px; position: relative; }

/* Дві великі кнопки напрямків */
.ft-dirs { display: flex; gap: 16px; justify-content: center; margin-top: 34px; position: relative; flex-wrap: wrap; }
.ft-dir {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
  background: linear-gradient(170deg, #161b23, #0e1116);
  border: 1px solid rgba(245,179,1,.35); border-radius: 18px; padding: 16px 26px;
  transition: transform .22s, border-color .22s, box-shadow .22s; min-width: 260px; text-align: left;
}
.ft-dir:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 40px rgba(245,179,1,.12); }
.ft-dir-solar { border-color: rgba(127,178,255,.35); }
.ft-dir-solar:hover { border-color: #7fb2ff; box-shadow: 0 14px 40px rgba(127,178,255,.12); }
.ft-dir-ico { font-size: 28px; }
.ft-dir b { display: block; font-size: 17px; }
.ft-dir small { color: var(--muted); font-size: 12.5px; }

/* Секція напрямку */
.ft-section { padding: 44px 0 10px; }
.ft-sec-head { text-align: center; max-width: 640px; margin: 0 auto 14px; }
.ft-sec-tag {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  background: rgba(245,179,1,.09); border: 1px solid rgba(245,179,1,.35);
  padding: 7px 16px; border-radius: 999px;
}
.ft-sec-tag.solar { color: #9cc2ff; background: rgba(127,178,255,.09); border-color: rgba(127,178,255,.35); }
.ft-sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 16px 0 10px; font-weight: 800; }
.ft-sec-head p { color: #b9c0cc; font-size: 17px; line-height: 1.65; margin: 0; }

/* Блок вкладки: текст + медіа, зигзаг */
.ft-item {
  display: grid; grid-template-columns: minmax(340px, 5.5fr) 6.5fr; gap: clamp(24px, 3.4vw, 48px);
  align-items: center; padding: 44px 0; border-bottom: 1px solid rgba(30,36,46,.6);
}
.ft-section .ft-item:last-of-type { border-bottom: none; }
.ft-item.flip { grid-template-columns: 6.5fr minmax(340px, 5.5fr); }
.ft-item.flip .ft-text { order: 2; }
.ft-item.flip .ft-media { order: 1; }

.ft-kicker {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--accent); font-size: 14.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.ft-kicker.solar { color: #9cc2ff; }
.ft-num {
  font-size: 34px; font-weight: 800; letter-spacing: -1px;
  color: transparent; -webkit-text-stroke: 1.4px rgba(245,179,1,.55);
}
.ft-kicker.solar .ft-num { -webkit-text-stroke-color: rgba(127,178,255,.55); }
.ft-dev-badge {
  color: #ffb08f; background: rgba(255,138,86,.1); border: 1px solid rgba(255,138,86,.4);
  font-size: 11px; padding: 4px 11px; border-radius: 999px; letter-spacing: .5px;
}
.ft-text h3 { font-size: clamp(28px, 3.2vw, 40px); margin: 12px 0 16px; font-weight: 800; letter-spacing: -.5px; }
.ft-desc { color: #c8cfd9; font-size: 19px; line-height: 1.7; margin: 0 0 22px; }

.ft-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 20px; }
.ft-chips li {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--text); font-size: 17px; font-weight: 600; line-height: 1.45;
}
.ft-chips svg { flex: none; color: var(--accent); margin-top: 4px; width: 16px; height: 16px; }
#solar .ft-chips svg { color: #7fb2ff; }

/* «Вікно» зі скріншотом */
.ft-media { min-width: 0; }
.ft-frame {
  position: relative; margin: 0; cursor: zoom-in; border-radius: 16px; overflow: hidden;
  border: 1px solid #262e3b; background: #10141b;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ft-frame:hover { transform: translateY(-4px); border-color: rgba(245,179,1,.4); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
#solar .ft-frame:hover { border-color: rgba(127,178,255,.45); }
.ft-frame-bar {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px;
  background: #171c25; border-bottom: 1px solid #232b38;
}
.ft-frame-bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.ft-frame-bar span { color: var(--muted); font-size: 12px; font-weight: 600; }
.ft-frame img { width: 100%; display: block; }
.ft-zoom {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(10,13,18,.78); backdrop-filter: blur(4px);
  color: var(--text); font-size: 12px; font-weight: 700;
  padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateY(4px); transition: all .25s;
}
.ft-frame:hover .ft-zoom { opacity: 1; transform: none; }

/* «В розробці» */
.ft-dev .ft-frame img { filter: saturate(.75) brightness(.92); }
.ft-dev-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(10,12,16,.1), rgba(10,12,16,.45));
}
.ft-dev-overlay span {
  background: rgba(16,20,27,.88); border: 1px solid rgba(255,138,86,.5); color: #ffcdb8;
  font-size: 14px; font-weight: 800; padding: 10px 20px; border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Мініатюри */
.ft-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ft-thumb {
  flex: none; width: 92px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: #10141b; cursor: pointer; opacity: .65;
  transition: opacity .2s, border-color .2s;
}
.ft-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ft-thumb:hover { opacity: 1; }
.ft-thumb.on { opacity: 1; border-color: var(--accent); }
#solar .ft-thumb.on { border-color: #7fb2ff; }

/* CTA */
.ft-cta { text-align: center; padding: 60px 0 50px; }
.ft-cta h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 10px; font-weight: 800; }
.ft-cta p { color: var(--muted); font-size: 15.5px; margin: 0 0 26px; }
.ft-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Лайтбокс */
.ft-lightbox {
  position: fixed; inset: 0; z-index: 4000; display: none;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(4,6,9,.92); backdrop-filter: blur(6px); padding: 20px;
}
.ft-lightbox.open { display: flex; }
.ft-lightbox figure { margin: 0; max-width: min(1500px, 92vw); text-align: center; }
.ft-lightbox img {
  max-width: 100%; max-height: 82vh; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.ft-lightbox figcaption { color: var(--text); font-size: 14px; font-weight: 600; margin-top: 12px; }
.ft-lb-count { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.ft-lb-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 17px; cursor: pointer; transition: background .2s;
}
.ft-lb-close:hover { background: rgba(255,255,255,.16); }
.ft-lb-nav {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s;
}
.ft-lb-nav:hover { background: rgba(255,255,255,.16); }

/* Адаптація */
@media (max-width: 960px) {
  .ft-item { grid-template-columns: 1fr; gap: 20px; padding: 34px 0; }
  .ft-item.flip .ft-text { order: 1; }
  .ft-item.flip .ft-media { order: 2; }
  .ft-chips { grid-template-columns: 1fr; }
  .ft-hero .sub br { display: none; }
  .ft-dirs { flex-direction: column; align-items: stretch; }
  .ft-dir { min-width: 0; }
  .ft-lb-nav { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 2; }
  .ft-lb-nav.prev { left: 22vw; }
  .ft-lb-nav.next { right: 22vw; }
  .ft-lightbox img { max-height: 68vh; }
}

/* ============ Web-версія: картки вкладок (варіант C) ============ */
.wt-group {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 800; margin: 30px 0 16px;
}
.wt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.wt-group.solar .wt-dot { background: #7fb2ff; }
.wt-group small { color: var(--muted); font-size: 13px; font-weight: 600; }

/* auto-fit: картки самі розтягуються під ряд, скільки б вкладок не було
   відкрито — не буде ні дірок, ні самотньої картки в другому ряду */
.wt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

.wt-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 190px; padding: 24px; border-radius: 20px; text-decoration: none;
  color: var(--text); border: 1px solid #232b39;
  background: linear-gradient(160deg, #171d27 0%, #0d1116 100%);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.wt-card:hover {
  transform: translateY(-4px); border-color: rgba(245,179,1,.5);
  box-shadow: 0 18px 46px rgba(0,0,0,.45);
}
.wt-card.solar:hover { border-color: rgba(127,178,255,.5); }

.wt-glow {
  position: absolute; right: -40px; top: -40px; width: 190px; height: 190px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,179,1,.16), transparent);
  transition: opacity .25s;
}
.wt-card.solar .wt-glow { background: radial-gradient(closest-side, rgba(127,178,255,.16), transparent); }
.wt-card:hover .wt-glow { opacity: 1.4; }

.wt-tag {
  position: absolute; right: 18px; top: 18px;
  font-size: 11px; font-weight: 800; letter-spacing: .6px; white-space: nowrap;
  color: var(--accent); background: rgba(245,179,1,.1);
  border: 1px solid rgba(245,179,1,.3); padding: 5px 10px; border-radius: 999px;
}
.wt-card.solar .wt-tag { color: #7fb2ff; background: rgba(127,178,255,.1); border-color: rgba(127,178,255,.3); }

.wt-ico {
  width: 52px; height: 52px; margin-bottom: 16px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; color: var(--accent);
  background: linear-gradient(150deg, rgba(245,179,1,.22), rgba(245,179,1,.06));
  border: 1px solid rgba(245,179,1,.32);
}
.wt-card.solar .wt-ico {
  color: #7fb2ff;
  background: linear-gradient(150deg, rgba(127,178,255,.22), rgba(127,178,255,.06));
  border-color: rgba(127,178,255,.32);
}
.wt-ico svg { width: 26px; height: 26px; }

.wt-name { font-size: 19px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.wt-desc { color: #aab2be; font-size: 14px; line-height: 1.5; }

@media (max-width: 700px) {
  .wt-grid { grid-template-columns: 1fr; gap: 12px; }
  .wt-card { min-height: 0; padding: 20px; }
  .wt-ico { width: 46px; height: 46px; margin-bottom: 13px; }
  .wt-ico svg { width: 23px; height: 23px; }
  .wt-name { font-size: 18px; }
  /* на вузькому екрані ярлик не тісниться з назвою */
  .wt-tag { position: static; align-self: flex-start; margin-bottom: 12px; }
  .wt-group { font-size: 19px; margin: 24px 0 13px; }
}

/* ==================== Заставка при вході на сайт ==================== */
/* Показується один раз за сеанс (див. скрипт у base.html). Щоб уникнути
   миготіння, видимістю керує атрибут на <html>, виставлений ще до промальовки. */
.sp-splash { display: none; }
html[data-splash="1"] .sp-splash { display: flex; }

.sp-splash {
  position: fixed; inset: 0; z-index: 9999;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; overflow: hidden; color: var(--text);
  background: radial-gradient(130% 110% at 50% 42%, #15151b 0%, #08080a 68%);
  animation: sp-out .55s ease 1.7s forwards;
}
@keyframes sp-out { to { opacity: 0; visibility: hidden; transform: scale(1.03); } }

/* Тепле світіння, що дихає позаду знака */
.sp-splash::before {
  content: ""; position: absolute; top: 42%; left: 50%;
  width: 60vmin; height: 60vmin; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245,179,1,.18) 0%, transparent 62%);
  filter: blur(6px); animation: sp-breathe 2.2s ease-in-out infinite;
}
@keyframes sp-breathe {
  0%,100% { opacity: .45; transform: translate(-50%,-50%) scale(.88); }
  50%     { opacity: .95; transform: translate(-50%,-50%) scale(1.08); }
}

/* Промінь, що влітає й гасне за знаком */
.sp-beam {
  position: absolute; z-index: 0; height: 3px; width: 44vmin; border-radius: 3px;
  top: calc(42% + 19px); left: 50%; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  transform: translate(-180%,-50%) rotate(-13deg);
  animation: sp-beam-in .7s cubic-bezier(.16,.84,.28,1) .28s forwards;
}
@keyframes sp-beam-in {
  0%   { opacity: 0; transform: translate(-180%,-50%) rotate(-13deg) scaleX(.5); }
  45%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) rotate(-13deg) scaleX(1.15); }
}

/* Знак */
.sp-mark {
  position: relative; z-index: 1; width: 160px; height: 160px;
  border-radius: 24%; opacity: 0; transform: scale(.72); overflow: hidden;
  animation: sp-mark-in .55s cubic-bezier(.2,.9,.25,1.15) .1s forwards,
             sp-glow 2.2s ease-in-out .6s infinite;
}
.sp-mark img { width: 100%; height: 100%; display: block; }
@keyframes sp-mark-in { to { opacity: 1; transform: scale(1); } }
@keyframes sp-glow {
  0%,100% { box-shadow: 0 18px 50px -18px rgba(245,179,1,.35); }
  50%     { box-shadow: 0 22px 70px -14px rgba(245,179,1,.65); }
}
/* Блік, що пробігає по знаку */
.sp-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.34) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: sp-shine .9s cubic-bezier(.4,0,.2,1) .55s forwards;
}
@keyframes sp-shine { to { transform: translateX(130%); } }

/* Назва: літери вилітають по черзі */
.sp-title {
  z-index: 1; margin: 0; display: flex; gap: .02em;
  font-size: clamp(26px, 5.5vw, 40px); font-weight: 700;
  letter-spacing: .26em; padding-left: .26em;
}
.sp-title span {
  display: inline-block; opacity: 0; transform: translateY(16px);
  animation: sp-letter .38s cubic-bezier(.22,1,.36,1) forwards;
}
.sp-title span.on { color: var(--accent); }
@keyframes sp-letter { to { opacity: 1; transform: none; } }

.sp-tagline {
  z-index: 1; margin: -14px 0 0; color: var(--muted); text-align: center;
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  opacity: 0; animation: sp-up .5s ease .95s forwards;
}
@keyframes sp-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Смужка завантаження */
.sp-bar {
  z-index: 1; width: min(220px, 52vw); height: 2px; border-radius: 2px;
  background: rgba(255,255,255,.09); overflow: hidden;
  opacity: 0; animation: sp-up .4s ease .7s forwards;
}
.sp-bar i {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: sp-load .95s cubic-bezier(.35,0,.15,1) .7s forwards;
}
@keyframes sp-load { 0% { transform: scaleX(0); } 72% { transform: scaleX(.8); } 100% { transform: scaleX(1); } }

@media (max-width: 520px) {
  .sp-mark { width: 124px; height: 124px; }
  .sp-tagline { font-size: 10.5px; letter-spacing: .26em; padding: 0 20px; }
}

/* Якщо в системі увімкнено «зменшити рух» — без анімацій, лише коротка пауза */
@media (prefers-reduced-motion: reduce) {
  .sp-splash, .sp-splash::before, .sp-mark, .sp-mark::after,
  .sp-beam, .sp-title span, .sp-tagline, .sp-bar, .sp-bar i {
    animation: none !important;
  }
  .sp-splash { animation: sp-out .35s ease .8s forwards !important; }
  .sp-mark, .sp-title span, .sp-tagline, .sp-bar { opacity: 1; transform: none; }
  .sp-beam { display: none; }
}

/* ======================= Сповіщення справа знизу ========================== */
.snacks {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: flex; flex-direction: column-reverse; gap: 10px;
  max-width: min(420px, calc(100vw - 40px));
  pointer-events: none;
}
.snack {
  position: relative; overflow: hidden; pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start;
  gap: 11px; padding: 14px 14px 15px;
  border-radius: 14px; border: 1px solid var(--border);
  background: linear-gradient(160deg, #171d27, #0e1218);
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  animation: snack-in .38s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes snack-in { from { opacity: 0; transform: translateX(28px) scale(.97); } }
.snack.gone { animation: snack-out .4s ease forwards; }
@keyframes snack-out { to { opacity: 0; transform: translateX(28px); } }

.snack-ico { display: flex; margin-top: 1px; }
.snack-ok  .snack-ico { color: #5bc97a; }
.snack-bad .snack-ico { color: #ff8f87; }
.snack-ok  { border-color: rgba(91,201,122,.32); }
.snack-bad { border-color: rgba(229,72,77,.34); }
.snack-text { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.snack-x {
  background: none; border: 0; padding: 2px; cursor: pointer; color: var(--muted);
  border-radius: 7px; transition: color .18s;
}
.snack-x:hover { color: var(--text); }

/* Смужка часу, що збігає, — видно, скільки лишилось до зникнення */
.snack-bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  transform-origin: left; background: rgba(255,255,255,.22);
  animation: snack-time linear forwards;
}
.snack-ok  .snack-bar { background: rgba(91,201,122,.5); }
.snack-bad .snack-bar { background: rgba(229,72,77,.5); }
@keyframes snack-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 560px) {
  .snacks { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}

/* ========================== Особистий кабінет ============================= */
.user-chip { text-decoration: none; transition: border-color .2s, color .2s; }
.user-chip:hover, .user-chip.active { border-color: rgba(245,179,1,.5); color: var(--text); }

.acc-wrap {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 1080px; margin: 0 auto 44px;
}

.acc-card {
  display: grid; grid-template-columns: minmax(240px, 5fr) 7fr;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  background: var(--panel-2);
  transition: border-color .3s, box-shadow .3s;
}
/* Підсвітка блока, на який привело посилання ?focus=… */
.acc-card.focused {
  border-color: rgba(245,179,1,.55);
  box-shadow: 0 0 0 3px rgba(245,179,1,.12), 0 18px 44px rgba(0,0,0,.4);
}

/* Ліва колонка — світліша за решту сайту: тут пояснення, а не «темний кокпіт» */
.acc-side {
  padding: 26px 26px 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border-right: 1px solid var(--border);
}
.acc-side h2 {
  margin: 0 0 11px; font-size: 17px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
}
.acc-side p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.acc-body { padding: 26px 28px 28px; }
/* Підписи полів у кабінеті більші, ніж на сторінках входу: тут форма — основний
   зміст сторінки, а не короткий крок перед входом. */
.acc-body .fld > span { font-size: 13.5px; margin-bottom: 8px; }
.acc-body .fld input { font-size: 16.5px; padding: 14px 16px; }
.acc-body .fld:last-of-type { margin-bottom: 0; }
.acc-body input[readonly] {
  background: rgba(255,255,255,.03); color: var(--muted);
  cursor: default; letter-spacing: .02em;
}
.acc-body input[readonly]:focus { border-color: var(--border); }
.acc-form { margin-top: 18px; }

.acc-facts { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.acc-fact span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.acc-fact b { font-size: 18px; font-weight: 800; }

.acc-note { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.acc-note a { color: var(--accent); }

.acc-steps {
  margin: 18px 0 20px; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid var(--border);
  color: var(--muted); font-size: 14px; line-height: 1.65;
}
.acc-steps b { color: var(--text); }
/* У лівій колонці пояснення — продовження опису, тому без окремої підкладки:
   інакше в картці виходить рамка в рамці. */
.acc-side .acc-steps {
  margin: 14px 0 0; padding: 0; background: none; border: 0;
  font-size: 14px; line-height: 1.65;
}
.acc-steps u { text-decoration-color: rgba(245,179,1,.6); text-underline-offset: 2px; }

.acc-pending {
  margin-top: 16px; padding: 11px 13px; border-radius: 11px;
  background: rgba(245,179,1,.08); border: 1px solid rgba(245,179,1,.28);
  font-size: 13.5px; line-height: 1.55; color: var(--accent-2);
}
.acc-pending b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }

.acc-warn {
  display: flex; gap: 9px; align-items: flex-start; margin-top: 16px;
  padding: 11px 13px; border-radius: 11px;
  background: rgba(127,178,255,.09); border: 1px solid rgba(127,178,255,.26);
  color: #a9c9ff; font-size: 13.5px; line-height: 1.55;
}
.acc-warn svg { flex: none; margin-top: 2px; }

/* Кнопки кабінету */
.btn-acc {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #141002; font-family: inherit;
  font-size: 15px; font-weight: 800; text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-acc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245,179,1,.28); }
.btn-acc-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-acc-ghost:hover { border-color: var(--accent); box-shadow: none; }

/* --- Пробний період у кабінеті --- */
.acc-trial.is-live { border-color: rgba(91,201,122,.34); }
.acc-trial.is-live .acc-side {
  background: linear-gradient(160deg, rgba(91,201,122,.1), rgba(91,201,122,.02));
  border-right-color: rgba(91,201,122,.22);
}

.trial-live { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.trial-days {
  flex: none; width: 96px; padding: 14px 8px; text-align: center;
  border-radius: 16px; background: rgba(91,201,122,.12);
  border: 1px solid rgba(91,201,122,.32);
}
.trial-days b { display: block; font-size: 38px; font-weight: 800; line-height: 1; color: #7fd99a; }
.trial-days span { display: block; margin-top: 6px; font-size: 12.5px; color: #8fbf9d; }
.trial-live p { margin: 0; flex: 1 1 220px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.trial-live p b { color: var(--text); }

.trial-done { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.trial-done svg { flex: none; color: var(--muted); margin-top: 2px; }
.trial-done b { display: block; font-size: 17px; margin-bottom: 6px; }
.trial-done span { color: var(--muted); font-size: 15px; line-height: 1.65; }

@media (max-width: 860px) {
  .acc-card { grid-template-columns: 1fr; }
  .acc-side { border-right: 0; border-bottom: 1px solid var(--border); padding: 22px 20px 20px; }
  .acc-trial.is-live .acc-side { border-bottom-color: rgba(91,201,122,.22); }
  .acc-body { padding: 20px; }
  .btn-acc { width: 100%; }
}

/* ============================ Вікно підтвердження ========================= */
.modal-back {
  position: fixed; inset: 0; z-index: 950;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  /* Без цього display:flex перебиває вбудований стиль атрибута hidden
     і вікно показується одразу при завантаженні сторінки. */
  background: rgba(4,6,9,.72); backdrop-filter: blur(4px);
  animation: modal-fade .22s ease;
}
@keyframes modal-fade { from { opacity: 0; } }
.modal-back[hidden] { display: none; }
.modal {
  width: 100%; max-width: 460px; padding: 28px;
  border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(170deg, #151b24, #0d1015);
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
  animation: modal-rise .28s cubic-bezier(.2,.9,.3,1.05);
}
@keyframes modal-rise { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.modal > p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.modal > p b { color: var(--text); }
.modal-note {
  display: flex; gap: 9px; align-items: flex-start; margin-bottom: 22px;
  padding: 12px 13px; border-radius: 12px;
  background: rgba(127,178,255,.09); border: 1px solid rgba(127,178,255,.26);
  color: #a9c9ff; font-size: 12.8px; line-height: 1.55;
}
.modal-note svg { flex: none; margin-top: 1px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-actions form { margin: 0; }
@media (max-width: 460px) {
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions form, .modal-actions .btn-acc { width: 100%; }
}

/* ==================== Пробний період на сторінці «Ціни» =================== */
.trial-offer {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  margin: 0 0 26px; padding: 30px 34px;
  border-radius: 24px; border: 1px solid rgba(245,179,1,.3);
  background: linear-gradient(150deg, rgba(245,179,1,.09), rgba(245,179,1,.02) 55%, var(--panel-2));
}
.trial-offer-glow {
  position: absolute; right: -80px; top: -110px; width: 380px; height: 380px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,179,1,.16), transparent);
}
.trial-offer-main { position: relative; z-index: 1; }

.trial-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(245,179,1,.14); border: 1px solid rgba(245,179,1,.36);
  color: var(--accent); font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
}
.trial-offer h2 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; }
.trial-offer-main > p {
  margin: 0; max-width: 620px; color: var(--muted);
  font-size: 15px; line-height: 1.65;
}
.trial-offer-note {
  display: inline-flex; gap: 9px; align-items: flex-start; margin-top: 16px;
  padding: 11px 14px; border-radius: 12px;
  background: rgba(127,178,255,.1); border: 1px solid rgba(127,178,255,.28);
  color: #a9c9ff; font-size: 13px; line-height: 1.5;
}
.trial-offer-note svg { flex: none; margin-top: 1px; }

.trial-offer-cta { position: relative; z-index: 1; text-align: center; flex: none; }
.trial-price { display: flex; align-items: baseline; justify-content: center; gap: 3px; }
.trial-price-num { font-size: 58px; font-weight: 800; line-height: 1; color: var(--accent); }
.trial-price-cur { font-size: 26px; font-weight: 700; color: var(--accent); }
.trial-price-sub { margin: 8px 0 16px; color: var(--muted); font-size: 12.5px; }

.btn-trial {
  display: inline-flex; align-items: center; gap: 9px; padding: 15px 30px;
  border-radius: 14px; text-decoration: none; white-space: nowrap;
  background: var(--accent); color: #141002; font-size: 15px; font-weight: 800;
  box-shadow: 0 12px 30px rgba(245,179,1,.26);
  transition: transform .2s, box-shadow .2s;
}
.btn-trial:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(245,179,1,.36); }

.trial-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 26px; color: var(--muted); font-size: 12.5px;
}
.trial-divider::before, .trial-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

@media (max-width: 900px) {
  .trial-offer { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; text-align: center; }
  .trial-offer-main > p { margin: 0 auto; }
  .trial-offer-note { text-align: left; }
  .btn-trial { width: 100%; justify-content: center; }
}

/* ===================== Тарифи: перемикач терміну ========================== */
.term-bar { display: flex; justify-content: center; margin: 0 0 26px; }
.term-switch {
  display: inline-flex; gap: 4px; padding: 5px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 16px;
}
.term-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border: 0; border-radius: 12px; cursor: pointer;
  background: none; color: var(--muted); font-family: inherit;
  font-size: 16px; font-weight: 800; transition: color .2s, background .2s;
}
.term-btn:hover { color: var(--text); }
.term-btn.on {
  background: var(--accent); color: #141002;
  box-shadow: 0 6px 18px rgba(245,179,1,.26);
}
.term-save {
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: rgba(91,201,122,.16); border: 1px solid rgba(91,201,122,.4); color: #7fd99a;
}
.term-btn.on .term-save { background: rgba(20,16,2,.16); border-color: rgba(20,16,2,.28); color: #2c2205; }

/* ============================ Картки тарифів ============================== */
.plans {
  display: grid; gap: 18px; align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1180px; margin: 0 auto 26px;
}
/* Пакет — головна пропозиція, тому займає всю ширину під двома напрямками. */
.plan-bundle { grid-column: 1 / -1; }

.plan {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 30px 30px 32px; border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #141a23 0%, #0d1015 100%);
  transition: border-color .28s, transform .28s, box-shadow .28s;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(0,0,0,.4); }
.plan-bundle {
  border-color: rgba(245,179,1,.34);
  background: linear-gradient(150deg, rgba(245,179,1,.08), rgba(245,179,1,.015) 52%, #0d1015);
}
.plan-glow {
  position: absolute; right: -70px; top: -120px; width: 400px; height: 400px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,179,1,.15), transparent);
}
.plan-tag {
  position: absolute; right: 26px; top: 26px; z-index: 1;
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent); color: #141002;
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
}

.plan-top { position: relative; z-index: 1; margin-bottom: 12px; }
.plan-name { font-size: 25px; font-weight: 800; line-height: 1.2; }
.plan-note { margin-top: 4px; color: var(--muted); font-size: 15px; }

.plan-lead {
  position: relative; z-index: 1;
  margin: 0 0 22px; max-width: 560px;
  color: #b6bdc9; font-size: 15.5px; line-height: 1.6;
}

.plan-price {
  position: relative; z-index: 1;
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
}
.plan-num { font-size: 58px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.plan-cur { font-size: 27px; font-weight: 800; color: var(--accent); }
.plan-per { margin-left: 4px; color: var(--muted); font-size: 16px; font-weight: 600; }
.plan-bundle .plan-num { color: var(--accent); }

.plan-month { margin-top: 9px; color: var(--muted); font-size: 16px; }
.plan-month[hidden] { display: none; }
.plan-month b { color: var(--text); font-size: 19px; font-weight: 800; }

.plan-save {
  min-height: 24px; margin-top: 12px;
  color: #7fd99a; font-size: 15px; font-weight: 700;
}

/* Порівняння пакета з двома окремими підписками */
.plan-compare {
  position: relative; z-index: 1;
  margin: 18px 0 4px; padding: 16px 18px;
  border-radius: 14px; border: 1px solid var(--border);
  background: rgba(255,255,255,.035); max-width: 430px;
}
.plan-compare-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: 15.5px; color: var(--muted); padding: 3px 0;
}
.plan-compare-row b { color: var(--muted); font-size: 17px; font-weight: 700; }
.plan-compare-row:first-child b { text-decoration: line-through; opacity: .75; }
.plan-compare-row.win { color: var(--text); }
.plan-compare-row.win b { color: var(--accent); font-size: 20px; font-weight: 800; }
.plan-compare-save {
  margin-top: 10px; padding-top: 11px; border-top: 1px solid var(--border);
  color: #7fd99a; font-size: 15px; font-weight: 700;
}
.plan-compare-save b { font-size: 17px; font-weight: 800; }

.plan-tabs {
  position: relative; z-index: 1;
  list-style: none; margin: 22px 0 26px; padding: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.plan-tabs li { display: flex; align-items: flex-start; gap: 11px; font-size: 16px; line-height: 1.45; }
.plan-tabs svg { flex: none; margin-top: 2px; color: var(--accent); }
.plan-bundle .plan-tabs svg { color: #7fd99a; }

/* Пакет: ліворуч ціна й вигода, праворуч перелік напрямків.
   Кожен напрямок — власна колонка зі своїм списком, інакше пункти
   перетікають між колонками й опиняються під чужим заголовком. */
.plan-bundle {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 20px 44px; align-items: start;
}
.bundle-offer { display: flex; flex-direction: column; position: relative; z-index: 1; }
.bundle-groups { position: relative; z-index: 1; }
.bundle-groups-title {
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.bundle-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.bundle-col-name {
  font-size: 17px; font-weight: 800; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.bundle-col .plan-tabs { margin: 0; }

.btn-plan {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: auto; align-self: flex-start;
  padding: 15px 34px; border-radius: 13px; text-decoration: none;
  font-size: 16px; font-weight: 800; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn-plan-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-plan-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-plan-solid {
  background: var(--accent); color: #141002;
  box-shadow: 0 12px 28px rgba(245,179,1,.24);
}
.btn-plan-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(245,179,1,.34); }

/* Підказка про розділ «Можливості» */
.plans-hint {
  display: flex; align-items: center; gap: 14px;
  max-width: 1180px; margin: 0 auto 30px; padding: 18px 22px;
  border-radius: 16px; border: 1px solid var(--border);
  background: rgba(127,178,255,.07);
}
.plans-hint svg { flex: none; color: #a9c9ff; }
.plans-hint p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #c3cbd7; }
.plans-hint a { color: var(--accent); font-weight: 700; }

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 26px 22px 28px; }
  .plan-bundle { grid-template-columns: 1fr; gap: 26px; }
  .bundle-cols { grid-template-columns: 1fr; gap: 22px; }
  .plan-num { font-size: 50px; }
  .btn-plan { width: 100%; align-self: stretch; }
  /* На вузькому екрані бейдж не має куди стати в кут — виносимо його
     окремим рядком над назвою, інакше він налазить на заголовок. */
  .plan-tag {
    position: static; align-self: flex-start; margin-bottom: 14px;
    order: -1; width: max-content;
  }
  .plan-bundle { display: flex; flex-direction: column; }
  .term-btn { padding: 11px 16px; font-size: 15px; }
  .plans-hint { align-items: flex-start; padding: 16px 18px; }
}
