/* ============================================================
   🎛️ ГЛАВНАЯ ПАНЕЛЬ УПРАВЛЕНИЯ САЙТОМ
   (ВСЁ РЕГУЛИРУЕТСЯ ЗДЕСЬ! МЕНЯЙ ЗНАЧЕНИЯ ПО ВКУСУ!)
   ============================================================ */
:root {
    /* ========================================
       📱 1. ШАПКА САЙТА (ВЕРХНЯЯ ЧАСТЬ)
       ======================================== */
    --header-height: 65px;                      /* Высота всей шапки */
    --header-bg: rgba(15, 28, 36, 0.98);        /* Цвет фона шапки */
    
    --header-icon-size: 28px;                   /* Размер иконок Фото/Видео */
    --header-gap: 20px;                         /* Расстояние между иконками */
    --header-right-margin: -3px;                /* Сдвиг правого блока */
    
    /* ========================================
       🎬 НАСТРОЙКИ ПРИВЕТСТВЕННОГО ВИДЕО
       ======================================== */
    --welcome-text-size: 15px;              /* Размер шрифта текста под видео (обычно 15px + 3px) */
    --welcome-video-padding: 10px;          /* Отступ видео от краёв бабла (сверху, слева, справа) */
    --welcome-text-padding-top: 20px;       /* Отступ текста от видео */
    
    /* ========================================
       💬 2. СООБЩЕНИЯ (БАБЛЫ)
       ======================================== */
    --message-bubble-width: 85%;                /* Ширина обычных сообщений (85% = стандарт) */
    --welcome-bubble-width: 100%;               /* Ширина ПЕРВОГО бабла с видео (100% = на весь экран) */
    
    --msg-user-bg: #005c4b;                     /* Цвет фона ТВОИХ сообщений (зелёный) */
    --msg-bot-bg: #1f2c34;                      /* Цвет фона сообщений БОТА (серый) */
    --msg-text-size: 15px;                      /* Размер текста в сообщениях */
    
    /* ========================================
       ⌨️ 3. ПОЛЕ ВВОДА СООБЩЕНИЯ
       ======================================== */
    --input-container-bg: rgba(15, 28, 36, 0.0);/* Цвет фона ПОД капсулой (0.0 = прозрачный) */
    --input-container-padding: 3px;             /* Отступы сверху/снизу капсулы */
    
    --input-area-height: 50px;                  /* Высота серой капсулы */
    --input-bg-color: #2a3942;                  /* Цвет фона капсулы */
    --input-radius: 50px;                       /* Закругление (50px = овал) */
    
    --input-font-size: 16px;                    /* Размер текста при вводе */
    --input-placeholder-color: #8696a0;         /* Цвет текста "Введите сообщение" */
    --input-text-left-margin: 10px;             /* Отступ текста от карандаша */
    
    --input-icon-size: 28px;                    /* Размер иконки карандаша */
    --send-btn-size: 50px;                      /* Размер зелёной кнопки отправки */
    
    /* ========================================
       📲 4. НИЖНЕЕ МЕНЮ (ПОДВАЛ)
       ======================================== */
    --footer-bg: #0f1c24;                       /* Цвет фона подвала */
    --footer-padding-top: 5px;                  /* Отступ СВЕРХУ (до иконок) */
    --footer-padding-bottom: 3px;               /* Отступ СНИЗУ (до низа экрана) */
    
    --footer-pad-width: 55px;                   /* Ширина серой подушки под иконкой */
    --footer-pad-height: 30px;                  /* Высота серой подушки */
    --footer-pad-color: #1f2c34;                /* Цвет подушки */
    --footer-pad-radius: 18px;                  /* Закругление подушки */
    --footer-icon-size: 20px;                   /* Размер иконки внутри подушки */
}

/* ============================================================
   🔤 ПОДКЛЮЧЕНИЕ ШРИФТОВ (Fira Sans)
   ============================================================ */
@font-face {
    font-family: 'Fira Sans';
    src: url('../fonts/FiraSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Fira Sans';
    src: url('../fonts/FiraSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Fira Sans';
    src: url('../fonts/FiraSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* ============================================================
   🌍 БАЗОВЫЕ НАСТРОЙКИ СТРАНИЦЫ
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Fira Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0f1c24;
    display: flex;
    justify-content: center;
    height: 100dvh;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   📱 ГЛАВНЫЙ КОНТЕЙНЕР (ЭКРАН ТЕЛЕФОНА)
   ============================================================ */
.chat-container {
    width: 100%;
    max-width: 480px;
    background-image: url('../images/Obshie-img/background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ============================================================
   🔝 ШАПКА САЙТА (ВЕРХНЯЯ ЧАСТЬ)
   ============================================================ */
.chat-header {
    background-color: var(--header-bg);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a3b45;
    z-index: 10;
    height: var(--header-height);
}

/* --- Левая часть: Аватар и Имя --- */
.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2a3b45;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #00e676;
    border-radius: 50%;
    border: 2px solid #0f1c24;
}

.text-info h1 {
    font-size: 17px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.text-info .bot-status {
    color: white;
    font-size: 13px;
    font-weight: 400;
    margin-top: 4px;
}

/* --- Правая часть: Кнопки Фото/Видео --- */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-right: var(--header-right-margin);
}

.header-actions {
    display: flex;
    justify-content: center;
    gap: var(--header-gap);
    width: 100%;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.action-btn img {
    width: var(--header-icon-size);
    height: var(--header-icon-size);
    margin-bottom: 2px;
    object-fit: contain;
}

.action-btn span {
    color: white;
    font-size: 11px;
}

/* ============================================================
   💬 ОБЛАСТЬ ЧАТА (СООБЩЕНИЯ / БАБЛЫ)
   ============================================================ */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- Анимация появления сообщения --- */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Общие настройки сообщений --- */
.message {
    max-width: var(--message-bubble-width);
    display: flex;
    flex-direction: column;
}

.bot-message {
    align-self: flex-start;
    animation: slideUpFade 0.6s ease-out forwards;
}

.user-message {
    align-self: flex-end;
    animation: slideUpFade 0.3s ease;
}

/* ========================================
   🎬 ПЕРВЫЙ БАБЛ С ВИДЕО (ПРИВЕТСТВИЕ)
   ======================================== */
#welcome-message {
    max-width: var(--welcome-bubble-width) !important;
}

#welcome-message .message-bubble {
    width: 100%;
    padding: var(--welcome-video-padding); /* Отступ от краёв бабла */
}

#welcome-message .video-container {
    width: 100%;
    margin: 0; /* Убираем лишние отступы */
}

#welcome-message #welcome-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px 15px 0 0;
}

/* Текст под видео */
#welcome-message .msg-text-content {
    padding-top: var(--welcome-text-padding-top) !important; /* Отступ от видео */
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    font-size: var(--welcome-text-size) !important; /* Крупнее на 3px */
    line-height: 1.5;
}

/* --- Стили пузыря БОТА --- */
.message-bubble {
    background-color: var(--msg-bot-bg);
    border-radius: 0 15px 15px 15px;
    padding: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.msg-text-content {
    padding: 0 10px 10px 10px;
    color: white;
    font-size: var(--msg-text-size);
    line-height: 1.4;
    font-weight: 400;
}

/* --- Стили пузыря ПОЛЬЗОВАТЕЛЯ --- */
.user-message .msg-text {
    background-color: var(--msg-user-bg);
    color: white;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    font-size: var(--msg-text-size);
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    word-wrap: break-word;
}

.msg-time {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #8696a0;
    margin-top: 4px;
}

/* --- Разделитель "Спрашивайте" --- */
.msg-divider {
    text-align: center;
    margin: 10px 0;
}

.msg-divider span {
    background-color: #1f2c34;
    color: #8696a0;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   ⌨️ ПОЛЕ ВВОДА СООБЩЕНИЯ (НИЖНЯЯ ЧАСТЬ)
   ============================================================ */
.chat-input-area {
    background: var(--input-container-bg);
    padding: var(--input-container-padding);
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

/* --- Серая капсула --- */
.input-wrapper {
    flex: 1;
    background-color: var(--input-bg-color);
    border-radius: var(--input-radius);
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 0;
    border: none;
    min-height: var(--input-area-height);
}

/* --- Иконка карандаша --- */
.input-icon {
    width: var(--input-icon-size);
    height: var(--input-icon-size);
    opacity: 0.8;
    flex-shrink: 0;
    padding-right: 0;
    box-sizing: content-box;
    object-fit: contain;
}

/* --- Текстовое поле --- */
.input-wrapper textarea {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: var(--input-font-size);
    font-weight: 400;
    resize: none;
    font-family: 'Fira Sans', sans-serif;
    height: 20px;
    max-height: 100px;
    overflow-y: auto;
    padding: 0;
    line-height: 20px;
    display: flex;
    align-items: center;
    margin-left: var(--input-text-left-margin);
}

.input-wrapper textarea::placeholder {
    color: var(--input-placeholder-color);
    font-size: var(--input-font-size);
}

/* --- Зелёная кнопка отправки --- */
.send-btn {
    background: #00a884;
    border: none;
    width: var(--send-btn-size);
    height: var(--send-btn-size);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 0;
}

.send-btn img {
    width: 26px;
    margin-left: 4px;
}

/* ============================================================
   📲 НИЖНЕЕ МЕНЮ (ПОДВАЛ)
   ============================================================ */
.bottom-menu {
    background-color: var(--footer-bg);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-top: var(--footer-padding-top);
    padding-bottom: var(--footer-padding-bottom);
    padding-left: 10px;
    padding-right: 10px;
    border-top: none;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 30%;
    text-align: center;
    background: transparent;
}

/* --- Серая подушка под иконкой --- */
.menu-icon-bg {
    background-color: var(--footer-pad-color);
    width: var(--footer-pad-width);
    height: var(--footer-pad-height);
    border-radius: var(--footer-pad-radius);
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.menu-item:active .menu-icon-bg {
    background-color: #3b4f5a;
}

.menu-icon-bg img {
    width: var(--footer-icon-size);
    height: var(--footer-icon-size);
    object-fit: contain;
}

.menu-item span {
    font-weight: 700;
    font-size: 13px;
    color: white;
    margin-bottom: 2px;
}

/* ============================================================
   🎬 ПРИВЕТСТВЕННОЕ ВИДЕО
   ============================================================ */
.video-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

#welcome-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px 15px 0 0;
    margin: 0;
    padding: 0;
}

/* --- Кнопка "Повторить видео" --- */
.replay-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 168, 132, 0.9);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.replay-btn:hover {
    background: rgba(0, 168, 132, 1);
}

/* Регулятор громкости (как кнопка PLAY) */
.volume-control {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 168, 132, 0.9);
    padding: 8px 12px;
    border-radius: 50%; /* КРУГЛАЯ! */
    width: 40px;
    height: 40px;
    justify-content: center;
    z-index: 10;
    transition: width 0.3s, border-radius 0.3s, padding 0.3s;
    cursor: pointer;
}

/* Когда ползунок раскрыт */
.volume-control.expanded {
    width: auto;
    border-radius: 20px;
    padding: 8px 15px;
}

#volume-icon {
    font-size: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

#volume-slider {
    display: none; /* СКРЫТ ПО УМОЛЧАНИЮ! */
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

/* Когда раскрыт - показываем ползунок */
.volume-control.expanded #volume-slider {
    display: block;
}

#volume-icon {
    font-size: 18px;
    order: -1; /* Иконка слева */
}

#volume-slider {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #2a3942;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #2a3942;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

/* --- Печатающийся текст --- */
.typewriter-text {
    display: inline;
}

/* ============================================================
   ⏳ АНИМАЦИЯ "БОТ ПЕЧАТАЕТ..."
   ============================================================ */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--msg-bot-bg);
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    min-width: calc(7ch + 30px);
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots div {
    width: 6px;
    height: 6px;
    background: #8696a0;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.typing-dots div:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

.typing-text {
    font-style: italic;
}

/* ============================================================
   🪟 МОДАЛЬНЫЕ ОКНА
   ============================================================ */
.modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #0f1c24;
    width: 95%;
    max-height: 95dvh;
    border-radius: 12px;
    position: relative;
    padding: 20px;
    text-align: center;
    color: white;
    overflow-y: auto;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    cursor: pointer;
    z-index: 101;
}

.modal-header-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.avatar-small img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.modal-instruction {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    flex-shrink: 0;
}

/* ============================================================
   🖼️ СЛАЙДЕР ФОТОГРАФИЙ
   ============================================================ */
.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: none;
    overflow: hidden;
}

.slide-img {
    max-width: 80%;
    max-height: 100%;
    height: auto;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    margin: 0;
    display: block;
}

.slider-arrow {
    width: 25px;
    cursor: pointer;
    padding: 5px 0px;
    filter: invert(1);
    flex-shrink: 0;
    z-index: 6;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    flex-grow: 1;
    margin-bottom: 10px;
}

.stars-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.stars-rating img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* ============================================================
   🎥 СПИСОК ВИДЕО В МОДАЛКЕ
   ============================================================ */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 20px;
}

.video-wrapper {
    width: 100%;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    cursor: pointer;
}

.video-title {
    text-align: left;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e9edef;
    font-weight: 500;
    padding-left: 5px;
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

.video-wrapper.vertical iframe {
    aspect-ratio: 9/16;
}

.video-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: transform 0.2s, background-color 0.2s;
}

.video-wrapper:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(0, 0, 0, 0.8);
}

.play-button-overlay img {
    width: 25px;
    height: 25px;
    margin-left: 4px;
    object-fit: contain;
}

/* ============================================================
   📞 КОНТАКТЫ В МОДАЛКАХ
   ============================================================ */
.big-avatar-container {
    margin-top: 10px;
    margin-bottom: 10px;
}

.big-avatar {
    width: 110px;
    border-radius: 50%;
    border: 3px solid #00e676;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
}

.social-icons img {
    width: 55px;
    margin-bottom: 8px;
}

.contact-list {
    text-align: left;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-group h4 {
    font-size: 14px;
    color: #8696a0;
    font-weight: 400;
    margin-bottom: 5px;
}

.contact-group p, .contact-group a {
    font-size: 16px;
    color: white;
    font-weight: 500;
}

.contact-group a.big-phone-link {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 10px;
    color: #54656f;
    margin-top: 20px;
    text-align: center;
    line-height: 1.2;
}

.social-icons-small {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.social-icons-small img {
    width: 36px;
}

/* ============================================================
   🍪 COOKIES (ВНИЗУ СТРАНИЦЫ)
   ============================================================ */
.cookies-footer {
    background-color: #05090c;
    padding: 8px 10px;
    text-align: center;
    width: 100%;
    font-size: 10px;
    color: #54656f;
    line-height: 1.3;
}

.cookies-footer a {
    color: #8696a0;
    text-decoration: underline;
    cursor: pointer;
}

/* ============================================================
   🎬 ПРЕЛОАДЕР (ЭКРАН ЗАГРУЗКИ)
   ============================================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); /* Белый 65% прозрачности */ /*Последняя цифры 0,2, контролирует прозрачность прелоадера */
    backdrop-filter: blur(25px); /* Размытие фона */
    -webkit-backdrop-filter: blur(25px); /* Для Safari */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    background: rgba(0, 0, 0, 0.5); /* Чёрный круг 50% прозрачности */
    border-radius: 50%;
    width: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 30px;
}

.preloader-text {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600; /* SemiBold */
    font-size: 22px;
    color: white; /* БЕЛЫЙ ТЕКСТ! */
    line-height: 1.3;
    text-align: center;
}

/* Состояние "Загрузился... / Открыть сайт" */
.preloader-text.clickable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.preloader-text.clickable .small-text {
    font-size: 16px;
    font-weight: 500;
}

.preloader-text.clickable .big-text {
    font-size: 22px;
    font-weight: 700;
}

/* Анимированные точки */
.preloader-dots {
    display: flex;
    gap: 5px;
    font-size: 30px;
    color: white; /* БЕЛЫЙ! */
    font-weight: 600;
}

.preloader-dots span {
    animation: blink-dots 1.4s infinite both;
}

.preloader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.preloader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink-dots {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Иконка пальца (кликабельная) */
.click-icon {
    width: 50px;
    height: 50px;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.click-icon:hover {
    transform: scale(1.1);
}

.click-icon:active {
    transform: scale(0.95);
}

/* Состояние "Открыть сайт" */
.preloader-text.clickable {
    font-size: 20px;
    cursor: pointer;
}

/* Модальное окно для фото */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.image-modal-close:hover {
    color: #bbb;
}