/* Общие сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Шапка сайта */
.header {
    height: 100px;
    background-color: #131432;
    color: white;
    display: flex;
    align-items: center;
    width: 100%;
}

.header__container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo {
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

/* Навигация */
.nav {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-size: 18px;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav__link:hover {
    opacity: 0.8;
}

/* Секция "О нас" с изображением */
.about-section {
    background-color: #0D0D21;
    width: 100%;
}

.about-section__container {
    max-width: 1232px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: row-reverse; /* Текст справа, картинка слева */
    gap: 40px;
    align-items: center;
}

.about-section__content {
    flex: 1;
}

.about-section__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
}

.about-section__text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: white;
}

.about-section__image {
    width: 458px;
    height: 314px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.about-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .about-section__container {
        flex-direction: column; /* Картинка уходит под текст */
        gap: 30px;
    }
    
    .about-section__image {
        width: 100%;
        max-width: 458px;
        height: auto;
        aspect-ratio: 458 / 314; /* Сохраняем пропорции */
    }
    
    .about-section__title {
        font-size: 28px;
    }
    
    .about-section__text {
        font-size: 16px;
    }
}

/* Секция "Наши направления" */
.directions-section {
    background-color: #0D0D21;
    width: 100%;
}

.directions-section__container {
    max-width: 1232px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.directions-section__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: white;
    margin-bottom: 40px;
    text-align: center;
}

.directions-section__grid {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: center;
    width: 100%;
}

.direction-card {
    display: block;
    width: 285px;
    height: 300px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.direction-card:hover {
    transform: scale(1.02);
}

.direction-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.1);
    display: block;
}

.direction-card__title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-weight: 700; /* Жирный */
    font-size: 18px;
    color: white;
    background-color: transparent; /* Прозрачный фон */
    padding: 0;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 3); /* Легкая тень для читаемости на светлых участках */
}

/* Адаптивность */
@media screen and (max-width: 1024px) {
    .directions-section__grid {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .directions-section__container {
        padding: 40px 20px;
    }
    
    .directions-section__title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .directions-section__grid {
        gap: 15px;
    }
    
    .direction-card {
        width: calc(50% - 8px);
        max-width: 285px;
        height: auto;
        aspect-ratio: 285 / 300;
    }
    
    .direction-card__title {
        font-size: 16px;
        font-weight: 700;
    }
}

@media screen and (max-width: 480px) {
    .direction-card {
        width: 100%;
        max-width: 285px;
    }
}

/* Секция контактов */
.contacts-section {
    background-color: #0D0D21;
    width: 100%;
}

.contacts-section__container {
    max-width: 1232px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center;
    gap: 60px; /* Расстояние между блоками */
    flex-wrap: wrap; /* На случай если не помещаются */
}

.contacts-section__left,
.contacts-section__right {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: white;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    font-size: 20px;
    opacity: 0.9;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .contacts-section__container {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .contacts-section__left,
    .contacts-section__right {
        font-size: 16px;
        justify-content: center;
    }
    
    .contact-icon {
        font-size: 18px;
    }
}

/* Секция галереи */
.gallery-section {
    background-color: #0D0D21;
    width: 100%;
}

.gallery-section__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 20px;
    height: 404px; /* Фиксированная высота секции */
    display: flex;
    flex-direction: column;
}

.gallery-section__title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: white;
    margin-bottom: 30px;
    text-align: left;
}

.gallery-section__grid {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
}

.gallery-item {
    display: block;
    width: 224px;
    height: 224px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.1);
    display: block;
}

/* Lightbox (модальное окно) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox__image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox__caption {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
    padding: 0 20px;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1000;
}

.lightbox__close:hover {
    opacity: 0.8;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev {
    left: 20px;
}

.lightbox__nav--next {
    right: 20px;
}

/* Адаптивность */
@media screen and (max-width: 1280px) {
    .gallery-section__grid {
        gap: 15px;
    }
    
    .gallery-item {
        width: calc(20% - 12px);
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media screen and (max-width: 768px) {
    .gallery-section__container {
        padding: 40px 20px;
        height: auto; /* Убираем фиксированную высоту на мобильных */
        min-height: 404px;
    }
    
    .gallery-section__grid {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .gallery-item {
        width: calc(33.333% - 10px);
    }
}

@media screen and (max-width: 480px) {
    .gallery-item {
        width: calc(50% - 8px);
    }
    
    .lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox__nav--prev {
        left: 10px;
    }
    
    .lightbox__nav--next {
        right: 10px;
    }
}/* Страница контактов */
.contacts-page {
    background-color: #0D0D21;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contacts-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1232px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

/* Карточка с контактами */
.contacts-card {
    background-color: #131432;
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.contacts-card__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
}

.contacts-card__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: white;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contacts-card__info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contacts-card__item {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contacts-card__social {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    color: white;
    font-size: 32px;
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-block;
}

.social-link:hover {
    opacity: 0.8;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .contacts-card {
        padding: 40px 20px;
    }
    
    .contacts-card__title {
        font-size: 28px;
    }
    
    .contacts-card__subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .contacts-card__info {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .contacts-card__item {
        font-size: 16px;
    }
    
    .social-link {
        font-size: 28px;
    }
}

@media screen and (max-width: 480px) {
    .contacts-card {
        padding: 30px 15px;
    }
    
    .contacts-card__title {
        font-size: 24px;
    }
}