:root {
    --bg: #0f1117;
    --bg-soft: #161a24;
    --bg-card: #1c2230;
    --text: #e8eaf0;
    --text-soft: #9aa3b2;
    --accent: #5b8cff;
    --accent-hover: #7aa1ff;
    --accent-dark: #3b6fd6;
    --green: #34d399;
    --border: #2a3142;
    --radius: 14px;
    --max-width: 1100px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
}

.logo-icon {
    font-size: 22px;
}

/* Highlighted part of the brand wordmark: "контроль[цен].рф" */
.brand-accent {
    color: var(--accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* :not(.btn) keeps the CTA button out of these link styles — otherwise
   .header-nav a (specificity 0,1,1) would override .btn (0,1,0) and wash
   out the button text. */
.header-nav a:not(.btn) {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s;
}

.header-nav a:not(.btn):hover {
    color: var(--text);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

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

.btn-light:hover {
    background: #f0f2f6;
}

/* ---- Hero ---- */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(91, 140, 255, 0.15), transparent),
        var(--bg);
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-note {
    color: var(--text-soft);
    font-size: 14px;
}

/* ---- Sections ---- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-lead {
    text-align: center;
    color: var(--text-soft);
    font-size: 17px;
    margin-bottom: 48px;
}

/* ---- Cards ---- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cards-feature {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-soft);
    font-size: 15px;
}

.card-feature {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
}

.solution-note {
    text-align: center;
    color: var(--text-soft);
    margin-top: 32px;
    font-size: 14px;
}

/* ---- Steps ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    counter-reset: step;
}

.step {
    text-align: left;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-soft);
    font-size: 15px;
}

/* ---- Security ---- */
.security {
    background: var(--bg-soft);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.security-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.security-item .check {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.6;
}

.security-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.security-item p {
    color: var(--text-soft);
    font-size: 14px;
}

/* ---- Pricing ---- */
.pricing {
    background: var(--bg-soft);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow);
}

.price {
    margin: 20px 0 28px;
}

.price-amount {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
}

.price-period {
    color: var(--text-soft);
    font-size: 16px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
    display: inline-block;
}

.price-features li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text);
}

/* ---- Final CTA ---- */
.final-cta {
    padding: 90px 0;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 70% at 50% 50%, rgba(91, 140, 255, 0.12), transparent),
        var(--bg);
}

.final-cta h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.final-cta p {
    color: var(--text-soft);
    font-size: 17px;
    margin-bottom: 32px;
}

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-brand {
    font-weight: 700;
    font-size: 18px;
}

.footer-note {
    color: var(--text-soft);
    font-size: 14px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.footer-nav a {
    color: var(--text-soft);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

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

.footer-mail {
    color: var(--text-soft);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-mail:hover {
    color: var(--text);
}

/* ---- Legal pages (privacy policy, consent) ---- */
.legal-body {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.legal-body h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 16px;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p,
.legal-body li {
    color: var(--text-soft);
    font-size: 15px;
}

.legal-body p {
    margin-bottom: 12px;
}

.legal-body ul,
.legal-body ol {
    margin: 0 0 16px 20px;
    list-style: disc;
}

.legal-body li {
    margin-bottom: 6px;
}

.legal-body a {
    color: var(--accent);
}

.legal-body code {
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 13px;
}

.legal-note {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .header-nav a:not(.btn) {
        display: none;
    }

    .hero {
        padding: 56px 0 72px;
    }

    .section {
        padding: 56px 0;
    }

    .pricing-card {
        padding: 32px 24px;
    }
}
