:root {
    --bg: #f7f8ff;
    --white: #ffffff;

    --text: #171827;
    --muted: #696b7d;

    --primary: #625cf5;
    --purple: #8b5cf6;

    --border: #e7e7f0;

    --shadow:
        0 20px 60px rgba(70, 66, 180, 0.10);

    --container: 1080px;
}


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


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    color: var(--text);

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(112, 104, 255, 0.16),
            transparent 38%
        ),
        var(--bg);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


button,
input {
    font: inherit;
}


button {
    border: 0;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin: 0 auto;
}


/* HEADER */

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


.header-inner {
    display: flex;
    align-items: center;
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: -0.04em;
}


.logo-mark {
    width: 38px;
    height: 38px;

    filter: drop-shadow(0 8px 16px rgba(98, 92, 245, 0.24));

    transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
    transform: rotate(-5deg) scale(1.05);
}

.logo-name span {
    color: var(--primary);
}


/* HERO */

.hero {
    position: relative;

    flex: 1;

    display: flex;
    align-items: center;

    padding:
        72px 0
        88px;

    overflow: hidden;
}


.hero-container {
    text-align: center;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;

    border: 1px solid #e3e2ff;

    border-radius: 999px;

    color: #5c58dc;

    background: rgba(255, 255, 255, 0.75);

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


.hero h1 {
    margin-top: 24px;

    font-size: clamp(
        46px,
        7vw,
        76px
    );

    line-height: 1;

    letter-spacing: -0.06em;

    font-weight: 850;
}

.hero-container > h1:first-child {
    margin-top: 0;
}


.hero h1 span {
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--purple)
        );

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

    color: transparent;
}


.hero-description {
    max-width: 520px;

    margin: 24px auto 0;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.65;
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}


/* DOWNLOAD FORM */

.download-form {
    display: flex;
    align-items: center;
    gap: 10px;

    max-width: 730px;

    margin: 38px auto 0;

    padding: 7px;

    border: 1px solid #dfdfeb;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow: var(--shadow);

    backdrop-filter: blur(12px);
}


.input-wrapper {
    position: relative;

    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    column-gap: 10px;
    gap: 10px;

    flex: 1;

    min-width: 0;

    padding: 0 15px;

    cursor: text;
}


.input-icon {
    grid-column: 1;
    grid-row: 1;

    flex-shrink: 0;

    color: #85869b;

    font-size: 20px;
}


.input-wrapper input {
    grid-column: 2;
    grid-row: 1;

    width: 100%;
    min-width: 0;
    min-height: 50px;

    border: 0;
    outline: 0;

    color: var(--text);

    background: transparent;

    font-size: 15px;
}


.input-wrapper input::placeholder {
    color: #9698aa;
}

.form-error {
    position: absolute;
    top: calc(100% + 8px);
    left: 31px;

    grid-column: 2;
    grid-row: 2;

    margin: 5px 0 0;

    color: #7c3aed;

    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
}

.download-form:has(.form-error:not([hidden])) {
    margin-bottom: 24px;
}



.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    min-width: 150px;

    padding: 15px 22px;

    border-radius: 14px;

    color: #fff;

    background:
        linear-gradient(
            100deg,
            var(--primary),
            var(--purple)
        );

    box-shadow:
        0 10px 25px rgba(98, 92, 245, 0.25);

    cursor: pointer;

    font-weight: 750;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.button-icon {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}


.download-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 32px rgba(98, 92, 245, 0.32);
}


.download-button:active {
    transform: translateY(0);
}


/* ADVANTAGES */

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

    margin-top: 24px;
}


.advantages span {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #77798a;

    font-size: 13px;
    font-weight: 600;
}


.advantages b {
    color: var(--primary);

    font-size: 14px;
}


/* ADVERTISING */

.ad-slot {
    max-width: 728px;

    margin: 32px auto 0;

    padding: 12px;

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

    background: rgba(255, 255, 255, 0.65);
}

.ad-slot-label {
    display: block;

    margin-bottom: 8px;

    color: #9698aa;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-slot-code {
    min-height: 90px;
}

.ad-slot-result {
    margin-top: 24px;
}


/* SEO */

.seo-section {
    padding: 72px 0 96px;

    border-top: 1px solid rgba(231, 231, 240, 0.8);

    background: rgba(255, 255, 255, 0.68);
}

.seo-container {
    max-width: 880px;
}

.seo-intro {
    text-align: center;
}

.seo-intro h2,
.faq-section h2 {
    font-size: clamp(26px, 4vw, 38px);

    letter-spacing: -0.04em;
}

.seo-intro p {
    max-width: 620px;

    margin: 14px auto 0;

    color: var(--muted);
    line-height: 1.65;
}

.seo-steps {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;

    margin-top: 32px;

    list-style: none;
    counter-reset: step;
}

.seo-steps li {
    position: relative;

    padding: 18px;

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

    background: var(--white);
}

.seo-steps li::before {
    display: inline-grid;

    vertical-align: middle;
    place-items: center;

    width: 24px;
    height: 24px;

    margin-right: 9px;

    border-radius: 50%;

    color: white;
    background: var(--primary);

    content: counter(step);
    counter-increment: step;
    font-size: 12px;
    font-weight: 800;
}

.seo-steps strong,
.seo-steps span {
    display: block;
}

.seo-steps strong {
    display: inline-block;

    vertical-align: middle;
}

.seo-steps span {
    margin-top: 8px;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.faq-section {
    margin-top: 56px;
}

.faq-section details {
    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.faq-section summary {
    cursor: pointer;

    color: var(--text);
    font-weight: 750;
}

.faq-section p {
    margin-top: 10px;

    color: var(--muted);
    line-height: 1.6;
}


/* MOBILE */

@media (max-width: 760px) {

    .container {
        width:
            min(
                calc(100% - 32px),
                var(--container)
            );
    }


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


    .hero {
        padding:
            50px 0
            80px;
    }


    .hero h1 {
        font-size: clamp(
            42px,
            12vw,
            58px
        );
    }


    .hero-description {
        font-size: 16px;
    }


    .download-form {
        flex-direction: column;

        padding: 8px;

        border-radius: 18px;
    }


    .input-wrapper {
        min-height: 52px;
    }


    .download-button {
        width: 100%;
    }


    .advantages {
        gap: 12px;

        flex-wrap: wrap;
    }

    .seo-section {
        padding: 56px 0 72px;
    }

    .seo-steps {
        grid-template-columns: 1fr;
    }


    .footer-inner {
        flex-direction: column;

        gap: 8px;

        text-align: center;
    }
}


@media (max-width: 420px) {

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


    .hero-description {
        font-size: 15px;
    }


    .hero-badge {
        font-size: 12px;
    }


    .advantages {
        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 8px;
    }


    .advantages span {
        justify-content: center;

        font-size: 12px;
    }
}


/* RESULT PAGE */

.result-download-button {
    display: inline-flex;
    margin-top: 38px;
}

/* PROCESSING */

.loading-indicator {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 35px;
}

.loading-indicator span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    animation: loading-dot 1.2s infinite ease-in-out;
}

.loading-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes loading-dot {
    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* SHARE CARD */

.share-card {
    width: min(100%, 560px);
    margin: 42px auto 0;
    padding-top: 28px;

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

    text-align: center;
}

.share-card-content h2 {
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.025em;
    font-weight: 750;
}

.share-card-content p {
    max-width: 430px;
    margin: 8px auto 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.55;
}

.share-actions {
    display: flex;
    justify-content: center;
    gap: 9px;

    margin-top: 18px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 11px 18px;

    border-radius: 12px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.share-button:hover {
    transform: translateY(-1px);
}

.primary-share-button {
    color: #fff;

    background:
        linear-gradient(
            100deg,
            var(--primary),
            var(--purple)
        );

    box-shadow:
        0 8px 20px rgba(98, 92, 245, 0.18);
}

.secondary-share-button {
    color: var(--text);

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

    background: #fff;
}

.secondary-share-button:hover {
    background: #f8f8fc;
}

@media (max-width: 600px) {

    .share-card {
        margin-top: 34px;
        padding-top: 24px;
    }

    .share-actions {
        flex-direction: column;
    }

    .share-button {
        width: 100%;
    }
}
