body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a1420;
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #f1f1f1;
    background-image: linear-gradient(135deg, #0a1420 0%, #162940 100%);
    background-attachment: fixed;
}

/* Контейнер для элементов управления вверху страницы */
.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* iOS Style Switcher */
.ios-switcher {
    display: flex;
    justify-content: center;
}

.switcher-container {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 3px;
    display: flex;
    position: relative;
    width: 280px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.switcher-option {
    color: #fff;
    padding: 10px 0;
    flex: 1;
    text-align: center;
    z-index: 1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.switcher-option.active {
    color: #0f1c2e;
}

.switcher-slider {
    position: absolute;
    background-color: #0a1420;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    border-radius: 28px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.switcher-option:nth-child(2).active ~ .switcher-slider {
    transform: translateX(100%);
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.current-lang {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.current-lang:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: rgba(10, 20, 32, 0.95);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-menu .lang-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.language-menu .lang-option:hover {
    transform: scale(1.1);
}

.language-menu .lang-option.active {
    border-color: #3a86ff;
}

/* Flag Icons */
.flag-icon {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.flag-icon-ru {
    background-image: url('/static/flags/russia.png');
}

.flag-icon-us {
    background-image: url('/static/flags/united%20kingdom.png');
}

.flag-icon-es {
    background-image: url('/static/flags/spain.png');
}

/* Remove old language switcher styles */
.language-switcher {
    display: none;
}

/* Скрываем блок с фото профиля, так как он больше не нужен */
.profile-image {
    display: none;
}

h1 {
    color: #f1f1f1;
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.tagline {
    color: #3a86ff;
    font-size: 1.6em;
    font-weight: 600;
    margin: 20px 0 30px;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

p {
    color: #f1f1f1;
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact {
    margin-top: 20px;
}

a {
    color: #3a86ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4895ef;
}

.button-container {
    display: flex;
    flex-direction: column; /* Расположение кнопок в колонку */
    align-items: center; /* Центрирование кнопок */
    margin: 20px 0; /* Отступ сверху и снизу */
    gap: 15px; /* Расстояние между кнопками */
}

.button {
    background: linear-gradient(45deg, #3a86ff 0%, #4895ef 100%); /* Градиентный фон */
    color: #ffffff; /* Цвет текста */
    border: none; /* Убираем границы */
    border-radius: 12px; /* Закругление углов */
    padding: 25px 0; /* Отступ внутри кнопки */
    cursor: pointer; /* Указатель курсора */
    font-size: 1em; /* Размер шрифта */
    font-weight: 500; /* Толщина шрифта */
    display: block; /* Сделать ссылку блочным элементом */
    width: 400px; /* Ширина кнопки */
    text-align: center; /* Выравнивание текста по центру */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Плавная анимация с эффектом */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(58, 134, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
    pointer-events: none; /* Гарантируем, что свечение не блокирует события мыши */
    z-index: 1;
}

.button:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4), 0 0 25px rgba(58, 134, 255, 0.4);
    background: linear-gradient(45deg, #2a76ef 0%, #3885df 100%); /* Чуть темнее градиент для лучшего контраста */
    color: #ffffff; /* Явно указываем белый цвет текста при наведении */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Добавляем тень для лучшей читаемости */
}

.button:hover:before {
    left: 100%;
}

.button:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.button i {
    margin-right: 10px;
    font-size: 1.2em;
    vertical-align: middle;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2; /* Иконки выше свечения */
}

.button span {
    position: relative;
    z-index: 2; /* Текст выше свечения */
}

.button:hover i {
    transform: scale(1.2);
}

footer {
    margin-top: 40px;
    color: rgba(241, 241, 241, 0.7);
    font-size: 0.85em;
}

footer p {
    margin: 5px 0;
    font-size: 0.85em;
}

/* Медиа-запросы для планшетов */
@media (min-width: 601px) and (max-width: 1024px) {
    body {
        padding: 15px;
    }
    
    .switcher-container {
        width: 280px;
    }
    
    .ampay-logo {
        max-width: 180px;
        margin-bottom: 25px;
    }
    
    .latamcash-logo {
        max-width: 160px;
        margin-bottom: 25px;
    }
    
    .tagline {
        font-size: 1.4em;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    p {
        font-size: 1.1em;
        padding: 0 20px;
    }
    
    .button {
        width: 80%;
        max-width: 450px;
        padding: 20px 0;
    }
    
    .button-container {
        gap: 12px;
    }
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 600px) {
    body {
        padding: 15px 10px;
    }
    
    .top-controls {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .switcher-container {
        width: 220px;
    }
    
    .ampay-logo {
        max-width: 160px;
        margin-bottom: 20px;
    }
    
    .latamcash-logo {
        max-width: 140px;
        margin-bottom: 20px;
    }
    
    .tagline {
        font-size: 1.3em;
        margin-bottom: 20px;
        margin-top: 40px;
    }
    
    .language-menu {
        right: 50%;
        transform: translateX(50%) translateY(-10px) scale(0.95);
        transform-origin: top center;
    }
    
    .language-menu.active {
        transform: translateX(50%) translateY(0) scale(1);
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    p {
        font-size: 1em;
        padding: 0 10px;
    }
    
    .contact p {
        font-size: 0.9em;
    }
    
    .button {
        width: 90%; /* Ширина кнопок для мобильных устройств */
        max-width: 350px;
        font-size: 0.9em;  /* Размер шрифта для мобильных устройств */
        padding: 20px 0;
    }
    
    .switcher-logo {
        height: 14px;
    }
    
    .ampay-switcher-logo {
        height: 14px;
    }
    
    .latamcash-switcher-logo {
        height: 14px;
    }
}

@media (max-width: 400px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .button {
        padding: 15px 0;
        font-size: 0.85em;
    }
    
    .switcher-container {
        width: 200px;
    }
    
    h1 {
        font-size: 1.3em;
        margin-top: 10px;
    }
    
    p {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    
    .button i {
        font-size: 1.1em;
    }
    
    .switcher-logo {
        height: 12px;
    }
    
    .ampay-switcher-logo {
        height: 12px;
    }
    
    .latamcash-switcher-logo {
        height: 12px;
    }
}

@media (max-width: 320px) {
    .switcher-container {
        width: 180px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .lang-option {
        padding: 6px 8px;
    }
}

/* Логотипы */
.service-logo {
    height: auto;
    display: block;
    margin: 30px auto 25px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
    max-width: 100%;
}

.service-logo:hover {
    filter: drop-shadow(0 6px 12px rgba(58, 134, 255, 0.5));
    transform: translateY(-3px);
}

.ampay-logo {
    max-width: 180px;
    margin-bottom: 25px;
}

.latamcash-logo {
    max-width: 160px;
    margin-bottom: 25px;
}

/* Логотипы в переключателе */
.switcher-logo {
    height: 20px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
    max-width: 100%;
}

/* AmPay логотип */
.ampay-switcher-logo {
    height: 16px;
    opacity: 0.9;
}

.switcher-option.active .ampay-switcher-logo {
    opacity: 1;
}

/* LATAMCASH логотип */
.latamcash-switcher-logo {
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.switcher-option.active .latamcash-switcher-logo {
    opacity: 1;
}

/* Стили для слайдера в зависимости от страницы */
.ampay-page .switcher-slider {
    background-color: #0a1420;
}

.latamcash-page .switcher-slider {
    background-color: #0f1c2e;
}

/* Стили для логотипов в зависимости от активности */
.ampay-page .switcher-option.active .ampay-switcher-logo {
    filter: none;
    opacity: 1;
}

.ampay-page .switcher-option:not(.active) .ampay-switcher-logo {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.latamcash-page .switcher-option.active .latamcash-switcher-logo {
    filter: none;
    opacity: 1;
}

.latamcash-page .switcher-option:not(.active) .latamcash-switcher-logo {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
