.main-page-content {
    margin: auto;
    margin-top: 100px;
    max-width: 1168px;
}

@media (max-width: 576px) {
    .main-page-content {
        padding: 16px;
    }
}

.grid-2-1 {
    display: grid;
    gap: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .grid-2-1 {
        grid-template-columns: 1fr 1fr 1fr; /* теперь колонки равной ширины */
    }
}

@media (max-width: 767px) {
    .grid-2-1 {
        grid-template-columns: 1fr;
    }
}

.aspect-ratio-box {
    position: relative;
    width: 100%;
    padding-top: 75%;
    margin-bottom: 24px;
}

.aspect-ratio-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 12px;
}

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/slider/slide1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 90vh;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 40px;
}

.hero-section h1 {
    margin-bottom: 20px;
    color: white;
    font-size: 40px;
    text-align: center;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-section h2 {
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .hero-section h2 {
        font-size: 20px;
    }
}

/* Специфичные стили для страницы bookform */
.site-bookform #main {
    margin-bottom: -160px !important;
}

.site-bookform #main > .container {
    padding-bottom: 0px !important;
}

.site-bookform .hero-section {
    min-height: 95vh !important;
    margin-bottom: 0px !important;
}