/* ---
   Modern & User-Friendly Stylesheet (Flattened Version)
   This version removes CSS variables to be compatible with older linters/validators.
--- */

/* --- 1. Global Styles & Typography --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    line-height: 1.7;
    background-color: #ffffff;
    color: #343a40; /* Replaced var(--text-color-dark) */
    scroll-behavior: smooth;
}
/* --- Styles for the Download Page --- */

.download-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.telegram-button {
    display: inline-block;
    background: var(--primary-color, #007BFF); /* Use the main blue color */
    color: #fff !important;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
}

.telegram-button:hover {
    background: #0056b3; /* A darker blue on hover */
    text-decoration: none;
    transform: translateY(-2px);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #343a40; /* Replaced var(--text-color-dark) */
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; border-bottom: 3px solid #007BFF; padding-bottom: 10px; margin-top: 2rem; } /* Replaced var(--primary-color) */
h3 { font-size: 1.4rem; color: #555; }

p { margin-bottom: 1.2rem; }
a { color: #007BFF; text-decoration: none; font-weight: 500; } /* Replaced var(--primary-color) */
a:hover { text-decoration: underline; }

ul, ol { padding-left: 25px; }
li { margin-bottom: 0.7rem; }

/* --- 2. Header & Footer --- */
header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6; /* Replaced var(--border-color) */
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.8);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #007BFF; /* Replaced var(--primary-color) */
}

header nav a {
    color: #343a40; /* Replaced var(--text-color-dark) */
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s ease-in-out;
}
header nav a:hover {
    color: #007BFF; /* Replaced var(--primary-color) */
    text-decoration: none;
}

footer {
    padding: 2.5rem 0;
    background: #2c3e50; /* Replaced var(--dark-bg-color) */
    color: #f1f5f9; /* Replaced var(--text-color-light) */
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
}

.footer-links a {
    color: #f1f5f9; /* Replaced var(--text-color-light) */
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #007BFF; /* Replaced var(--primary-color) */
    text-decoration: underline;
}

.copyright-text {
    font-size: 0.85rem;
    color: #a0aec0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
}

/* --- 3. Page Sections --- */
.hero {
    background: #f8f9fa; /* Replaced var(--light-bg-color) */
    padding: 5rem 0;
    text-align: center;
}

.hero h1 { color: #007BFF; } /* Replaced var(--primary-color) */

.content-section {
    padding: 3.5rem 0;
}

.bg-light { background-color: #f8f9fa; } /* Replaced var(--light-bg-color) */

.bg-dark {
    background-color: #2c3e50; /* Replaced var(--dark-bg-color) */
    color: #f1f5f9; /* Replaced var(--text-color-light) */
}

.bg-dark h2, .bg-dark h3 { color: #f1f5f9; } /* Replaced var(--text-color-light) */

/* --- 4. Reusable Components (Buttons, Tables, etc.) --- */
.download-button {
    display: inline-block;
    background: #28a745; /* Replaced var(--accent-color) */
    color: #fff !important;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.download-button:hover {
    background: #218838; /* Replaced var(--accent-hover-color) */
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.download-button.large {
    padding: 20px 40px;
    font-size: 1.6rem;
    margin-top: 2rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.note {
    background-color: #fff3cd; /* Replaced var(--note-bg-color) */
    border-left: 5px solid #007BFF; /* Replaced var(--primary-color) */
    padding: 1.2rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

blockquote {
    border-left: 5px solid #007BFF; /* Replaced var(--primary-color) */
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.1rem;
    margin: 2rem 0;
    color: #555;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: #fff;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6; /* Replaced var(--border-color) */
    border-radius: 8px;
    overflow: hidden;
}

table td {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6; /* Replaced var(--border-color) */
    text-align: left;
}

table tr:last-child td { border-bottom: none; }
table tr:nth-child(even) { background-color: #f8f9fa; } /* Replaced var(--light-bg-color) */

table td:first-child {
    font-weight: 600;
    width: 35%;
    color: #343a40; /* Replaced var(--text-color-dark) */
}

.faq-item { margin-bottom: 1.5rem; }
.faq-item h3 { margin-bottom: 0.5rem; border-bottom: 2px dotted #dee2e6; padding-bottom: 0.5rem; } /* Replaced var(--border-color) */

/* --- 5. Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    header .container {
        flex-direction: column;
        gap: 10px;
    }
}