@import url('/css/tokens.css');

/* ============ BASE LAYOUT ============ */
html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--gray-bg);
  color: var(--text-light);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

#scrollArea {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* =========================
   SITE FOOTER
========================= */
.site-footer {
  position: relative;
  z-index: 5;
  display: block;
  /* Override generic footer mobile rules */
  padding: 24px 0 34px;
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
  background: rgba(2, 6, 23, 0.72);
  border-top: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  line-height: 1.45;
  overflow: visible;
}

.site-footer * {
  box-sizing: border-box;
}

.site-footer .footer-bottom {
  min-height: 28px;
  align-items: center;
  padding-top: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  overflow: visible;
  line-height: 1.45;
}

.site-footer .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-footer .footer-cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.site-footer .footer-col {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-title {
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.site-footer a {
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  font-size: 14px;
}

.site-footer a:hover {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
}

.site-footer .footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer .footer-sep { opacity: 0.6; margin: 0 8px; }

@media (max-width: 980px) {
  .site-footer .footer-col { grid-column: span 6; }
}

@media (max-width: 620px) {
  .site-footer .footer-col { grid-column: span 12; }
}


/* ============ HEADER ============ */
header.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  z-index: 1000;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
}

.header-container {
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;        /* header stays ONE row always */
  align-items: center;
  gap: 0 0.6rem;
  padding: 0.5rem 1.5rem;
}

/* Logo — left, never shrinks */
.header-container > .logo-link {
  flex: 0 0 auto;
}

/* Nav — fills middle, shrinks when viewport narrows; items wrap INSIDE */
.header-container > #mainMenu {
  flex: 1 1 0;
  min-width: 0;
  overflow: visible;
}

/* Controls (lang + theme) — right, never shrinks, never wraps */
.header-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Header logo size */
.logo-link img{
  height: 51px; /* reduced 2x from the previous 102px */
  width: auto;
  display: block;
}

.logo-ecp-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--yellow-accent, #fde047);
  border: 1.5px solid rgba(253,224,71,0.55);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(17,24,39,0.4);
  align-self: center;
}

.text-logo { 
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0d2f6e;
  -webkit-text-fill-color: #0d2f6e;
  line-height: 1;
  letter-spacing: 0.05em;
}

.logo-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f9b233;
  -webkit-text-fill-color: #f9b233;
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ============ NAVIGATION ============ */
nav { 
  background: transparent; 
  padding: 0; 
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  justify-content: flex-end;
}

nav li {
  position: relative;
  padding: 0.7rem 1.5rem;
  color: var(--text-light); 
  cursor: pointer;
  border-radius: 24px;
  transition: all 0.22s;
  font-weight: 500; 
  font-size: 1rem;
  white-space: nowrap; /* prevent wrapping like "О нас" */
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.17);
}

nav li:hover {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,0.19);
}

/* ============ NAV DROPDOWN (How it works submenu) ============ */
.nav-dd { 
  position: relative;
  /* keep default li box model so height matches other menu items */
  display: list-item;
}

.nav-submenu {
  list-style: none;
  position: absolute;
  top: calc(100% - 2px); /* slight overlap so it doesn't "break" when moving cursor */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 6px 6px; /* extra top padding creates a safe hover bridge */
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: max-content;
  max-width: 300px;
  z-index: 50;

  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

/* Submenu opens on hover (and focus for keyboard) */
.nav-dd:hover .nav-submenu,
.nav-dd:focus-within .nav-submenu {
  display: flex;
}

.nav-submenu li {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.95rem;
  white-space: nowrap;
  color: rgba(255,255,255,0.88);
}

.nav-submenu li a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.nav-submenu li:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

.nav-dd-label { 
  display: block;
  white-space: nowrap; /* keep "How it works" in one line */
  padding-right: 18px; /* space for caret */
}

/* caret indicator */
.nav-dd-label::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  font-size: 0.9rem;
}

.nav-dd:hover .nav-dd-label::after,
.nav-dd:focus-within .nav-dd-label::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Keep dropdown within viewport on very small screens */
@media (max-width: 520px) {
  .nav-submenu {
    left: auto;
    right: 0;
    transform: none;
  }
}

/* ============ LANGUAGE SELECTOR - ФИНАЛЬНАЯ ВЕРСИЯ ============ */
.language-selector-container {
  margin-left: 0;
}

.language-selector {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.language-dropdown {
  cursor: pointer;
  user-select: none;
  background: rgba(17,24,39,0.16);
  border-radius: 12px;
  padding: 0 1em;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid rgba(56,189,248,0.13);
  min-width: 100px;
  box-sizing: border-box;
}

.language-current { 
  display: flex; 
  align-items: center; 
  gap: 0.3em; 
  width: 100%;
}

.language-arrow { 
  margin-left: auto; 
  font-size: 1.1em; 
  transition: transform 0.3s ease;
}

.language-dropdown.open .language-arrow {
  transform: rotate(180deg);
}

.language-flag { 
  font-size: 1.3em; 
}

.language-name {
  flex: 1;
  font-size: 0.9em;
  font-weight: 500;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: max-content;
  min-width: 140px;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 8px 24px rgba(17,24,39,0.15);
  border-radius: 10px;
  z-index: 5000;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.language-dropdown.open .language-options { 
  display: block; 
}

.language-option {
  display: flex; 
  align-items: center; 
  gap: 0.7em;
  padding: 0.6em 1em; 
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95em;
  transition: background 0.16s;
  white-space: nowrap;
}

.language-option:last-child { 
  border-bottom: none; 
}

.language-option.selected, .language-option:hover {
  background: var(--gradient-btn); 
  color: #fff;
}

.language-option .language-flag { 
  font-size: 1.2em; 
}

.language-option .language-name {
  font-size: 0.9em;
  font-weight: 500;
}

.language-dropdown:hover {
  background: rgba(17,24,39,0.25);
  border-color: rgba(56,189,248,0.2);
}

.language-options {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-dropdown.open {
  background: rgba(17,24,39,0.25);
}

/* ============ HERO SECTION (WELCOME) ============ */

/* Стили для ECP элемента */
.hero-ecp {
  font-size: 1rem;
  font-weight: 800;
  color: var(--yellow-accent);
  text-align: center;
  letter-spacing: 0.12em;
  margin: 0 auto 0.6rem auto;
  display: inline-block;
  position: relative;
  z-index: 3;
  padding: 0.3em 1em;
  border-radius: 2em;
  background: rgba(17,24,39,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(253,224,71,0.5);
  text-transform: uppercase;
}

/* Улучшенные стили для hero-title */
.hero-title {
  display: inline-block;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 900;
  text-align: center;
  color: #e8f7ff;
  line-height: 1.13;
  letter-spacing: -0.015em;
  margin: 0 auto 1.6rem auto;
  white-space: nowrap;
  word-break: normal;
  max-width: 98vw;
  overflow: hidden; 
  text-overflow: ellipsis;
  padding: 0.34em 1.55em;
  border-radius: 2.3em;
  background: rgba(17,24,39,0.16);
  backdrop-filter: blur(8px) saturate(113%);
  -webkit-backdrop-filter: blur(8px) saturate(113%);
  box-shadow: 0 2px 14px 0 rgba(30,64,175,0.13);
  border: 2px solid rgba(56,189,248,0.11);
  text-shadow: 0 2px 12px rgba(13,19,39,0.11);
  transition: background 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 3;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: url('/images/hero-eu-night.jpg') center center/cover no-repeat fixed;
  padding-top: 20px;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  flex: 1;
}

/* Stars in default (dark) theme */
.hero-section::before {
  content: none;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(2,6,23,0.72) 0%, rgba(2,6,23,0.52) 45%, rgba(2,6,23,0.68) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-title, .hero-subtitle {
  position: relative; 
  z-index: 3; 
  box-sizing: border-box;
}

/* Стили только для блока ECP */




.hero-subtitle {
  max-width: 660px; 
  width: 100%;
  margin: 2.1rem auto 2.6rem auto;
  padding: 1.1em 2em 1.1em 2em;
  background: rgba(17,24,39,0.21);
  color: #e0eaff; 
  text-align: center;
  font-size: clamp(1.08rem, 2.2vw, 1.22rem);
  line-height: 1.48; 
  border-radius: 1.5em;
  font-weight: 400;
  box-shadow: 0 2px 12px rgba(30,41,59,0.09);
  text-shadow: 0 1px 8px rgba(0,0,0,0.09);
  letter-spacing: 0.003em;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: background 0.3s;
}


/* ============ MODALS & FORMS ============ */
.modal-overlay {
  display: none;
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  justify-content: center; 
  align-items: center;
}

.modal-overlay.active { 
  display: flex; 
}

/* Ensure global notifications appear above login/registration modals */
#notificationModal {
  z-index: 3000;
}

.modal-content {
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 44px 0 rgba(16,38,70,0.23);
  padding: 36px 28px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
  color: #1e293b;
}

/* Login modal: кнопка X не должна обрезаться overflow scroll-контейнера */
.login-modal .modal-content {
  overflow: visible;
  max-height: none;
}

.modal-content-inner {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(85vh - 64px);
}

.modal-close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: #64748b;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.14s, transform 0.14s;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.modal-close-button:hover {
  background: #475569;
  color: #fff;
  transform: scale(1.1);
}

/* ============ BUTTONS & FORMS ============ */
button, .btn, .submit-btn {
  padding: 0.7em 2.1em;
  border-radius: 1.4em;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1.02em;
  margin-top: 1em;
  transition: background 0.18s, box-shadow 0.13s;
  box-shadow: 0 3px 14px rgba(59,130,246,0.13);
}

button:hover, .btn:hover, .submit-btn:hover {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 100%);
}

.modal-content .submit-btn,
#registrationModalContent .submit-btn,
#loginModalContent .submit-btn {
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  padding: 0.8em 2.2em;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 1.4em;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 3px 14px rgba(59,130,246,0.13);
  letter-spacing: 0.02em;
  margin-top: 1.2em;
  position: relative;
  overflow: hidden;
}

.modal-content .submit-btn::before,
#registrationModalContent .submit-btn::before,
#loginModalContent .submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.modal-content .submit-btn:hover,
#registrationModalContent .submit-btn:hover,
#loginModalContent .submit-btn:hover {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-dark) 100%);
  transform: translateY(-1px) scale(1.01);
}

.modal-content .submit-btn:hover::before,
#registrationModalContent .submit-btn:hover::before,
#loginModalContent .submit-btn:hover::before {
  left: 100%;
}

input, select, textarea {
  font-family: inherit;
  border-radius: 0.8em;
  border: 1.5px solid #e0eaff;
  padding: 0.8em 1.1em;
  margin-bottom: 1.1em;
  font-size: 1em;
  outline: none;
  background: #fff;
  color: #1e293b;
  transition: border 0.16s;
}

input:focus, select:focus, textarea:focus { 
  border-color: #38bdf8; 
}

/* Login Form Specific Styles */
#loginModalContent .forgot-password {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

#loginModalContent .forgot-password a {
  color: var(--blue-main);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

#loginModalContent .forgot-password a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

#loginModalContent .no-account {
  text-align: center;
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

#loginModalContent .no-account a {
  color: var(--blue-main);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

#loginModalContent .no-account a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.modal-content .note,
#registrationModalContent .note,
#loginModalContent .note {
  color: #64748b;
  font-size: 0.98rem;
  text-align: center;
  margin-top: 14px;
}

/* ============ FIXED BACK BUTTON ============ */
.back-btn-fixed {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1100;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(124,58,237,0.4);
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.back-btn-fixed:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============ DASHBOARD IFRAME ============ */
#dashboardIframe,
.dashboard-iframe {
  display: block;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100vh - 80px - 35px);
  min-height: 300px;
  margin: 0;
  padding: 0;
  border: none;
  background: #f6f8fa;
  z-index: 15;
  box-shadow: 0 4px 18px rgba(30,64,175,0.08);
}

body.iframe-mode main,
body.iframe-mode .hero-section,
body.iframe-mode #welcomeSection,
body.iframe-mode .hero-title,
body.iframe-mode .hero-subtitle,
body.iframe-mode #siteFooter {
  display: none !important;
}

body.iframe-mode #dashboardIframe,
body.iframe-mode .dashboard-iframe {
  display: block !important;
}

/* Footer/status bar removed. All user messages are shown via modal notifications. */

/* ============ ANIMATIONS ============ */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* Интегрированный хотфикс контраста */
header.header-container,
.header-container {
  color: var(--text-light);
}
.logo-text {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.logo-subtitle {
  color: #f9b233;
  -webkit-text-fill-color: #f9b233;
  opacity: 1;
}
header .language-dropdown {
  color: var(--text-light);
}
.language-dropdown .language-flag,
.language-dropdown .language-name,
.language-dropdown .language-arrow {
  color: inherit;
}
.language-options { 
  color: #1e293b; 
}
.language-option { 
  color: inherit; 
}
nav li { 
  color: var(--text-light); 
}
nav li:hover { 
  color: #fff; 
}


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


@media (max-width: 900px) {
  .header-container {
    padding: 0.7rem 1.2rem;
  }

  .logo-link img{
    height: 40px;
  }
  
  .hero-title { 
    font-size: clamp(1.35rem, 10vw, 2.6rem); 
  }
  
  .hero-subtitle { 
    font-size: clamp(0.97rem, 2.5vw, 1.07rem); 
  }
  
  .nav-list { 
    gap: 0.7rem; 
  }
  
  .language-selector { 
    font-size: 0.95rem; 
  }
  
  .language-selector-container {
    margin-left: 0;
  }
  
  .language-dropdown {
    min-width: 130px;
    padding: 0.25em 0.8em;
  }
}

@media (max-width: 768px) {
  .chatbot-toggle {
    bottom: 70px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .chatbot-widget {
    bottom: 130px;
    width: 300px;
    right: 10px;
  }
  
  footer {
    padding: 0.3rem 0;
    font-size: 0.9rem;
  }
  
  .language-selector-container {
    margin-left: 0.5rem;
  }
  
  .language-dropdown {
    min-width: 120px;
    padding: 6px 12px;
  }
  
  .language-current {
    font-size: 13px;
  }
  
  .language-flag {
    font-size: 16px;
  }
  
  .language-name {
    font-size: 0.8em;
  }
}

@media (max-width: 600px) {
  .hero-title { 
    padding: 0.14em 0.3em; 
    border-radius: 1.3em; 
  }
  
  .hero-subtitle { 
    padding: 0.7em 0.3em; 
    border-radius: 0.7em; 
  }
  
  .header-container { 
    padding: 0.45rem 0.8rem; 
  }
  
  .nav-list { 
    gap: 0.3rem; 
  }
  
  .language-selector-container {
    margin-left: 0.3rem;
  }
  
  .language-dropdown {
    min-width: 100px;
    padding: 4px 8px;
    font-size: 0.85em;
  }
  
  .language-current {
    font-size: 12px;
    gap: 0.2em;
  }
  
  .language-flag {
    font-size: 14px;
  }
  
  .language-name {
    font-size: 0.75em;
  }
  
  .language-arrow {
    font-size: 0.9em;
  }
  
}

@media (max-width: 480px) {
  .header-container { 
    padding: 0.2rem 0.4rem; 
  }
  
  .hero-title { 
    font-size: clamp(0.9rem, 11vw, 1.13rem); 
  }
  
  .hero-subtitle { 
    font-size: clamp(0.72rem, 3.7vw, 0.88rem); 
  }
  
  .chatbot-toggle {
    bottom: 60px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .chatbot-widget {
    bottom: 110px;
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
  }
  
  footer {
    padding: 0.2rem 0;
    font-size: 0.85rem;
    line-height: 1.35;
  }

  /* Ensure our public site footer isn't clipped on small screens */
  .site-footer {
    padding: 18px 0 28px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    line-height: 1.45;
  }
  .site-footer .footer-bottom {
    line-height: 1.45;
    min-height: 28px;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  
  .language-selector-container {
    margin-left: 0.2rem;
  }
  
  .language-dropdown {
    min-width: 90px;
    padding: 3px 6px;
    font-size: 0.8em;
  }
  
  .language-current {
    font-size: 11px;
  }
  
  .language-flag {
    font-size: 13px;
  }
  
  .language-name {
    font-size: 0.7em;
  }
  
  .language-options {
    bottom: 70px;
    right: 2px;
    left: 2px;
    min-width: auto;
    max-width: calc(100vw - 10px);
  }
  
  .language-option {
    padding: 0.7em 1em;
    font-size: 0.85em;
  }
}


@media (max-width: 600px) {
  .hero-title, .hero-subtitle {
    white-space: normal;
    word-break: break-word;
  }
}

/* ── Section headings: bright yellow in dark theme ── */
.section h2,
.sec-hdr h2,
.mission-main h2,
.card h2,
.wrap > h2,
.page > h2 {
  color: #fde047;
}
