/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font-family);
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #7f8c8d;
    --text-color: #2c3e50;
    --light-gray: #f5f6fa;
    --dark-gray: #2c3e50;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --heading-font: 'Roboto', var(--font-family);
    --accent-font: 'Inter', var(--font-family);
    --dark-color: #1a252f;
    --light-color: #ecf0f1;
    --gray-color: #7f8c8d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --border-radius: 10px;
    --telegram-color: #0088cc;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: var(--shadow);
}

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

.logo a {
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-img {
    height: 28px;
    width: auto;
    margin-right: 0;
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.logo i {
    font-size: 1.4rem;
    margin-right: 0.3rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.7rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-links .telegram-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-links .telegram-link:hover {
    color: #0088cc;
    transform: translateY(-2px);
}

.nav-links .telegram-link i {
    font-size: 1rem;
    color: var(--white);
}

/* Donate link styles */
.nav-links .donate-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 1.1rem;
    padding: 0.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
}

.nav-links .donate-link:hover {
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-links .donate-link i {
    transition: transform 0.3s ease;
}

.nav-links .donate-link:hover i {
    transform: scale(1.2);
}

/* Стили для кнопки мобильного меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Медиа-запросы для мобильного меню */
@media (max-width: 991px) {
    .main-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1a252f, #2c3e50);
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 10px 0;
    }

    .nav-links .donate-link {
        margin: 10px 0;
        width: 40px;
        height: 40px;
    }
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Обновлённый hero-блок с тёмным градиентом для лучшей читаемости */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(52, 73, 94, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.hero h2,
.hero p {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.95);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Testing cards */
.testing-cards {
    padding: 0.5rem 0;
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    padding: 0 1.5rem;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50, #34495e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.card-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.card p {
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    flex-grow: 1;
    font-size: 0.9rem;
}

.test-btn {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--accent-font);
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
}

.test-btn span {
    position: relative;
    z-index: 1;
}

.test-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.test-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.test-btn:hover::before {
    opacity: 1;
}

.test-btn:hover i {
    transform: translateX(5px);
}

.express-test {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.express-test .card-icon,
.express-test h3,
.express-test p {
    color: white;
}

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

.express-test .test-btn:hover {
    background: var(--hover-color);
}

/* Адаптивность для логотипа */
@media screen and (max-width: 991px) {
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo i {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 575px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .logo i {
        font-size: 1.2rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 0.8rem 0;
    margin-top: auto;
    width: 100%;
    font-size: 0.9rem;
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .nav-links .telegram-link {
        justify-content: center;
        padding: 0.5rem 0;
    }
}

@media (max-width: 991px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

/* Donation page styles */
.donation-section {
    padding: 2rem 0;
    background-color: var(--light-gray);
    min-height: calc(100vh - 70px - 60px);
    display: flex;
    align-items: center;
}

.donation-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.donation-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5), 0 0 20px rgba(52, 152, 219, 0.3), 0 0 30px rgba(52, 152, 219, 0.1);
    text-align: center;
    border: 1px solid rgba(52, 152, 219, 0.3);
    position: relative;
}

.donation-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db, #2980b9, #3498db);
    border-radius: calc(var(--border-radius) + 2px);
    z-index: -1;
    opacity: 0.7;
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(52, 152, 219, 0.5), 0 0 20px rgba(52, 152, 219, 0.3);
    }
    100% {
        opacity: 0.8;
        box-shadow: 0 0 15px rgba(52, 152, 219, 0.7), 0 0 30px rgba(52, 152, 219, 0.5), 0 0 45px rgba(52, 152, 219, 0.3);
    }
}

/* Явные стили для всех текстовых элементов */
.donation-content p,
.donation-content li,
.donation-content .donation-description,
.donation-content .donation-subtitle,
.donation-content .donation-intro,
.donation-content .donation-benefits,
.donation-content .donation-impact,
.donation-content .donation-cta,
.donation-content .donation-footer {
    color: #2c3e50 !important;
}

.donation-header {
    margin-bottom: 1.5rem;
    position: relative;
}

.donation-icon {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.donation-content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.donation-intro {
    margin-bottom: 2rem;
}

.donation-description {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.donation-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}

.donation-benefits {
    margin-bottom: 2rem;
    text-align: left;
}

.donation-benefits h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    text-align: center;
}

.donation-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.donation-benefits ul li {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.donation-benefits ul li i {
    color: var(--primary-color);
    margin-right: 0.6rem;
    font-size: 1rem;
}

.donation-impact {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(245, 246, 250, 0.5);
    border-radius: var(--border-radius);
}

.donation-impact h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.impact-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0.8rem 0.8rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

.donation-cta {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(52, 73, 94, 0.05));
    border-radius: var(--border-radius);
    text-align: center;
}

.donation-cta h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.donation-cta p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.donation-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.donation-button {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
}

.donation-footer {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.donation-footer p {
    font-size: 1rem;
}

.donation-footer i {
    color: var(--primary-color);
    margin-left: 0.3rem;
}

@media (max-width: 768px) {
    .donation-section {
        padding: 1rem 0;
    }
    
    .donation-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .donation-content {
        padding: 1.5rem 1rem;
    }
    
    .donation-content h2 {
        font-size: 1.5rem;
    }
    
    .donation-description {
        font-size: 1rem;
    }
    
    .donation-subtitle {
        font-size: 0.9rem;
    }
    
    .donation-benefits h3 {
        font-size: 1.2rem;
    }
    
    .donation-benefits ul {
        grid-template-columns: 1fr;
    }
    
    .donation-benefits ul li {
        font-size: 0.9rem;
    }
    
    .donation-content iframe {
        width: 100% !important;
        height: 400px !important;
        margin: 1rem auto;
    }
    
    .donation-footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .donation-content {
        padding: 1rem 0.8rem;
    }
    
    .donation-content h2 {
        font-size: 1.3rem;
    }
    
    .donation-icon {
        font-size: 2rem;
    }
    
    .donation-content iframe {
        height: 350px !important;
    }
}

/* Стили для кнопки "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}