:root {
    --bg-main: #07070a;
    --bg-card: #111116;

    --text-main: #f5f5f7;
    --text-secondary: #9b9ba6;

    --accent: #7c3aed;
    --accent-light: #a855f7;

    --border: #25252d;
}

html {
    scroll-behavior: smooth;
}

#home,
#services,
#solutions,
#contact {
    scroll-margin-top: 60px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: "Inter", Arial, sans-serif;
    margin: 0;
}

h1 {
    font-size: 72px;
    margin: 0;
    font-weight: 700;
    line-height: 1.1;
}

.hero h1 {
    background: linear-gradient(
        90deg,
        var(--text-main),
        var(--accent-light)
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero h2 {
    width: 100%;
    max-width: 1100px;
    padding: 0 30px;
    box-sizing: border-box;

    font-size: 30px;
    line-height: 1.25;
    text-align: center;
}

h2 {
    font-size: 30px;
    margin: 0;
    max-width: 1000px;
    text-align: center;
    line-height: 1.2;
}

h1,
h2,
h3 {
    font-family: "Manrope", "Inter", sans-serif;
}

p {
    font-size: 18px;

    margin: 0;
}

button {
    font-size: 16px;
}

.main-button {
    padding: 15px 30px;
    font-size: 18px;

    background-color: var(--accent);
    color: var(--text-main);

    border: none;
    border-radius: 10px;

    cursor: pointer;

    transition: background-color 0.3s, transform 0.3s;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.secondary-button {
    padding: 15px 30px;
    font-size: 18px;

    background-color: transparent;
    color: var(--text-main);

    border: 1px solid var(--border);
    border-radius: 10px;

    cursor: pointer;

    text-decoration: none;
    display: inline-block;

    transition: background-color 0.3s, border-color 0.3s;
}

.secondary-button:hover {
    background-color: var(--bg-card);
    border-color: var(--accent);
}

.hero-channels {
    margin-top: 10px;

    font-size: 14px;
    color: var(--text-secondary);

    letter-spacing: 1px;
}

.hero {
    min-height: 65vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 26px;

    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    width: 700px;
    height: 500px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(124, 58, 237, 0.18) 0%,
        rgba(124, 58, 237, 0.07) 40%,
        transparent 70%
    );

    filter: blur(40px);

    z-index: 0;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.main-button:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

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

    padding: 18px 40px;

    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    background-color: rgba(7, 7, 10, 0.75);
    backdrop-filter: blur(14px);
}

.nav {
    display: flex;
    gap: 30px;
}

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

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition: color 0.3s;
}

.logo {
    display: flex;
    align-items: center;
}

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

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

.hero-label {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--accent-light);
}

.hero-text {
    max-width: 650px;
    text-align: center;
    line-height: 1.6;
}

.services {
    padding: 70px 40px 50px;
    text-align: center;
}

.services h2 {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 360px);
    gap: 24px;

    max-width: 1200px;
    margin: 40px auto 0;
    transform: translateX(15px);
}

.service-card {
    padding: 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        rgba(17, 17, 22, 0.95),
        rgba(12, 12, 17, 0.95)
    );

    border: 1px solid var(--border);
    border-radius: 18px;

    text-align: left;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.service-number {
    display: inline-block;
    margin-bottom: 22px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;

    color: var(--accent-light);

    padding: 7px 10px;

    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
}


.service-card h3 {
    margin: 0 0 15px;

    font-size: 22px;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-card:hover {
    transform: translateY(-6px);

    border-color: rgba(168, 85, 247, 0.45);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25),
        0 0 25px rgba(124, 58, 237, 0.08);
}

.menu-toggle {
    display: none;
}

.how-it-works {
    padding: 50px 40px 70px;
    text-align: center;
}

.workflow {
    display: flex;
    justify-content: center;
    gap: 24px;

    max-width: 1128px;
    margin: 40px auto 0;
}

.workflow-step span {
    display: inline-block;

    margin-bottom: 22px;
    padding: 7px 10px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;

    color: var(--accent-light);

    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
}

.workflow-step h3 {
    font-size: 22px;
    margin: 0 0 15px;
}

.workflow-step {
    width: 360px;
    padding: 32px;
    box-sizing: border-box;

    text-align: left;
    position: relative;

    background: linear-gradient(
        145deg,
        rgba(17, 17, 22, 0.8),
        rgba(10, 10, 15, 0.8)
    );

    border: 1px solid var(--border);
    border-radius: 18px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.workflow-step:hover {
    transform: translateY(-5px);

    border-color: rgba(168, 85, 247, 0.35);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.workflow-step p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.workflow-step:not(:last-child)::after {
    content: "→";

    position: absolute;
    right: -22px;
    top: 50%;

    font-size: 28px;
    color: var(--accent-light);
    opacity: 0.45;

    transform: translateY(-50%);
}

.cta {
    max-width: 1100px;
    margin: 70px auto;

    padding: 70px 40px;
    text-align: center;

    background: linear-gradient(
        145deg,
        rgba(17, 17, 22, 0.95),
        rgba(10, 10, 15, 0.95)
    );

    border: 1px solid var(--border);
    border-radius: 24px;

    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";

    position: absolute;
    width: 500px;
    height: 300px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(124, 58, 237, 0.16) 0%,
        rgba(124, 58, 237, 0.05) 45%,
        transparent 75%
    );

    filter: blur(35px);

    pointer-events: none;
}

.cta > * {
    position: relative;
    z-index: 1;
}

.cta h2 {
    max-width: 800px;
    margin: 0 auto;
}

.cta-text {
    max-width: 650px;
    margin: 25px auto;

    line-height: 1.6;
    color: var(--text-secondary);
}

.how-it-works h2 {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer {
    padding: 45px 40px;

    text-align: center;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);
}

.footer-logo {
    margin-bottom: 12px;

    font-family: "Manrope", "Inter", sans-serif;
    font-size: 22px;
    font-weight: 700;

    color: var(--text-main);
}

.footer-copy {
    margin-top: 20px;

    font-size: 13px;
    color: var(--text-secondary);

    opacity: 0.7;
}

.consultation-modal {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);

    z-index: 1000;

    padding: 20px;
    box-sizing: border-box;

    overflow-y: auto;
}

.consultation-modal.modal-open {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 100%;
    max-width: 620px;

    padding: 40px;

    background: linear-gradient(
        145deg,
        rgba(17, 17, 22, 0.98),
        rgba(10, 10, 15, 0.98)
    );

    border: 1px solid var(--border);
    border-radius: 24px;

    position: relative;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(124, 58, 237, 0.08);
}

.modal-content h2 {
    margin-top: 10px;
    text-align: left;
}

.modal-text {
    margin-top: 15px;

    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;

    background: transparent;
    color: var(--text-secondary);

    border: none;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-main);
}

.consultation-form {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-top: 30px;
}

.consultation-form label,
.contact-title {
    font-size: 14px;
    font-weight: 500;

    color: var(--text-main);
}

.consultation-form input:not([type="radio"]),
.consultation-form textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 16px;

    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);

    border: 1px solid var(--border);
    border-radius: 10px;

    font-family: inherit;
    font-size: 16px;

    outline: none;
}

.contact-methods {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.contact-methods input[type="radio"] {
    width: auto;
    margin: 0;

    accent-color: var(--accent);
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-success {
    padding: 35px 10px 20px;
    text-align: center;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);

    color: var(--accent-light);

    font-size: 26px;
    font-weight: 700;
}

.form-success h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.form-success p {
    max-width: 420px;
    margin: 0 auto;

    color: var(--text-secondary);
    line-height: 1.6;
}

.consultation-form textarea {
    resize: vertical;
}

.consultation-form input:focus,
.consultation-form textarea:focus {
    border-color: var(--accent);
}

.contact-title {
    margin-top: 10px;
}

.contact-methods {
    display: flex;
    gap: 20px;

    margin-bottom: 10px;
}

.contact-methods label {
    display: flex;
    align-items: center;
    gap: 8px;

    cursor: pointer;
}

body.modal-active {
    overflow: hidden;
}

@media (max-width: 768px) {

    .header {
        padding: 20px;
    }

    .nav {
        display: none;
    }

    .nav.nav-open {
        display: flex;
        flex-direction: column;

        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;

        padding: 20px;
        gap: 20px;

        background-color: #111111;
        border: 1px solid #333333;
        border-radius: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .hero {
        min-height: auto;
        padding: 90px 20px 60px;
    }

    h1 {
        font-size: 40px;
        text-align: center;
    }

    h2 {
        font-size: 24px;
        text-align: center;
    }

    .hero-text {
        font-size: 16px;
        max-width: 100%;
        line-height: 1.5;
    }

    .services {
        padding: 60px 20px;
    }

    .services-container {
        grid-template-columns: 1fr;
        justify-items: center;
        transform: none;
    }

    .service-card {
        width: 100%;
        max-width: 320px;
        box-sizing: border-box;
    }

    .menu-toggle {
        display: block;
        background: none;
        color: white;
        border: none;
        font-size: 28px;
        cursor: pointer;
    }

    .how-it-works {
        padding: 60px 20px;
    }

    .workflow {
        flex-direction: column;
        align-items: center;
    }

    .workflow-step {
        width: 100%;
        max-width: 320px;
        box-sizing: border-box;
    }

    .workflow-step:not(:last-child)::after {
        content: "↓";
        right: 50%;
        top: auto;
        bottom: -20px;
        transform: translateX(50%);
    }

    .cta {
        padding: 60px 20px;
    }

    .cta h2 {
        font-size: 24px;
    }

    .cta-text {
        font-size: 16px;
    }

    .footer {
        padding: 30px 20px;
    }

        .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

        .hero-actions .main-button,
        .hero-actions .secondary-button {
        width: 100%;
        max-width: 320px;
        box-sizing: border-box;
        text-align: center;
    }

        .hero-channels {
        text-align: center;
        line-height: 1.6;
    }

    .consultation-modal.modal-open {
        align-items: flex-start;
    }

    .consultation-modal {
        padding: 12px;
    }

    .modal-content {
        padding: 28px 20px;
        margin: 12px 0;
        border-radius: 18px;
    }

}