:root {
    --primary: #4d8eff;
    --background: #f9fbfd;
    --text: #333;
    --muted: #666;
    --card-bg: #fff;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html, body {
    min-width: 330px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

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

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

header {
    background-color: #fff;
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

header a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.hero {
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 30% 30%, #4d8eff30, transparent 70%);
    z-index: 0;
    border-radius: 50%;
    transform: rotate(45deg);
}

.hero::before {
    top: -150px;
    left: -150px;
}

.hero::after {
    bottom: -150px;
    right: -150px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn:hover {
    background: #3b79dc;
}

.header-btn {
    font-size: 1rem;
    display: inline-block;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1;
}

.header-btn:hover {
    background: #3b79dc;
}


section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

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

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

ul {
    padding-left: 20px;
    margin: 20px 0;
}

.cta {
    text-align: center;
    background: #fff;
    padding: 60px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.95rem;
    color: var(--muted);
}

footer a {
    color: var(--muted);
    margin: 0 10px;
}

.bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-svg svg {
    position: absolute;
    top: 0;
    width: 100%;
    height: auto;
    opacity: 0.04;
}


.svg-decor svg {
    display: block;
    height: 100%;
    width: 100%;
}


.pricing-section {
    background: linear-gradient(135deg, #4f46e5 0%, #60a5fa 100%);
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.pricing-section .container {
    margin: auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-card {
    background: white;
    color: #111827;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    font-size: 2rem;
    color: #4f46e5;
    font-weight: 800;
    margin: 0;
}

.subtext {
    margin-top: 5px;
    color: #6b7280;
}

.desc {
    margin: 20px 0;
    font-size: 1.1rem;
    color: #374151;
}

.features {
    list-style: none;
    padding-left: 0;
    margin: 30px auto;
    max-width: 420px;
    text-align: left;
}

.features li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.highlight {
    margin-bottom: 15px;
    font-weight: 600;
    color: #10b981;
}

.note {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 8px;
}

.cta-btn {
    display: inline-block;
    background: #4f46e5;
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    transition: background 0.3s ease;
    margin-top: 30px;
}

.cta-btn:hover {
    background: #4338ca;
}


.site-header {
    background-color: #fff;
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky; /* фиксируем */
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    min-width: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 80px auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 480px;
    position: relative;
    box-shadow: var(--shadow);
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.modal-content .btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

a[role="button"] {
    cursor: pointer;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .site-header {
        padding: 10px 0;
    }

    .header-inner {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .logo {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 100px);
    }

    .header-btn {
        font-size: 0.75rem;
        padding: 8px 10px;
        flex-shrink: 0;
    }



    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p,
    .desc,
    .note,
    .features li {
        font-size: 0.95rem;
    }

    .cta-btn,
    .btn,
    .header-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .full-logo {
        display: none;
    }
    .short-logo {
        display: inline;
    }
}

@media (min-width: 481px) {
    .full-logo {
        display: inline;
    }
    .short-logo {
        display: none;
    }
}