

.lo-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.lo-modal[hidden] { display: none !important; }
.lo-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: 24px 16px;
}
.lo-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 5, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: loFadeIn .22s ease-out;
}
.lo-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(28, 18, 6, 0.97), rgba(20, 12, 4, 0.97));
  border: 1px solid rgba(245, 181, 68, 0.28);
  border-radius: 22px;
  padding: 32px 28px 26px;
  color: var(--cream, #f5e9d4);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(245, 181, 68, 0.06) inset;
  animation: loSlideUp .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes loFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes loSlideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes loFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes loSlideDown { from { transform: none; opacity: 1; } to { transform: translateY(16px) scale(0.97); opacity: 0; } }

/* Плавное закрытие модалки */
.lo-modal.is-closing .lo-modal-backdrop {
  animation: loFadeOut .26s ease-in forwards;
}
.lo-modal.is-closing .lo-modal-card {
  animation: loSlideDown .28s cubic-bezier(.4, 0, .6, 1) forwards;
}

/* Крестик "прилипает" сверху карточки при скролле — на мобиле тоже видим */
.lo-modal-x-holder {
  position: sticky;
  top: 0;
  height: 0;
  display: flex;
  justify-content: flex-end;
  z-index: 10;
  pointer-events: none;
  margin: 0 -10px 0 0;
}
.lo-modal-x {
  position: relative;
  top: 4px;
  pointer-events: auto;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 233, 212, 0.22);
  background: rgba(20, 12, 4, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream, #f5e9d4);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.lo-modal-x svg { display: block; }
.lo-modal-x:hover { background: rgba(245, 181, 68, 0.18); border-color: rgba(245, 181, 68, 0.55); }
.lo-modal-x:active { transform: scale(0.94); }

.lo-modal-head { margin-bottom: 22px; }
.lo-modal-head h3 {
  margin: 6px 0 8px;
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 500; line-height: 1.15;
  color: var(--saffron, #f5b544);
}
.lo-modal-head p {
  margin: 0; font-size: 14.5px; line-height: 1.5;
  color: rgba(245, 233, 212, 0.72);
}
.lo-package-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  background: rgba(245, 181, 68, 0.14);
  border: 1px solid rgba(245, 181, 68, 0.45);
  border-radius: 999px;
  color: var(--saffron, #f5b544);
  font-size: 13px; font-weight: 500;
}
.lo-package-badge::before {
  content: '✦ ';
  opacity: 0.8;
}
.lo-package-badge[hidden] { display: none !important; }

.lo-form { display: flex; flex-direction: column; gap: 14px; }
.lo-field { display: flex; flex-direction: column; gap: 6px; }
.lo-field > span {
  font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(245, 233, 212, 0.72);
}
.lo-field > span > i {
  color: var(--saffron, #f5b544); font-style: normal; margin-left: 2px;
}
.lo-field input,
.lo-field select,
.lo-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(245, 233, 212, 0.04);
  border: 1px solid rgba(245, 233, 212, 0.16);
  border-radius: 10px;
  color: var(--cream, #f5e9d4);
  font: inherit; font-size: 15px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.lo-field textarea { resize: vertical; min-height: 80px; font-family: inherit; }
/* Скрытый нативный select - его подменяет кастомный UI ниже */
.lo-select-wrap { position: relative; }
.lo-select-wrap select.lo-native {
  position: absolute;
  width: 1px; height: 1px; opacity: 0;
  pointer-events: none;
  clip: rect(0 0 0 0);
}

.lo-select-toggle {
  width: 100%;
  padding: 12px 42px 12px 14px;
  background: rgba(245, 233, 212, 0.04);
  border: 1px solid rgba(245, 233, 212, 0.16);
  border-radius: 10px;
  color: var(--cream, #f5e9d4);
  font: inherit; font-size: 15px;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex; align-items: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.lo-select-toggle:hover {
  border-color: rgba(245, 181, 68, 0.45);
}
.lo-select-toggle:focus-visible,
.lo-select-wrap.is-open .lo-select-toggle {
  outline: none;
  border-color: rgba(245, 181, 68, 0.6);
  background: rgba(245, 181, 68, 0.06);
  box-shadow: 0 0 0 4px rgba(245, 181, 68, 0.12);
}
.lo-select-toggle.is-placeholder {
  color: rgba(245, 233, 212, 0.42);
}
.lo-select-caret {
  position: absolute;
  right: 14px; top: 50%;
  width: 14px; height: 10px;
  transform: translateY(-50%);
  color: var(--saffron, #f5b544);
  pointer-events: none;
  transition: transform .18s ease;
}
.lo-select-wrap.is-open .lo-select-caret {
  transform: translateY(-50%) rotate(180deg);
}
.lo-select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(28, 18, 6, 0.98), rgba(20, 12, 4, 0.98));
  border: 1px solid rgba(245, 181, 68, 0.3);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; gap: 2px;
  max-height: 240px; overflow-y: auto;
  animation: loSelectIn .15s ease-out;
}
@keyframes loSelectIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lo-select-menu[hidden] { display: none !important; }

.lo-select-option {
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--cream, #f5e9d4);
  font: inherit; font-size: 14.5px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.lo-select-option:hover {
  background: rgba(245, 181, 68, 0.12);
}
.lo-select-option[aria-selected="true"] {
  background: rgba(245, 181, 68, 0.18);
  color: var(--saffron, #f5b544);
}
.lo-select-option.is-placeholder {
  color: rgba(245, 233, 212, 0.45);
}
.lo-field input:focus,
.lo-field select:focus,
.lo-field textarea:focus {
  outline: none;
  border-color: rgba(245, 181, 68, 0.6);
  background: rgba(245, 181, 68, 0.06);
  box-shadow: 0 0 0 4px rgba(245, 181, 68, 0.12);
}
.lo-field input::placeholder,
.lo-field textarea::placeholder { color: rgba(245, 233, 212, 0.32); }
.lo-field input[aria-invalid="true"],
.lo-field select[aria-invalid="true"] {
  border-color: rgba(232, 146, 130, 0.7);
  background: rgba(232, 146, 130, 0.08);
}

.lo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .lo-field-row { grid-template-columns: 1fr; } }

.lo-consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 4px;
  font-size: 13px; line-height: 1.45;
  color: rgba(245, 233, 212, 0.78);
}
.lo-consent input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  accent-color: var(--saffron, #f5b544);
}
.lo-consent a {
  color: var(--saffron, #f5b544);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lo-submit {
  margin-top: 6px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.lo-submit[disabled] { opacity: .8; cursor: progress; }
.lo-submit-spin {
  display: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: loSpin .7s linear infinite;
}
.lo-submit.is-loading .lo-submit-spin { display: inline-block; }
.lo-submit.is-loading .lo-submit-text { opacity: .7; }
@keyframes loSpin { to { transform: rotate(360deg); } }

.lo-form-status {
  margin: 4px 0 0;
  min-height: 1.2em;
  font-size: 13.5px; line-height: 1.4;
}
.lo-form-status.is-error { color: #e89282; }
.lo-form-status.is-success { color: #a8d6bb; }

.lo-form-fallback {
  margin: 12px 0 0;
  font-size: 12.5px; text-align: center;
  color: rgba(245, 233, 212, 0.5);
}
.lo-form-fallback a {
  color: rgba(245, 181, 68, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lo-cookie[hidden] { display: none !important; }
.lo-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 900;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  max-width: 920px; margin: 0 auto;
  padding: 14px 18px;
  background: rgba(20, 12, 4, 0.96);
  border: 1px solid rgba(245, 181, 68, 0.24);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  color: var(--cream, #f5e9d4);
  animation: loCookieIn .32s cubic-bezier(.2,.8,.2,1);
}
@keyframes loCookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.lo-cookie-text {
  flex: 1 1 320px;
  font-size: 13.5px; line-height: 1.5;
  color: rgba(245, 233, 212, 0.86);
}
.lo-cookie-text a {
  color: var(--saffron, #f5b544);
  text-decoration: underline; text-underline-offset: 2px;
}
.lo-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.lo-cookie .btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* Когда баннер виден - резервируем место снизу страницы, чтобы CTA не перекрывались */
body.has-cookie-banner { padding-bottom: 130px; }

/* Default: показываем длинный текст, прячем короткий */
.lo-cookie-short { display: none; }

@media (max-width: 720px) {
  .lo-cookie {
    left: 12px; right: 12px; bottom: 12px;
    max-width: none;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
  }
  .lo-cookie-full { display: none; }
  .lo-cookie-short { display: inline; }
  .lo-cookie-text {
    font-size: 12px;
    line-height: 1.35;
    flex: 1 1 auto;
    min-width: 0;
  }
  .lo-cookie-actions { gap: 6px; flex-shrink: 0; }
  .lo-cookie-actions .btn-sm {
    padding: 7px 12px;
    font-size: 12.5px;
  }
  body.has-cookie-banner { padding-bottom: 80px; }
}
@media (max-width: 380px) {
  .lo-cookie-actions .btn-ghost { display: none; } /* на мини-экранах оставляем только Принять */
}

.policy-page {
  max-width: 760px; margin: 0 auto; padding: 80px 24px 100px;
  color: var(--cream, #f5e9d4);
  font-size: 16px; line-height: 1.65;
}
.policy-page h1 {
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 500;
  color: var(--saffron, #f5b544);
  margin-bottom: 8px;
}
.policy-page .updated { color: rgba(245, 233, 212, 0.5); font-size: 14px; margin-bottom: 32px; }
.policy-page h2 {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500;
  margin: 32px 0 12px; color: var(--cream, #f5e9d4);
}
.policy-page p, .policy-page li { color: rgba(245, 233, 212, 0.84); }
.policy-page ul { padding-left: 22px; }
.policy-page a { color: var(--saffron, #f5b544); text-decoration: underline; text-underline-offset: 2px; }
.policy-page .back-home { display: inline-block; margin-top: 24px; }

/* ============================================================
   NAV — адаптив для планшета/мобилы
   ============================================================ */
/* === Burger button === */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: rgba(245, 233, 212, 0.04);
  border: 1px solid rgba(245, 181, 68, 0.3);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  transition: background .15s, border-color .15s;
}
.nav-burger:hover { background: rgba(245, 181, 68, 0.12); border-color: rgba(245, 181, 68, 0.55); }
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--saffron, #f5b544);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* === Drawer === */
.nav-drawer[hidden] { display: none !important; }
.nav-drawer {
  position: fixed; inset: 0; z-index: 999;
}
.nav-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 5, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: navBgIn .25s ease-out;
}
@keyframes navBgIn { from { opacity: 0; } to { opacity: 1; } }
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(380px, 88vw);
  background: linear-gradient(180deg, #1a1208, #0e0904);
  border-left: 1px solid rgba(245, 181, 68, 0.25);
  padding: 22px 26px 28px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  animation: navPanelIn .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes navPanelIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.nav-drawer-close {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  background: rgba(245, 233, 212, 0.04);
  border: 1px solid rgba(245, 233, 212, 0.16);
  border-radius: 10px;
  color: var(--cream, #f5e9d4);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-drawer-close svg { display: block; }
.nav-drawer-close:hover { background: rgba(245, 181, 68, 0.12); border-color: rgba(245, 181, 68, 0.45); }
.nav-drawer-links { display: flex; flex-direction: column; gap: 4px; }
.nav-drawer-links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 12px;
  color: var(--cream, #f5e9d4);
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, padding-left .2s, color .15s;
  border-left: 2px solid transparent;
}
.nav-drawer-links a:hover {
  background: rgba(245, 181, 68, 0.08);
  border-left-color: var(--saffron, #f5b544);
  color: var(--saffron, #f5b544);
  padding-left: 18px;
}
.nav-drawer-links .dr-num {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 500;
  color: rgba(245, 181, 68, 0.7);
  letter-spacing: .08em;
}
.nav-drawer-cta {
  margin-top: auto;
  padding-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.nav-drawer-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.2;
  font-family: 'Manrope', sans-serif;
}
.nav-drawer-cta .btn-lg { padding: 14px 22px; font-size: 15px; }
.nav-drawer-cta .btn-ghost { padding: 13px 18px; font-size: 14.5px; }
.nav-drawer-cta .btn .arrow { display: inline-block; transform: translateY(-1px); }

@media (max-width: 880px) {
  .nav {
    padding: 12px 16px !important;
    gap: 12px !important;
    justify-content: flex-start !important;
  }
  .nav .nav-links { display: none !important; }
  .nav .nav-cta { display: none !important; }
  .nav-burger { display: flex; }
  .nav .nav-logo { font-size: 16px; }
  .nav .nav-logo-mark { width: 32px !important; height: 32px !important; font-size: 14px; }
}
@media (max-width: 420px) {
  .nav .nav-logo span:not(.nav-logo-mark) { display: inline; font-size: 14px; }
}

/* Скрытие скролла body когда drawer открыт */
body.no-scroll { overflow: hidden; }

/* ============================================================
   BRIDGE MAP — три режима: десктоп, планшет, мобила
   ============================================================ */

/* === DESKTOP (≥1101px): карта + tooltip-ы привязаны к городам === */
@media (min-width: 1101px) {
  .city-panel { display: none !important; }
  .city-tip {
    position: absolute;
    z-index: 10;
    width: 290px;
    padding: 18px 20px 16px;
    background: linear-gradient(180deg, rgba(28, 18, 6, 0.98), rgba(20, 12, 4, 0.98));
    border: 1px solid rgba(245, 181, 68, 0.4);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(245, 181, 68, 0.06) inset;
    color: var(--cream, #f5e9d4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .city-tip.active {
    opacity: 1;
    pointer-events: auto;
  }
  /* Paris: левый верх — tooltip ниже-правее города */
  .city-tip-fr {
    left: 9%;
    top: 44%;
    transform: translateY(8px);
  }
  .city-tip-fr.active { transform: translateY(0); }

  /* Beijing: правый верх — tooltip ниже-левее города */
  .city-tip-cn {
    right: 4%;
    top: 50%;
    transform: translateY(8px);
  }
  .city-tip-cn.active { transform: translateY(0); }

  /* Cairo: внизу — tooltip правее и выше города, чтобы не накрывать сам пин */
  .city-tip-ar {
    left: 41%;
    bottom: 8%;
    transform: translateY(-8px);
  }
  .city-tip-ar.active { transform: translateY(0); }

  .city-tip-flag {
    display: inline-block;
    font-size: 22px;
    margin-bottom: 4px;
  }
  .city-tip-name {
    font-family: 'Fraunces', 'Cormorant Garamond', serif;
    font-size: 19px; font-weight: 500;
    color: var(--saffron, #f5b544);
    margin-bottom: 8px;
  }
  .city-tip-greet {
    font-style: italic;
    font-size: 15px;
    color: var(--cream, #f5e9d4);
    line-height: 1.3;
  }
  .city-tip-greet.cn-text { font-style: normal; font-family: 'Noto Serif SC', serif; }
  .city-tip-greet.ar-text { font-style: normal; font-family: 'Amiri', serif; direction: rtl; text-align: right; }
  .city-tip-translit {
    font-size: 11.5px;
    color: rgba(245, 233, 212, 0.5);
    letter-spacing: .02em;
    margin-top: 4px;
    margin-bottom: 10px;
  }
  .city-tip-desc {
    margin: 8px 0 12px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(245, 233, 212, 0.82);
  }
  .city-tip-cta {
    display: inline-block;
    color: var(--saffron, #f5b544);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    font-size: 13.5px;
  }
  .city-tip-cta:hover { color: #ffd37a; }
}

/* === TABLET / MOBILE (≤1100px): карта прячется, остаётся таб-панель === */
@media (max-width: 1100px) {
  /* Принудительно сбрасываем все фиксированные размеры от карты,
     иначе контейнер остаётся "пустым" 600+px и следующая секция наезжает */
  .bridges-section { padding-bottom: 60px !important; }
  .bridges-stage,
  .bridge-stage-box {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
  }
  .bridge-map { display: none !important; }
  .bridge-stage-box {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .bridge-stage-box > .map-corner { display: none !important; }
  .city-tip { display: none !important; }
  .city-panel {
    position: static !important;
    transform: none !important;
    margin: 24px auto 0 !important;
    max-width: 600px !important;
    width: 100% !important;
    height: auto !important;
    pointer-events: auto !important;
    opacity: 1 !important;
  }
  /* На мобиле скрываем все .cp-inner, кроме активного */
  .city-panel { position: relative !important; touch-action: pan-y; user-select: none; }
  .city-panel .cp-inner { display: none !important; }
  .city-panel .cp-inner.active {
    display: block !important;
    animation: cpSlideIn .3s ease-out;
  }
  @keyframes cpSlideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

  /* Кнопки переключения языков — явно показать, чтобы не скрывались под верхним стилем */
  .bridge-langs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
    padding: 0 8px !important;
  }
  .bridge-lang {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    padding: 8px 14px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  /* Точки-индикатор внизу панели для свайпа */
  .city-swipe-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .city-swipe-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(245, 233, 212, 0.22);
    transition: background .2s, transform .2s;
    cursor: pointer;
    border: none;
    padding: 0;
  }
  .city-swipe-dot.active {
    background: var(--saffron, #f5b544);
    transform: scale(1.4);
  }
  /* Подсказка свайпа — маленький текст под точками */
  .city-swipe-tip {
    text-align: center;
    font-size: 11.5px;
    color: rgba(245, 233, 212, 0.5);
    margin-top: 8px;
    letter-spacing: .04em;
  }
}
@media (min-width: 1101px) {
  .city-swipe-dots, .city-swipe-tip { display: none !important; }
}

/* === PERFORMANCE: убираем дорогие эффекты на планшете и телефоне === */
@media (max-width: 1024px) {
  .hero-canvas {
    display: none !important;        /* canvas с летающими словами - тяжёлый requestAnimationFrame */
  }
  .hero-orb { display: none !important; }   /* blurred orbs - GPU-heavy filter blur */
  .stars, .continents { display: none !important; }
  .bridge-particle,
  .city-pulse,
  .city-orbit,
  .city-orbit-slow {
    animation: none !important;
    display: none !important;
  }
  /* Останавливаем animateMotion в SVG */
  animateMotion { display: none !important; }
}
@media (max-width: 520px) {
  .city-panel { padding: 18px !important; }
}

/* На совсем малых экранах + reduce motion — отключить анимации совсем */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   TEACHER CARDS - vertical layout на средних/мобильных экранах
   (исходный stylesheet использует grid, не flex — поэтому
    переопределяем на flex column принудительно)
   ============================================================ */
@media (max-width: 1100px) {
  .teachers-grid { grid-template-columns: 1fr 1fr !important; gap: 18px !important; }
  .teacher-card {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    text-align: left;
  }
  .teacher-card .tc-photo {
    width: 100% !important;
    flex: 0 0 auto !important;
    aspect-ratio: 4 / 3;
    max-height: 280px;
    grid-column: 1 / -1 !important;
  }
  .teacher-card .tc-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .teacher-card .tc-body {
    width: 100% !important;
    padding: 22px 22px 24px !important;
  }
}
@media (max-width: 760px) {
  .teachers-grid { grid-template-columns: 1fr !important; }
}

/* === FOOTER mobile - стек, без overflow ===*/
@media (max-width: 760px) {
  .footer-inner {
    flex-direction: column !important;
    gap: 28px !important;
    align-items: flex-start !important;
  }
  .footer-col {
    width: 100% !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    text-align: left;
    padding: 20px 0 !important;
  }
  .footer-motto {
    font-size: 13px !important;
    line-height: 1.5;
    word-break: break-word;
  }
}

/* === FOUNDER CARD (Дарья) - тоже в колонку на средних === */
@media (max-width: 1100px) {
  .founder-card {
    flex-direction: column !important;
    text-align: left;
  }
  .founder-card .founder-photo {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    aspect-ratio: 4 / 5;
    flex: 0 0 auto !important;
  }
  .founder-card .founder-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .founder-card .founder-text {
    width: 100% !important;
    padding-top: 24px !important;
  }
}
