:root {
    --color-primary: #1e3a5f;
    --color-primary-dark: #162b47;
    --color-accent: #bd322c;
    --color-accent-dark: #992722;
    --color-bg: #f8f9fa;
    --color-text: #212529;
    --color-muted: #6c757d;
    --color-white: #ffffff;
    --color-light: #e9eaf1;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: var(--color-primary);
    color: var(--color-white);
    border-bottom: 3px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-white);
    border-bottom-color: var(--color-accent);
    text-decoration: none;
}

.main-nav .nav-app {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border-bottom: none;
}

.main-nav .nav-app:hover {
    background: var(--color-accent-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 5rem 0;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

/* Features */
.about {
    padding: 4rem 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.about-list {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--color-muted);
}

.about-list li {
    margin-bottom: 0.5rem;
}

.about-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.about-card-icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.about-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* Features */
.features {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
}

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

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.feature-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* CTA */
.cta {
    background: var(--color-white);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--color-light);
}

.cta h2 {
    color: var(--color-primary);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.cta p {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

/* Page header */
.page-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0;
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.page-header p {
    opacity: 0.9;
    max-width: 600px;
}

/* Support */
.support-content {
    padding: 4rem 0;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.support-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.support-card h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.cooperation-subheading {
    color: var(--color-primary);
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.contact-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.contact-list li {
    margin-bottom: 1rem;
}

.contact-list a {
    color: var(--color-accent);
    font-weight: 600;
}

.contact-list small {
    color: var(--color-muted);
    font-size: 0.875rem;
}

.contact-list small a {
    font-weight: 400;
}

.document-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.document-link:hover {
    color: var(--color-accent-dark);
}

.document-link::before {
    content: "📄";
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.partner-link:hover {
    color: var(--color-accent-dark);
}

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

.cooperation-content {
    padding: 3rem 0;
}

.cooperation-content .support-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.privacy-policy-content {
    padding: 3rem 0;
}

.pdf-viewer-wrapper {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.pdf-viewer {
    width: 100%;
    height: 70vh;
    min-height: 480px;
    display: block;
}

.pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .pdf-viewer {
        height: 60vh;
        min-height: 360px;
    }
}

/* About section */
.about {
    padding: 4rem 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.about-list {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--color-muted);
}

.about-list li {
    margin-bottom: 0.5rem;
}

.about-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.about-card-icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.about-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.faq details {
    border-bottom: 1px solid var(--color-light);
    padding: 1rem 0;
}

.faq summary {
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
}

.faq p {
    margin-top: 0.5rem;
    color: var(--color-muted);
}

/* Download page */
.download-content {
    padding: 4rem 0;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.download-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.download-card-soon {
    opacity: 0.75;
}

.download-card-soon:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.download-card-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 18px;
    margin-bottom: 1.5rem;
}

.download-card-icon svg {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    fill: currentColor;
    flex-shrink: 0;
}

.download-card-icon-play {
    background: #34a853;
}

.download-card h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.download-card p {
    color: var(--color-muted);
    margin-bottom: 1.75rem;
    flex: 1;
}

.download-btn {
    gap: 0.5rem;
    width: 100%;
    max-width: 220px;
}

.download-btn .btn-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.download-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-muted);
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 2px dashed var(--color-light);
    width: 100%;
    max-width: 220px;
}

/* Error page */
.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--color-primary);
    line-height: 1;
}

.error-page p {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin: 1rem 0 1.5rem;
}

/* Footer */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.footer-contacts a {
    color: rgba(255, 255, 255, 0.85);
}

.copyright {
    width: 100%;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        border-bottom: none;
    }

    .hero {
        padding: 3rem 0;
    }

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

    .support-grid {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
