:root {
    --pine-950: #07130e;
    --pine-900: #0b2019;
    --pine-800: #0e3b2e;
    --pine-700: #14513c;
    --pine-600: #1c6b4f;
    --fuchsia: #e5197b;
    --fuchsia-300: #ff7fb8;
    --text-primary: #f3fbf7;
    --text-muted: #8fb8a8;
    --surface: #0e2a20;
    --font: "Manrope", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--pine-950); }

body {
    margin: 0;
    font-family: var(--font);
    background: radial-gradient(circle at 10% 10%, #103929 0%, var(--pine-950) 45%, #030906 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; }

.wrap {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

/* Topbar */
.topbar {
    position: relative;
    z-index: 20;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    background: rgba(7, 19, 14, 0.55);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .02em;
    font-size: 1.15rem;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
    background: transparent;
    box-shadow: none;
}

.brand-power { color: #fff; }
.brand-host { color: var(--fuchsia-300); }

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    text-decoration: none;
    color: #c3f9e1;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 10px;
    border-radius: 10px;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    background: rgba(28, 107, 79, 0.35);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--fuchsia), #ff2f95);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(229, 25, 123, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
    font: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(229, 25, 123, 0.34);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #c3f9e1 !important;
    border: 1px solid rgba(195, 249, 225, 0.35);
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    padding: 9px 14px;
    cursor: pointer;
    font: inherit;
}

.btn-ghost:hover {
    border-color: #fff;
    color: #fff !important;
}

.btn-tv {
    background: transparent;
    border: 1px solid rgba(195, 249, 225, 0.4);
    color: #c3f9e1 !important;
    box-shadow: none;
}

.btn-tv:hover {
    border-color: #fff;
    color: #fff !important;
}

/* Lang */
.lang-switch summary { list-style: none; cursor: pointer; line-height: 1; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch .lang-menu {
    display: none;
    position: fixed;
    background: #0b2019;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    min-width: 160px;
    padding: 6px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.lang-switch[open] .lang-menu { display: block; }
.lang-switch .lang-menu a {
    display: block;
    color: #d6f6e9;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 7px;
    font-weight: 600;
}
.lang-switch .lang-menu a.active,
.lang-switch .lang-menu a:hover { background: #14513c; color: #fff; }

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(195, 249, 225, 0.35);
    border-radius: 999px;
    padding: 7px 12px;
    color: #c3f9e1;
    font-weight: 700;
    font-size: 0.85rem;
}
.lang-switch .flag-icon,
.flag-icon {
    display: inline-block;
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: -2px;
    margin-right: 6px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.lang-menu a {
    display: flex !important;
    align-items: center;
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    padding: 72px 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: center;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.lead {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: clamp(16px, 2.2vw, 19px);
    max-width: 640px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.panel {
    background: linear-gradient(180deg, rgba(28, 107, 79, 0.24), rgba(14, 42, 32, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--fuchsia-300);
}

.panel p {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.panel p:last-child { margin-bottom: 0; }

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 48px 0;
}

.section-title {
    margin: 0 0 22px;
    font-size: clamp(22px, 3vw, 30px);
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: rgba(11, 32, 25, 0.86);
    border: 1px solid rgba(143, 184, 168, 0.22);
    border-radius: 16px;
    padding: 18px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #b6f5dc;
}

.card p {
    margin: 0;
    color: var(--text-muted);
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.plan {
    background: rgba(11, 32, 25, 0.9);
    border: 1px solid rgba(143, 184, 168, 0.22);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan.featured {
    border-color: rgba(229, 25, 123, 0.55);
    box-shadow: 0 12px 40px rgba(229, 25, 123, 0.12);
}

.plan h3 {
    margin: 0;
    color: #b6f5dc;
}

.plan .price {
    font-size: 1.8rem;
    font-weight: 800;
}

.plan .price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.plan p { margin: 0; color: var(--text-muted); flex: 1; }
.plan .plan-loc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    font-size: 0.95rem;
}

.page-hero {
    position: relative;
    z-index: 1;
    padding: 56px 0 28px;
}

.list-check {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.list-check li {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(11, 32, 25, 0.75);
    border: 1px solid rgba(143, 184, 168, 0.18);
    color: var(--text-muted);
}

.list-check li strong {
    color: #b6f5dc;
    font-weight: 700;
}

/* Auth */
.auth-wrap {
    position: relative;
    z-index: 1;
    width: min(440px, 92vw);
    margin: 48px auto 64px;
}

.auth-card {
    background: rgba(11, 32, 25, 0.92);
    border: 1px solid rgba(143, 184, 168, 0.22);
    border-radius: 20px;
    padding: 28px;
}

.auth-card h1 {
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #b6f5dc;
    font-weight: 600;
    font-size: 0.92rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.password-field input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(195, 249, 225, 0.25);
    background: rgba(7, 19, 14, 0.8);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(182, 245, 220, 0.7);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}

.password-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.password-toggle[aria-pressed="true"] {
    color: var(--fuchsia-300);
}

.password-toggle .eye-closed[hidden],
.password-toggle .eye-open[hidden] {
    display: none !important;
}

.form-group input:focus,
.password-field input:focus {
    outline: none;
    border-color: var(--fuchsia-300);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.form-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    margin: 2px 0 0;
    flex: 0 0 auto;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.35rem;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.form-check input[type="checkbox"]:hover {
    border-color: #ff7fb8;
}
.form-check input[type="checkbox"]:checked {
    background: #ff4fa0;
    border-color: #ff4fa0;
}
.form-check input[type="checkbox"]:checked::after {
    content: "";
    width: 0.28rem;
    height: 0.5rem;
    margin-top: -1px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.form-check input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(255, 127, 184, 0.55);
    outline-offset: 2px;
}
.form-check-agree span { line-height: 1.45; }
.form-check-agree a {
    color: #ff7fb8;
    text-decoration: none;
    font-weight: 600;
}
.form-check-agree a:hover { text-decoration: underline; }

.form-error {
    color: #ff8fb8;
    font-size: 0.9rem;
    margin: 0 0 10px;
}

.captcha-box {
    margin-bottom: 18px;
}

.captcha-label {
    display: block;
    margin-bottom: 10px;
    color: #b6f5dc;
    font-weight: 600;
    font-size: 0.92rem;
}

.captcha-box .g-recaptcha,
.captcha-box .cf-turnstile {
    transform-origin: left center;
}

@media (max-width: 420px) {
    .captcha-box .g-recaptcha {
        transform: scale(0.92);
    }
}

.auth-alt {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-alt a { color: var(--fuchsia-300); }

/* Footer */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0 36px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-grid h4 {
    margin: 0 0 10px;
    color: #b6f5dc;
}

.footer-grid a {
    display: block;
    color: #c3f9e1;
    text-decoration: none;
    margin-bottom: 6px;
}

.footer-grid a:hover { color: #fff; text-decoration: underline; }

.legal-hero { padding-bottom: 18px; }
.legal-meta {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.legal-section { padding-top: 8px; }
.legal-doc {
    display: grid;
    gap: 18px;
    max-width: 920px;
}
.legal-block {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 18px 18px;
    border-radius: 16px;
    border: 1px solid rgba(143, 184, 168, 0.22);
    background: rgba(11, 32, 25, 0.72);
}
.legal-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--fuchsia-300);
    line-height: 1.1;
}
.legal-body h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #b6f5dc;
}
.legal-body p {
    margin: 0 0 10px;
    color: var(--text-muted);
    line-height: 1.65;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul {
    margin: 0 0 4px;
    padding-left: 1.15rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.legal-body li { margin-bottom: 6px; }
.legal-contact {
    margin: 8px 0 0;
    color: var(--text-muted);
}
.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}
.legal-links a {
    color: #ff7fb8;
    text-decoration: none;
    font-weight: 600;
}
.legal-links a:hover { text-decoration: underline; }
.contacts-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.contacts-legal a {
    color: #ff7fb8;
    text-decoration: none;
    font-weight: 600;
}
.contacts-legal a:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .legal-block { grid-template-columns: 1fr; gap: 8px; }
}

/* Background animation */
.bg-runes {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: .9;
}

body.has-bg-runes::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 700px at 50% 0%, transparent, rgba(0,0,0,.28) 70%);
    z-index: 0;
    pointer-events: none;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(195, 249, 225, 0.35);
    color: #c3f9e1;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 980px) {
    .hero-grid,
    .plans,
    .footer-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }

    .menu-toggle { display: inline-flex; }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 12px;
    }

    .topbar-inner { flex-wrap: wrap; }

    .topbar.open .nav { display: flex; }

    .nav-actions {
        margin-left: 0;
        flex-wrap: wrap;
    }
}

/* SEO landings */
.seo-eyebrow {
  margin: 0 0 10px;
  color: var(--muted, #8fb8a8);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.seo-eyebrow a { color: inherit; }
.seo-prose {
  display: grid;
  gap: 28px;
  max-width: 880px;
}
.seo-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}
.seo-block p {
  margin: 0 0 12px;
  color: var(--muted, #8fb8a8);
  line-height: 1.6;
}
.seo-block ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted, #8fb8a8);
  line-height: 1.55;
}
.seo-block li { margin-bottom: 6px; }
.seo-faq {
  display: grid;
  gap: 10px;
  max-width: 880px;
}
.seo-faq-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(14, 42, 32, 0.55);
  padding: 12px 16px;
}
.seo-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item p {
  margin: 10px 0 0;
  color: var(--muted, #8fb8a8);
  line-height: 1.55;
}
.seo-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.seo-related a {
  color: #ff7fb8;
  text-decoration: none;
  font-weight: 600;
}
.seo-related a:hover { text-decoration: underline; }
.seo-cta-band {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 24px;
  background: rgba(14, 42, 32, 0.55);
  max-width: 880px;
}
.seo-cta-band h2 { margin: 0 0 8px; font-size: 24px; }
.seo-cta-band p { margin: 0 0 16px; color: var(--muted, #8fb8a8); }
