body {                                                             /* Общие стили */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

header, footer {
    background-color: #222;
    color: white;
    padding: 5px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.about-section {                                                    /* Стили для основного контента */
    padding: 20px;
    margin: 20px;
}

section {
    padding: 20px;
    margin-bottom: 20px;
}

h1, h2 {
    font-size: 24px;
    color: #000;
}

p {
    font-size: 16px;
    color: #777;
}

a {
    color: inherit;                                                /* Наследуем цвет ссылки от родительского элемента */
    text-decoration: none;
}

a:hover {
    color: #999;                                                 /* Цвет ссылки при наведении */
    text-decoration: underline;                                    /* Подчеркивание ссылки при наведении */
}

a:active, a:visited {
    color: #f47059;                                              /* Цвет для активных и посещенных ссылок */
}

section:not(:last-child) {                                         /* Разделение между секциями */
    border-bottom: 2px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

footer {                                                           /* Стили для футера */
    font-size: 14px;
    margin-top: 40px;
}

.footer-link {
    font-size: 14px;
}

footer a {                                                         /* Дополнительные стили */
    color: inherit;                                                /* Наследуем цвет ссылки от родительского элемента */
    text-decoration: underline;                                    /* Подчёркивает ссылку */
}

footer a:hover {
    color: #dbdbdb;                                                 /* Цвет ссылки при наведении */
}

@media (max-width: 600px) { 
    .menu-container {
        max-width: 75%;
    }
}

/* Стили для счётчика */
.user-counter {
    margin: 40px auto;
    max-width: 500px;
}

.counter-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.counter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.counter-icon {
    width: 28px;
    height: 28px;
    color: #e54646;
}

.counter-content {
    text-align: center;
}

.counter-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff1717, #ff1b1b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 10px 0;
    line-height: 1.2;
}

.counter-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, #e54646, #d40606);
    border-radius: 3px;
    animation: progress-animation 2s ease-in-out infinite alternate;
}

.donate-button {
    background-color: #ED1C24; /* Красный цвет, как в ссылке на Rutube */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

.donate-button:hover {
    background-color: #c8102e; /* Чуть темнее красный для эффекта наведения */
    color: white; /* Гарантируем, что текст остаётся белым */
    text-decoration: none; /* Убираем подчёркивание, если оно появляется */
}

/* Анимации */
@keyframes progress-animation {
    0% { width: 75%; }
    100% { width: 85%; }
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .counter-card {
        padding: 25px;
    }
    
    .counter-value {
        font-size: 2.8rem;
    }
    
    .counter-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .user-counter {
        margin: 30px 15px;
    }
    
    .counter-value {
        font-size: 2.5rem;
    }
}

h1 {
    font-size: 28px;
    line-height: 1.25;
}

h2 {
    font-size: 22px;
    line-height: 1.3;
}

p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.about-section {
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    p { font-size: 16px; }
}