/* ==========================================================================
   CloudNet — design tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* colour */
  --ink: #0e1526;
  --ink-soft: #4b5768;
  --ink-faint: #8592a8;
  --blue-700: #1849c6;
  --blue-600: #2f6fed;
  --blue-500: #4a83ff;
  --blue-300: #9dc0ff;
  --blue-100: #e2ecff;
  --ice: #f4f8ff;
  --white: #ffffff;
  --line: #dfe8fa;
  --good: #1f9d6e;

  /* type */
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* layout */
  --container: 1160px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 45px -25px rgba(19, 51, 122, 0.35);
  --shadow-tight: 0 8px 22px -14px rgba(19, 51, 122, 0.4);

  --bg: var(--ice);
  --surface: var(--white);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --border: var(--line);
  --accent: var(--blue-600);
  --accent-strong: var(--blue-700);
  --accent-soft: var(--blue-100);

  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #060d1c;
  --surface: #0d1a33;
  --text: #e8eefc;
  --text-soft: #93a3c2;
  --border: #1c2c4c;
  --accent: #5b93ff;
  --accent-strong: #8ab2ff;
  --accent-soft: #142545;
  --shadow-soft: 0 25px 50px -25px rgba(0, 0, 0, 0.6);
  --shadow-tight: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 560px) {
  .container { padding: 0 28px; }
}

section { padding: 64px 0; }
@media (max-width: 720px) { section { padding: 44px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 13px; height: 13px; transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  box-shadow: var(--shadow-tight);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

.btn-cabinet {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px 10px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 20px -10px rgba(24,73,198,.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-cabinet:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(24,73,198,.6); }
.btn-cabinet svg { width: 16px; height: 16px; flex-shrink: 0; }
.cabinet-short { display: none; }

.header-contact-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid transparent;
}
.header-contact-chip a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; color: var(--accent-strong); flex-shrink: 0;
}
.header-contact-chip a:hover { background: rgba(255,255,255,.5); }
.header-contact-chip a svg { width: 14px; height: 14px; }
.header-contact-chip .chip-phone {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent-strong);
  white-space: nowrap; padding-right: 2px;
}
@media (max-width: 1140px) { .header-contact-chip { display: none; } }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 13px; color: var(--text-soft);
  flex-wrap: wrap; gap: 6px 20px;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); white-space: nowrap; }
.topbar a:hover { color: var(--accent); }
.topbar-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.topbar-phones { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; display: block; }
.topbar-address { white-space: nowrap; }
.topbar-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  background: var(--accent-soft); color: var(--accent-strong);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 620px) {
  .topbar-address { display: none; }
  .topbar-inner { font-size: 13px; flex-direction: column; align-items: flex-start; gap: 10px 0; padding: 12px 0; }
  .topbar-links { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
  .topbar-phones { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
}

header.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand img.brand-logo { height: 30px; width: auto; display: block; border-radius: 6px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--text-soft);
  position: relative; padding: 4px 0; line-height: 1;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.has-sub { position: relative; }
.has-sub > a { display: inline-flex; align-items: center; gap: 5px; }
.has-sub > a .caret { width: 11px; height: 11px; transition: transform .2s ease; }
.has-sub.open > a .caret, .has-sub:hover > a .caret { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: 130%; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); padding: 8px; min-width: 240px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
  list-style: none; margin: 0;
}
.sub-menu::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.has-sub:hover .sub-menu, .has-sub.open .sub-menu { opacity: 1; pointer-events: auto; }
.sub-menu li a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13.5px; white-space: nowrap; }
.sub-menu li a:hover { background: var(--accent-soft); color: var(--accent-strong); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-soft);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: block; }

.burger {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  align-items: center; justify-content: center; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  padding: 20px 30px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 17px; font-weight: 500; }
.btn-cabinet-mobile { width: 100%; justify-content: center; padding: 13px; margin-top: 18px; font-size: 15px; border-radius: var(--radius-md); }
.mobile-nav .mobile-sub-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 16px 4px; font-size: 17px; font-weight: 500; color: var(--text); }
.mobile-nav .mobile-sub-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; flex-shrink: 0; }
.mobile-nav li.open .mobile-sub-toggle svg { transform: rotate(180deg); }
.mobile-sub { max-height: 0; overflow: hidden; transition: max-height .2s ease; padding-left: 16px; }
.mobile-nav li.open .mobile-sub { max-height: 260px; }
.mobile-sub a { font-size: 14.5px; color: var(--text-soft); padding: 12px 4px; }
.mobile-contacts { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.mobile-contacts a { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; padding: 0; }
.mobile-contacts svg { width: 18px; height: 18px; color: var(--accent); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  .nav-row { gap: 6px; flex-wrap: nowrap; }
  .brand img.brand-logo { height: 24px; }
  .nav-actions { gap: 6px; }
  .btn-cabinet:not(.btn-cabinet-mobile) { padding: 9px 14px 9px 12px; box-shadow: none; }
  .btn-cabinet:not(.btn-cabinet-mobile) .cabinet-full { display: none; }
  .btn-cabinet:not(.btn-cabinet-mobile) .cabinet-short { display: inline; }
  .btn-cabinet:not(.btn-cabinet-mobile) svg { width: 16px; height: 16px; }
  .theme-toggle { width: 36px; height: 36px; flex-shrink: 0; }
  .burger { flex-shrink: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 70px;
}

.hero-gradient {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #123a91 0%, var(--blue-600) 45%, #3fa8e0 100%);
  padding: 60px 0 130px;
}
[data-theme='dark'] .hero-gradient { background: linear-gradient(120deg, #050f26 0%, #123a91 55%, #1849c6 100%); }

.hero-gradient::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.14) 0, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,.12) 0, transparent 45%);
  pointer-events: none;
}
.hero-skyline {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 90px;
  opacity: .35; pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero .eyebrow { color: #cfe0ff; }
.hero .eyebrow::before { background: #cfe0ff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.hero h1 { color: #fff; margin-bottom: 20px; white-space: pre-line; }
.hero .lead { font-size: 17px; max-width: 480px; margin-bottom: 32px; color: #dbe6ff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.hero-actions .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }

.stat-pills {
  position: relative; z-index: 2;
  max-width: var(--container); margin: -64px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 720px) { .stat-pills { grid-template-columns: 1fr; } }
.stat-pill {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 14px;
}
.stat-pill-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.stat-pill-icon svg { width: 21px; height: 21px; }
.stat-pill b { display: block; font-family: var(--font-mono); font-size: 21px; font-weight: 600; color: var(--text); }
.stat-pill span { font-size: 12.5px; color: var(--text-soft); }

/* signature element: signal-pulse coverage map */
.signal {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.signal-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.8);
  opacity: 0;
  animation: pulse-ring 3.6s cubic-bezier(.2,.6,.35,1) infinite;
}
.signal-ring:nth-child(1) { width: 30%; height: 30%; animation-delay: 0s; }
.signal-ring:nth-child(2) { width: 30%; height: 30%; animation-delay: .9s; }
.signal-ring:nth-child(3) { width: 30%; height: 30%; animation-delay: 1.8s; }
.signal-ring:nth-child(4) { width: 30%; height: 30%; animation-delay: 2.7s; }

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(3.6); opacity: 0; }
}

.signal-core {
  position: relative; z-index: 2;
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 50px -18px rgba(0,10,40,.5);
}
.signal-core svg { width: 38px; height: 38px; color: #fff; }

.signal-node {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255,255,255,.2);
}
.signal-node.n1 { top: 12%; left: 20%; }
.signal-node.n2 { bottom: 16%; left: 12%; }
.signal-node.n3 { top: 20%; right: 10%; }
.signal-node.n4 { bottom: 10%; right: 22%; }

@media (prefers-reduced-motion: reduce) {
  .signal-ring { animation: none; opacity: .25; }
}

/* traveling packet divider - signature motif reused across sections */
.pulse-divider {
  position: relative;
  height: 2px;
  margin: 0 auto 64px;
  max-width: var(--container);
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}
.pulse-divider::after {
  content: '';
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  animation: travel 5s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .pulse-divider::after { animation: none; left: 40%; } }
@keyframes travel { 0% { left: 0%; } 100% { left: 100%; } }

/* ==========================================================================
   Cards / advantages / news
   ========================================================================== */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plan-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.plan-grid > * { flex: 1 1 300px; max-width: 340px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

.card-icon-grad {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: #fff; box-shadow: 0 12px 24px -12px rgba(0,0,0,.35);
}
.card-icon-grad svg { width: 23px; height: 23px; }
.card-icon-grad.blue   { background: linear-gradient(135deg, #4a83ff, #1849c6); }
.card-icon-grad.purple { background: linear-gradient(135deg, #9b7bff, #6236c9); }
.card-icon-grad.pink   { background: linear-gradient(135deg, #ff7bb0, #d63d8a); }
.card-icon-grad.orange { background: linear-gradient(135deg, #ffb85e, #f07d1f); }
.card-icon-grad.teal   { background: linear-gradient(135deg, #5fd8c4, #1a9d8a); }

.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.news-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--accent-soft); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
}
.news-card-placeholder svg { width: 40px; height: 40px; color: var(--accent); opacity: .5; }
.news-card-body { padding: 22px; }
.news-date { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; display: block; }
.news-card h3 { margin-bottom: 10px; }
.news-card p { font-size: 14px; margin-bottom: 0; }

.section-cta { text-align: center; margin-top: 32px; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-surface {
  background: linear-gradient(180deg, #eaf2ff 0%, var(--ice) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}
[data-theme='dark'] .pricing-surface { background: linear-gradient(180deg, #0d1d3d 0%, var(--bg) 100%); }

.tariff-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.tariff-tab {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text-soft);
}
.tariff-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.tariff-panel { display: none; }
.tariff-panel.active { display: block; }

.plan-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; height: 100%;
  box-shadow: var(--shadow-tight);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-soft); border-color: var(--accent); }
.plan-card.featured { border: 1.5px solid var(--accent); box-shadow: var(--shadow-soft); }
.plan-card.featured:hover { transform: translateY(-6px) scale(1.02); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(24,73,198,.6);
}
.plan-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.plan-price { font-family: var(--font-mono); font-size: 38px; font-weight: 700; color: var(--ink); text-align: center; margin: 0 0 18px; }
[data-theme='dark'] .plan-price { color: var(--text); }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--text-soft); }
.plan-list { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; padding: 7px 0; color: var(--text); }
.plan-list .tick {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.plan-list .tick svg { width: 11px; height: 11px; }
.plan-card .btn-block:disabled,
.plan-card .btn-block.btn-muted { background: var(--accent-soft); color: var(--text-soft); box-shadow: none; cursor: default; }

.plan-note {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 24px; font-size: 14.5px; color: var(--text-soft); margin-top: 32px; text-align: center;
}
.plan-note b { color: var(--accent-strong); }

/* ==========================================================================
   FAQ / accordion
   ========================================================================== */

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-family: var(--font-body); font-weight: 600; font-size: 15.5px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-q svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; transition: transform .2s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding-bottom: 20px; font-size: 14.5px; color: var(--text-soft); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input.invalid { border-color: #d64545; }
.field input.invalid:focus { box-shadow: 0 0 0 3px rgba(214,69,69,.15); }
.field-err { display: none; font-size: 12.5px; color: #d64545; margin-top: 6px; }
.field-err.show { display: block; }
.form-msg { font-size: 14px; margin-top: 12px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: #d64545; }

/* ==========================================================================
   Payment page
   ========================================================================== */

.pay-card { text-align: center; }
.pay-qr { max-width: 220px; margin: 0 auto 20px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site-footer {
  background: var(--ink);
  color: #cbd6ee;
  padding: 60px 0 26px;
  margin-top: 40px;
}
[data-theme='dark'] footer.site-footer { background: #030811; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-display); font-size: 14px; margin-bottom: 16px; }
.footer-logo { height: 30px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a { color: #aab8d8; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: #93a3c2; font-size: 14px; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: #7c8bab;
}

/* ==========================================================================
   Misc: breadcrumbs, page hero, article
   ========================================================================== */

.page-head { padding: 44px 0 8px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-soft); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs svg { width: 12px; height: 12px; opacity: .5; }

.article {
  max-width: 760px; margin: 0 auto;
}
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; aspect-ratio: 16/8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin-bottom: 10px; }
.article-body p { color: var(--text); font-size: 16px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--accent-strong); }

.skeleton { background: linear-gradient(90deg, var(--border) 25%, var(--accent-soft) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-soft); }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.pagination button {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-family: var(--font-mono); font-size: 13.5px; color: var(--text);
}
.pagination button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-soft); font-size: 14.5px; }

.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ==========================================================================
   Help guides (step-by-step with screenshots)
   ========================================================================== */

.guide-step {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding: 0 0 40px; position: relative;
}
.guide-step:not(:last-child)::before {
  content: ''; position: absolute; left: 22px; top: 46px; bottom: 0;
  width: 2px; background: var(--border);
}
.guide-step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; flex-shrink: 0;
  position: relative; z-index: 1;
}
.guide-step-body p { color: var(--text); margin-bottom: 14px; }
.guide-step-images { display: flex; flex-direction: column; gap: 14px; }
.guide-step-images img {
  width: 100%; max-width: 640px; border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-tight); cursor: zoom-in;
}
.help-guide { max-width: 820px; margin: 0 auto; }
.help-guide .tariff-tabs { max-width: 100%; }

.help-card-link {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.help-card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.help-card-link img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 16px; }
.help-card-link h3 { margin-bottom: 6px; }
.help-card-link p { font-size: 13.5px; margin: 0; }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 800px) { .method-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .method-grid { grid-template-columns: 1fr; } }
.method-card { text-align: center; padding: 26px 18px; }
.method-card .card-icon-grad { margin: 0 auto 16px; }

/* ==========================================================================
   Lightbox (guide screenshots)
   ========================================================================== */

.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(6, 13, 28, .85); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px;
}

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(6, 13, 28, .55); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: var(--surface); border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-soft); max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
  cursor: pointer; color: var(--text-soft); font-size: 14px;
}
.modal-close:hover { color: var(--text); }

.connect-success { text-align: center; padding: 10px 0 4px; }
.connect-success-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px;
  background: #dcf5e9; color: #1f9d6e;
  display: flex; align-items: center; justify-content: center;
}
[data-theme='dark'] .connect-success-icon { background: #113626; }
.connect-success-icon svg { width: 28px; height: 28px; }
.connect-success h3 { margin-bottom: 8px; }
.connect-success p { margin-bottom: 22px; }

/* ==========================================================================
   Preview banner (draft content viewed before saving)
   ========================================================================== */

.preview-banner {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fdf1d8; color: #8a5a10; font-size: 13.5px; font-weight: 600;
  padding: 10px 20px; text-align: center;
}
[data-theme='dark'] .preview-banner { background: #3a2c0e; color: #ffce7a; }
.preview-banner svg { width: 17px; height: 17px; flex-shrink: 0; }
