/* RCN — ReConnect Network */

:root {
    --bg: #0d1117;
    --bg-card: #161b22;
    --border: #30363d;
    --text: #e6edf3;
    --text-dim: #8b949e;
    --accent: #58a6ff;
    --cta: #238636;
    --cta-hover: #2ea043;
    --premium: #d29922;
    --danger: #f85149;
    --radius: 8px;
    --max-w: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

p { margin: 0 0 1em; }

h1, h2, h3, h4 {
    color: var(--text);
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--border);
}

ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.3em; }

/* ─── Header ─────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
}

.logo:hover { text-decoration: none; }

.logo img {
    width: 28px;
    height: 28px;
    display: block;
}

.nav {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.nav a.active { color: var(--text); }

/* ─── Main ───────────────────────────────────────────────────────────── */

main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.hero {
    padding: 56px 0 32px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #e6edf3 0%, #58a6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero .sub {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 32px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-cta {
    background: var(--cta);
    color: #fff;
}

.btn-cta:hover {
    background: var(--cta-hover);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-dim);
    text-decoration: none;
}

.hero-disclaimer {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.section {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.section:first-of-type { border-top: 0; }

.section h2 {
    font-size: 1.7rem;
    margin-top: 0;
}

.section-narrow { max-width: 760px; }

.muted { color: var(--text-dim); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.tariff-card { position: relative; }

.tariff-card.premium {
    border-color: var(--premium);
    box-shadow: 0 0 0 1px rgba(210, 153, 34, 0.25);
}

.tariff-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.tariff-price {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 8px 0 18px;
    color: var(--text);
}

.tariff-price .per {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 400;
}

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.tariff-features li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.tariff-features li:last-child { border-bottom: 0; }

.tariff-features li::before {
    content: "✓ ";
    color: var(--cta-hover);
    font-weight: 700;
    margin-right: 4px;
}

.premium-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--premium);
    color: #0d1117;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* ─── Tables ─────────────────────────────────────────────────────────── */

.tariff-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.tariff-table th, .tariff-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tariff-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tariff-table tr:last-child td { border-bottom: 0; }

.tariff-table tr.highlight td {
    background: rgba(35, 134, 54, 0.06);
}

.discount {
    color: var(--cta-hover);
    font-weight: 600;
    font-size: 0.9em;
}

/* ─── Legal doc styles ──────────────────────────────────────────────── */

.legal-doc h1 { font-size: 1.8rem; }
.legal-doc h2 {
    font-size: 1.2rem;
    margin-top: 2em;
    color: var(--text);
}

.legal-doc .doc-meta {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--border);
}

.legal-doc p {
    margin: 0 0 0.8em;
}

.legal-doc .clause {
    padding-left: 1em;
    margin: 0.4em 0;
}

.requisites {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin: 18px 0;
}

.requisites dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 18px;
    margin: 0;
}

.requisites dt {
    color: var(--text-dim);
    font-weight: 500;
}

.requisites dd { margin: 0; color: var(--text); }

.notice {
    border-left: 3px solid var(--accent);
    background: rgba(88, 166, 255, 0.06);
    padding: 12px 16px;
    margin: 18px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.notice-warn {
    border-left-color: var(--premium);
    background: rgba(210, 153, 34, 0.08);
}

.refund-template {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    font-family: ui-monospace, "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    color: var(--text);
}

.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 12px 0 12px 50px;
    border-bottom: 1px solid var(--border);
}

.steps li:last-child { border-bottom: 0; }

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 48px;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
}

.footer-inner h4 {
    color: var(--text);
    font-size: 1rem;
    margin: 0 0 12px;
}

.footer-inner .footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-inner .footer-links a {
    color: var(--text-dim);
}

.footer-inner .footer-links a:hover { color: var(--accent); }

.footer-requisites {
    line-height: 1.55;
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* ─── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero { padding: 36px 0 24px; }
    .hero h1 { font-size: 2.1rem; }
    .hero .sub { font-size: 1rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .header-inner { padding: 10px 16px; flex-wrap: wrap; }
    .nav { gap: 14px; font-size: 0.9rem; }
    main { padding: 24px 16px 48px; }
    .requisites dl { grid-template-columns: 1fr; gap: 2px 0; }
    .requisites dt { margin-top: 8px; }
    .tariff-table { font-size: 0.9rem; }
    .tariff-table th, .tariff-table td { padding: 10px 12px; }
}
