/* =========================================================
   ТехСервис — тёмная тема
   ========================================================= */

:root {
    --bg:        #0e1116;
    --bg-alt:    #12161d;
    --surface:   #171c25;
    --border:    #262d3a;
    --text:      #e6eaf2;
    --muted:     #98a2b3;
    --accent:    #4cc9f0;
    --accent-2:  #7b61ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

a { color: inherit; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ТОП-МЕНЮ ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 24px;
    background: rgba(14, 17, 22, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.3px;
}
.logo span { color: var(--accent); }

.menu {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.menu a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}
.menu a:hover {
    color: var(--text);
    background: var(--surface);
}
.menu a.is-active { color: var(--text); }

/* ===== HERO ===== */
.hero {
    padding: 96px 0 72px;
    background:
        radial-gradient(600px 300px at 15% -10%, rgba(76, 201, 240, .12), transparent 60%),
        radial-gradient(600px 300px at 90% 0%, rgba(123, 97, 255, .12), transparent 60%);
}

.hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero h1 span {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    color: var(--muted);
    font-size: 17px;
    max-width: 620px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, opacity .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #0b0d12;
}
.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-ghost:hover { background: var(--surface); }

.features {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}
.features li::before {
    content: "◆";
    color: var(--accent);
    margin-right: 8px;
    font-size: 11px;
}

/* ===== СЕКЦИИ ===== */
.section { padding: 72px 0; }
.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 8px;
}
.section-sub {
    color: var(--muted);
    margin-bottom: 36px;
}

/* ===== КАРТОЧКИ ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: border-color .2s, transform .2s;
}
.card:hover {
    border-color: rgba(76, 201, 240, .5);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 26px;
    margin-bottom: 12px;
}
.card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}
.card p {
    color: var(--muted);
    font-size: 14.5px;
}

.cards-pay .card { padding: 20px; }

/* ===== ДВЕ КОЛОНКИ ===== */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.two-cols h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--accent);
}
.two-cols p {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 22px;
}

/* ===== CTA ===== */
.cta {
    margin-top: 40px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(76,201,240,.06), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cta p { color: var(--muted); }

/* ===== ПОДВАЛ ===== */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-requisites {
    color: var(--muted);
    font-size: 13px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== БУРГЕР / МОБИЛЬНОЕ МЕНЮ ===== */
.burger {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: transform .2s;
}

/* ===== МОБИЛЬНЫЙ ===== */
@media (max-width: 640px) {
    .topbar { position: relative; padding: 14px 20px; }
    .burger { display: block; margin-left: auto; }

    .menu {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 8px 16px 16px;
        display: none;
    }
    .menu.is-open { display: flex; }

    .hero { padding: 56px 0 48px; }
    .two-cols { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
}