*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #000;
    overflow-x: hidden;
    color: #fff;
}

/* Фон */
.background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url("src/background.png") center/cover no-repeat;
    filter: blur(0);
    transform: scale(1);
    transition: filter 0.3s ease, transform 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

/* Логотип */
.logo {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.logo.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.logo.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
}

/* TG кнопка */
.tg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 50px;
    background: #37AEE2;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    opacity: 0;
    z-index: 2;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tg-button.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.tg-button.hide {
    opacity: 0;
    transform: translateX(-50%) scale(0.85);
}

/* Контейнеры персонажей */
.character-container {
    position: absolute;
    top: 40%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
}

.character-container.alex-container {
    left: 20%;
    transform: translate(-50%, -50%) scale(0.85);
}

.character-container.steve-container {
    right: 20%;
    transform: translate(50%, -50%) scale(0.85);
}

.character-container.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.character-container.steve-container.show {
    transform: translate(50%, -50%) scale(1);
}

.character-container.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
}

.character-container.steve-container.hide {
    transform: translate(50%, -50%) scale(0.85);
}

/* Изображения персонажей — индивидуальные размеры */
.character-container.alex-container img.character { width: 140px; }
.character-container.steve-container img.character { width: 150px; }

/* Подписи */
.character-label {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    color: #424242;
    font-weight: 600;
}

/* Галерея */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 300px;
    gap: 20px;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.7s ease;
    position: relative;
    z-index: 1;
}

.gallery.visible {
    opacity: 1;
}

.gallery img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    transition: all 0.7s ease;
    background-color: transparent;
}

.gallery img.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: imgSmoothAppear 0.8s ease forwards;
}

@keyframes imgSmoothAppear {
    0%   { opacity: 0; transform: translateY(50px) scale(0.8); }
    60%  { opacity: 1; transform: translateY(-5px) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Прайс-лист и правила */
.pricing-rules {
    position: relative;
    z-index: 2;
    margin: 500px auto;
    max-width: 800px;
    padding: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.6;
}

.pricing-rules h2 {
    font-size: 24px;
    margin-bottom: 12px;
    text-align: center;
}

.pricing-rules ul,
.pricing-rules ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.pricing-rules ul li ul {
    margin-left: 20px;
}

.pricing-rules ul li,
.pricing-rules ol li {
    margin-bottom: 8px;
}

/* Адаптив */
@media (max-width: 768px) {
    .gallery img { width: 45vw; height: auto; }
    .gallery { gap: 10px; padding: 10px; margin-top: 250px; }
    .tg-button { top: 32%; font-size: 22px; padding: 15px 40px; }
    .logo { top: 22%; width: 400px; }
    .character-container { width: 120px; top: 42%; }
    .pricing-rules { font-size: 16px; padding: 15px; }
    .pricing-rules h2 { font-size: 20px; }
}

@media (max-width: 480px) {
    .gallery img { width: 80%; height: auto; }
    .gallery { gap: 5px; padding: 5px; margin-top: 180px; }
    .tg-button { top: 28%; font-size: 18px; padding: 12px 30px; }
    .logo { top: 20%; width: 300px; }

    /* Опускаем персонажей ниже кнопки TG */
    .character-container.alex-container { top: 55%; }
    .character-container.steve-container { top: 55%; }

    /* Уменьшаем размеры персонажей для телефона */
    .character-container.alex-container img.character { width: 130px; }
    .character-container.steve-container img.character { width: 140px; }

    /* Прайс-лист уменьшение */
    .pricing-rules { font-size: 14px; padding: 10px; margin-top: 600px; }
    .pricing-rules h2 { font-size: 18px; }
}