/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* Фоновое изображение */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.7;
}

/* Затемнение фона для лучшей читаемости */
.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.45);
}

/* Основной контент */
.main-content {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Заголовок */
.page-title {
    text-align: center;
    margin: 15px 0 35px 0;
    color: #354D73;
    font-size: 50px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
	letter-spacing: 0.01em;
    font-weight: 800;
}

/* Контейнеры для изображений */
.top-images-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.top-image {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    text-align: center;
    width: 280px;
    transition: all 0.3s ease;
}

.top-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.top-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.top-image p {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    padding-top: 5px;
}

/* Контейнер кнопок */
.button-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px auto;
    max-width: 1100px;
}

/* Стили для увеличенных кнопок с БОЛЬШИМ ШРИФТОМ */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 15px;
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
    color: #2c3e50;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    min-height: 95px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.button:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.25);
    border-color: #3498db;
}

.button::after {
    content: "›";
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-size: 24px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.button:hover::after {
    color: white;
    opacity: 1;
    transform: translateX(2px);
}

/* Текст в кнопках - БОЛЬШОЙ ШРИФТ */
.button-text {
    font-size: 14px; /* Увеличен с 12px */
    font-weight: 500;
    line-height: 1.4;
    padding: 0 10px;
    display: block;
    width: 100%;
}

/* Адаптивность */
@media (max-width: 1100px) {
    .button-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        max-width: 800px;
    }
    
    .top-images-container {
        gap: 25px;
    }
    
    .top-image {
        width: 250px;
    }
    
    .button {
        min-height: 90px;
        padding: 16px 13px;
    }
    
    .button-text {
        font-size: 13.5px;
    }
}

@media (max-width: 768px) {
    .button-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .top-images-container {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .top-image {
        width: 220px;
        padding: 12px;
    }
    
    .top-image img {
        height: 140px;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .button {
        min-height: 85px;
        padding: 14px 12px;
        border-radius: 7px;
    }
    
    .button-text {
        font-size: 13px;
        line-height: 1.35;
    }
    
    .button::after {
        font-size: 22px;
        bottom: 10px;
        right: 12px;
    }
}

@media (max-width: 600px) {
    .button-container {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 500px;
    }
    
    .top-images-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .top-image {
        width: 100%;
        max-width: 300px;
    }
    
    body {
        padding: 15px;
    }
    
    .button {
        min-height: 80px;
        padding: 12px 10px;
    }
    
    .button-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .top-image {
        width: 100%;
        max-width: 280px;
    }
    
    .top-image img {
        height: 130px;
    }
    
    .top-image p {
        font-size: 14px;
    }
    
    .button {
        min-height: 75px;
        padding: 10px 8px;
    }
    
    .button-text {
        font-size: 12.5px;
        line-height: 1.3;
    }
    
    .button::after {
        font-size: 20px;
        bottom: 8px;
        right: 10px;
    }
}

/* Анимация при загрузке */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.button-container .button {
    animation: fadeInUp 0.6s ease forwards;
}

/* Улучшенное отображение на больших экранах */
@media (min-width: 1400px) {
    .main-content {
        max-width: 1400px;
    }
    
    .button-container {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        gap: 22px;
    }
    
    .top-image {
        width: 300px;
    }
    
    .top-image img {
        height: 180px;
    }
    
    .button {
        min-height: 100px;
        padding: 20px 18px;
    }
    
    .button-text {
        font-size: 14.5px;
    }
}

/* Эффект наведения для кнопок */
.button:hover .button-text {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Оптимизация для очень больших экранов */
@media (min-width: 1600px) {
    .button-text {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .button {
        min-height: 105px;
    }
}

/* Улучшенная читаемость текста на кнопках */
.button-text {
    letter-spacing: 0.01em;
    text-shadow: 0.5px 0.5px 1px rgba(255, 255, 255, 0.8);
}

.button:hover .button-text {
    text-shadow: 0.5px 0.5px 1px rgba(255, 255, 255, 0.3);
}