/* =========================
   Переменные
   ========================= */
:root {
  --primary-color: #004466;
  --accent-color: #0077aa;
  --background-color: #eef3f7;
  --light-color: #ffffff;
  --text-color: #333333;
  --border-color: #dddddd;
  --box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --danger: #e53935;
  --success: #2e7d32;
}

/* Сброс */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================
   HEADER + NAV
   ========================= */
header {
  background: var(--light-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  padding: 16px;
  text-align: center;
}
header h1 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
header nav {
  display: flex;
  justify-content: center;
  gap: 16px;
}
header nav a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--border-radius);
  transition: background var(--transition-speed);
}
header nav a:hover {
  background: #e2eef5;
}

/* =========================
   MAIN
   ========================= */
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 20px;
}

/* Контейнер формы */
.form-container {
  width: 100%;
  max-width: 400px;
  background: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  padding: 24px;
}

form h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

form label {
  font-weight: 600;
  margin: 10px 0 4px;
  display: block;
}

form input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  font-size: 1rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
form input:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,119,170,0.2);
}

/* Кнопки */
form button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-speed);
}
form button[type="submit"]:hover {
  background: var(--primary-color);
}

/* Кнопка Google */
#google-login {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  transition: background var(--transition-speed);
}
#google-login:hover {
  background: #f5f5f5;
}

/* Ссылка "Забыли пароль?" */
form p {
  margin-top: 12px;
  text-align: center;
}
form p a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
}
form p a:hover {
  text-decoration: underline;
}

/* Ошибки */
#error-message {
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--light-color);
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  color: #666;
}




 
    /* ====== RESET ====== */
    *, *::before, *::after { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    img { max-width: 100%; display: block; }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: #f6f7fb;
      color: #333;
      font-size: 18px;
      line-height: 1.45;
    }

    /* Блокировка прокрутки при открытом мобильном меню */
    body.no-scroll { overflow: hidden; }

    /* ====== HEADER ====== */
    .site-header {
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(0,0,0,.08);
      position: sticky; top: 0; z-index: 1000;
      box-shadow: 0 4px 20px rgba(0,0,0,.05);
    }
    .site-header .container {
      max-width: 1200px; margin: 0 auto;
      padding: 18px 28px;
      display: flex; align-items: center; justify-content: space-between;
      position: relative; flex-wrap: wrap;
    }

    .logo-box { display: flex; align-items: center; gap: 14px; }
    .logo-image {
      width: 60px; height: 60px; object-fit: cover; border-radius: 50%;
      box-shadow: 0 2px 6px rgba(0,0,0,.2);
    }
    .logo-text h1 {
      margin: 0; font-size: 28px; font-weight: 700; color: #222; line-height: 1.1;
    }
    .logo-text h2 {
      margin: 4px 0 0; font-size: 14px; font-weight: 400; color: #555;
    }

    /* NAVIGATION */
    .nav-links { display: flex; gap: 22px; align-items: center; }
    .nav-links a {
      text-decoration: none; color: #333; font-weight: 600;
      padding: 8px 12px; border-radius: 10px;
      transition: background .25s ease, color .25s ease;
    }
    .nav-links a:hover { background: rgba(0,0,0,.06); }

    /* BURGER */
    .burger {
      display: none; background: none; border: none; cursor: pointer;
      width: 40px; height: 34px; position: relative;
    }
    .burger span {
      position: absolute; left: 7px; right: 7px; height: 2px;
      background: #222; border-radius: 2px;
      transition: transform .35s ease, opacity .25s ease, top .35s ease;
    }
    .burger span:nth-child(1) { top: 9px; }
    .burger span:nth-child(2) { top: 16px; }
    .burger span:nth-child(3) { top: 23px; }
    .burger.active span:nth-child(1) { top: 16px; transform: rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

    /* ====== MAIN ====== */
    main { text-align: center; padding: 34px 20px 50px; }

    .test-mode {
      display: inline-block;
      font-size: 20px; font-weight: 700; color: #0f172a;
      background: rgba(255,255,255,.85);
      padding: 10px 14px; border-radius: 10px;
      box-shadow: 0 6px 16px rgba(0,0,0,.06);
      margin-bottom: 20px;
    }

    /* Центральный большой логотип */
    .hero-logo {
      width: 100%; max-width: 420px; height: auto;
      margin: 14px auto 28px;
      border-radius: 18px;
      box-shadow: 0 10px 26px rgba(0,0,0,.10);
      animation: logoIn .6s ease-out;
    }
    @keyframes logoIn {
      from { transform: translateY(12px); opacity: 0; }
      to   { transform: translateY(0);     opacity: 1; }
    }

    /* Блок с видео */
    .video-section {
      max-width: 900px; margin: 0 auto;
      padding: 0 10px;
    }
    .video-section h2 {
      font-size: 26px; color: #222; margin: 10px 0 16px;
      font-weight: 700;
    }
    .youtube-container {
      position: relative;
      padding-bottom: 56.25%; /* 16:9 */
      height: 0; overflow: hidden;
      border-radius: 16px;
      box-shadow: 0 12px 28px rgba(0,0,0,.15);
      background: #000;
    }
    .youtube-container iframe {
      position: absolute; inset: 0;
      width: 100%; height: 100%; border: 0;
      border-radius: 16px;
    }

    /* ====== FOOTER ====== */
    footer {
      background: #111827; color: #fff;
      text-align: center; padding: 18px 12px; font-size: 14px;
    }

    /* ====== MOBILE (≤768px) ====== */
    @media (max-width: 768px) {
      .site-header .container { flex-direction: column; align-items: stretch; padding: 14px 18px; }

      .logo-box { align-items: center; justify-content: space-between; }
      .logo-image { width: 48px; height: 48px; }
      .logo-text h1 { font-size: 22px; }
      .logo-text h2 { font-size: 12px; }

      .burger { display: block; }

      /* Мобильное меню: скрыто по умолчанию + плавное раскрытие */
      .nav-links {
        width: 100%;
        flex-direction: column; align-items: flex-start;
        background: #fff; margin-top: 12px;
        border-top: 1px solid #eee;
        max-height: 0; opacity: 0; overflow: hidden;
        transform-origin: top;
        transition: max-height .45s ease, opacity .3s ease, padding .3s ease;
        padding: 0 4px;
        border-radius: 0 0 12px 12px;
      }
      .nav-links.active {
        max-height: 280px; opacity: 1; padding: 12px 8px;
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
      }
      .nav-links a {
        width: 100%; padding: 12px 10px; font-size: 17px; border-radius: 8px;
      }

      .test-mode { font-size: 18px; padding: 8px 12px; }
      .hero-logo { max-width: 240px; margin: 22px auto; }
      .video-section h2 { font-size: 22px; }
      .youtube-container { margin: 0 4px; }
      footer { font-size: 13px; }
    }

    /* Пользователи, предпочитающие меньше анимации */
    @media (prefers-reduced-motion: reduce) {
      * { animation: none !important; transition: none !important; }
    }
