:root {
    --bg: #f9fafb;
    --card: #ffffff;
    --text: #1f2328;
    --muted: #656d76;
    --accent: #0969da;
    --border: #d0d7de;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* ✅ FIXED HEADER */
header {
    position: sticky;
    top: 0;
    background: #ffffff; /* FIX: стабилен цвят */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 32px;
    width: auto;
}

nav a {
    margin-left: 20px;
    color: var(--muted);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent);
}

/* ✅ FIXED HERO */
.hero {
    position: relative;
    text-align: center;
    min-height: 90vh; /* FIX */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 140px;
    background: url('../assets/images/baner4.png') center/cover no-repeat;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* ❌ REMOVED: background-attachment: fixed */

/* ✅ Strong overlay (fix ghost text) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 60, 0.75);
    z-index: 1;
}

/* ✅ Smooth transition to next section */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(
            to bottom,
            rgba(10,25,60,0),
            #f9fafb
    );
}

/* ✅ Premium hero card */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    padding: 60px 40px;
    border-radius: 20px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 800;
}

.hero p {
    color: #ffffff;
    font-size: 22px;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 500;
}

.button {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
    font-weight: 600;
}

.hero .muted {
    color: rgba(255, 255, 255, 0.7);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

.section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 32px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(140, 149, 159, 0.12);
    transform: translateY(-4px);
}

.card h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text);
}

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

.card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.pricing {
    background: var(--card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.cta {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(
        to bottom,
        #f9fafb,
        #eef2f7
    );
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

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

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

a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav a {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }
}