:root {
    color-scheme: light dark;
    --bg: #0d121f;
    --bg-hero: #10192b;
    --bg-card: rgba(18, 24, 39, 0.85);
    --bg-highlight: rgba(25, 36, 58, 0.65);
    --text: #f6f7ff;
    --text-muted: rgba(246, 247, 255, 0.7);
    --text-dark: #132033;
    --accent: #4f8cff;
    --accent-dark: #3566d6;
    --border: rgba(79, 140, 255, 0.18);
    --shadow: rgba(7, 10, 18, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, rgba(79, 140, 255, 0.18), transparent 55%), linear-gradient(140deg, #0c1423, #050912 60%);
    color: var(--text);
    min-height: 100vh;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-wide {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding-inline: clamp(1.2rem, 5vw, 2.8rem);
}

.site-header {
    border-bottom: 1px solid rgba(79, 140, 255, 0.08);
    background: rgba(10, 15, 26, 0.72);
    backdrop-filter: blur(14px);
}

.site-header .container-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem clamp(1.2rem, 5vw, 2.8rem);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.brand img {
    width: clamp(48px, 5vw, 68px);
    height: clamp(48px, 5vw, 68px);
}

.brand span {
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
    background: rgba(79, 140, 255, 0.18);
    color: var(--text);
}

.language-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-picker label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.language-picker select {
    background: rgba(15, 22, 35, 0.8);
    border: 1px solid rgba(79, 140, 255, 0.25);
    color: var(--text);
    border-radius: 12px;
    padding: 0.4rem 0.9rem;
    font-size: 0.95rem;
}

main {
    flex: 1;
}

main .container-wide {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem clamp(1.2rem, 5vw, 2.8rem) 4rem;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2.5rem;
    box-shadow: 0 28px 65px -40px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-text h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
}

.hero-text p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 340px);
    gap: clamp(1.4rem, 3vw, 2.4rem);
    align-items: center;
}

.hero-illustration {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-illustration img {
    width: 100%;
    max-width: clamp(220px, 26vw, 340px);
    height: auto;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(79, 140, 255, 0.18);
    box-shadow: 0 32px 72px -48px var(--shadow);
}

.hero-illustration.hero-logo {
    justify-content: center;
}

.hero-illustration.hero-logo img {
    max-width: clamp(220px, 24vw, 300px);
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.hero-form {
    margin: 0;
}

.card {
    background: rgba(16, 23, 37, 0.8);
    border: 1px solid rgba(79, 140, 255, 0.12);
    border-radius: 20px;
    padding: 1.85rem;
    box-shadow: 0 24px 70px -48px var(--shadow);
}

.card h2 {
    margin-top: 0;
    font-size: 1.45rem;
    letter-spacing: 0.01em;
}

.card p,
.card li {
    color: var(--text-muted);
    line-height: 1.7;
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.download-form label {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.download-form input[type="url"] {
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 16, 27, 0.92);
    color: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-form input[type="url"]:focus {
    outline: none;
    border-color: rgba(79, 140, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 14px;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    background: linear-gradient(135deg, var(--accent), #6ea0ff);
    color: white;
    box-shadow: 0 18px 35px -22px rgba(79, 140, 255, 0.85);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 45px -24px rgba(79, 140, 255, 0.95);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.status {
    margin-top: 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(8, 12, 20, 0.65);
    border-radius: 14px;
    padding: 0.9rem 1.15rem;
    border: 1px solid rgba(79, 140, 255, 0.12);
}

.status[hidden] {
    display: none !important;
}

.spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

.spinner[hidden] {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result {
    margin-top: 1.1rem;
    background: rgba(10, 16, 28, 0.7);
    border-radius: 14px;
    padding: 0.8rem 1.1rem;
}

.result a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
}

.section-with-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(200px, 24vw, 310px);
    gap: clamp(1.5rem, 3vw, 2.4rem);
    align-items: center;
}

.section-with-media .section-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.section-illustration {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-illustration img {
    width: 100%;
    max-width: clamp(200px, 24vw, 310px);
    height: auto;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(79, 140, 255, 0.14);
    box-shadow: 0 28px 68px -50px var(--shadow);
}

.feature-card,
.responsible-card,
.tip-card,
.faq-item {
    background: rgba(13, 19, 31, 0.68);
    border: 1px solid rgba(79, 140, 255, 0.12);
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: 0 16px 40px -30px var(--shadow);
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.faq-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}


.page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(200px, 24vw, 300px);
    gap: clamp(1.4rem, 3vw, 2.2rem);
    align-items: center;
    margin-bottom: 2rem;
}

.page-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-heading {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
}

.section-subtitle {
    margin: 0 0 1.4rem;
    color: var(--text-muted);
    line-height: 1.6;
}

ul.rich-list {
    padding-left: 1.2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

ul.rich-list li::marker {
    color: var(--accent);
}

.page-card {
    background: rgba(15, 21, 34, 0.82);
    border: 1px solid rgba(79, 140, 255, 0.1);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: 0 26px 70px -40px var(--shadow);
}

.page-card h1,
.page-card h2 {
    margin-top: 0;
}

.page-card section + section {
    margin-top: 2rem;
}

.page-card p {
    line-height: 1.75;
    color: var(--text-muted);
}

footer {
    background: rgba(6, 9, 15, 0.8);
    border-top: 1px solid rgba(79, 140, 255, 0.08);
    padding: 1.6rem 0;
}

footer .container-wide {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-inline: clamp(1.2rem, 5vw, 2.8rem);
}

.footer-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(199, 210, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
}

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

.language-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .site-header .container-wide {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    main .container-wide {
        padding: 2.5rem 0 3rem;
    }

    .hero-card {
        padding: 2rem;
    }

    .hero-intro {
        grid-template-columns: 1fr;
    }

    .hero-illustration {
        justify-content: center;
    }

    .section-with-media {
        grid-template-columns: 1fr;
    }

    .section-illustration {
        justify-content: center;
    }

    .page-header {
        grid-template-columns: 1fr;
    }
    
    .hero-illustration img,
    .section-illustration img {
        max-width: min(65vw, 320px);
    }
}

@media (max-width: 640px) {
    .nav-links {
        gap: 0.6rem;
    }

    .language-picker label {
        display: none;
    }

    .hero-card {
        padding: 1.6rem;
    }

    .card {
        padding: 1.6rem;
    }

    .hero-illustration img,
    .section-illustration img {
        max-width: 220px;
    }
}
