/* Стили только для главной страницы */

/* Жестко центрируем всё на главной, чтобы flex не раскидывал блоки вширь */
body {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.big-btn-main {
    display: block; 
    width: 100%; 
    max-width: 390px; /* Чтобы кнопка не была на весь монитор */
    padding: 20px; 
    background: #fff; 
    color: #000;
    text-align: center; 
    border-radius: 50px; 
    text-decoration: none;
    font-weight: 700; 
    letter-spacing: 2px; 
    margin: 30px auto;
}

.section-title { 
    font-size: 0.7rem; 
    letter-spacing: 4px; 
    opacity: 0.4; 
    text-align: center; 
    margin: 40px 0 20px; 
    text-transform: uppercase;
    width: 100%;
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    width: 100%;
    max-width: 420px; /* Ограничиваем ширину сетки */
}

.gallery-img { 
    width: 100%; 
    aspect-ratio: 1; 
    object-fit: cover; 
    border-radius: 18px; 
    border: 1px solid rgba(255,255,255,0.1); 
}

.map-card { 
    overflow: hidden; 
    border-radius: 25px; 
    border: 1px solid rgba(255,255,255,0.1); 
    width: 100%;
    max-width: 420px;
}

.yandex-map { 
    border: none; 
    filter: invert(90%) hue-rotate(180deg) brightness(0.8); 
    display: block; 
}

/* ФУТЕР */
.site-footer {
    width: 100%; 
    max-width: 420px;
    padding: 40px 20px;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px;
    box-sizing: border-box;
    text-align: center;
}

.footer-contacts { margin-bottom: 10px; }
.footer-contacts p { margin: 5px 0; }

.tg-link-action {
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center;
    gap: 10px;
    background: #24A1DE; 
    color: #fff !important; 
    padding: 12px 25px;
    border-radius: 50px; 
    text-decoration: none !important; 
    font-weight: bold;
}

.tg-link-action img { 
    width: 18px !important; 
    height: 18px !important; 
    margin: 0 !important;
}

.footer-copyright { 
    font-size: 0.6rem; 
    color: rgba(255,255,255,0.3); 
    letter-spacing: 2px; 
    margin-top: 10px;
}
/* ОБНОВЛЕННЫЙ БЛОК АКЦИЙ — СТИЛЬ "СЕВЕР" */
/* Контейнер для свайпа акций */
#promo-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 20px; /* Уменьшили отступ, чтобы видеть края соседних акций */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
#promo-list::-webkit-scrollbar { display: none; }
.promo-wrapper {
    overflow: hidden;
    padding: 10px 0;
}

.promo-item {
    flex: 0 0 85vw; /* Каждая карточка занимает 85% ширины */
    max-width: 320px;
    min-height: 160px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
    /* Убрали прозрачность, чтобы не "терять" акции */
    opacity: 1 !important; 
    transform: none !important;
}
.promo-item.focused {
    transform: scale(1);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.promo-item:only-child {
    margin: 0 auto;
}

/* Декоративное свечение сверху */
.promo-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.promo-item h3 {
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.promo-item p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* Красная полоска снизу стала аккуратнее */
.promo-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #ff4d4d;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 10px rgba(255, 77, 77, 0.8);
}
/* Контейнер для барабана */
.gallery-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Выход за пределы контейнера на всю ширину экрана */
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Прячем скроллбар */
}
.gallery-container::-webkit-scrollbar { display: none; }

/* Контейнер-ограничитель */
.gallery-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden; /* Чтобы не было горизонтальной полосы прокрутки у всего сайта */
}

/* Сам барабан */
/* Обновляем барабан для режима 3-х фото */
.gallery-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 40px 0; /* Место для увеличения центральной фото */
    gap: 0; /* Убираем зазор, чтобы расчет ширины был точным */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab; /* Показываем, что можно тянуть */
}

.gallery-carousel:active { cursor: grabbing; }

/* Центрируем первую и последнюю фото */
.gallery-carousel::before,
.gallery-carousel::after {
    content: '';
    flex: 0 0 33.33%; /* Добавляем пустые места по краям */
}

.gallery-img {
    flex: 0 0 33.33%; /* Каждая фотка занимает ровно треть экрана */
    max-width: 33.33%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 20px;
    scroll-snap-align: center;
    transition: all 0.4s ease;
    opacity: 0.3; /* Боковые — прозрачные */
    transform: scale(0.8); /* Боковые — меньше */
    filter: blur(2px); /* Легкий блюр для боковых */
}

.gallery-img.focused {
    opacity: 1;
    transform: scale(1.1); /* Центральная — больше */
    filter: blur(0);
    z-index: 2;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);

}
