/* Общие стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif !important; 
    background-color: #0e0e0e;
    color: #fff;
    min-height: 100vh;
    overflow: auto;
}

body, input, button, textarea, select {
    font-family: 'Roboto', sans-serif !important;
}

/* Видео на фоне */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    filter: blur(4px);
}

/* Основной контейнер: две колонки */
.main-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    background: rgba(0, 0, 32, 0.7);
    box-sizing: border-box;
}

.left-side {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 50px rgba(0, 94, 255, 0.7);
    border-right: 2px solid #005eff;
    box-sizing: border-box;
}

/* Правая часть - логотип и текст */
.right-side {
    flex: 1;
    background: rgba(0, 0, 32, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;  /* по вертикали центрируем */
    align-items: center;      /* по горизонтали центрируем */
    padding: 3rem 2rem 2rem 2rem;
    box-sizing: border-box;
    text-align: center;
    color: #a0c4ff;
    box-shadow: inset 0 0 50px rgba(0, 94, 255, 0.5);
    border-left: 2px solid #005eff;
    backdrop-filter: blur(4px);
}


/* Логотип */
.right-side img {
    max-width: 400px;
    width: 90%;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px #00aaff) drop-shadow(0 0 30px #005eff);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.right-side img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 20px #00ccff) drop-shadow(0 0 35px #007bff);
}

/* Текст под логотипом */
.right-side .logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #cce0ff;
    text-shadow: 0 0 8px #005eff;
}

/* Вкладки */
.tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow: 0 0 15px #005eff; */
    gap: -1px;
}

.tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    background: #001f4d;
    border: none;
    color: #a0c4ff;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    user-select: none;
    text-shadow: none;
    gap: -1px;
}

.tab:hover {
    background: #003399;
    color: #cce0ff;
    text-shadow: 0 0 10px #00aaff;
}

.tab.active {
    background: #005eff;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 15px #00aaff;
    gap: -1px;
}

/* Формы */
.form {
    display: none;
    flex-direction: column;
}

.form.active {
    display: flex;
}

/* Поля ввода */
input {
    background: #0a0a1a;
    border: 1px solid #003399;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    color: #a0c4ff;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #00aaff;
    outline: none;
    box-shadow: 0 0 8px #00aaff;
    background: #001a4d;
}

/* Кнопки неоновые */
button {
    background: #005eff;
    color: white;
    padding: 0.85rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0 8px #00aaff;
    box-shadow: 0 0 15px #00aaff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background: #003399;
    box-shadow: 0 0 20px #00c3ff;
}

/* Забыли пароль */
.forgot {
    font-size: 0.85rem;
    text-align: right;
    color: #6a7ca6;
    margin-bottom: 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.forgot:hover {
    color: #00aaff;
    text-shadow: 0 0 6px #00aaff;
}

/* Заголовок и подзаголовок в форме (если нужны) */
.title {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    color: #cce0ff;
    text-shadow: 0 0 10px #005eff;
}

.subtitle {
    font-size: 1rem;
    color: #8899bb;
    margin-bottom: 2rem;
}

/* Переключатель языка */
.lang-switch {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #001f4d;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    color: #a0c4ff;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 0 8px #005eff;
    user-select: none;
    transition: background 0.3s ease;
    z-index: 10;
}

.lang-switch:hover {
    background: #005eff;
    color: white;
    box-shadow: 0 0 15px #00aaff;
}

.flag {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 2px;
}

.btn-about {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.7rem 1.5rem;
    background: #005eff;
    color: white;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 0 15px #00aaff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Prosto One', sans-serif !important;
    cursor: pointer;
}

.btn-about:hover {
    background: #003399;
    box-shadow: 0 0 20px #00c3ff;
}

/* Кнопка "Вернуться" */
.btn-back {
    position: fixed;
    top: 30px;
    left: 20px;
    background: #005eff;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 15px #00aaff;
    font-family: 'Prosto One', sans-serif !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 11;
    cursor: pointer;
}

.btn-back:hover {
    background: #003399;
    box-shadow: 0 0 20px #00c3ff;
}

/* Логотип по центру */
.logo-center {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
}

.logo-center img {
    max-height: 100px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px #00aaff) drop-shadow(0 0 20px #005eff);
    transition: filter 0.3s ease;
}

.logo-center img:hover {
    filter: drop-shadow(0 0 15px #00ccff) drop-shadow(0 0 30px #007bff);
}

/* Заголовок */
.header {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.back-button {
    position: absolute;
    left: 20px;
    top: 30px; /* увеличил отступ сверху */
}

/* Обертка для селекта - чтобы ограничить ширину и выровнять */
.select-wrapper {
    position: relative;
    width: 110px; /* можно подкорректировать ширину */
    margin-right: 10px;
    user-select: none;
  }
  
  /* Сам селект */
  #country-code {
    appearance: none; /* Убираем стандартный стиль */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #0a0a1a; /* как у input */
    border: 1px solid #003399;
    border-radius: 5px;
    color: #a0c4ff;
    padding: 0.65rem 2.5rem 0.65rem 0.75rem; /* справа отступ под стрелку */
    font-family: 'Prosto One', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 8px #005eff inset;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    text-indent: 0;
  }
  
  /* При фокусе */
  #country-code:focus {
    border-color: #00aaff;
    outline: none;
    box-shadow: 0 0 10px #00aaff inset;
    background-color: #001a4d;
    color: #cce0ff;
  }
  
  /* Стрелка селекта - через псевдоэлемент */
  .select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #00aaff;
    font-size: 0.7rem;
    text-shadow: 0 0 5px #00aaff;
    user-select: none;
  }  

/* Адаптив для телефонов */
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
        background: rgba(0, 0, 32, 0.3);
    }

    .left-side, .right-side {
        flex: none;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 2rem 1.5rem;
    }

    .right-side {
        margin-top: 2rem;
    }

    .right-side img {
        width: 150px;
    }

    .logo-center img {
        max-height: 120px;
    }
}

.phone-group {
    display: flex;
    align-items: center; /* вертикальное выравнивание по центру */
    gap: 8px; /* расстояние между селектом и телефоном */
  }
  
  .select-wrapper {
    flex-shrink: 0; /* чтобы селект не сжимался */
    width: 90px;
    height: 48px;
    position: relative;
    box-sizing: border-box;
    margin-top: -20px;
  }
  
  .select-wrapper select {
    width: 100%;
    height: 48px;
    padding: 0 2.5rem 0 0.75rem; /* только горизонтальные отступы */
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #003399;
    background: #0a0a1a;
    color: #a0c4ff;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 0 8px #005eff inset;
    outline: none;
    display: block;
    line-height: normal;
    vertical-align: middle;
  }
  
  .phone-group input[type="tel"] {
    flex-grow: 1; /* занимает оставшееся место */
    height: 48px;
    font-size: 1rem;
    padding: 0 0.75rem;
    border-radius: 5px;
    border: 1px solid #003399;
    background: #0a0a1a;
    color: #a0c4ff;
    box-shadow: 0 0 8px #005eff inset;
    outline: none;
    line-height: 48px;
  }
  
  .footer {
    background: rgba(0, 0, 32, 0.9);
    padding: 40px 0;
    border-top: 2px solid #005eff;
    box-shadow: 0 -2px 15px #00aaff;
    overflow: hidden;
  }
  
  .footer-center {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  .footer-top {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
  }
  
  .footer-link {
    color: #a0c4ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  
  .footer-link:hover {
    color: #fff;
    text-shadow: 0 0 10px #00aaff;
  }
  
  .footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 10px 0 20px 0;
  }
  
  .footer-partners img {
    height: 40px;             /* ниже, чтобы были прямоугольные */
    max-width: 120px;         /* ограничение по ширине */
    margin: 8px 12px;
    object-fit: contain;
    border-radius: 6px;       /* слегка скруглённые углы (можешь убрать) */
    background-color: #ffffff; /* чтобы не сливались с фоном (опц.) */
    padding: 6px;             /* отступ внутри если логотипы с пустыми краями */
  }
  
  .footer-partners img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px #00ccff);
  }
  
  .footer-logo img {
    max-height: 80px;
    filter: drop-shadow(0 0 10px #00aaff) drop-shadow(0 0 20px #005eff);
  }

  .page-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
  }

  .footer-contacts {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .footer-contacts .footer-link {
    color: #a0c4ff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  
  .footer-contacts .footer-link:hover {
    color: #fff;
    text-shadow: 0 0 10px #00aaff;
  }

  .footer-partners img {
    max-height: 40px;
    margin: 5px 10px;
    object-fit: contain;
  }

  .footer-contacts .contact-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 8px;
  }
  
  .footer-partners-scroll {
    overflow: hidden;
    width: 100%;
    margin: 30px 0;
    position: relative;
  }
  
  .footer-partners-track {
    display: flex;
    gap: 30px;
    animation: scrollLeft 40s linear infinite;
    width: max-content;
  }
  
  .footer-partners-track img {
    height: 28px;
    max-width: 140px;
    object-fit: contain;
    padding: 6px 10px;
    background: rgb(255, 255, 255);
    border-radius: 6px;
  }
  
  /* Анимация прокрутки */
  @keyframes scrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  @media screen and (max-width: 768px) {
    .main-wrapper {
      flex-direction: column;
      height: auto;
    }
  
    .left-side, .right-side {
      flex: none;
      width: 100%;
      padding: 2rem 1rem;
      border: none;
      box-shadow: none;
    }
  
    .right-side img {
      max-width: 250px;
    }
  
    .tabs {
      flex-direction: column;
      gap: 10px;
    }
  
    input, button {
      font-size: 1rem;
    }
  
    .lang-switch {
      position: static;
      margin: 1rem auto;
      text-align: center;
    }
  }
  
  