@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

/* ===================== RESET ===================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(251, 146, 60, 0.12), transparent 34%),
    #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 520px;
  height: 520px;
  left: -180px;
  top: 12vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.26), transparent 66%);
  filter: blur(10px);
}

body::after {
  width: 440px;
  height: 440px;
  right: -160px;
  bottom: 6vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.24), transparent 67%);
  filter: blur(12px);
}

a {
  text-decoration: none;
}
/* Пример правильной разметки для вашей сетки */
.universities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
  width: 100%;
}

/* Карточки должны иметь внутренние отступы и видимый фон */
.uni-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
button,
input,
select {
  font-family: inherit;
}

/* ===================== HEADER ===================== */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  width: 92%;
  max-width: 1350px;
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: white;
  font-size: 25px;
  font-weight: 950;
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: -0.5px;
}

.logo i {
  color: #38bdf8;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.55));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-links a {
  color: #e5e7eb;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 0;
  position: relative;
  transition: 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #fb923c);
  transition: 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  font-size: 18px;
  transition: 0.25s;
}

.theme-toggle:hover,
.menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) rotate(8deg);
}

.menu-btn {
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.96);
  padding: 15px 8%;
}

.mobile-menu a {
  color: white;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================== BUTTONS ===================== */

.btn {
  border: none;
  border-radius: 15px;
  padding: 12px 21px;
  cursor: pointer;
  font-weight: 850;
  transition: 0.25s;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -120%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 120%;
}

.btn::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  background-image: url("image/Gemini_Generated_Image_jtph1mjtph1mjtph.png");
  background-size: cover;
  border-radius: 50%;
  opacity: 0;
  transition: 0.25s;
}

.btn:hover::after {
  opacity: 0.35;
  transform: translateY(-50%) scale(1);
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  color: white;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.25);
}

.btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(79, 70, 229, 0.42);
}

.btn.premium {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.2);
}

.btn.premium:hover {
  transform: translateY(-3px);
}

.btn.secondary:hover {
  background: #e0e7ff;
  transform: translateY(-3px);
}

.btn i {
  transition: transform 0.25s ease;
}

.btn:hover i {
  transform: translateX(2px);
}

.section,
.university-card,
.full-dorm-card,
.dorm-card,
.growth-card,
.auth-box,
.dashboard-box,
.planner-overview-card,
.about-card,
.timeline-item,
.modal-content {
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.university-card:hover,
.full-dorm-card:hover,
.dorm-card:hover,
.growth-card:hover,
.planner-overview-card:hover,
.about-card:hover,
.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(14, 165, 233, 0.45);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
}

.btn.glass {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
}

.btn.large {
  padding: 17px 30px;
  font-size: 16px;
}

/* ===================== HERO ===================== */

.hero {
  min-height: 100vh;
  padding: 155px 8% 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 65px;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.95), transparent 27%),
    radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.65), transparent 25%),
    radial-gradient(circle at 75% 85%, rgba(219, 39, 119, 0.35), transparent 28%),
    linear-gradient(135deg, #020617, #0f172a 45%, #1e1b4b);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  right: -150px;
  top: 100px;
  filter: blur(2px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.13);
  padding: 11px 17px;
  border-radius: 999px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ddd6fe;
  font-weight: 850;
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.18);
}

.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  margin-bottom: 25px;
  letter-spacing: -2.5px;
  background: linear-gradient(135deg, #ffffff, #dbeafe, #c4b5fd);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stats {
  margin-top: 55px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stats div {
  min-width: 135px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(15px);
}

.stats h3 {
  color: #c4b5fd;
  font-size: 35px;
}

.stats span {
  color: #cbd5e1;
  font-weight: 700;
}

.hero-card {
  width: 390px;
  padding: 32px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.2);
  animation: float 4s ease-in-out infinite;
}

.card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  color: #c4b5fd;
  font-weight: 850;
}

.hero-card h2 {
  font-size: 29px;
  margin-bottom: 8px;
}

.hero-card p {
  color: #cbd5e1;
  margin-bottom: 24px;
}

.match,
.match-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 850;
}

.match strong,
.match-line strong {
  color: #22c55e;
}

.progress,
.match-progress {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress div,
.match-progress div {
  height: 100%;
  background: linear-gradient(135deg, #22c55e, #84cc16);
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  margin-bottom: 13px;
  color: #e5e7eb;
}

.hero-card li i {
  color: #22c55e;
  margin-right: 8px;
}

.hero-quick-search {
  margin: 0 0 20px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-quick-search label {
  display: block;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-quick-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hero-quick-search input {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(2, 6, 23, 0.36);
  border-radius: 12px;
  color: #ffffff;
  padding: 12px 14px;
  font-size: 15px;
}

.hero-quick-search input::placeholder {
  color: rgba(226, 232, 240, 0.8);
}

.hero-quick-search input:focus {
  outline: none;
  border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.trust-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.trust-row i {
  color: #fde047;
}

.trust-strip {
  margin-top: 36px;
}

.trust-strip-head {
  margin-bottom: 16px;
}

.trust-strip-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.2px;
}

.trust-strip-head p {
  margin-top: 10px;
  color: #475569;
  max-width: 860px;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-chip {
  padding: 20px;
}

.trust-chip h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.trust-chip p {
  color: #475569;
  line-height: 1.6;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  padding: 22px;
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.testimonial-head h3 {
  margin: 0;
  font-size: 18px;
}

.testimonial-head p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 14px;
}

.testimonial-card > p {
  color: #334155;
  line-height: 1.7;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  padding: 16px 18px;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question i {
  color: #2563eb;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer p {
  padding: 0 18px 16px;
  color: #475569;
  line-height: 1.6;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 4200;
  width: min(640px, calc(100vw - 24px));
  border-radius: 16px;
  padding: 10px;
  display: flex;
  gap: 10px;
  background: rgba(2, 6, 23, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.32);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.sticky-cta .btn {
  flex: 1;
}

.sticky-cta .btn.glass {
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
}

.quiz-modal.is-open {
  display: block;
}

.quiz-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(3px);
}

.quiz-modal-panel {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100vw - 24px));
  margin: 8vh auto 0;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
}

.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.quiz-head h2 {
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.6px;
}

.quiz-close {
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  cursor: pointer;
}

.quiz-progress-wrap {
  margin: 14px 0;
  display: grid;
  gap: 6px;
}

.quiz-progress {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.quiz-progress div {
  width: 25%;
  height: 100%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.quiz-progress-wrap span {
  font-size: 13px;
  color: #475569;
}

.quiz-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.quiz-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}

.quiz-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.quiz-result {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  padding: 14px;
}

.quiz-result h3 {
  margin: 0 0 8px;
}

.quiz-result p {
  color: #1e3a8a;
  line-height: 1.6;
}

.quiz-result-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.growth-lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.growth-widget {
  padding: 22px;
}

.growth-widget h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.growth-widget p {
  color: #475569;
  line-height: 1.6;
}

.deadline-timer {
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 18px;
}

.growth-widget small {
  color: #64748b;
  display: block;
}

.lead-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.lead-form label {
  font-size: 14px;
  color: #334155;
  font-weight: 700;
}

.lead-form input,
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  background: #f8fafc;
}

.lead-form-status,
.feedback-status {
  margin-top: 10px;
  color: #1e3a8a;
  font-weight: 700;
  min-height: 20px;
}

.referral-row {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.invite-code {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #0f172a;
}

.referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consult-card {
  padding: 28px;
  text-align: center;
}

.consult-card h2 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1px;
}

.consult-card p {
  margin: 12px auto 0;
  max-width: 760px;
  color: #475569;
}

.consult-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback-fab {
  position: fixed;
  right: 14px;
  bottom: 90px;
  z-index: 4300;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.32);
  cursor: pointer;
}

.feedback-modal,
.exit-intent-modal {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: none;
}

.feedback-modal.is-open,
.exit-intent-modal.is-open {
  display: block;
}

.feedback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(2px);
}

.feedback-panel {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100vw - 24px));
  margin: 12vh auto 0;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
}

.feedback-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.feedback-head h3 {
  margin: 0;
  font-size: 24px;
}

.feedback-form {
  display: grid;
  gap: 8px;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.funnel-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.funnel-card h3 {
  font-size: 20px;
  margin: 0;
}

.funnel-card p {
  color: #475569;
  line-height: 1.6;
}

.funnel-card.is-complete {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, #ecfdf5, #dcfce7);
}

.funnel-card.is-complete h3 {
  color: #166534;
}

.funnel-status {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

/* ===================== GENERAL SECTIONS ===================== */

.section {
  padding: 110px 8%;
  position: relative;
}

.section-title {
  max-width: 780px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-title span,
.about-text span {
  color: #7c3aed;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.section-title h2,
.about-text h2 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 13px 0;
  letter-spacing: -1.4px;
}

.section-title p,
.about-text p {
  color: #64748b;
  font-size: 18px;
  line-height: 1.75;
}

/* ===================== LAYOUTS ===================== */

.search-layout,
.dorm-search-layout,
.advisor-layout,
.profile-layout,
.roadmap-layout {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
}

.advisor-layout,
.profile-layout,
.roadmap-layout {
  grid-template-columns: 400px 1fr;
}

/* ===================== COMMON CARDS ===================== */

.filters,
.dorm-filters,
.auth-box,
.dashboard-box,
.roadmap-form,
.roadmap-result,
.compare-box,
.growth-card,
.full-dorm-card,
.university-card,
.dorm-card,
.modal-content,
.about-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  box-shadow:
    0 24px 65px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.filters,
.dorm-filters {
  padding: 29px;
  height: fit-content;
  position: sticky;
  top: 105px;
}

.filters h3,
.dorm-filters h3,
.auth-box h3,
.dashboard-box h3,
.roadmap-form h3,
.roadmap-result h3,
.advisor-form h3,
.advisor-result h3 {
  font-size: 27px;
  margin-bottom: 22px;
  letter-spacing: -0.6px;
}

.filters label,
.dorm-filters label,
.roadmap-form label,
.advisor-form label {
  display: block;
  margin: 18px 0 8px;
  color: #334155;
  font-weight: 850;
}

.filters input,
.filters select,
.dorm-filters input,
.dorm-filters select,
.roadmap-form input,
.roadmap-form select,
.auth-box input,
.growth-card input,
.growth-card select,
.advisor-form input,
.advisor-form select,
.subscription-card input {
  width: 100%;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  margin-bottom: 12px;
  font-size: 14px;
  transition: 0.25s;
}

.filters input:focus,
.filters select:focus,
.dorm-filters input:focus,
.dorm-filters select:focus,
.roadmap-form input:focus,
.roadmap-form select:focus,
.auth-box input:focus,
.growth-card input:focus,
.growth-card select:focus,
.advisor-form input:focus,
.advisor-form select:focus,
.subscription-card input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.12);
  background: white;
}

.subscription-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.76);
  z-index: 9999;
}

.subscription-modal.hidden {
  display: none;
}

.subscription-card {
  width: min(480px, 100%);
  background: #ffffff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  position: relative;
}

.subscription-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 20px;
  cursor: pointer;
}

.subscription-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.subscription-card p {
  color: #475569;
  line-height: 1.75;
}

.subscription-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-methods {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  background: #f8fafc;
}

.payment-method-option input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.payment-method-option span {
  font-size: 14px;
  color: #0f172a;
}

.subscription-fields-hidden {
  display: none;
}

.subscription-note {
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
}

.modal-open {
  overflow: hidden;
}

.filters button,
.dorm-filters button,
.roadmap-form button,
.auth-box button,
.growth-card button,
.advisor-form button {
  width: 100%;
  margin-top: 12px;
}

/* ===================== UNIVERSITY SEARCH ===================== */

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 20px;
}

.result-top h3 {
  font-size: 30px;
  letter-spacing: -0.7px;
}

.result-top p {
  color: #64748b;
  font-weight: 850;
  background: #eef2ff;
  padding: 9px 14px;
  border-radius: 999px;
}

.search-hit-line {
  margin: 6px 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-block;
}

mark.search-highlight {
  background: #fef08a;
  color: #111827;
  padding: 0 3px;
  border-radius: 4px;
}

.result-actions,
.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
body {
  overflow-x: hidden; /* Это нормально */
  /* Убедитесь, что тут НЕТ строк: overflow: hidden; или display: none; */
}
.sort-control {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.universities-grid,
.dorms-grid,
.saved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.university-card,
.full-dorm-card,
.growth-card,
.dorm-card {
  overflow: hidden;
  transition: 0.28s;
  position: relative;
}

.university-card::before,
.full-dorm-card::before,
.growth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.16));
  opacity: 0;
  transition: 0.28s;
  pointer-events: none;
}

.university-card:hover,
.full-dorm-card:hover,
.growth-card:hover,
.dorm-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 35px 85px rgba(15, 23, 42, 0.18);
}

.university-card:hover::before,
.full-dorm-card:hover::before,
.growth-card:hover::before {
  opacity: 1;
}

.university-image {
  height: 200px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 32%),
    linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 54px;
  position: relative;
}

.university-image::after {
  content: "UniVerse Pro";
  position: absolute;
  bottom: 18px;
  right: 20px;
  font-size: 13px;
  font-weight: 850;
  opacity: 0.75;
}

.university-content,
.dorm-content {
  padding: 26px;
  position: relative;
  z-index: 2;
}

.university-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.university-header h3 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.favorite-btn {
  min-width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: 0.25s;
}

.favorite-btn:hover {
  transform: scale(1.1) rotate(-8deg);
}

.favorite-btn.active {
  background: #fee2e2;
  color: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.1);
}

.university-location,
.dorm-location {
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.5;
  font-weight: 650;
}

.university-info,
.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.modal-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-box,
.modal-info {
  background: #f8fafc;
  padding: 15px;
  border-radius: 17px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.info-box span,
.modal-info span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 700;
}

.info-box strong,
.modal-info strong {
  color: #0f172a;
  font-size: 15px;
}

.card-actions {
  display: flex;
  gap: 12px;
}

.card-actions button {
  flex: 1;
}

.no-results,
.no-dorms,
.empty-saved {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  background: white;
  border-radius: 30px;
  color: #64748b;
}

/* ===================== AI ADVISOR ===================== */

.dark {
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.35), transparent 30%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.22), transparent 32%),
    #0f172a;
  color: white;
}

.dark .section-title p {
  color: #cbd5e1;
}

.advisor-form,
.advisor-result {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
}

.advisor-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

.advisor-form label {
  color: #cbd5e1;
}

.advisor-form input,
.advisor-form select {
  background: rgba(15, 23, 42, 0.75);
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
}

.empty-result,
.empty-roadmap {
  color: #cbd5e1;
  line-height: 1.7;
}

.ai-result-card {
  background: rgba(255, 255, 255, 0.095);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  padding: 25px;
  margin-bottom: 18px;
  transition: 0.25s;
}

.ai-result-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.14);
}

.ai-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.ai-result-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.ai-result-top h4 {
  font-size: 24px;
}

.ai-score {
  color: #22c55e;
  font-size: 23px;
  font-weight: 950;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.ai-result-card p {
  color: #cbd5e1;
  margin-bottom: 14px;
}

.ai-tags,
.tags,
.dorm-features,
.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.dorm-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.dorm-actions .btn {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
}

.ai-tags span,
.tags span,
.dorm-features span,
.program-tags span {
  padding: 8px 13px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.ai-tags span {
  background: rgba(167, 139, 250, 0.18);
  color: #ddd6fe;
}

.ai-warning {
  background: rgba(239, 68, 68, 0.13);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fecaca;
  padding: 18px;
  border-radius: 18px;
  line-height: 1.7;
}

/* ===================== DORMS ===================== */

.dorms-section,
.growth-section,
.roadmap-section,
.profile-section {
  background: #f8fafc;
}

.dorm-image {
  height: 190px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(124, 58, 237, 0.85)),
    url("https://images.unsplash.com/photo-1555854877-bab0e564b8d5?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: white;
  position: relative;
}

.dorm-image::after {
  content: "Student Housing";
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.dorm-image h3 {
  font-size: 27px;
}

.dorm-main-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.dorm-main-info div {
  background: #f8fafc;
  padding: 15px;
  border-radius: 17px;
  text-align: center;
  border: 1px solid rgba(226,232,240,0.8);
}

.dorm-main-info span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 5px;
  font-weight: 700;
}

.dorm-rating {
  color: #f59e0b;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 8px rgba(245,158,11,0.25));
}

/* ===================== GROWTH LAB ===================== */

.growth-section {
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 35%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.11), transparent 35%),
    #f8fafc;
}

.growth-layout {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.growth-card {
  padding: 32px;
}

.growth-icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
  box-shadow: 0 18px 35px rgba(79,70,229,0.28);
}

.growth-card h3 {
  font-size: 26px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.growth-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.gpa-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.growth-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.6;
  font-weight: 750;
}

.growth-result.success {
  background: #dcfce7;
  color: #166534;
}

.growth-result.warning {
  background: #fef3c7;
  color: #92400e;
}

.growth-result.danger {
  background: #fee2e2;
  color: #991b1b;
}

/* ===================== COMPARE ===================== */

.compare-section {
  background:
    radial-gradient(circle at center, rgba(99,102,241,0.14), transparent 38%),
    #eef2ff;
}

.compare-box {
  max-width: 1180px;
  margin: auto;
  padding: 25px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
  overflow: hidden;
  border-radius: 20px;
}

.compare-table th,
.compare-table td {
  padding: 18px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.compare-table th {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #4f46e5;
}

.compare-table td:first-child {
  font-weight: 950;
  color: #334155;
}

.remove-compare {
  border: none;
  background: #fee2e2;
  color: #ef4444;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 850;
}

/* ===================== PROFILE ===================== */

.profile-layout {
  max-width: 100%;
}

.profile-layout .auth-box {
  grid-column: 1 / -1;
}

.auth-box,
.dashboard-box,
.roadmap-form,
.roadmap-result {
  padding: 32px;
}

.dashboard-box {
  display: none;
}

.dashboard-box.active {
  display: block;
  grid-column: 1 / -1;
}

.auth-box.hidden {
  display: none;
}

.auth-shell {
  display: grid;
  gap: 22px;
}

.auth-intro {
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(120deg, rgba(14, 165, 233, 0.16), rgba(251, 146, 60, 0.12)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.auth-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f766e;
  font-weight: 800;
}

.auth-intro p {
  margin-top: 8px;
  color: #334155;
}

.auth-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-panel {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.88);
}

.auth-register-panel {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.9);
}

.auth-login-panel {
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.9);
}

.auth-panel h4 {
  margin-bottom: 6px;
  font-size: 23px;
}

.auth-panel-note {
  color: #475569;
  margin-bottom: 14px;
  font-size: 14px;
}

.auth-divider {
  margin: 12px 0;
  text-align: center;
}

.auth-divider span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.auth-note,
.dashboard-header p {
  color: #64748b;
  line-height: 1.6;
}

.auth-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 16px;
  font-size: 13px;
  color: #475569;
}

.auth-checkbox-row input {
  margin-top: 2px;
  accent-color: #0ea5e9;
}

.auth-inline-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0 10px;
}

.auth-inline-row .btn {
  padding: 9px 12px;
  white-space: nowrap;
}

.auth-inline-row input {
  min-width: 120px;
}

.auth-code-state {
  margin: 4px 0 10px;
  font-size: 13px;
  color: #0f766e;
  line-height: 1.4;
}

.auth-code-state.error {
  color: #b91c1c;
}

.auth-code-state.success {
  color: #166534;
}

@media (max-width: 760px) {
  .auth-inline-row {
    grid-template-columns: 1fr;
  }
}

body.profile-pro-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(14, 165, 233, 0.16), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(251, 146, 60, 0.15), transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

body.app-page {
  background:
    radial-gradient(circle at 14% 8%, rgba(14, 165, 233, 0.14), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(251, 146, 60, 0.11), transparent 35%),
    linear-gradient(180deg, #f7fbff 0%, #f1f7ff 100%);
}

.app-section-shell {
  max-width: 1220px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.app-card-polish {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.06);
}

.app-toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.app-list-layout {
  display: block;
}

.app-preview-card {
  min-height: 320px;
}

.app-preview-card ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.app-preview-card li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.filter-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.filter-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.filter-modal__panel {
  position: absolute;
  top: 32px;
  right: 32px;
  bottom: 32px;
  width: min(460px, calc(100vw - 24px));
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: #ffffff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.24);
  overflow: hidden;
}

.filter-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.filter-modal__head h3 {
  margin: 0;
  font-size: 20px;
}

.filter-modal__close {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1e3a8a;
  cursor: pointer;
}

.filter-modal__body {
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.filter-modal__body label {
  margin-top: 8px;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
}

.filter-modal__body input,
.filter-modal__body select {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  padding: 10px 12px;
  font-size: 14px;
}

.filter-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.filter-note-box {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(14, 165, 233, 0.38);
  background: #f0f9ff;
  padding: 12px;
}

.filter-note-box strong {
  color: #0c4a6e;
}

.filter-note-box p {
  margin: 6px 0 0;
  color: #334155;
  line-height: 1.5;
  font-size: 14px;
}

body.modal-open {
  overflow: hidden;
}

.ai-assistant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.ai-assistant-card {
  padding: 20px;
}

.ai-assistant-card h3 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-capabilities-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-chat-board {
  padding: 20px;
}

.ai-chat-head h3 {
  margin: 0;
}

.ai-chat-head p {
  margin-top: 6px;
  color: #64748b;
}

.ai-chat-window {
  margin-top: 14px;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.ai-msg {
  max-width: 88%;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
}

.ai-msg-bot {
  background: #e2e8f0;
  color: #0f172a;
  justify-self: start;
}

.ai-msg-user {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  justify-self: end;
}

.ai-chat-controls {
  margin-top: 12px;
}

.ai-chat-controls textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
}

.ai-chat-actions-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.app-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  .ai-assistant-grid,
  .app-about-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip-grid,
  .testimonials-grid,
  .growth-lab-grid {
    grid-template-columns: 1fr;
  }

  .funnel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .app-section-shell {
    margin: 16px auto;
    padding: 16px;
    border-radius: 18px;
  }

  .filter-modal__panel {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 12px;
    width: auto;
  }

  .hero-quick-search-row {
    grid-template-columns: 1fr;
  }

  .hero-quick-search input {
    font-size: 14px;
  }

  .sticky-cta {
    bottom: 10px;
    flex-direction: column;
    width: calc(100vw - 18px);
    border-radius: 14px;
  }

  .sticky-cta .btn {
    width: 100%;
  }

  .quiz-modal-panel {
    margin-top: 14vh;
    padding: 16px;
    border-radius: 16px;
  }

  .quiz-head h2 {
    font-size: 22px;
  }

  .faq-question {
    font-size: 16px;
  }

  .quiz-result-actions {
    flex-direction: column;
  }

  .feedback-panel {
    margin-top: 10vh;
    padding: 16px;
  }

  .feedback-head h3 {
    font-size: 20px;
  }

  .feedback-fab {
    right: 12px;
    bottom: 132px;
  }

  .funnel-grid {
    grid-template-columns: 1fr;
  }
}

body.profile-pro-page .profile-section {
  max-width: 1220px;
  margin: 24px auto;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

body.profile-pro-page .dashboard-stats {
  grid-template-columns: minmax(0, 1fr);
  max-width: 220px;
}

body.profile-pro-page .dashboard-stats div {
  background: linear-gradient(145deg, #ecfeff, #fef9c3);
}

body.profile-pro-page .saved-grid {
  margin-top: 18px;
}

body.profile-pro-page .tabs {
  margin-top: 10px;
}

body.profile-pro-page .tab-btn {
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.22);
  background: #f8fafc;
}

body.profile-pro-page .tab-btn.active {
  background: linear-gradient(120deg, #0ea5e9, #0284c7);
  color: #ffffff;
}

@media (max-width: 980px) {
  .auth-panels {
    grid-template-columns: 1fr;
  }
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.dashboard-stats div {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-radius: 22px;
  padding: 23px;
  text-align: center;
  border: 1px solid rgba(226,232,240,0.8);
}

.dashboard-stats h4 {
  color: #4f46e5;
  font-size: 34px;
}

.dashboard-stats p {
  color: #64748b;
  font-weight: 850;
}

.achievement-card {
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.achievement-card.hidden {
  display: none;
}

.achievement-card.is-unlocked {
  border-color: rgba(234, 179, 8, 0.45);
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.achievement-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.achievement-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,0.1);
  color: #2563eb;
  font-size: 22px;
  flex-shrink: 0;
}

.achievement-card.is-unlocked .achievement-icon {
  background: rgba(234, 179, 8, 0.15);
  color: #b45309;
}

.achievement-eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.achievement-card h4 {
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}

.achievement-card p {
  margin: 12px 0 0;
  color: #475569;
  line-height: 1.7;
}

.achievement-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #64748b;
  font-size: 13px;
}

.saved-title {
  margin-bottom: 18px;
}

.saved-card {
  background: #f8fafc;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid #e2e8f0;
}

.saved-card h4 {
  font-size: 21px;
  margin-bottom: 8px;
}

.saved-card p {
  color: #64748b;
  margin-bottom: 12px;
}

.saved-card strong {
  color: #2563eb;
}

.planner-section {
  margin-top: 34px;
  border-top: 1px solid #e2e8f0;
  padding-top: 30px;
}

.planner-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.planner-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.planner-header h3 {
  margin-bottom: 8px;
}

.planner-header p {
  color: #64748b;
  max-width: 640px;
}

.planner-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 14px;
  min-width: 300px;
}

.planner-summary div {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 18px;
  text-align: center;
}

.planner-summary strong {
  display: block;
  color: #1d4ed8;
  font-size: 29px;
  margin-bottom: 6px;
}

.planner-summary span {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.planner-form {
  background: linear-gradient(180deg, rgba(239,246,255,0.8), rgba(248,250,252,0.9));
  border: 1px solid #dbeafe;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.planner-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.planner-form label {
  display: block;
  color: #0f172a;
  font-weight: 800;
}

.planner-form select,
.planner-form input,
.planner-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: rgba(255,255,255,0.95);
}

.planner-form textarea {
  resize: vertical;
  min-height: 110px;
}

.planner-form select:focus,
.planner-form input:focus,
.planner-form textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
}

.planner-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.planner-actions-row.wrap-row {
  flex-wrap: wrap;
}

.note-templates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.note-template-btn {
  min-width: 92px;
}

.form-state-hint {
  margin-top: 10px;
  color: #0f766e;
  font-size: 14px;
  font-weight: 700;
}

.week-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-weight: 700;
  color: #334155;
}

.week-filter-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
}

.planner-list {
  display: grid;
  gap: 18px;
}

.planner-empty {
  color: #64748b;
  padding: 22px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
}

.planner-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: white;
  overflow: hidden;
}

.planner-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 14px;
}

.planner-card-top h4 {
  margin-bottom: 6px;
  font-size: 22px;
}

.planner-card-top p,
.planner-meta,
.planner-notes {
  color: #64748b;
}

.planner-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.planner-status.interested {
  background: #ede9fe;
  color: #6d28d9;
}

.planner-status.preparing {
  background: #dbeafe;
  color: #1d4ed8;
}

.planner-status.submitted {
  background: #fef3c7;
  color: #b45309;
}

.planner-status.accepted {
  background: #dcfce7;
  color: #166534;
}

.planner-status.rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.planner-priority,
.deadline-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  width: fit-content;
}

.planner-priority.dream {
  background: #fce7f3;
  color: #9d174d;
}

.planner-priority.target {
  background: #ede9fe;
  color: #6d28d9;
}

.planner-priority.safe {
  background: #ecfeff;
  color: #155e75;
}

.deadline-urgency.today {
  background: #fee2e2;
  color: #991b1b;
}

.deadline-urgency.three-days {
  background: #fef3c7;
  color: #92400e;
}

.deadline-urgency.seven-days {
  background: #ffedd5;
  color: #9a3412;
}

.deadline-urgency.overdue {
  background: #7f1d1d;
  color: #fef2f2;
}

.deadline-urgency.later,
.deadline-urgency.none {
  background: #e2e8f0;
  color: #1e293b;
}

.planner-card-body {
  padding: 0 22px 22px;
}

.planner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.planner-meta strong {
  color: #0f172a;
}

.planner-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.planner-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
}

.planner-check-item input {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
}

.planner-notes {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
  line-height: 1.6;
}

.planner-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.planner-card-actions .btn {
  min-width: 132px;
}

.planner-overview-grid,
.profile-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.full-width-card {
  grid-column: 1 / -1;
}

.planner-overview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 22px;
}

.overview-card-head h4,
.overview-card-head p {
  margin-bottom: 8px;
}

.overview-card-head p {
  color: #64748b;
}

.planner-calendar-list,
.status-board,
.compact-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
}

.mini-card p {
  color: #64748b;
  margin-bottom: 8px;
}

.mini-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nearby-links {
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.nearby-links strong {
  display: block;
  margin-bottom: 6px;
}

.nearby-links p {
  color: #64748b;
  margin: 0;
}

.compare-mini-card p {
  margin-bottom: 6px;
}

.full-span-card {
  grid-column: 1 / -1;
}

.scholarship-card {
  min-height: 100%;
}

.uni-enhancement-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin: 28px 0;
}

.uni-enhancement-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 38px rgba(15,23,42,0.08);
}

.uni-enhancement-card h3 {
  margin-bottom: 10px;
}

.uni-enhancement-card p {
  color: #64748b;
}

.uni-enhancement-card textarea {
  width: 100%;
  min-height: 130px;
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}

.note-autosave-state {
  margin-top: 10px;
  font-size: 14px;
  color: #0f766e;
}

.ai-hints-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-hints-list {
  margin-left: 18px;
  display: grid;
  gap: 6px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.similar-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
}

.similar-card strong {
  display: block;
  margin-bottom: 8px;
}

.similar-card p {
  color: #64748b;
  margin-bottom: 12px;
}

.reminder-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 32px));
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
  z-index: 1200;
  backdrop-filter: blur(12px);
}

.reminder-toast.hidden {
  display: none;
}

.reminder-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reminder-toast-close {
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.reminder-toast-body {
  display: grid;
  gap: 10px;
}

.reminder-toast-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.reminder-toast-item p {
  margin-top: 4px;
  color: rgba(248, 250, 252, 0.82);
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  font-weight: 800;
  color: #475569;
}

.deadlines-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-day {
  min-height: 122px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-day.empty {
  background: #f8fafc;
  border-style: dashed;
}

.calendar-day.has-events {
  border-color: #c7d2fe;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
}

.calendar-events {
  display: grid;
  gap: 6px;
}

.calendar-event {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
  width: fit-content;
}

.calendar-event.today {
  background: #fee2e2;
  color: #991b1b;
}

.calendar-event.three-days {
  background: #fef3c7;
  color: #92400e;
}

.calendar-event.seven-days {
  background: #ffedd5;
  color: #9a3412;
}

.calendar-event.overdue {
  background: #7f1d1d;
  color: #fef2f2;
}

.calendar-event.later,
.calendar-event.none {
  background: #e2e8f0;
  color: #1e293b;
}

/* ===================== ROADMAP ===================== */

.roadmap-section {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.13), transparent 34%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.12), transparent 34%),
    white;
}

.roadmap-university-card {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  color: white;
  padding: 30px;
  border-radius: 28px;
  margin-bottom: 26px;
  box-shadow: 0 22px 45px rgba(79,70,229,0.24);
}

.roadmap-university-card h4 {
  font-size: 30px;
  margin-bottom: 8px;
}

.roadmap-university-card p {
  color: #e0e7ff;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 3px;
  height: calc(100% - 10px);
  background: linear-gradient(#c7d2fe, #ddd6fe);
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  background: #f8fafc;
  padding: 23px;
  border-radius: 23px;
  border: 1px solid #e2e8f0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 25px;
  width: 18px;
  height: 18px;
  background: #4f46e5;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #c7d2fe;
}

.timeline-item.done::before {
  background: #22c55e;
  box-shadow: 0 0 0 3px #bbf7d0;
}

.timeline-item.warning::before {
  background: #f59e0b;
  box-shadow: 0 0 0 3px #fde68a;
}

.timeline-item h4 {
  font-size: 22px;
  margin-bottom: 8px;
}

.timeline-item p {
  color: #64748b;
  line-height: 1.6;
}

.timeline-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 950;
}

.timeline-item.done .timeline-status {
  background: #dcfce7;
  color: #166534;
}

.timeline-item.warning .timeline-status {
  background: #fef3c7;
  color: #92400e;
}

/* ===================== ABOUT ===================== */

.about {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 42px;
  align-items: center;
}

.about-card {
  padding: 38px;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  color: white;
  box-shadow: 0 28px 65px rgba(79,70,229,0.28);
}

.about-card h3 {
  font-size: 30px;
  margin-bottom: 15px;
}

.about-card p {
  color: #e0e7ff;
  line-height: 1.7;
}

/* ===================== MODAL ===================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  animation: modalShow 0.3s ease;
}

.modal-close {
  position: absolute;
  right: 25px;
  top: 25px;
  width: 43px;
  height: 43px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 20px;
}

.modal-hero {
  padding: 42px;
  border-radius: 30px;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  color: white;
  margin-bottom: 30px;
}

.modal-hero h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.modal-section {
  margin-bottom: 28px;
}

.modal-section h3 {
  font-size: 25px;
  margin-bottom: 12px;
}

.review-card {
  background: #f8fafc;
  padding: 21px;
  border-radius: 21px;
  margin-top: 12px;
}

.review-card strong {
  color: #4f46e5;
}

/* ===================== FOOTER ===================== */

.footer {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.24), transparent 34%),
    radial-gradient(circle at bottom right, rgba(37,99,235,0.16), transparent 35%),
    #020617;
  color: #94a3b8;
  padding: 75px 8% 28px;
}

.footer-grid {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer h3 {
  color: white;
  font-size: 30px;
  margin-bottom: 15px;
}

.footer h4 {
  color: white;
  margin-bottom: 15px;
}

.footer p {
  line-height: 1.7;
}

.footer a {
  display: block;
  color: #94a3b8;
  margin-bottom: 10px;
  transition: 0.25s;
}

.footer a:hover {
  color: #c4b5fd;
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1350px;
  margin: 45px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* ===================== ANIMATION ===================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-18px) rotate(1deg);
  }
}

@keyframes modalShow {
  from {
    transform: translateY(30px) scale(0.96);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===================== DARK MODE ===================== */

body.dark-mode {
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.18), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.16), transparent 30%),
    #020617;
  color: #e5e7eb;
}

body.dark-mode .section,
body.dark-mode .profile-section,
body.dark-mode .growth-section,
body.dark-mode .roadmap-section,
body.dark-mode .dorms-section,
body.dark-mode .compare-section {
  background: transparent;
}

body.dark-mode .filters,
body.dark-mode .dorm-filters,
body.dark-mode .auth-box,
body.dark-mode .dashboard-box,
body.dark-mode .growth-card,
body.dark-mode .roadmap-form,
body.dark-mode .roadmap-result,
body.dark-mode .compare-box,
body.dark-mode .full-dorm-card,
body.dark-mode .university-card,
body.dark-mode .dorm-card,
body.dark-mode .modal-content,
body.dark-mode .no-results,
body.dark-mode .no-dorms,
body.dark-mode .empty-saved {
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

body.dark-mode input,
body.dark-mode select {
  background: #020617;
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .info-box,
body.dark-mode .modal-info,
body.dark-mode .saved-card,
body.dark-mode .growth-result,
body.dark-mode .timeline-item,
body.dark-mode .dashboard-stats div,
body.dark-mode .planner-card,
body.dark-mode .planner-summary div,
body.dark-mode .planner-form,
body.dark-mode .planner-check-item,
body.dark-mode .planner-empty,
body.dark-mode .planner-notes,
body.dark-mode .planner-overview-card,
body.dark-mode .mini-card,
body.dark-mode .uni-enhancement-card,
body.dark-mode .similar-card,
body.dark-mode .review-card,
body.dark-mode .dorm-main-info div {
  background: rgba(17, 24, 39, 0.95);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode .info-box strong,
body.dark-mode .modal-info strong,
body.dark-mode .compare-table td:first-child {
  color: #e5e7eb;
}

body.dark-mode .section-title p,
body.dark-mode .about-text p,
body.dark-mode .dorm-location,
body.dark-mode .university-location,
body.dark-mode .growth-card p,
body.dark-mode .timeline-item p,
body.dark-mode .auth-note,
body.dark-mode .dashboard-header p,
body.dark-mode .saved-card p,
body.dark-mode .planner-header p,
body.dark-mode .planner-meta,
body.dark-mode .planner-notes,
body.dark-mode .planner-summary span,
body.dark-mode .overview-card-head p,
body.dark-mode .mini-card p,
body.dark-mode .uni-enhancement-card p,
body.dark-mode .similar-card p,
body.dark-mode .reminder-toast-item p,
body.dark-mode .result-top p {
  color: #cbd5e1;
}

body.dark-mode .note-autosave-state {
  color: #5eead4;
}

body.dark-mode .form-state-hint {
  color: #67e8f9;
}

body.dark-mode .week-filter-toggle,
body.dark-mode .calendar-weekdays span {
  color: #cbd5e1;
}

body.dark-mode .calendar-day {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode .calendar-day.empty {
  background: rgba(15, 23, 42, 0.75);
}

body.dark-mode .deadline-urgency.later,
body.dark-mode .deadline-urgency.none,
body.dark-mode .calendar-event.later,
body.dark-mode .calendar-event.none {
  background: #334155;
  color: #e2e8f0;
}

body.dark-mode .planner-eyebrow {
  background: rgba(79,70,229,0.18);
  color: #c7d2fe;
}

body.dark-mode .planner-summary strong {
  color: #93c5fd;
}

body.dark-mode .planner-form select,
body.dark-mode .planner-form input,
body.dark-mode .planner-form textarea {
  background: #020617;
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .nearby-links {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode .uni-enhancement-card textarea,
body.dark-mode .sort-control select {
  background: #020617;
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .compare-table th {
  background: rgba(17, 24, 39, 0.95);
}

body.dark-mode .compare-table td,
body.dark-mode .compare-table th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1150px) {
  .nav-links,
  .nav-buttons {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions,
  .stats {
    justify-content: center;
  }

  .hero-card {
    width: 100%;
    max-width: 440px;
  }

  .search-layout,
  .dorm-search-layout,
  .advisor-layout,
  .profile-layout,
  .roadmap-layout,
  .about {
    grid-template-columns: 1fr;
  }

  .filters,
  .dorm-filters {
    position: static;
  }

  .universities-grid,
  .dorms-grid,
  .saved-grid,
  .growth-layout,
  .planner-overview-grid,
  .profile-insights-grid,
  .similar-grid,
  .ai-hints-grid {
    grid-template-columns: 1fr;
  }

  .dorm-main-info,
  .modal-grid,
  .dashboard-stats,
  .uni-enhancement-grid {
    grid-template-columns: 1fr;
  }

  .planner-header,
  .planner-card-top,
  .planner-actions-row,
  .planner-card-actions {
    flex-direction: column;
  }

  .planner-summary,
  .planner-form-grid,
  .planner-checklist {
    grid-template-columns: 1fr;
  }

  .planner-summary {
    min-width: 0;
  }

  .result-top,
  .result-actions,
  .sort-control,
  .ai-actions,
  .mini-card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .reminder-toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }

  .deadlines-calendar-grid,
  .calendar-weekdays {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 82px 6%;
  }

  .hero {
    padding: 135px 6% 75px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-card,
  .advisor-form,
  .advisor-result,
  .filters,
  .dorm-filters,
  .growth-card,
  .roadmap-form,
  .roadmap-result,
  .auth-box,
  .dashboard-box {
    border-radius: 25px;
  }

  .stats div {
    width: 100%;
  }

  .card-actions {
    flex-direction: column;
  }

  .modal-content {
    padding: 25px;
    border-radius: 24px;
  }

  .modal-hero {
    padding: 28px;
  }

  .modal-hero h2 {
    font-size: 30px;
  }
}
/* ===== УНИВЕРСИТЕТЫ ===== */

.university-image {
  height: 150px; /* было 200px */
  overflow: hidden;
  background: #f8fafc;
}

.university-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.university-content {
  padding: 20px;
  background: #ffffff;
}

.university-header h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  color: #111827; /* темный цвет для читаемости */
}

.university-location {
  color: #2563eb; /* ярко-синий */
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 16px;
}

.info-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.info-box span {
  color: #6b7280;
  font-weight: 600;
}

.info-box strong {
  color: #111827;
  font-weight: 700;
}

.university-card {
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.university-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.match-line span {
  color: #374151;
  font-weight: 600;
}

.match-line strong {
  color: #16a34a;
}
#language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

#languageSelect {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    background: #2563eb;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.language-select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.language-select option {
    background: #020617;
    color: white;
}

/* ===================== ОБНОВЛЕННЫЙ ДИЗАЙН ПЕРЕВОДЧИКА ===================== */

/* Контейнер переводчика */
#google_translate_element { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

/* Стилизация выпадающего списка */
#google_translate_element select { 
  background: rgba(255, 255, 255, 0.08); 
  color: white; 
  border: 1px solid rgba(255, 255, 255, 0.12); 
  padding: 8px 10px; 
  border-radius: 8px; 
  cursor: pointer;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* ==========================================================================
   СОВРЕМЕННЫЙ ДИЗАЙН ПЕРЕВОДЧИКА (PREMIUM UI)
   ========================================================================== */

/* Контейнер виджета */
#google_translate_element {
  display: inline-flex;
  align-items: center;
  position: relative;
}

/* Полная маскировка и кастомизация системного селекта Google */
#google_translate_element select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 36px 10px 40px; /* Отступы под иконки слева и справа */
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Эффекты при наведении и фокусе */
#google_translate_element select:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.15); /* Нежное фиолетовое свечение */
  transform: translateY(-1px);
}

#google_translate_element select:focus {
  border-color: #7c3aed; /* Аппаратный фиолетовый акцент */
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

/* Добавление иконки Глобуса/Языка слева через псевдоэлемент */
#google_translate_element::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  background-color: currentColor;
  /* Красивая минималистичная SVG-иконка перевода/глобуса */
  clip-path: path("M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-1.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z");
  opacity: 0.85;
}

/* Добавление аккуратной стрелочки выпадающего списка справа */
#google_translate_element::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 5px;
  pointer-events: none;
  background-color: currentColor;
  clip-path: path("M0 0l4 4 4-4z");
  opacity: 0.7;
  transition: transform 0.3s ease;
}

/* Анимация стрелочки при фокусе на селекте */
#google_translate_element:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Кастомизация всплывающих окон внутри самого селекта (для темной темы) */
#google_translate_element select option {
  background: #0f172a; /* Глубокий темный фон под темную тему вашего сайта */
  color: #cbd5e1;
  font-family: inherit;
  padding: 10px;
}

/* ПРИНУДИТЕЛЬНОЕ УДАЛЕНИЕ БРЕНДИНГА GOOGLE */
#google_translate_element img, 
.goog-logo-link, 
.goog-te-gadget img,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
}

/* Скрытие верхней панели перевода Google, если она пытается появиться */
body {
  top: 0 !important;
}

.uni-tabs{
    display:flex;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    background:#fff;
    margin-top:25px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    scrollbar-width:thin;
    scroll-behavior:smooth;
}

.uni-tabs::-webkit-scrollbar{
    height:6px;
}

.uni-tabs::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:10px;
}

.tab-btn{
    flex:0 0 auto;
    min-width:max-content;
    padding:18px 24px;
    border:none;
    background:#fff;
    cursor:pointer;
    font-size:15px;
    transition:.3s;
    white-space:nowrap;
}

.tab-btn:hover{
    background:#f8fafc;
}

.tab-btn.active{
    border-bottom:4px solid #2563eb;
    color:#2563eb;
    font-weight:700;
}
.tabs-wrapper{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:25px;
}

.scroll-btn{
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:#2563eb;
    color:white;
    font-size:18px;
}
.tabs-wrapper{
    margin:30px 0;
  position: relative;
}

.tab-content{
    display:none;
}

.tab-content.active{
    display:block;
}

/* ==========================================
   CINEMATIC OPENING BOOK INTRO (UNIVERSE PRO)
============================================= */

body.loading {
    overflow: hidden;
}

body.loading header, 
body.loading main, 
body.loading footer {
    opacity: 0;
    transform: scale(0.98) translateY(15px);
}

header, main, footer {
    transition: opacity 1.6s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 1.6s cubic-bezier(0.215, 0.610, 0.355, 1);
    will-change: opacity, transform;
}



.intro-welcome-box {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 900px;
    perspective: 1000px; /* Включаем 3D пространство для книги */
}

/* --- СТИЛИ АНИМАЦИИ КНИГИ --- */




.intro-book-page {
    position: absolute;
    top: 5%;
    left: 50%;
    width: 45%;
    height: 90%;
    background: linear-gradient(90deg, #101432, #4facfe);
    border-radius: 0 2px 2px 0;
    transform-origin: left center;
    will-change: transform;
}

/* Эффект перелистывания страниц */

.page-2 {
    animation: intro-page-flip 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s infinite;
}
.page-3 {
    animation: intro-page-flip 2.2s cubic-bezier(0.4, 0, 0.2, 1) 1.3s infinite;
}

/* --- ТЕКСТ И ЛОАДЕР --- */
.intro-welcome-title {
    color: #ffffff;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: intro-premium-fade 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
    line-height: 1.3;
}

.intro-welcome-title span {
    display: inline-block;
    font-weight: 900;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 25px rgba(0, 242, 254, 0.5));
}

.intro-loader-bar {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 35px auto 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: intro-fade-in 1s ease 1.2s forwards;
}

.intro-loader-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    box-shadow: 0 0 10px #00f2fe;
    animation: intro-progress 3.5s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

/* --- КЛЮЧЕВЫЕ КАДРЫ ТРАНСФОРМАЦИЙ --- */
@keyframes intro-book-float {
    0%, 100% { transform: translateY(0) rotateX(15deg); }
    50% { transform: translateY(-8px) rotateX(20deg); }
}

@keyframes intro-page-flip {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: rotateY(-180deg);
        opacity: 0;
    }
}

@keyframes intro-premium-fade {
    0% { opacity: 0; transform: translateY(25px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes intro-fade-in {
    100% { opacity: 1; }
}

@keyframes intro-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}
/* Делаем шапку во весь экран */
.header {
  width: 100% !important;
  max-width: none !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box;
}

/* Ограничиваем ширину только у внутренней панели навигации */
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}
/* --- СТИЛИ ДЛЯ РОСКОШНОГО РАЗДЕЛА ОБРАЗОВАНИЯ --- */
.education-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

/* Карточки уровней обучения на всю ширину с картинками */
.edu-level-card {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

.edu-level-card:hover {
  transform: scale(1.005);
}

.edu-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.edu-level-card:hover .edu-card-bg {
  transform: scale(1.05);
}

.edu-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 30%, rgba(15, 23, 42, 0.5) 70%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10%;
  color: white;
}

.edu-card-overlay h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.edu-card-overlay p {
  max-width: 500px;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.btn-edu-more {
  background: #ffffff;
  color: #0f172a;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-edu-more:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(163, 29, 29, 0.4);
}

/* Стилизация внутренних роскошных страниц деталей */
.edu-detail-page {
  background: #ffffff;
  width: 100%;
  min-height: 400px;
  padding: 40px 10%;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease-out;
}

.btn-edu-back {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s;
  margin-bottom: 30px;
}

.btn-edu-back:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.edu-detail-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #0f172a;
}

.edu-intro-text {
  font-size: 16px;
  color: #475569;
  margin-bottom: 40px;
  max-width: 800px;
}

.faculties-title {
  font-size: 24px;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Сетка для отображения Факультетов Бакалавриата */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.school-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 24px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.school-item:hover {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.school-item h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.school-item p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* --- СТИЛИ ДЛЯ НОВОГО ОБЗОРА MIT --- */
.overview-lead {
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: #0f172a !important;
  font-weight: 500;
  margin-bottom: 20px;
}

.laureates-box {
  background: #f8fafc;
  border-left: 4px solid #a31d1d;
  padding: 20px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}

.laureates-box h4 {
  margin: 0 0 10px 0;
  color: #a31d1d;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.why-mit-box {
  margin-top: 32px;
}

.why-mit-box h4 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px 0;
}

.why-mit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-mit-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.why-mit-list li i {
  font-size: 18px;
  color: #a31d1d;
  background: rgba(163, 29, 29, 0.08);
  padding: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Стилизация правой карточки с рейтингом */
.overview-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #a31d1d 0%, #5c1010 100%) !important;
  color: white !important;
  text-align: center;
  padding: 40px 24px !important;
}

.stat-badge {
  font-size: 54px;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.stat-desc {
  color: #f1f5f9;
  font-size: 14px;
  margin: 10px 0 30px 0;
}

.mini-stats {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.m-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.m-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.m-stat-lbl {
  font-size: 12px;
  color: #f8fafc;
  opacity: 0.8;
  margin-top: 2px;
}
/* --- СТИЛИ ДЛЯ ИНТЕРАКТИВНОГО ОБЗОРНОГО МЕНЮ --- */
.overview-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Контейнер для новых кнопок */
.overview-nav-box {
  display: flex;
  gap: 12px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  overflow-x: auto;
}
.overview-nav-box::-webkit-scrollbar { display: none; }

/* Дизайн внутренних кнопок */
.btn-sub-tab {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sub-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Активное состояние кнопки */
.btn-sub-tab.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

/* Контейнеры контента */
.info-grid-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media(max-width: 900px) { .info-grid-inner { grid-template-columns: 1fr; } }

.info-card-clean {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.info-card-clean h3 { margin: 0 0 16px 0; font-size: 22px; font-weight: 700; color: #0f172a; }
.info-card-clean p { color: #475569; line-height: 1.6; font-size: 15px; margin: 0 0 14px 0; }

/* Анимация переключения под-вкладок */
.sub-overview-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
}

.sub-overview-section.active-sub {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hidden-sub {
  display: none !important;
}
/* --- ГЛОБАЛЬНЫЕ НАСТРОЙКИ СТРАНИЦЫ --- */
:root {
  --primary-color: #a31d1d; /* Фирменный бордовый цвет MIT/Университетов */
  --primary-hover: #7a1515;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -6px rgba(0,0,0,0.03);
}

body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* --- ШАПКА САЙТА (HEADER) ИЗ UNI-2 НА ВЕСЬ ЭКРАН --- */
header.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.navbar {
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
  padding: 14px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.navbar .nav-links a {
  color: #333333 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.navbar .nav-links a:hover, 
.navbar .nav-links a.active {
  color: #667eea !important; 
}

.navbar .logo {
  color: #333333 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

/* --- ГЛАВНЫЙ КОНТЕЙНЕР --- */
.main-container {
  max-width: 1200px;
  margin: 100px auto 80px auto !important;
  padding: 0 24px;
  box-sizing: border-box;
}

/* --- КАРТОЧКА УНИВЕРСИТЕТА НА ВЕСЬ ЭКРАН --- */
.hero-card {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  grid-column: 1 / -1 !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  margin-top: 0 !important;
  box-sizing: border-box !important;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.hero-image-wrapper {
  position: relative;
  height: 380px;
  background: #1e293b;
  width: 100% !important;
  border-radius: 0 !important;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.4), transparent);
  padding: 40px;
}

.hero-title {
  color: #ffffff;
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -1px;
}

.hero-location {
  color: #cbd5e1;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- СТРОКА ГЛАВНЫХ ТАБОВ --- */
.action-row {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px 24px !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 12px;
  overflow-x: auto;
}
.action-row::-webkit-scrollbar { display: none; }

.btn-tab {
  white-space: nowrap;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.btn-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(163, 29, 29, 0.02);
  transform: translateY(-1px);
}

.btn-tab.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(163, 29, 29, 0.2);
}

/* --- ВНУТРЕННЕЕ МЕНЮ ОБЗОРА (Главная, История, Плюсы, Минусы) --- */
.overview-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.overview-nav-box {
  display: flex;
  gap: 12px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  overflow-x: auto;
  position: relative;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.btn-sub-tab {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.btn-sub-tab:hover { background: #f1f5f9; color: #0f172a; }
.btn-sub-tab.active { background: #0f172a; color: #ffffff; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15); }

.info-grid, .info-grid-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .info-grid, .info-grid-inner { grid-template-columns: 1fr; }
}

.info-card, .info-card-clean {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.sub-overview-section { display: none; opacity: 0; transform: translateY(10px); transition: all 0.35s ease; }
.sub-overview-section.active-sub { display: block; opacity: 1; transform: translateY(0); }
.hidden-sub { display: none !important; pointer-events: none !important; }
.hidden { display: none !important; }

/* --- РОСКОШНЫЕ СТИЛИ ОБРАЗОВАНИЯ --- */
.education-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.edu-level-card { position: relative; width: 100%; height: 280px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: all 0.4s ease; }
.edu-level-card:hover { transform: scale(1.005); }
.edu-card-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.edu-level-card:hover .edu-card-bg { transform: scale(1.05); }
.edu-card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 30%, rgba(15, 23, 42, 0.5) 70%, transparent); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 10%; color: white; }
.edu-card-overlay h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 1px; }
.edu-card-overlay p { max-width: 500px; font-size: 15px; color: #cbd5e1; line-height: 1.5; margin: 0 0 20px 0; }
.btn-edu-more { background: #ffffff; color: #0f172a; border: none; padding: 12px 28px; border-radius: 30px; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.25s ease; }
.btn-edu-more:hover { background: var(--primary-color); color: white; box-shadow: 0 4px 15px rgba(163, 29, 29, 0.4); }

.edu-detail-page { background: #ffffff; width: 100%; min-height: 400px; padding: 40px 10%; box-sizing: border-box; animation: fadeIn 0.4s ease-out; }
.btn-edu-back { background: #f1f5f9; border: 1px solid #e2e8f0; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; color: #475569; transition: all 0.2s; margin-bottom: 30px; }
.btn-edu-back:hover { background: #e2e8f0; color: #0f172a; }
.schools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.school-item { background: #f8fafc; border: 1px solid #e2e8f0; padding: 24px; border-radius: 12px; transition: all 0.25s ease; }
.school-item:hover { border-color: var(--primary-color); background: #ffffff; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transform: translateY(-2px); }
.school-item h3 { margin: 0 0 12px 0; font-size: 18px; font-weight: 700; color: #0f172a; }
.school-item p { font-size: 14px; color: #475569; line-height: 1.6; margin: 0; }


/* ===================== BIG BANG INTRO (UNIVERSE PRO) ===================== */

body.loading {
  overflow: hidden !important;
}

.bigbang-intro {
  --bigbang-fade-duration: 900ms;
  --bigbang-zoom-duration: 4000ms;
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background:
    radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(99, 102, 241, 0.16), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(168, 85, 247, 0.12), transparent 36%),
    linear-gradient(130deg, #09050f 8%, #120920 52%, #09070f 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--bigbang-fade-duration) cubic-bezier(0.22, 1, 0.36, 1), visibility var(--bigbang-fade-duration);
}

.bigbang-intro.bigbang-fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bigbang-noise {
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(rgba(203, 213, 225, 0.1) 0.5px, transparent 0.8px),
    radial-gradient(rgba(148, 163, 184, 0.06) 0.5px, transparent 0.9px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 2px;
  opacity: 0.22;
  filter: blur(0.4px);
  transform: translate3d(var(--noise-parallax-x, 0), var(--noise-parallax-y, 0), 0);
  transition: transform 220ms ease-out;
  animation: bigbangNoiseDrift 14s linear infinite;
}

.bigbang-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(6px);
  box-shadow:
    0 30px 100px rgba(8, 8, 18, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: bigbangFinalZoom var(--bigbang-zoom-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bigbang-core-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}

.bigbang-singularity {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow:
    0 0 22px rgba(103, 232, 249, 0.95),
    0 0 68px rgba(56, 189, 248, 0.75),
    0 0 115px rgba(14, 165, 233, 0.44);
  animation: bigbangPulse 1.65s ease-in-out 2;
}

.bigbang-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  transform-style: preserve-3d;
  opacity: 0;
}

.bigbang-ring.ring-a {
  width: 150px;
  height: 56px;
  transform: translate(-50%, -50%) rotateX(70deg) rotateZ(12deg);
  animation: bigbangOrbitA 1.4s ease-out forwards;
}

.bigbang-ring.ring-b {
  width: 186px;
  height: 70px;
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-18deg);
  animation: bigbangOrbitB 1.4s ease-out 120ms forwards;
}

.bigbang-ring.ring-c {
  width: 206px;
  height: 78px;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(36deg);
  animation: bigbangOrbitC 1.4s ease-out 210ms forwards;
}

.bigbang-nebula {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.95), rgba(99, 102, 241, 0.25));
  opacity: 0;
  filter: blur(0.2px);
  animation: bigbangNebula 860ms cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.bigbang-brand {
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(90%, 680px);
}

.bigbang-title {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(38px, 8vw, 84px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: none;
  margin: 0;
}

.bigbang-title .letter {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  color: rgba(224, 231, 255, 0.98);
  text-shadow: 0 0 24px rgba(148, 163, 184, 0.25);
  animation: bigbangLetterIn 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bigbang-title .letter.u,
.bigbang-title .letter.v {
  color: #7dd3fc;
  text-shadow:
    0 0 22px rgba(56, 189, 248, 0.75),
    0 0 48px rgba(14, 165, 233, 0.35);
}

.bigbang-title .letter:nth-child(1) { animation-delay: 1700ms; }
.bigbang-title .letter:nth-child(2) { animation-delay: 1770ms; }
.bigbang-title .letter:nth-child(3) { animation-delay: 1840ms; }
.bigbang-title .letter:nth-child(4) { animation-delay: 1910ms; }
.bigbang-title .letter:nth-child(5) { animation-delay: 1980ms; }
.bigbang-title .letter:nth-child(6) { animation-delay: 2050ms; }
.bigbang-title .letter:nth-child(7) { animation-delay: 2120ms; }
.bigbang-title .letter:nth-child(8) { animation-delay: 2190ms; }

.bigbang-title::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 24%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.95), transparent);
  filter: blur(0.2px);
  animation: bigbangShimmer 650ms ease-out 2450ms forwards;
}

.bigbang-pro-wrap {
  margin-top: 12px;
  position: relative;
  display: inline-block;
  min-width: 146px;
}

.bigbang-pro {
  display: inline-block;
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: 0.38em;
  font-weight: 800;
  color: #e2e8f0;
  opacity: 0;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(125, 211, 252, 0.28);
  animation: bigbangProFlicker 620ms steps(2, end) 2550ms forwards;
}

.bigbang-pro-ring {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 150px;
  height: 22px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  border-radius: 50%;
  transform: translateX(-50%) rotateX(66deg);
  opacity: 0;
  animation: bigbangProRing 440ms ease-out 2680ms forwards;
}

@keyframes bigbangNoiseDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-3%, -2%, 0); }
}

@keyframes bigbangPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.7); }
}

@keyframes bigbangOrbitA {
  0% { opacity: 0; transform: translate(-50%, -50%) rotateX(70deg) rotateZ(12deg) scale(0.65); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotateX(70deg) rotateZ(162deg) scale(1); }
}

@keyframes bigbangOrbitB {
  0% { opacity: 0; transform: translate(-50%, -50%) rotateX(72deg) rotateZ(-18deg) scale(0.64); }
  100% { opacity: 0.86; transform: translate(-50%, -50%) rotateX(72deg) rotateZ(136deg) scale(1); }
}

@keyframes bigbangOrbitC {
  0% { opacity: 0; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(36deg) scale(0.62); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(210deg) scale(1); }
}

@keyframes bigbangNebula {
  0% {
    opacity: 0.95;
    transform: scale(1);
    filter: blur(0.4px);
  }
  100% {
    opacity: 0.05;
    transform: scale(22);
    filter: blur(1.2px);
  }
}

@keyframes bigbangLetterIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes bigbangShimmer {
  0% { width: 0; opacity: 0; }
  45% { width: 82%; opacity: 1; }
  100% { width: 82%; opacity: 0.08; }
}

@keyframes bigbangProFlicker {
  0% { opacity: 0; }
  18% { opacity: 0.25; }
  34% { opacity: 0.05; }
  54% { opacity: 0.58; }
  70% { opacity: 0.25; }
  100% { opacity: 1; }
}

@keyframes bigbangProRing {
  from {
    opacity: 0;
    transform: translateX(-50%) rotateX(66deg) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) rotateX(66deg) scale(1);
  }
}

@keyframes bigbangFinalZoom {
  0%, 80% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.045);
  }
}

@media (max-width: 700px) {
  .bigbang-stage {
    height: 100vh;
    border-radius: 0;
  }

  .bigbang-core-wrap {
    width: 170px;
    height: 170px;
  }

  .bigbang-ring.ring-a { width: 118px; height: 46px; }
  .bigbang-ring.ring-b { width: 144px; height: 54px; }
  .bigbang-ring.ring-c { width: 162px; height: 60px; }
}

/* ===================== GLOBAL FORCE DARK ===================== */

html,
body {
  background:
    radial-gradient(circle at 8% 10%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(79, 70, 229, 0.18), transparent 32%),
    #020617 !important;
  color: #e5e7eb;
}

main,
section,
article,
.section,
.dorms-section,
.growth-section,
.roadmap-section,
.profile-section,
.compare-section {
  background: transparent !important;
}

.university-card,
.full-dorm-card,
.dorm-card,
.growth-card,
.filters,
.dorm-filters,
.auth-box,
.dashboard-box,
.roadmap-form,
.roadmap-result,
.compare-box,
.modal-content,
.info-card,
.content-card,
.saved-card,
.planner-card,
.planner-overview-card,
.mini-card,
.similar-card,
.uni-enhancement-card,
.timeline-item {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #e5e7eb !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

.university-content,
.dorm-content,
.info-box,
.modal-info,
.dorm-main-info div,
.planner-form,
.planner-check-item,
.planner-notes,
.review-card,
.no-results,
.no-dorms,
.empty-saved {
  background: rgba(15, 23, 42, 0.86) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

p,
span,
label,
li,
.section-title p,
.about-text p,
.university-location,
.dorm-location,
.auth-note,
.dashboard-header p,
.saved-card p,
.timeline-item p,
.planner-meta,
.planner-notes,
.overview-card-head p,
.mini-card p,
.similar-card p,
.result-top p {
  color: #cbd5e1;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
.info-box strong,
.modal-info strong,
.university-header h3,
.saved-card h4 {
  color: #f8fafc !important;
}

input,
select,
textarea {
  background: #020617 !important;
  color: #e5e7eb !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.uni-tabs,
.tab-btn,
.tab-btn:hover,
.scroll-btn {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}

.tab-btn.active {
  border-bottom-color: #3b82f6 !important;
  color: #93c5fd !important;
}

.back-btn,
a {
  color: inherit;
}

/* ===================== FINAL DARK ENFORCEMENT ===================== */

header.header,
.header {
  background: rgba(2, 6, 23, 0.94) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32) !important;
}

.navbar .logo,
.navbar .nav-links a,
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #e5e7eb !important;
}

.navbar .nav-links a.active,
.navbar .nav-links a:hover {
  text-shadow: 0 0 10px rgba(147, 197, 253, 0.3);
}

.survey-widget,
#widgetSuccess,
.survey-modal,
.survey-step,
.survey-summary,
.survey-result,
.survey-navigation,
.intro-welcome-box,
.overview-nav-box,
.info-card-clean,
.edu-detail-page,
.school-item,
.laureates-box,
.uni-tabs,
.tab-btn,
.university-image,
.university-content,
.planner-card,
.planner-overview-card,
.mini-card,
.review-card,
.saved-card,
.subscription-card {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

.school-item p,
.info-card-clean p,
.overview-lead,
.why-mit-list li,
.edu-intro-text,
.stat-desc,
.m-stat-lbl {
  color: #cbd5e1 !important;
}

.result-top p,
.search-hit-line,
.nearby-links,
.nearby-links p,
.nearby-links strong,
.subscription-note,
.auth-note,
.dashboard-header p,
.saved-card p,
.planner-empty,
.ai-warning,
.reminder-toast-item,
.calendar-event,
.deadline-urgency,
.result-top,
.section-title p {
  background: rgba(15, 23, 42, 0.86) !important;
  color: #cbd5e1 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.result-top p,
.search-hit-line,
.nearby-links,
.planner-empty,
.ai-warning,
.deadline-urgency,
.calendar-event {
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

.match-progress,
.progress {
  background: rgba(148, 163, 184, 0.24) !important;
}

.payment-method-option {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.28);
}

.payment-method-option span {
  color: #e2e8f0;
}

/* ==========================================================================
   СТИЛИ ДЛЯ КАСТОМНОГО ПЕРЕВОДЧИКА C ПОИСКОМ И ФЛАГАМИ
   ========================================================================== */
#google_translate_element {
  position: relative;
  display: inline-block;
  z-index: 99999;
}

/* Скрываем уродливый стандартный селект Google */
#google_translate_element .goog-te-combo {
  display: none !important;
}

/* Увеличенный кликабельный логотип перевода */
.custom-translate-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 14px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.custom-translate-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.06) translateY(-1px);
}

.custom-translate-btn.active {
  background: rgba(14, 165, 233, 0.26);
  border-color: #7dd3fc;
}

.translate-big-icon {
  width: 26px;
  height: 26px;
}

/* Выпадающее современное меню (Стекломорфизм) */
.custom-translate-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-translate-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Поле поиска */
.translate-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
}

.translate-languages-list {
  max-height: 220px;
  overflow-y: auto;
}

/* Элемент языка: Флаг слева, Код страны справа */
.translate-lang-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center; /* Флаг и текст на одной линии по центру */
  font-size: 16px;
  font-weight: 700;
}

.translate-lang-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.translate-lang-item.active {
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
}

/* Флаг слева */
.lang-flag {
  font-size: 20px;
  margin-right: 16px; 
}

/* Текст названия (KZ, RU...) справа */
.lang-name {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Полное удаление брендинга Google */
#google_translate_element img, .goog-logo-link, .goog-te-gadget img, .goog-te-banner-frame, #goog-gt-tt {
  display: none !important;
}
.goog-te-gadget { color: transparent !important; font-size: 0 !important; }
body { top: 0 !important; }