* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    color: white;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px;
    text-align: center;
}

/* =========================
   HERO
   ========================= */

.hero {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 45px;
}

.hero-badge {
    display: inline-block;

    padding: 8px 18px;
    margin-bottom: 18px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);

    color: white;

    font-size: 14px;
    font-weight: bold;

    backdrop-filter: blur(6px);
}

.hero h1 {
    margin-top: 0;
    margin-bottom: 15px;
}

.hero .subtitle {
    margin-bottom: 0;
}

h1 {
    color: white;
    font-size: 55px;
    margin-bottom: 15px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin-bottom: 40px;
}


/* =========================
   КАТЕГОРИИ
   ========================= */

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.category-card {
    position: relative;
    cursor: pointer;
}

.category-card input {
    position: absolute;
    opacity: 0;
}

.category-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 180px;
    padding: 20px;

    background: white;
    border: 3px solid transparent;
    border-radius: 20px;

    box-sizing: border-box;

    transition: transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.category-content:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.category-card input:checked + .category-content {
    border-color: #667eea;
    background: #f3f4ff;

    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25),
    0 0 0 2px rgba(102, 126, 234, 0.08);
}

.category-icon {
    display: block;
    font-size: 38px;
    margin-bottom: 12px;
}

.category-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #302c3b;
}

.category-description {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.4;
    color: #85808f;
}
/* =========================
   СПЕЦИАЛЬНЫЕ КАРТОЧКИ
   ========================= */

/* Для двоих */

.couple-card:hover .category-content {
    background: #fff4f7;
    border-color: darkred;
}

/* Удиви меня */

.surprise-card {
    text-decoration: none;
    color: inherit;
    display: block;
}


.surprise-card:hover .category-content {
    border-color: #a99bea;
    color: #6656c7;
}


/* =========================
   ВРЕМЯ
   ========================= */

.time-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;

    margin-top: 25px;
}

.time-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 65px;

    background: white;

    border: 3px solid transparent;
    border-radius: 15px;

    cursor: pointer;

    font-size: 16px;
    font-weight: bold;
    color: #333;

    transition: transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.time-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.time-card input {
    position: absolute;
    opacity: 0;
}

.time-card:has(input:checked) {
    border-color: #667eea;

    background: #f3f4ff;

    color: #667eea;

    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}


/* =========================
   КНОПКИ
   ========================= */

.button {
    display: block;

    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 30px;

    border-radius: 30px;

    background: white;
    color: #667eea;

    border: 2px solid white;

    text-decoration: none;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;

    transition: background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.button:hover {
    background: #f4f4f4;

    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* =========================
   ФОРМЫ
   ========================= */

form {
    text-align: center;
}

label {
    font-weight: 700;
    color: #444;
}

input,
textarea,
select {
    width: 100%;

    padding: 12px;

    border: 1px solid #ddd;
    border-radius: 10px;

    font-size: 16px;
    font-family: Arial, sans-serif;
}

textarea {
    resize: vertical;
}

form button {
    border: none;
    cursor: pointer;
}

form .button {
    display: inline-block;
    width: auto;
}


/* =========================
   КАРТОЧКА ЗАНЯТИЯ
   ========================= */

.activity-card {
    background: white;

    border-radius: 25px;

    padding: 40px;

    max-width: 650px;

    margin: 40px auto;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.activity-card h2 {
    font-size: 32px;

    margin-top: 0;

    color: #333;
}

.activity-description {
    font-size: 19px;

    line-height: 1.6;

    color: #555;
}

.duration {
    display: inline-block;

    background: #f0ecff;

    color: #6046c7;

    padding: 10px 18px;

    border-radius: 30px;

    margin-top: 15px;

    font-weight: bold;
}

.back-button {
    display: inline-block;

    margin-top: 20px;

    color: white;

    text-decoration: none;

    font-size: 17px;
}

.button-container {
    display: flex;
    justify-content: center;
}

.auth-form {
    max-width: 400px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form input {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    box-sizing: border-box;
}

.auth-form label {
    color: white;
    font-weight: bold;
    margin-top: 8px;
}

.auth-form .button {
    margin-top: 20px;
}

.auth-link {
    text-align: center;
    position: relative;
    margin-top: 20px;
    top: 20px;
    color: white;
}

.auth-link a {
    font-weight: bold;
    color: aliceblue;
    text-decoration: underline;
}

.auth-error,
.auth-success {
    text-align: center;
    margin: 15px 0;
}

/* Верхнее меню */

.top-menu {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.top-menu-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-link {
    display: inline-block;
    padding: 12px 14px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    margin-top: 20px;
    margin: 2px;
}

.top-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.register-link {
    border: 1px solid rgba(255, 255, 255, 0.7);
    margin: 18px;
}

.username {
    color: white;
    font-weight: bold;
    margin-right: 5px;
}

.logout-form {
    display: inline;
    margin: 0;
}

.logout-button {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}


/* Лайк и избранное */

.activity-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.activity-actions form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    width: auto;
    flex: 0 0 auto;
}

.icon-button {
    border: none;
    background: transparent;
    padding: 5px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.icon-button:hover {
    transform: scale(1.2);
}

.icon-button.active {
    transform: scale(1.05);
}


/* Сообщение гостю */

.auth-message {
    display: none;
    text-align: center;
    margin: 15px auto;
    padding: 12px 18px;
    max-width: 500px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #555;
    font-size: 14px;
}

.auth-message a {
    color: #667eea;
    font-weight: bold;
    text-decoration: none;
}

.auth-message.show {
    display: block;
}

.favorite-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
}

/* =========================
   СТРАНИЦА ЗАНЯТИЯ
   ========================= */

.activity-card {
    color: black;
    background: white;
    border-radius: 25px;
    padding: 35px;
    margin-top: 30px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);

    text-align: left;
}

.activity-card h2 {
    text-align: center;

    font-size: 30px;

    color: #333;

    margin-top: 10px;
    margin-bottom: 20px;
}

.activity-description {
    font-size: 18px;
    line-height: 1.6;

    color: #555;

    text-align: center;

    margin-bottom: 25px;
}


/* КАРТИНКА */

.activity-image {
    width: 100%;

    margin-bottom: 25px;

    overflow: hidden;

    border-radius: 20px;
}

.activity-image img {
    display: block;

    width: 100%;
    max-height: 400px;

    object-fit: cover;
}


/* ОСНОВНАЯ ИНФОРМАЦИЯ */

.activity-info {
    display: flex;

    justify-content: center;

    gap: 30px;

    margin: 25px 0;

    padding: 15px;

    background: #f5f6ff;

    border-radius: 15px;

    color: #555;

    font-size: 16px;
}


/* СЕКЦИИ */

.activity-section {
    margin-top: 25px;

    padding: 20px;

    background: #f8f8fb;

    border-radius: 15px;
}

.activity-section h3 {
    margin-top: 0;
    margin-bottom: 12px;

    color: #333;

    font-size: 20px;
}

.activity-text {
    margin: 0;

    color: #555;

    font-size: 16px;

    line-height: 1.7;

    white-space: pre-line;
}


/* ИНТЕРЕСНЫЙ ФАКТ */

.fact-section {
    background: #fff8e7;

    border-left: 5px solid #f0b429;
}


/* МАТЕРИАЛЫ */

.activity-materials {
    margin-top: 25px;

    padding: 20px;

    background: #f3f4ff;

    border-radius: 15px;

    text-align: center;
}

.activity-materials h3 {
    margin-top: 0;
    margin-bottom: 18px;

    color: #333;
}


/* КНОПКИ МАТЕРИАЛОВ */

.material-button {
    display: inline-block;

    margin: 5px;

    padding: 12px 20px;

    border-radius: 25px;

    background: white;

    color: #667eea;

    border: 2px solid #667eea;

    text-decoration: none;

    font-weight: bold;

    transition: transform 0.2s,
    background 0.2s,
    color 0.2s;
}

.material-button:hover {
    transform: translateY(-2px);

    background: #667eea;

    color: white;
}


/* НАВИГАЦИЯ */

.activity-navigation {
    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

    margin-top: 20px;
}

.activity-navigation .button {
    margin-top: 10px;
}

.favorite-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.favorite-meta-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hero-link:hover {
    text-decoration: none;
}

/* Персональная рекомендация */
.personal-recommendation {
    margin: 0 0 28px;
    padding: 22px 24px;

    border-radius: 18px;
    text-align: center;

    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.22),
            rgba(255, 255, 255, 0.10)
    );

    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
            0 8px 24px rgba(40, 25, 90, 0.12),
            0 0 18px rgba(255, 255, 255, 0.08);

    animation: recommendationAppear 0.8s ease-out both;
}

/* Крупная надпись «Для тебя» */
.personal-recommendation-title {
    margin-bottom: 10px;

    color: indigo;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;

    text-shadow: 0 3px 14px rgba(40, 25, 90, 0.2);
}

/* Пояснение под заголовком */
.personal-recommendation-text {
    color: darkblue;
    font-size: 16px;
    line-height: 1.6;
}

/* Плавное появление снизу */
@keyframes recommendationAppear {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Личный раздел */

.hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.personal-section {
    text-align: center;
    margin-top: 30px;
}

.personal-section h2 {
    margin-bottom: 25px;
}

.favorites-section-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 32px;
    margin-bottom: 38px;

    padding: 16px 36px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.95);
    color: #667eea;

    font-size: 18px;
    font-weight: 700;

    text-decoration: none;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.favorites-section-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Челлендж дня */

.daily-challenge {
    margin: 0 auto 0;
    max-width: 650px;
    padding: 28px;
    border-radius: 24px;

    background: linear-gradient(
            135deg,
            rgba(255, 193, 7, 0.95),
            rgba(255, 111, 0, 0.95)
    );

    color: white;

    box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.2);

    text-align: center;
}

.daily-challenge-title {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 18px;
}

.daily-challenge-content h3 {
    font-size: 22px;
    margin: 0 0 12px;
}

.daily-challenge-content p {
    margin: 0 auto;
    max-width: 520px;
    line-height: 1.6;
    font-size: 16px;
}

.daily-challenge-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.daily-challenge-actions form {
    margin: 0;
}

.challenge-start-button,
.challenge-decline-button,
.challenge-complete-button {
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge-start-button {
    background: white;
    color: #f57c00;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.challenge-decline-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.challenge-complete-button {
    background: white;
    color: #e65100;
    padding: 14px 30px;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.challenge-start-button:hover,
.challenge-decline-button:hover,
.challenge-complete-button:hover {
    transform: translateY(-2px);
}

.daily-challenge-status {
    margin-top: 22px;
    font-size: 17px;
    font-weight: 700;
}

.challenge-streak {
    margin-top: -15px;
    margin-bottom: 22px;

    font-size: 18px;
    font-weight: 700;

    color: white;
}

/* Имя пользователя */

.profile-name-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.profile-name {
    margin: 0;
}

.edit-name-button {
    border: none;
    background: transparent;
    padding: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.edit-name-button:hover {
    transform: scale(1.15);
}

.name-edit-form {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.name-edit-form.show {
    display: flex;
}

.name-edit-form input {
    width: auto;
    min-width: 120px;
    max-width: 280px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
    text-align: center;
}

.save-name-button {
    padding: 7px 14px;
    border: none;
    border-radius: 10px;
    background: white;
    color: #667eea;
    font-weight: bold;
    cursor: pointer;
}
/* =========================
   ИМЯ В ЛИЧНОМ РАЗДЕЛЕ
   ========================= */

.profile-name-form {
    margin: 35px 0 0;
    text-align: center;
}

.profile-name-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 42px;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.profile-name.hide {
    display: none;
}

.profile-name-input {
    display: none;

    width: 10ch;
    max-width: 30ch;

    padding: 5px 9px;

    border: none;
    border-radius: 10px;

    background: white;
    color: #333;

    font-size: 24px;
    font-weight: 700;
    text-align: center;

    outline: none;
}

.profile-name-input.show {
    display: inline-block;
}

.edit-name-button {
    border: none;
    background: transparent;

    padding: 3px;

    font-size: 18px;
    line-height: 1;

    color: white;

    cursor: pointer;

    transition: transform 0.2s ease;
}

.edit-name-button:hover {
    transform: scale(1.15);
}

.challenge-streak {
    margin-top: 12px;
    text-align: center;

    font-size: 18px;
    font-weight: 700;
    color: white;
}

.username-link {
    text-decoration: none;
    color: white;
    cursor: pointer;
}

.username-link:hover {
    text-decoration: underline;
}
/* =========================
   КНОПКИ ЧЕЛЛЕНДЖА
   ========================= */

.challenge-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;

    margin-top: 28px;
}

.challenge-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 150px;
    padding: 13px 24px;

    border-radius: 14px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease;
}

.challenge-button:hover {
    transform: translateY(-2px);
}

.challenge-button.primary {
    background: white;
    color: #667eea;
    border: 2px solid white;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.challenge-button.primary:hover {
    background: #f7f7ff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.challenge-button.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.challenge-button.secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.daily-challenge {
    margin-top: 10px;
    margin-bottom: 30px;
}

.daily-challenge h2 {
    margin-bottom: 22px;
}

.daily-challenge p {
    margin-bottom: 0;
}

/* =========================
   ФИНАЛЬНЫЙ ВИД ЛИЧНОГО РАЗДЕЛА
   ========================= */

/* Имя пользователя */
.profile-name-form {
    margin-top: 55px;
    margin-bottom: 8px;
    text-align: center;
}

.profile-name-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 52px;
}

.profile-name {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    color: white;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
    letter-spacing: 0.3px;
}

.edit-name-button {
    border: none;
    background: transparent;
    padding: 5px;
    font-size: 20px;
    line-height: 1;
    color: white;
    cursor: pointer;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edit-name-button:hover {
    transform: scale(1.15);
}


/* Серия выполненных челленджей */
.challenge-streak {
    margin-top: 6px;
    margin-bottom: 42px;

    text-align: center;

    font-size: 22px;
    font-weight: 800;
    color: white;

    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}


/* Кнопки челленджа */
.daily-challenge-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.daily-challenge-actions form {
    margin: 0;
}


/* Приступить */
.challenge-start-button {
    min-width: 155px;
    padding: 13px 26px;

    border: 2px solid white;
    border-radius: 15px;

    background: white;
    color: #f57c00;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease;
}

.challenge-start-button:hover {
    transform: translateY(-3px);
    background: #fffaf5;
    box-shadow: 0 11px 24px rgba(0, 0, 0, 0.22);
}


/* Отказаться */
.challenge-decline-button {
    min-width: 155px;
    padding: 13px 26px;

    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.16);
    color: white;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
            transform 0.2s ease,
            background 0.2s ease,
            box-shadow 0.2s ease;
}

.challenge-decline-button:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* Завершить занятие */
.challenge-complete-button {
    min-width: 220px;
    padding: 14px 30px;

    border: 2px solid white;
    border-radius: 15px;

    background: white;
    color: #e65100;

    font-family: inherit;
    font-size: 17px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease;
}

.challenge-complete-button:hover {
    transform: translateY(-3px);
    background: #fff8f2;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}


/* Немного воздуха внутри карточки */
.daily-challenge {
    margin-top: 10px;
    margin-bottom: 35px;
}

/* ========================================
   ЛИЧНЫЙ КАБИНЕТ — НОВЫЙ МАКЕТ
   ======================================== */

.section-page {
    min-height: 100vh;
}


/* Шапка на всю ширину */

.section-header {
    width: 100%;
    min-height: 76px;
    box-sizing: border-box;

    padding: 12px 4.5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.section-header-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.section-header-brand .hero-badge {
    margin: 0;
}

.section-header-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.section-header-username {
    color: white;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.section-header .logout-form {
    margin: 0;
}

.section-header .logout-button {
    font-family: inherit;
    cursor: pointer;
}


/* Две колонки */

.section-layout {
    width: min(1400px, 92%);
    margin: 42px auto 60px;

    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.6fr);
    align-items: start;
    gap: 32px;
}


/* Левая колонка */

.section-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-card {
    padding: 34px 24px;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);

    box-shadow: 0 14px 35px rgba(40, 25, 90, 0.13);

    text-align: center;
}

.profile-name-form {
    margin: 0;
    text-align: center;
}

.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.profile-name {
    max-width: 100%;
    overflow-wrap: anywhere;

    color: white;
    font-size: clamp(25px, 2.5vw, 36px);
    font-weight: 800;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.profile-name.hide {
    display: none;
}

.profile-name-input {
    display: none;

    box-sizing: content-box;
    width: 10ch;
    max-width: 100%;

    padding: 7px 10px;
    border: 0;
    border-radius: 10px;

    background: white;
    color: #333;

    font: inherit;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.profile-name-input.show {
    display: inline-block;
}

.edit-name-button {
    flex-shrink: 0;

    padding: 5px;
    border: 0;
    background: transparent;

    color: white;
    font-size: 19px;
    cursor: pointer;

    transition: transform 0.2s ease;
}

.edit-name-button:hover {
    transform: scale(1.12);
}


/* Огонёк */

.challenge-streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin: 15px 0 0;

    color: white;
    font-size: 23px;
    font-weight: 800;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.streak-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: none;
}


/* Избранное */

.favorites-section-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    box-sizing: border-box;

    margin-top: 30px;
    padding: 17px 20px;

    border-radius: 15px;
    background: white;
    color: #667eea;

    font-size: 17px;
    font-weight: 800;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.favorites-section-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}


/* Небольшой текст в левой колонке */

.profile-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 18px 20px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.9);
}

.profile-note-icon {
    font-size: 21px;
}

.profile-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}


/* Правая колонка: карточка челленджа */

.section-main {
    min-width: 0;
}

.daily-challenge {
    box-sizing: border-box;
    width: 100%;

    margin: 0;
    padding: 30px clamp(22px, 3vw, 42px);

    border-radius: 25px;

    background: linear-gradient(135deg, #ffb900 0%, #ff7900 100%);
    color: white;

    box-shadow: 0 18px 42px rgba(65, 35, 90, 0.2);
}

.daily-challenge-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    margin-bottom: 26px;
}

.daily-challenge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 54px;
    height: 54px;

    border-radius: 17px;
    background: rgba(255, 255, 255, 0.2);

    font-size: 29px;
}

.daily-challenge-title {
    margin: 0;
    color: white;

    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
}

.daily-challenge-subtitle {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}


/* Содержимое занятия */

.daily-challenge-content {
    min-width: 0;
}

.challenge-image {
    width: 100%;
    max-height: 340px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 18px;
}

.challenge-image img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.challenge-activity-title {
    margin: 0 0 12px;

    color: white;
    font-size: clamp(23px, 2.3vw, 30px);
    line-height: 1.25;
    font-weight: 800;
}

.challenge-activity-description {
    margin: 0;

    color: rgba(255, 255, 255, 0.96);
    font-size: 16px;
    line-height: 1.7;
}

.challenge-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;

    margin-top: 20px;
}

.challenge-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.13);
    color: white;

    font-size: 14px;
    font-weight: 600;
}


/* Инструкция, польза, факт */

.challenge-info-section {
    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.challenge-info-section h3,
.challenge-materials h3 {
    margin: 0 0 10px;

    color: white;
    font-size: 18px;
    font-weight: 800;
}

.challenge-info-section p {
    margin: 0;

    color: rgba(255, 255, 255, 0.96);
    font-size: 15px;
    line-height: 1.75;

    white-space: pre-line;
}

.challenge-fact {
    padding: 18px;
    border: 0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.14);
}


/* Материалы */

.challenge-materials {
    margin-top: 25px;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.challenge-material-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.challenge-material-links .material-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 11px 16px;

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.16);
    color: white;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: background 0.2s ease, transform 0.2s ease;
}

.challenge-material-links .material-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.27);
}


/* Кнопки внизу карточки */

.daily-challenge-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;

    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.daily-challenge-actions form {
    margin: 0;
}

.challenge-start-button,
.challenge-decline-button,
.challenge-complete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 23px;

    border-radius: 13px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    cursor: pointer;

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease;
}

.challenge-start-button,
.challenge-complete-button {
    border: 2px solid white;
    background: white;
    color: #e66a00;

    box-shadow: 0 7px 18px rgba(110, 50, 0, 0.15);
}

.challenge-decline-button {
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.13);
    color: white;
}

.challenge-start-button:hover,
.challenge-decline-button:hover,
.challenge-complete-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(110, 50, 0, 0.2);
}

.challenge-decline-button:hover {
    background: rgba(255, 255, 255, 0.23);
}


/* Статусы */

.daily-challenge-status {
    margin-top: 28px;
    padding: 17px 20px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.17);
    color: white;

    font-size: 17px;
    font-weight: 800;
    text-align: center;
}

.empty-challenge {
    min-height: 200px;
}

/* ========================================
   ЛИЧНЫЙ КАБИНЕТ — ЦЕНТРИРОВАННЫЙ МАКЕТ
   ======================================== */

/* Центральная область с полями по бокам */
.section-layout {
    width: min(1080px, calc(100% - 64px));
    margin: 36px auto 60px;

    display: grid;
    grid-template-columns: 280px minmax(0, 650px);
    justify-content: center;
    align-items: start;
    gap: 28px;
}

/* Левая колонка */
.section-sidebar {
    min-width: 0;
}

/* Карточка челленджа */
.section-main {
    min-width: 0;
    width: 100%;
    max-width: 650px;
    justify-self: center;
}

.daily-challenge {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 26px 30px;
    box-sizing: border-box;
    border-radius: 22px;

}

/* Заголовок карточки */
.daily-challenge-heading {
    margin-bottom: 35px;
}

.daily-challenge-title {
    font-size: 27px;
    justify-content: center;
}

/* Немного компактнее содержимое */
.challenge-image {
    max-height: 280px;
}

.challenge-image img {
    max-height: 280px;
}

.challenge-activity-title {
    font-size: 25px;
}

.challenge-activity-description {
    font-size: 15px;
    line-height: 1.65;
}

/* Кнопки — по центру карточки */
.daily-challenge-actions {
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.daily-challenge-actions form {
    display: flex;
    justify-content: center;
    margin: 0;
}

.challenge-start-button,
.challenge-decline-button,
.challenge-complete-button {
    min-width: 150px;
    padding: 11px 20px;
    font-size: 14px;
}

/* ========================================
   ЕДИНАЯ ШАПКА САЙТА
   ======================================== */

.site-header {
    width: 100%;
    min-height: 76px;
    box-sizing: border-box;

    padding: 12px clamp(20px, 4.5%, 72px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-header-brand .hero-badge {
    margin: 0;
}

.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 22px;
}

.site-header-username,
.site-header-link {
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-header-username {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 0;
    border: 0;
    background: transparent;
    cursor: pointer;

    transition: opacity 0.2s ease;
}

.site-header-link:hover,
.site-header-username:hover {
    opacity: 0.78;
}

.site-header-register {
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 11px;
}

.site-header-logout-form {
    display: inline-flex;
    margin: 0;
}

/* Правильное расположение шапки и содержимого */
body.page-with-header {
    display: block;
    min-height: 100vh;
}

body.page-with-header .site-header {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

body.page-with-header > .container {
    margin-left: auto;
    margin-right: auto;
}
/* =========================
   СВЁРНУТЫЕ КАРТОЧКИ ИЗБРАННОГО
   ========================= */

.favorite-accordion {
    padding: 0;
    overflow: hidden;
}

/* Заголовок карточки */
.favorite-accordion-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 24px 30px;

    color: #333;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;

    cursor: pointer;
    list-style: none;

    transition: background 0.2s ease;
}

/* Убираем стандартный маркер */
.favorite-accordion-title::-webkit-details-marker {
    display: none;
}

.favorite-accordion-title::marker {
    content: "";
}

.favorite-accordion-title:hover {
    background: #f5f4ff;
}

/* Стрелка */
.favorite-accordion-icon {
    flex-shrink: 0;
    color: #667eea;
    font-size: 26px;
    line-height: 1;

    transition: transform 0.25s ease;
}

/* Поворот стрелки при раскрытии */
.favorite-accordion[open] .favorite-accordion-icon {
    transform: rotate(180deg);
}

/* Содержимое раскрытой карточки */
.favorite-accordion-content {
    padding: 0 30px 30px;
    animation: favoriteContentAppear 0.25s ease;
}

.favorite-accordion-content .activity-description {
    margin-top: 0;
}

.favorite-accordion-content form {
    margin-top: 20px;
}

@keyframes favoriteContentAppear {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   ГАЛОЧКА ВЫПОЛНЕНИЯ
   ========================= */

.icon-button.completion-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;


    border-radius: 50%;

    background: white;
    color: black;

    font-size: 25px;
    font-weight: 800;
    line-height: 1;

    transition:
            transform 0.2s ease,
            background 0.2s ease,
            color 0.2s ease,
            box-shadow 0.2s ease;
}

/* Занятие уже выполнялось */
.icon-button.completion-button.completed {

    color: black;


}

/* Наведение */
.icon-button.completion-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(46, 157, 87, 0.25);
}

/* Фокус с клавиатуры */
.icon-button.completion-button:focus-visible {
    outline: 3px solid rgba(46, 157, 87, 0.4);
    outline-offset: 3px;
}
/* =========================
   КНОПКА «МОЯ АКТИВНОСТЬ»
   ========================= */

.my-activity-section-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 20px 20px;

    border: 2px solid #2e9d57;
    border-radius: 30px;

    background: #e4f7e9;
    color: #247a42;

    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    transition:
            background 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.my-activity-section-button:hover {
    background: #2e9d57;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(46, 157, 87, 0.22);
}

.my-activity-section-button:focus-visible {
    outline: 3px solid rgba(46, 157, 87, 0.4);
    outline-offset: 3px;
}

/* =========================
   КНОПКА ОТМЕНЫ ВЫПОЛНЕНИЯ
   ========================= */

.icon-button.cancel-completion-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;

    border-radius: 50%;
    color: #d9534f;

    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;

    transition:
            transform 0.2s ease,
            background 0.2s ease,
            color 0.2s ease,
            box-shadow 0.2s ease;
}

.icon-button.cancel-completion-button:hover {
    transform: scale(1.1);
    background: #d9534f;
    color: #fff;
    box-shadow: 0 4px 12px rgba(217, 83, 79, 0.25);
}

.icon-button.cancel-completion-button:focus-visible {
    outline: 3px solid rgba(217, 83, 79, 0.35);
    outline-offset: 3px;
}

/* Адаптация под браузеры */

.activity-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 25px;
    width: 100%;
    flex-wrap: nowrap;
}

.activity-actions > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.activity-actions form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: auto;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;
    margin: 0;

    border: none;
    outline: none;

    background: transparent;
    color: #333;

    font-family: Arial, sans-serif;
    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;

    -webkit-tap-highlight-color: transparent;

    transition: transform 0.2s;
}

.icon-button:hover {
    transform: scale(1.2);
}

.icon-button.active {
    transform: scale(1.05);
}

.activity-actions form {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;
}

.activity-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;
    width: 100%;

    margin-top: 25px;
}

.challenge-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
    text-align: center;
}

.challenge-meta-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Для персональных занятий в календаре */
.day-details-header { display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.day-details-header h2 {
    margin: 0;
}

.personal-activity-toggle {
    flex-shrink: 0;
}

.personal-activity-button {
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    background: #667eea;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.personal-activity-button:hover {
    background: #5668d8;
    transform: translateY(-1px);
}

.personal-activity-form {
    margin-bottom: 25px;
}

.personal-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.personal-activity-item {
    padding: 18px 20px;
    border-radius: 14px;
    background: #f7f7fb;
    border-left: 4px solid #667eea;
}

.personal-activity-item h3 {
    margin: 0 0 8px;
    color: #333;
    overflow-wrap: anywhere;
}

.personal-activity-item p {
    margin: 0 0 10px;
    color: #666;
    line-height: 1.5;
}

.personal-activity-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.personal-activity-item a:hover {
    text-decoration: underline;
}
.personal-activity-form {
    margin-top: 20px;
    padding: 24px;
    background: #f8f9ff;
    border-radius: 18px;
    border: 1px solid #e6e8f5;
}

.personal-activity-field {
    margin-bottom: 18px;
}

.personal-activity-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.personal-activity-field input,
.personal-activity-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #d9dced;
    border-radius: 12px;
    background: white;
    color: #333;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.personal-activity-field input {
    height: 48px;
}

.personal-activity-field textarea {
    min-height: 110px;
    resize: vertical;
}

.personal-activity-field input::placeholder,
.personal-activity-field textarea::placeholder {
    color: #aaa;
}

.personal-activity-field input:focus,
.personal-activity-field textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    background: #fff;
}

.personal-activity-submit {
    width: 100%;
    margin-top: 5px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.personal-activity-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.personal-activity-submit:active:not(:disabled) {
    transform: translateY(0);
}

.personal-activity-submit:disabled {
    background: #d4d6df;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.personal-activity-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f7f7fb;
    border-left: 4px solid #667eea;
}

.personal-activity-content {
    flex: 1;
    min-width: 0;
}

.personal-activity-delete-form {
    flex-shrink: 0;
    margin: 0;
}

.personal-activity-delete {
    padding: 9px 13px;
    border: none;
    border-radius: 10px;
    background: #fff0f0;
    color: #d9534f;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease,
    transform 0.2s ease;
}

.personal-activity-delete:hover {
    background: #ffe0e0;
    transform: translateY(-1px);
}

.personal-activity-delete:active {
    transform: translateY(0);
}

/* Запомнить меня */

.remember-me {
    margin: 15px 0 20px;
}

.remember-me label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #667eea;
}

/* =========================
   Достижения в личном кабинете
   ========================= */

.section-achievements {
    margin: 25px 0;
    text-align: center;
}

.section-achievements-empty {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.section-achievements-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.section-achievement-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-achievement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.section-achievement-icon {
    font-size: 22px;
}

.section-achievement-title {
    font-size: 14px;
    font-weight: 600;
}

.section-achievements-link {
    display: inline-block;
    padding: 11px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-achievements-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.achievements-section-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 90px;

    box-sizing: border-box;

    background: white;
    border-radius: 20px;

    text-decoration: none;

    margin-top: 18px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.achievements-section-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.achievements-section-button:active {
    transform: translateY(0);
}

.achievements-section-button-title {
    font-size: 19px;
    font-weight: 700;
    color: #667eea;
}

.achievements-section-button-progress {
    margin-top: 6px;
    font-size: 14px;
    color: #777;
}

.achievements-section-button-progress strong {
    color: #667eea;
    font-weight: 700;
}

/* =========================
   MINI GAMES ADMIN
   ========================= */

.mini-games-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 25px;
}

.mini-game-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.mini-game-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.mini-game-info {
    min-width: 0;
}

.mini-game-title {
    font-size: 19px;
    font-weight: 700;
    color: #333;
}

.mini-game-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 14px;
    color: #777;
}

.mini-game-status {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
}

.mini-game-active {
    color: #35a66f;
}

.mini-game-inactive {
    color: #999;
}

.mini-game-description {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.mini-game-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.mini-game-edit-button,
.mini-game-delete-button {
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.mini-game-edit-button {
    background: #f0f1ff;
    color: #667eea;
    font-weight: 600;
}

.mini-game-edit-button:hover {
    background: #e5e7ff;
}

.mini-game-delete-button {
    background: #f5f5f5;
    color: #888;
}

.mini-game-delete-button:hover {
    background: #eeeeee;
    color: #d9534f;
}

.mini-game-edit-form {
    margin-top: 18px;
    padding: 20px;
    background: #f7f7ff;
    border-radius: 15px;
}

.admin-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.secondary-button {
    background: #eeeeee;
    color: #555;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.mini-game-tasks-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 10px;
    background: #f0f1ff;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.mini-game-tasks-button:hover {
    background: #e5e7ff;
}

.mini-game-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.mini-game-task-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 18px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.mini-game-task-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-game-task-content strong {
    color: #333;
}

.mini-game-task-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.empty-message {
    text-align: center;
    color: #888;
    padding: 25px;
}

.mini-game-task-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-game-task-status {
    font-size: 13px;
}

.mini-game-task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-game-task-edit-form {
    margin-top: 15px;
    padding: 18px;
    background: #f7f7ff;
    border-radius: 14px;
}

.word-game-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.word-game-description {
    color: #777;
    margin-bottom: 30px;
}

.word-game-task {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

.word-game-letters,
.word-game-answer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.word-game-letter,
.word-game-selected-letter {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    background: white;
    color: #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.word-game-letter:hover,
.word-game-selected-letter:hover {
    transform: translateY(-2px);
}

.word-game-letter:disabled {
    opacity: 0.35;
    cursor: default;
}

.word-game-selected-letter {
    background: #667eea;
    color: white;
}

.word-game-check {
    margin-top: 25px;
}

.word-game-result {
    min-height: 30px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
}

.word-game-result.success {
    color: #2e9d5b;
}

.word-game-result.error {
    color: #d9534f;
}

@media (max-width: 600px) {
    .day-details-header {
        align-items: flex-start;
        gap: 12px;
    }

    .day-details-header h2 {
        margin: 0;
    }

    .personal-activity-button {
        padding: 10px 14px;
        font-size: 14px;
    }
}

.activity-mini-game {
    margin: 30px 0;
    padding: 28px 20px;
    background: linear-gradient(135deg, #f5f3ff, #ffffff);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.activity-mini-game-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.activity-mini-game h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #667eea;
}

.activity-mini-game p {
    margin: 0 auto 20px;
    max-width: 500px;
    color: black;
}

.activity-mini-game-button {
    display: inline-block;
    margin-top: 5px;
    text-decoration: none;
}

.activity-mini-game-content {
    margin-top: 20px;
}

.mini-game-inline {
    margin-top: 20px;
}

.activity-mini-game-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* =========================
   MEMORY GAME
   ========================= */

.memory-game {
    margin-top: 20px;
}

.memory-game-board {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    gap: 12px;

    justify-content: center;

    margin: 20px auto;

    perspective: 1000px;
}

.memory-card {
    width: 120px;
    height: 120px;

    cursor: pointer;

    perspective: 1000px;
}

.memory-card-inner {
    position: relative;

    width: 100%;
    height: 100%;

    transform-style: preserve-3d;

    transition: transform 0.5s ease;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
    position: absolute;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    overflow: hidden;
}

.memory-card-front {
    background: #667eea;

    color: white;

    font-size: 36px;
    font-weight: bold;

    transform: rotateY(0deg);
}

.memory-card-back {
    background: white;

    transform: rotateY(180deg);
}

.memory-card-back img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.memory-card.matched {
    cursor: default;
}

.memory-card.matched .memory-card-inner {
    box-shadow: 0 0 0 3px #4caf50;
}

.memory-game-result {
    margin-top: 15px;

    text-align: center;

    font-weight: bold;
}

.memory-game-result.success {
    color: #2e7d32;
}

.memory-game-result.error {
    color: #c62828;
}

/* =========================================================
   🐊 КРОКОДИЛ
   ========================================================= */

.crocodile-game {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}


/* ---------- Настройка игры ---------- */

.crocodile-setup,
.crocodile-players-setup {
    animation: crocodileFadeIn 0.45s ease;
}

.crocodile-setup-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.crocodile-setup-group {
    margin-bottom: 20px;
}

.crocodile-setup-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.crocodile-setup select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e4e7f5;
    border-radius: 16px;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    margin: 9px;
}


/* ---------- Имена игроков ---------- */

.crocodile-player-input {
    margin-bottom: 14px;
}

.crocodile-player-input label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.crocodile-player-name-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 2px solid #e4e7f5;
    border-radius: 14px;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
}

.crocodile-player-name-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}


/* ---------- Игровое поле ---------- */

.crocodile-play {
    animation: crocodileFadeIn 0.45s ease;
}

.crocodile-round-type {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 8px;
}

.crocodile-player-name {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}


/* ---------- Таймер ---------- */

.crocodile-timer {
    width: fit-content;
    min-width: 110px;
    margin: 0 auto 24px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #f1f3ff;
    color: #667eea;
    font-size: 30px;
    font-weight: 900;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 8px 25px rgba(70, 75, 150, 0.12);
}


/* ---------- Передача устройства ---------- */

.crocodile-task-hidden {
    text-align: center;
    color: #777;
    font-size: 16px;
    margin-bottom: 20px;
}


/* ---------- Кнопка показать ---------- */

.crocodile-show-task-button {
    display: block;
    margin: 0 auto;
}


/* ---------- Карточка задания ---------- */

.crocodile-task {
    min-height: 190px;
    padding: 30px;
    box-sizing: border-box;

    align-items: center;
    justify-content: center;
    text-align: center;

    border-radius: 28px;

    background:
            radial-gradient(
                    circle at top left,
                    rgba(255, 255, 255, 0.95),
                    rgba(238, 240, 255, 0.95)
            );

    border: 3px solid rgba(102, 126, 234, 0.15);

    box-shadow:
            0 20px 50px rgba(74, 78, 150, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);

    color: #25264a;

    font-weight: 900;

    animation:
            crocodileTaskAppear 0.45s cubic-bezier(.2,.8,.2,1);
}


/* Одно слово */

.crocodile-task-short {
    font-size: 48px;
    letter-spacing: 1px;
}


/* Словосочетание */

.crocodile-task-medium {
    font-size: 34px;
    line-height: 1.25;
}


/* Длинное предложение */

.crocodile-task-long {
    font-size: 25px;
    line-height: 1.4;
}


/* ---------- Игровые кнопки ---------- */

.crocodile-game-actions {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

.crocodile-game-actions button {
    flex: 1;
    min-height: 58px;
    border: none;
    border-radius: 18px;

    font-size: 17px;
    font-weight: 800;

    cursor: pointer;

    transition:
            transform 0.15s ease,
            box-shadow 0.15s ease;
}

.crocodile-game-actions button:hover {
    transform: translateY(-2px);
}

.crocodile-game-actions button:active {
    transform: translateY(1px);
}

.crocodile-guessed-button {
    background: linear-gradient(135deg, #43d17b, #27ae60);
    color: white;

    box-shadow:
            0 10px 25px rgba(39, 174, 96, 0.25);
}

.crocodile-skip-button {
    background: #f0f1f7;
    color: #555;

    box-shadow:
            0 8px 20px rgba(50, 50, 80, 0.08);
}


/* ---------- Финал ---------- */

.crocodile-results {
    animation: crocodileFadeIn 0.6s ease;
}

.crocodile-winner {
    position: relative;
    overflow: hidden;

    margin-bottom: 28px;
    padding: 35px 25px;

    text-align: center;

    border-radius: 30px;

    background:
            linear-gradient(
                    135deg,
                    #fff8d8,
                    #fff1a8
            );

    border: 3px solid #f4d35e;

    box-shadow:
            0 20px 50px rgba(180, 145, 30, 0.22);
}

.crocodile-winner-title {
    font-size: 20px;
    font-weight: 800;
    color: #8b6b00;
    margin-bottom: 10px;
}

.crocodile-winner-name {
    font-size: 38px;
    font-weight: 900;
    color: #5d4700;
}

.crocodile-winner-score {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #806500;
}


/* ---------- Заголовок результатов ---------- */

.crocodile-scoreboard-title {
    margin: 10px 0 14px;

    font-size: 20px;
    font-weight: 800;
}


/* ---------- Строки игроков ---------- */

.crocodile-score-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;

    gap: 12px;

    margin-bottom: 10px;
    padding: 16px 18px;

    border-radius: 18px;

    background: #f7f8ff;

    box-shadow:
            0 5px 15px rgba(60, 65, 120, 0.06);

    animation: crocodileScoreAppear 0.35s ease both;
}

.crocodile-score-place {
    font-weight: 900;
    color: #667eea;
}

.crocodile-score-name {
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crocodile-score-value {
    font-weight: 900;
    color: #667eea;
}


/* ---------- Сообщение сохранения ---------- */

.crocodile-save-message {
    margin-top: 18px;
    text-align: center;

    font-weight: 700;
    color: #667eea;
}


/* ---------- Анимации ---------- */

@keyframes crocodileFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes crocodileTaskAppear {
    from {
        opacity: 0;
        transform: scale(0.88) rotate(-1deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}


@keyframes crocodileScoreAppear {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ---------- Телефон ---------- */

@media (max-width: 600px) {

    .crocodile-task {
        min-height: 160px;
        padding: 22px;
    }

    .crocodile-task-short {
        font-size: 38px;
    }

    .crocodile-task-medium {
        font-size: 27px;
    }

    .crocodile-task-long {
        font-size: 21px;
    }

    .crocodile-game-actions {
        flex-direction: column;
    }

    .crocodile-winner-name {
        font-size: 30px;
    }
}

/* =========================================================
   🎉 САЛЮТ КРОКОДИЛА
   ========================================================= */

.crocodile-confetti {
    position: fixed;

    top: -20px;

    width: 10px;
    height: 18px;

    z-index: 99999;

    pointer-events: none;

    border-radius: 2px;

    animation-name: crocodileConfettiFall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}


@keyframes crocodileConfettiFall {

    0% {
        opacity: 1;
        transform:
                translateY(0)
                rotate(0deg);
    }

    25% {
        transform:
                translateY(25vh)
                translateX(20px)
                rotate(180deg);
    }

    60% {
        transform:
                translateY(65vh)
                translateX(-30px)
                rotate(420deg);
    }

    100% {
        opacity: 0;
        transform:
                translateY(110vh)
                translateX(40px)
                rotate(720deg);
    }
}

/* =========================================================
   🐊 КРОКОДИЛ — стартовая кнопка
   ========================================================= */

.crocodile-setup {
    min-height: 280px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


/* Иконка игры */

.crocodile-setup > div:first-child {
    font-size: 54px;
    margin-bottom: 14px;
}


/* Большая кнопка */

.crocodile-start-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 250px;
    min-height: 72px;

    padding: 16px 34px;

    margin: 20px auto 0;

    border: none;
    border-radius: 22px;

    background: linear-gradient(
            135deg,
            #667eea,
            #764ba2
    );

    color: white;

    font-size: 21px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
            0 12px 28px rgba(102, 126, 234, 0.30);

    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease;
}


.crocodile-start-button:hover {
    transform: translateY(-3px);

    box-shadow:
            0 16px 34px rgba(102, 126, 234, 0.38);
}


.crocodile-start-button:active {
    transform: translateY(1px);
}



/* Телефон */

/* =========================
   MEMORY GAME — MOBILE
   ========================= */

@media (max-width: 600px) {

    .memory-game {
        width: 100%;
        margin-top: 15px;
    }

    .memory-game-board {
        width: 100%;
        max-width: 360px;

        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 8px;

        padding: 0 10px;
        box-sizing: border-box;
    }

    .memory-card {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;

        min-width: 0;
    }

    .memory-card-front {
        font-size: 28px;
    }

    .memory-card-front,
    .memory-card-back {
        border-radius: 10px;
    }

    .memory-game-result {
        padding: 0 15px;
        font-size: 16px;
    }
}

@media (max-width: 380px) {

    .memory-game-board {
        max-width: 320px;
        gap: 6px;
        padding: 0 6px;
    }

    .memory-card-front {
        font-size: 24px;
    }

    .memory-card-front,
    .memory-card-back {
        border-radius: 8px;
    }
}

@media (max-width: 600px) {

    .crocodile-setup {
        min-height: 240px;
    }

    .crocodile-start-button {
        min-width: 220px;
        min-height: 64px;

        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .challenge-meta {
        flex-direction: column;
        gap: 10px;
    }

    .challenge-meta-item {
        width: 100%;
        justify-content: center;
    }
}


/* Компактный вид на телефонах */
@media (max-width: 600px) {
    .favorite-accordion-title {
        padding: 20px;
        font-size: 18px;
    }

    .favorite-accordion-content {
        padding: 0 20px 20px;
    }
}

/* Учитываем настройку уменьшения анимации */
@media (prefers-reduced-motion: reduce) {
    .favorite-accordion-icon,
    .favorite-accordion-title {
        transition: none;
    }

    .favorite-accordion-content {
        animation: none;
    }
}

/* Адаптация для телефонов */

@media (max-width: 600px) {
    .site-header {
        min-height: 64px;
        padding: 10px 16px;
        gap: 12px;
    }

    .site-header-brand .hero-badge {
        font-size: 13px;
        padding: 9px 12px;
    }

    .site-header-actions {
        gap: 12px;
    }

    .site-header-username,
    .site-header-link {
        font-size: 13px;
    }

    .site-header-register {
        padding: 8px 10px;
    }

    
@media (max-width: 400px) {
    .site-header {
        align-items: flex-start;
    }

    .site-header-actions {
        gap: 8px 12px;
    }
}

/* Планшеты */
@media (max-width: 850px) {
    .section-layout {
        width: min(650px, calc(100% - 40px));
        margin: 28px auto 45px;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .section-main {
        max-width: none;
        justify-content: center;
        text-align: center;
    }

    .daily-challenge {
        max-width: none;
        justify-content: center;
        text-align: center;
    }
}

/* Телефоны */
@media (max-width: 560px) {
    .section-layout {
        width: calc(100% - 28px);
        margin-top: 20px;
    }

    .daily-challenge {
        padding: 22px 18px;
        justify-content: center;
    }

    .daily-challenge-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .daily-challenge-actions form,
    .daily-challenge-actions button {
        width: 100%;
    }
}

/* Адаптация под планшеты и телефоны */

@media (max-width: 850px) {
    .section-layout {
        grid-template-columns: minmax(0, 1fr);
        width: min(680px, 92%);
        gap: 24px;
        margin-top: 28px;
    }

    .section-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 16px;
    }

    .profile-card {
        padding: 25px 18px;
    }

    .profile-note {
        align-items: center;
    }
}

@media (max-width: 560px) {
    .section-header {
        min-height: 64px;
        padding: 10px 4%;
        gap: 10px;
    }

    .section-header .hero-badge {
        font-size: 13px;
        padding: 9px 12px;
    }

    .section-header-user {
        gap: 12px;
    }

    .section-header-username {
        font-size: 13px;
    }

    .section-header .logout-button {
        font-size: 13px;
        padding: 5px 0;
    }

    .section-layout {
        width: 92%;
        margin-top: 20px;
    }

    .section-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-note {
        display: none;
    }

    .daily-challenge {
        padding: 23px 19px;
        border-radius: 20px;
        justify-content: center;
    }

    .daily-challenge-icon {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .challenge-meta {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .daily-challenge-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .daily-challenge-actions form,
    .daily-challenge-actions button {
        width: 100%;
    }

    .challenge-material-links {
        flex-direction: column;
    }

    .challenge-material-links .material-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* АДАПТИВНОСТЬ */

@media (max-width: 700px) {

    .activity-card {
        padding: 20px;
    }

    .activity-card h2 {
        font-size: 24px;
    }

    .activity-description {
        font-size: 16px;
    }

    .activity-info {
        flex-direction: column;

        align-items: center;

        gap: 10px;
    }

    .material-button {
        display: block;

        margin: 10px 0;
    }

}
/* =========================
   ПЛАНШЕТ
   ========================= */

@media (max-width: 900px) {

    .categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .time-options {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================
   ТЕЛЕФОН
   ========================= */

@media (max-width: 600px) {

    .container {
        width: 90%;
        padding: 30px 10px;
    }

    h1 {
        font-size: 32px;
    }

    .hero {
        margin-top: 15px;
        margin-bottom: 30px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 7px 15px;
    }

    .subtitle {
        font-size: 17px;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .category-content {
        min-height: 140px;
    }

    .time-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-card {
        font-size: 14px;
    }

    .activity-card {
        padding: 25px;
    }

}

@media (max-width: 560px) {
    .personal-recommendation {
        margin-bottom: 22px;
        padding: 18px 16px;
        border-radius: 15px;
    }

    .personal-recommendation-title {
        font-size: 27px;
    }

    .personal-recommendation-text {
        font-size: 14px;
    }
}

/* Учитываем настройку пользователя на уменьшение анимации */
@media (prefers-reduced-motion: reduce) {
    .personal-recommendation {
        animation: none;
    }
}

@media (max-width: 480px) {
     .activity-actions {
        gap: 14px;
     }

     .icon-button {
            width: 42px;
            height: 42px;
            font-size: 30px;
     }
}