.langexchange-landing {
  display: flex;
  flex-direction: column;
  min-height: 1024px;
  align-items: flex-start;
  position: relative;
  background-color: #ffffff;
}

.langexchange-landing .header-container {
  display: flex;
  width: 1440px;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  padding: 0px 120px;
  position: relative;
  background-color: #ffffff;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-color: #e5e7eb;
}

.langexchange-landing .frame {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}

.langexchange-landing .message-circle-wrapper {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #2563eb;
  border-radius: 10px;
}

.langexchange-landing .logo-letter {
  color: #ffffff;
  font-family: "Inter-ExtraBold", "Inter", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.langexchange-landing .message-circle {
  position: relative;
  width: 18px;
  height: 18px;
}

.langexchange-landing .vector {
  position: absolute;
  width: 97.23%;
  height: 97.23%;
  top: 2.77%;
  left: 2.77%;
}

.langexchange-landing .text-wrapper {
  position: relative;
  width: fit-content;
  font-family: "Inter-ExtraBold", Helvetica;
  font-weight: 800;
  color: #111827;
  font-size: 20px;
  letter-spacing: -0.1px;
  line-height: normal;
  white-space: nowrap;
}

.langexchange-landing .logo-letter {
  color: #ffffff;
  font-family: "Inter-ExtraBold", "Inter", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.langexchange-landing .navbar {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  position: relative;
  flex: 0 0 auto;
}

.langexchange-landing .div {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter-Medium", Helvetica;
  font-weight: 500;
  color: #4b5563;
  font-size: 15px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.langexchange-landing .frame-2 {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  position: relative;
  flex: 0 0 auto;
}

.langexchange-landing .text-wrapper-2 {
  position: relative;
  width: fit-content;
  font-family: "Inter-SemiBold", Helvetica;
  font-weight: 600;
  color: #4b5563;
  font-size: 15px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.langexchange-landing .div-wrapper {
  padding: 10px 20px;
  background-color: #2563eb;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.langexchange-landing .text-wrapper-3 {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter-SemiBold", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.langexchange-landing .hero-section {
  display: flex;
  width: 1440px;
  align-items: center;
  gap: 64px;
  padding: 80px 120px;
  position: relative;
  flex: 0 0 auto;
  background-color: #ffffff;
}

.langexchange-landing .frame-3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  position: relative;
  flex: 1;
  flex-grow: 1;
}

.langexchange-landing .frame-4 {
  display: inline-flex;
  align-items: flex-start;
  padding: 6px 12px;
  position: relative;
  flex: 0 0 auto;
  background-color: #2563eb0d;
  border-radius: 20px;
  border: 1px solid;
  border-color: #2563eb;
}

.langexchange-landing .text-wrapper-4 {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  color: #2563eb;
  font-size: 13px;
  letter-spacing: 0;
  line-height: normal;
}

.langexchange-landing .frame-5 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.langexchange-landing .p {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Inter-ExtraBold", Helvetica;
  font-weight: 800;
  color: #111827;
  font-size: 48px;
  letter-spacing: -0.48px;
  line-height: 55.2px;
}

.langexchange-landing .text-wrapper-5 {
  position: relative;
  align-self: stretch;
  font-family: "Inter-Regular", Helvetica;
  font-weight: 400;
  color: #4b5563;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 28.8px;
}

.langexchange-landing .frame-6 {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  position: relative;
  flex: 0 0 auto;
}

.langexchange-landing .div-wrapper-2 {
  padding: 16px 28px;
  background-color: #2563eb;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.langexchange-landing .text-wrapper-6 {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.langexchange-landing .div-wrapper-3 {
  padding: 16px 28px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid;
  border-color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
}

.langexchange-landing .text-wrapper-7 {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  color: #111827;
  font-size: 16px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.langexchange-landing .level-picker-section {
  display: flex;
  flex-direction: column;
  width: 1440px;
  align-items: center;
  gap: 48px;
  padding: 96px 120px;
  position: relative;
  flex: 0 0 auto;
  background-color: #f9fafb;
}

.langexchange-landing .text-wrapper-8 {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Inter-ExtraBold", Helvetica;
  font-weight: 800;
  color: #111827;
  font-size: 36px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.langexchange-landing .frame-7 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.langexchange-landing .frame-8 {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.langexchange-landing .div-2 {
  display: flex;
  flex-direction: column;
  width: 384px;
  height: 142px;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid;
  border-color: #e5e7eb;
  box-shadow: 0px 4px 12px #00000008;
}

.langexchange-landing .frame-9 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.langexchange-landing .frame-10 {
  display: inline-flex;
  align-items: flex-start;
  padding: 6px 14px;
  position: relative;
  flex: 0 0 auto;
  background-color: #2563eb0d;
  border-radius: 8px;
}

.langexchange-landing .text-wrapper-9 {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter-ExtraBold", Helvetica;
  font-weight: 800;
  color: #2563eb;
  font-size: 18px;
  letter-spacing: 0;
  line-height: normal;
}

.langexchange-landing .frame-11 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  flex: 0 0 auto;
}

.langexchange-landing .ellipse {
  position: relative;
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 3px;
}

.langexchange-landing .text-wrapper-10 {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter-SemiBold", Helvetica;
  font-weight: 600;
  color: #10b981;
  font-size: 13px;
  letter-spacing: 0;
  line-height: normal;
}

.langexchange-landing .frame-12 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.langexchange-landing .text-wrapper-11 {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: "Inter-Bold", Helvetica;
  font-weight: 700;
  color: #111827;
  font-size: 20px;
  letter-spacing: 0;
  line-height: normal;
}

.langexchange-landing .frame-13 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 16px 0px 0px;
  position: relative;
  flex: 0 0 auto;
}

.langexchange-landing .text-wrapper-12 {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter-SemiBold", Helvetica;
  font-weight: 600;
  color: #2563eb;
  font-size: 16px;
  letter-spacing: 0;
  line-height: normal;
  text-decoration: underline;
  white-space: nowrap;
}

/* ===== LangExchange: дополнения от JS ===== */

/* Шапка при скролле */
.header-container { transition: box-shadow .2s ease; }
.header-container.is-scrolled {
  box-shadow: 0 1px 0 #e5e7eb, 0 4px 16px rgba(0,0,0,.04);
}

/* Карточки уровней */
.level-picker-section .div-2 {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.level-picker-section .div-2:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.level-picker-section .div-2.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15), 0 4px 12px rgba(0,0,0,.06);
  transform: translateY(-2px);
}

/* Уведомление снизу */
.lx-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: #111827;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: "Inter-SemiBold", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
}
.lx-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Бургер */
.lx-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.lx-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
body.lx-menu-open .lx-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.lx-menu-open .lx-burger span:nth-child(2) { opacity: 0; }
body.lx-menu-open .lx-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — index (landing) — финал
   ============================================================ */

@media (max-width: 900px) {

  /* КРИТИЧНО: все контейнеры были width:1440px из Figma.
     Перебиваем на 100% — иначе всё уезжает за экран. */
  .langexchange-landing,
  .langexchange-landing .header-container,
  .langexchange-landing .hero-section,
  .langexchange-landing .level-picker-section,
  .langexchange-landing .frame-3,
  .langexchange-landing .frame-5,
  .langexchange-landing .frame-6,
  .langexchange-landing .frame-7,
  .langexchange-landing .frame-8 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* ---------- ШАПКА в 2 строки ---------- */
  .langexchange-landing .header-container {
    display: flex !important;
    flex-wrap: wrap !important;
    height: auto !important;
    padding: 10px 16px 0 16px !important;
    gap: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .langexchange-landing .frame { order: 1; flex: 1 1 auto; min-width: 0; gap: 8px !important; }
  .langexchange-landing .message-circle-wrapper { width: 28px !important; height: 28px !important; border-radius: 8px !important; }
  .langexchange-landing .logo-letter { font-size: 14px !important; }
  .langexchange-landing .text-wrapper { font-size: 17px !important; }

  .langexchange-landing .frame-2 { order: 2; flex: 0 0 auto; gap: 0 !important; }
  .langexchange-landing .text-wrapper-2 {
  display: inline-block !important;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px !important;
  vertical-align: middle;
  margin-right: 6px;
}
  .langexchange-landing .div-wrapper { padding: 8px 14px !important; }
  .langexchange-landing .text-wrapper-3 { font-size: 13px !important; white-space: nowrap; }

  .langexchange-landing .navbar {
    order: 3;
    display: flex !important;
    flex-basis: 100%;
    width: 100% !important;
    height: 44px !important;
    gap: 6px;
    margin: 10px -16px 0 -16px !important;
    padding: 8px 32px 8px 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    border-top: 1px solid #e5e7eb;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
  }
  .langexchange-landing .navbar::-webkit-scrollbar { display: none; }
  .langexchange-landing .navbar .div {
    flex: 0 0 auto !important;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px !important;
    font-size: 14px !important;
    border-radius: 100px;
    white-space: nowrap;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e7eb;
  }

  /* ---------- HERO ---------- */
  .langexchange-landing .hero-section {
    padding: 24px 16px 32px !important;
    flex-direction: column !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  .langexchange-landing .hero-section .frame-3 {
    flex: 0 0 auto !important;
    gap: 18px !important;
  }

  .langexchange-landing .frame-4 {
    flex: 0 0 auto !important;
    align-self: flex-start !important;
  }

  .langexchange-landing .frame-5 {
    flex: 0 0 auto !important;
    gap: 12px !important;
  }
  .langexchange-landing .p {
    font-size: 26px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .langexchange-landing .text-wrapper-5 {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .langexchange-landing .frame-6 {
    flex: 0 0 auto !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .langexchange-landing .div-wrapper-2,
  .langexchange-landing .div-wrapper-3 {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
  }
  .langexchange-landing .text-wrapper-6,
  .langexchange-landing .text-wrapper-7 {
    font-size: 15px !important;
    white-space: normal !important;
    text-align: center;
  }

  /* ---------- УРОВНИ ---------- */
  .langexchange-landing .level-picker-section {
    padding: 32px 16px !important;
    gap: 20px !important;
    align-items: stretch !important;
  }
  .langexchange-landing .text-wrapper-8 {
    font-size: 24px !important;
    text-align: center !important;
  }

  .langexchange-landing .frame-7 {
    flex: 0 0 auto !important;
    gap: 12px !important;
  }
  .langexchange-landing .frame-8 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  /* Карточки уровней были width: 384px — перебиваем */
  .langexchange-landing .div-2 {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 20px !important;
    box-sizing: border-box;
  }
  .langexchange-landing .div-2 .frame-9,
  .langexchange-landing .div-2 .frame-12 {
    width: 100% !important;
    flex: 0 0 auto !important;
  }
  .langexchange-landing .div-2 .frame-11 { flex: 0 0 auto !important; }
  .langexchange-landing .text-wrapper-11 { font-size: 18px !important; }
  .langexchange-landing .text-wrapper-10 { font-size: 12px !important; }
  .langexchange-landing .text-wrapper-9 { font-size: 16px !important; }

  /* Ссылка «Пройти тест» */
  .langexchange-landing .frame-13 {
    width: 100% !important;
    justify-content: center !important;
  }
  .langexchange-landing .text-wrapper-12 {
    font-size: 15px !important;
    white-space: normal !important;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .langexchange-landing .p { font-size: 22px !important; }
  .langexchange-landing .hero-section { padding: 20px 12px 24px !important; }
  .langexchange-landing .level-picker-section { padding: 24px 12px !important; }
}
