/* ================================================
   IT COLLEGE — Система тестирования абитуриентов
   Стиль полностью совпадает с корпоративным сайтом колледжа
   ================================================ */

/* ────── СБРОС И БАЗА ────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; border-radius: 6px; }

/* ────── CSS-ПЕРЕМЕННЫЕ (идентичны сайту колледжа) ────── */
:root {
  --primary:    #1d4ed8;
  --primary-2:  #2563eb;
  --primary-3:  #3b82f6;
  --accent:     #f59e0b;
  --dark:       #060c1d;
  --dark-2:     #0f172a;
  --dark-3:     #1e293b;
  --light:      #eff2ff;
  --white:      #ffffff;
  --gray:       #64748b;
  --gray-2:     #94a3b8;
  --border:     #dde5ff;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(29,78,216,.1);
  --shadow-lg:  0 16px 56px rgba(29,78,216,.18);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  /* Цвета предметов */
  --english: #1d4ed8;
  --english-light: #eff2ff;
  --math: #16a34a;
  --math-light: #f0fdf4;
  --russian: #dc2626;
  --russian-light: #fff5f5;
}

/* ────── ПРОГРЕСС-БАР СТРАНИЦЫ ────── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-3), var(--accent));
  z-index: 9999; transition: width .1s linear;
  box-shadow: 0 0 10px rgba(29,78,216,.5);
}

/* ────── НАВИГАЦИЯ ────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(29,78,216,.12); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--dark); flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: .85; }
.nav-logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform var(--transition);
}
.nav-logo-icon img { width: 38px; height: 38px; object-fit: contain; }
.nav-logo:hover .nav-logo-icon { transform: scale(1.1) rotate(-4deg); }
.nav-center-label {
  flex: 1; text-align: center; font-size: 14px; font-weight: 600;
  color: var(--gray); white-space: nowrap;
}
.nav-btns { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.nav-staff-name { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--gray); }

/* ────── КНОПКА "НАВЕРХ" ────── */
#btt {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; font-size: 20px;
  box-shadow: 0 4px 16px rgba(29,78,216,.4);
  opacity: 0; transform: translateY(16px) scale(.8);
  transition: opacity .3s, transform .3s;
  display: flex; align-items: center; justify-content: center; z-index: 500;
}
#btt.visible { opacity: 1; transform: translateY(0) scale(1); }
#btt:hover { transform: translateY(-4px) scale(1.08) !important; }

/* ────── КОНТЕЙНЕР / СЕКЦИИ ────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 24px; }

/* ────── PAGE HEADER ────── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 40%, var(--primary) 100%);
  color: #fff; padding: 60px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.page-header-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-header .container { position: relative; }
.page-header h1 { font-size: clamp(28px,5vw,48px); font-weight: 800; margin-bottom: 10px; }
.page-header p { font-size: 16px; opacity: .8; }

/* ────── ТЕГ (badge) ────── */
.tag {
  display: inline-block; background: rgba(29,78,216,.09); color: var(--primary);
  padding: 5px 14px; border-radius: 100px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
  border: 1px solid rgba(29,78,216,.15);
}
.page-header .tag { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.2); }

/* ────── КНОПКИ ────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px; border: none;
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  position: relative; overflow: hidden; white-space: nowrap; text-decoration: none;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-110%) skewX(-20deg); transition: transform .55s ease;
}
.btn:hover::after { transform: translateX(130%) skewX(-20deg); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; box-shadow: 0 4px 16px rgba(29,78,216,.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(29,78,216,.55); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); padding: 7px 18px;
}
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }

/* ────── ФОРМА ────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.req { color: #dc2626; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  border: 1.5px solid var(--border); font-family: inherit;
  font-size: 14px; color: var(--dark); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.has-error .form-input, .has-error .form-select { border-color: #dc2626; }
.has-error .form-input:focus, .has-error .form-select:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.field-error { display: block; margin-top: 5px; font-size: 12px; color: #dc2626; font-weight: 500; }
.form-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--gray); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.input-with-icon { position: relative; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-2); pointer-events: none; }
.input-with-icon .form-input { padding-left: 38px; }

.form-alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px;
}
.form-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.form-alert--error svg { flex-shrink: 0; color: #dc2626; margin-top: 1px; }

/* ────── ЧЕКБОКС ────── */
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--gray); }
.checkbox-label input { display: none; }
.checkbox-box {
  width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--border);
  flex-shrink: 0; background: #fff; transition: border-color var(--transition), background var(--transition);
  margin-top: 1px;
}
.checkbox-label input:checked ~ .checkbox-box { border-color: var(--primary); background: var(--primary); }
.checkbox-label input:checked ~ .checkbox-box::after {
  content: ''; display: block; width: 5px; height: 9px;
  border: 2px solid #fff; border-top: 0; border-left: 0;
  transform: rotate(45deg); margin: 2px auto 0;
}
.form-agreement { margin-bottom: 24px; padding: 16px; background: var(--light); border-radius: 8px; }

/* ────── ШАГИ (register steps) ────── */
.steps-row { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 8px; }
.step-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--gray);
  background: var(--light); border: 2px solid var(--border);
  white-space: nowrap;
}
.step-pill--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.step-pill-num {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.step-pill:not(.step-pill--active) .step-pill-num { background: var(--border); color: var(--gray); }
.step-pill-line { width: 40px; height: 2px; background: var(--border); flex-shrink: 0; }

/* ────── СТРАНИЦА РЕГИСТРАЦИИ ────── */
.register-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.register-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 36px; box-shadow: var(--shadow);
}
.register-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.register-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.register-card-header h2 { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 2px; }
.register-card-header p { font-size: 13px; color: var(--gray); }

/* Боковая информация */
.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(29,78,216,.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.info-card h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.info-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.info-card--warning { border-color: #fecaca; background: #fef2f2; }
.info-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.info-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray); }
.subj-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.subj-dot--english { background: var(--english); }
.subj-dot--math { background: var(--math); }
.subj-dot--russian { background: var(--russian); }

/* ────── СТРАНИЦА ТЕСТА ────── */
.test-body { background: #f8faff; }

/* Фиксированная шапка теста */
.test-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark-2); color: #fff;
  border-bottom: 2px solid rgba(29,78,216,.4);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.test-header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; padding: 0 24px; height: 60px;
}
.test-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.test-logo-text { display: flex; flex-direction: column; }
.test-logo-name { font-size: 15px; font-weight: 800; line-height: 1.1; }
.test-logo-sub { font-size: 11px; color: rgba(255,255,255,.55); font-weight: 500; }

/* Прогресс ответов */
.test-progress-wrap { flex: 1; max-width: 360px; }
.test-progress-label { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 5px; text-align: center; }
.test-progress-bar-wrap { height: 6px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; }
.test-progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary-3), var(--accent)); border-radius: 3px; transition: width .4s ease; }

/* Таймер */
.test-timer {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px; border-radius: 100px; font-size: 18px; font-weight: 800;
  letter-spacing: .05em; font-variant-numeric: tabular-nums;
  transition: background .3s, border-color .3s, color .3s;
}
.test-timer svg { opacity: .7; }
.test-timer--warning { background: rgba(245,158,11,.2); border-color: rgba(245,158,11,.5); color: #fbbf24; }
.test-timer--danger { background: rgba(220,38,38,.2); border-color: rgba(220,38,38,.5); color: #f87171; animation: timerPulse 1s ease-in-out infinite; }

@keyframes timerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.03); }
}

/* Предупреждение о времени */
.test-warning-bar {
  display: flex; align-items: center; gap: 10px;
  background: #fef3c7; border-bottom: 1px solid #f59e0b;
  color: #92400e; padding: 10px 24px; font-size: 13px; font-weight: 600;
}

/* Основной контент теста */
.test-main { max-width: 900px; margin: 0 auto; padding: 28px 24px 100px; }

/* Блок предмета */
.subject-block { margin-bottom: 32px; border-radius: 20px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.07); }

.subject-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; color: #fff;
}
.subject-header-left { display: flex; align-items: center; gap: 14px; }
.subject-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.subject-title { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.subject-meta { font-size: 13px; opacity: .75; }
.subject-score-badge {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 100px; font-size: 14px; font-weight: 700;
}

/* Дефолтный цвет (должен быть ДО специфичных!) */
.subject-block .subject-header { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }

/* Цвета блоков по предмету (переопределяют дефолт) */
.subject-block--english .subject-header { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
.subject-block--math    .subject-header { background: linear-gradient(135deg, #15803d, #16a34a); }
.subject-block--russian .subject-header { background: linear-gradient(135deg, #b91c1c, #dc2626); }

/* Список вопросов */
.questions-list { background: #fff; padding: 8px 16px 16px; }

/* Карточка вопроса */
.question-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin: 8px 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.question-card:hover { border-color: rgba(29,78,216,.3); box-shadow: var(--shadow); }
.question-card.answered { border-color: rgba(29,78,216,.25); background: #fafbff; }
.question-top { display: flex; gap: 12px; margin-bottom: 16px; }
.question-num {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--light); color: var(--primary); font-weight: 800; font-size: 13px;
}
.question-card.answered .question-num { background: var(--primary); color: #fff; }
.question-text { font-size: 15px; font-weight: 600; color: var(--dark); line-height: 1.55; padding-top: 4px; }

/* Варианты ответов */
.options-list { display: flex; flex-direction: column; gap: 8px; }
.option-label {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  border: 1.5px solid var(--border); cursor: pointer; user-select: none;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.option-label:hover { border-color: var(--primary-3); background: #f5f8ff; }
.option-radio { display: none; }
.option-marker {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  border: 2px solid var(--border); background: #fff; color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; letter-spacing: 0;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.option-text { flex: 1; font-size: 14px; color: var(--dark-3); line-height: 1.4; }
.option-check { display: none; width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

/* Выбранный ответ */
.option-radio:checked + .option-marker {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.option-label:has(.option-radio:checked) {
  border-color: var(--primary); background: #f0f5ff;
}
.option-label:has(.option-radio:checked) .option-text { font-weight: 600; }
.option-label:has(.option-radio:checked) .option-check { display: block; }

/* Секция отправки */
.test-submit-section {
  background: #fff; border: 1.5px solid var(--border); border-radius: 20px;
  padding: 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.submit-info { display: flex; align-items: flex-start; gap: 12px; }
.submit-info-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.submit-info strong { display: block; font-size: 14px; color: var(--dark); margin-bottom: 2px; }
.submit-info span { font-size: 13px; color: var(--gray); }

/* ────── МОДАЛЬНОЕ ОКНО ────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 9000; padding: 20px;
}
.modal-box {
  background: #fff; border-radius: 20px; padding: 40px; max-width: 440px; width: 100%;
  text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.3);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to { opacity: 1; transform: none; }
}
.modal-box h3 { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.modal-box p { font-size: 14px; color: var(--gray); margin-bottom: 8px; line-height: 1.6; }
.modal-warning { color: #dc2626; font-weight: 600; font-size: 13px; }
.modal-btns { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.modal-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.modal-icon--warning { background: #fff7ed; color: #d97706; }
.modal-box--timeout { border-top: 4px solid var(--accent); }

/* ────── СТРАНИЦА ЗАВЕРШЕНИЯ ────── */
.complete-section { min-height: calc(100vh - 130px); display: flex; align-items: center; padding: 60px 24px; }
.complete-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 56px 48px; box-shadow: var(--shadow-lg);
}
.complete-icon-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto 24px; }
.complete-icon-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--primary); opacity: .25;
  animation: ringPulse 2s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: .25; }
  50% { transform: scale(1.12); opacity: .1; }
}
.complete-icon {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(29,78,216,.4);
  animation: iconPop .6s cubic-bezier(.22,1,.36,1);
}
@keyframes iconPop {
  from { transform: scale(0) rotate(-30deg); }
  to { transform: scale(1) rotate(0); }
}
.complete-title { font-size: clamp(24px,4vw,36px); font-weight: 900; color: var(--dark-2); margin-bottom: 14px; }
.complete-subtitle { font-size: 16px; color: var(--gray); line-height: 1.75; margin-bottom: 32px; }
.complete-tiles { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.complete-tile {
  display: flex; align-items: center; gap: 10px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--dark);
}
.complete-tile-icon { color: var(--primary); display: flex; align-items: center; }
.complete-note { font-size: 13px; color: var(--gray-2); margin-bottom: 24px; }

/* ────── ФУТЕР ────── */
.footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 56px 24px 28px; }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: #fff; font-weight: 800; font-size: 18px; }
.footer-logo-icon { width: 36px; height: 36px; border-radius: 8px; background: transparent; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.footer-logo-icon img { width: 36px; height: 36px; object-fit: contain; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 14px; color: rgba(255,255,255,.65); transition: color var(--transition), padding-left var(--transition); }
.footer ul li a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; display: flex; justify-content: space-between;
  align-items: center; font-size: 13px; flex-wrap: wrap; gap: 8px;
}

/* ────── АНИМАЦИЯ СПИННЕРА (кнопка загрузки) ────── */
.spin-icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ────── МЕДИА-ЗАПРОСЫ ────── */
@media (max-width: 900px) {
  .register-layout { grid-template-columns: 1fr; }
  .register-sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .test-header-inner { gap: 12px; }
  .test-progress-wrap { display: none; }
}

@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .test-submit-section { flex-direction: column; align-items: stretch; }
  .test-submit-section .btn { width: 100%; justify-content: center; }
  .modal-btns { flex-direction: column; }
  .modal-box { padding: 28px 20px; }
  .complete-card { padding: 36px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .complete-tiles { flex-direction: column; align-items: center; }
  .nav-center-label { display: none; }
}
