body {
    background-image: url("../img/var.bg1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Montserrat", sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto;
}

.back-button {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100;
}

.back-button-link {
    text-decoration: none;
    color: #fff;
    font-size: 1.2em;
    padding: 10px 20px;
    background-color: transparent; 
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-image: linear-gradient(45deg, #a66ef5, #ba23ac) 1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-button-link:hover {
    transform: scale(1.1);
    background-color: rgba(166, 110, 245, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    color: #ba23ac;
}


/* Уменьшаем отступ сверху у контейнера */
.content-container {
    text-align: center;
    width: 90%;
    max-width: 1200px;
    margin-top: 50px; /* Снова уменьшаем отступ сверху, чтобы дать больше места */
}

/* Изменяем стили заголовка h1 */
h1 {
    font-size: 3.5em;
    font-weight: bold;
    text-shadow: none;
    color: #fff;
    margin-bottom: 30px; /* Чуть больший отступ от заголовка до карточек */
}

/* расположение и расстояние между карточками */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px; /* Здесь мы изменим значение */
    justify-items: center;
}

/* Изменяем размеры и отступы карточек */
.section-card {
    text-decoration: none;
    color: #ffffff;
    width: 95%; /* Чуть увеличили ширину карточки */
    max-width: 500px; /* Увеличиваем максимальную ширину */
    padding: 15px; /* Уменьшаем внутренние отступы */
    min-height: 150px; /* Уменьшаем минимальную высоту карточки */
    background: rgba(186, 35, 172, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Убираем отступ после "Месяц N" */
.section-card h2 {
    margin-top: 5px; /* Уменьшаем отступ сверху у заголовка */
    margin-bottom: 0; /* Убираем отступ снизу у заголовка */
    font-size: 1.1em; 
}

.section-card .section-icon {
    margin-bottom: 0; /* Убираем отступ после иконки */
}

.section-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(186, 35, 172, 0.8);
}

.section-icon {
    font-size: 2em;
    margin-bottom: 10px;
}