/**
 * Мобильная версия лендинга.
 * Только правила внутри @media (max-width: 1023.99px).
 * Стили веб-версии не изменяем.
 */
@media (max-width: 1023.99px) {

  /* ========== Hero — только карточка ITradingBot (левый блок) ========== */
  .hero__terminal-chart,
  .hero__chart-overlay-left,
  .hero__chart-overlay-bottom,
  .hero__scan-line,
  .hero__right,
  .hero__float-wrap {
    display: none !important;
  }

  .hero.hero--style6 {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 32px;
  }
  .hero--style6 .hero__left.hero__heading-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Контейнер Hero на мобильном — без боковых отступов, карточка на всю ширину */
  .hero.hero--style6 .container.xl-container {
    padding-inline: 0;
    max-width: 100%;
  }
  .hero.hero--style6 .hero__left {
    padding-inline: 16px;
    z-index: 15;
    min-height: auto;
  }
  /* Бейдж «ВЕРСИЯ 3.0 УЖЕ ДОСТУПНА» по центру карточки на мобильном */
  .hero--style6 .hero__tag {
    align-self: center;
    margin-inline: auto;
  }
  .hero__heading.hero__heading--style6 {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.2;
    padding-bottom: 8px;
  }
  .hero__title-line.hero__title-line--style6 {
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.4;
  }
  .hero__desc,
  .hero--style6 .hero__desc {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 12px;
    margin-bottom: 24px;
  }
  .hero__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .hero__cta .hero__btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }
  .hero__stats-divider {
    margin: 20px 0 16px;
  }
  .hero__stats,
  .hero--style6 .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
    text-align: center;
    padding-top: 10px;
    width: 100%;
  }
  .hero__stat,
  .hero--style6 .hero__stat {
    min-width: 0;
    text-align: center;
    border-left: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
  }
  .hero__stat-value,
  .hero--style6 .hero__stat-value {
    font-size: 20px;
  }
  .hero__stat-label,
  .hero--style6 .hero__stat-label {
    font-size: 10px;
    line-height: 1.2;
    margin-top: 4px;
  }
  .container.xl-container {
    padding-inline: 16px;
  }

  /* ========== Advantages ========== */
  .advantages {
    padding: 2rem 0 2.5rem;
    text-align: center;
  }
  .advantages__inner {
    padding-inline: 16px;
  }
  .advantages__desc {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    text-align: center;
  }
  .advantages__desc-title {
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
  }
  .advantages__desc-desc {
    font-size: 0.9375rem;
    text-align: center;
  }
  .advantages__carousel_track {
    height: 260px;
    will-change: transform;
  }
  .advantages__carousel_slide {
    height: fit-content;
    padding: 16px;
    text-align: center;
  }
  .advantages__carousel_slide-img-wrap {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.18) 0%, rgba(20, 184, 166, 0.06) 100%);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
    margin-inline: auto;
    margin-bottom: 10px;
  }
  .advantages__carousel_slide-img-wrap .advantages__carousel_slide-img {
    padding: 0;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.3));
  }
  .advantages__carousel_slide-img {
    padding: 42px 33px;
    margin-inline: auto;
    margin-bottom: 10px;
    width: auto;
    max-height: none;
  }
  .advantages__carousel_slide-title {
    font-size: 1.125rem;
    line-height: 1.35;
    text-align: center;
  }
  .advantages__carousel_slide-desc {
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
  }
  .advantages__carousel_slide-text--container {
    text-align: center;
  }
  .carousel__nav,
  .exchange__carousel_nav {
    padding-block: 20px;
  }
  .advantages__carousel-container .carousel__nav {
    padding-top: 6px;
    padding-bottom: 16px;
  }

  /* ========== Hedging ========== */
  .hedging {
    padding: 3rem 0;
  }
  .hedging__inner {
    padding-inline: 16px;
  }
  .hedging__header {
    margin-bottom: 1.5rem;
  }
  .hedging__title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .hedging__desc {
    font-size: 0.9375rem;
  }
  /* Карточка в стиле веб-версии */
  .hedging__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    background: linear-gradient(145deg, rgba(18, 18, 20, 0.98) 0%, rgba(10, 10, 11, 0.99) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(20, 184, 166, 0.04);
    width: 100%;
    text-align: left;
  }
  .hedging__card-icon-wrap {
    width: 120px;
    min-width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 24px;
    background: linear-gradient(155deg, rgba(20, 184, 166, 0.28) 0%, rgba(20, 184, 166, 0.08) 50%, rgba(6, 95, 70, 0.12) 100%);
    box-shadow:
      0 0 0 1px rgba(20, 184, 166, 0.2),
      0 0 24px rgba(20, 184, 166, 0.2),
      0 6px 24px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    margin-inline: auto;
  }
  .hedging__card-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), transparent 50%, rgba(20, 184, 166, 0.1));
    opacity: 0.5;
    z-index: -1;
    filter: blur(10px);
    pointer-events: none;
  }
  .hedging__card-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(20, 184, 166, 0.4)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  }
  .hedging__card-content {
    flex: 1;
    min-width: 0;
  }
  .hedging__card-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 0;
  }
  .hedging__card-item {
    padding: 0.6rem 0.6rem 0.6rem 0;
    margin: 0;
    border-radius: 10px;
  }
  .hedging__card-item-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    justify-content: flex-start;
  }
  .hedging__card-item-check {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.2);
    color: #14b8a6;
    font-size: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hedging__card-item-desc {
    margin: 0 0 0 1.75rem;
    font-size: 0.8125rem;
    color: rgba(161, 161, 170, 1);
    line-height: 1.5;
    text-align: left;
  }

  /* ========== Quick Start ========== */
  .quick-start {
    padding: 2.5rem 0 3rem;
  }
  .quick-start__inner {
    padding-inline: 16px;
  }
  .quick-start__title {
    font-size: 1.5rem;
  }
  .quick-start__desc {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }
  .quick-start__grid {
    display: none;
  }
  .quick-start__carousel-container {
    position: relative;
    padding: 10px;
    overflow: hidden;
  }
  .quick-start__carousel_track {
    position: relative;
    height: 300px;
    transition: transform 0.3s ease-out;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }
  .quick-start__carousel_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
  }
  .quick-start__carousel_slide .qs-card {
    height: 100%;
  }
  .quick-start__carousel_nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 6px;
    padding-bottom: 12px;
  }
  .qs-card {
    padding: 0;
  }
  .qs-card__header {
    padding: 0.75rem 1rem;
  }
  .qs-card__body {
    padding: 0.5rem 1rem 1rem;
  }
  .qs-card__chart-wrap {
    height: 140px;
  }
  .qs-card__chart {
    height: 140px;
  }
  .quick-start__cta {
    margin-top: 1.5rem;
  }
  .quick-start__cta-btn {
    width: 100%;
    max-width: 320px;
    padding: 12px 24px;
    font-size: 0.9375rem;
  }

  /* ========== Exchange ========== */
  .exchange {
    padding: 2rem 0;
  }
  .exchange__inner {
    padding-inline: 16px;
  }
  .exchange__title {
    font-size: 1.5rem;
    padding-block: 24px;
  }
  .exchange__carousel-container + .exchange__cards-container {
    display: none;
  }
  .exchange__carousel-container {
    position: relative;
    padding: 10px 0;
    overflow: hidden;
  }
  .exchange__carousel_track {
    height: 150px;
    will-change: transform;
  }
  .exchange__carousel_slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 142px;
    min-height: 142px;
    padding: 23px 20px 20px;
    box-sizing: border-box;
    background: rgba(8, 8, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  }
  .exchange__carousel_slide-img {
    padding: 0;
    margin-inline: auto;
    height: auto;
    max-height: 80px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
  }
  .exchange__carousel_slide-desc {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(209, 213, 219, 0.95);
    margin: 0;
    padding-block: 20px 0;
    text-align: center;
  }
  .exchange__carousel_nav {
    padding-top: 6px;
    padding-bottom: 12px;
  }
  .exchange__cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }
  .exchange__card {
    padding: 1rem;
  }
  .exchange__brokers {
    display: block;
    margin-top: 2rem;
  }
  .exchange__brokers-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-block: 0;
  }
  .exchange__brokers .exchange__cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0;
  }
  .exchange__brokers .exchange__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 23px 20px 20px;
    min-height: 142px;
    box-sizing: border-box;
    background: rgba(8, 8, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
  }
  .exchange__brokers .exchange__card-img {
    padding: 0;
    height: auto;
    max-height: 80px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
  }
  .exchange__brokers .exchange__card-desc {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(209, 213, 219, 0.95);
    margin: 0;
    padding-block: 20px 0;
    text-align: center;
  }

  /* ========== Pricing ========== */
  .pricing {
    padding: 2.5rem 0 3rem;
  }
  .pricing__inner {
    padding-inline: 16px;
  }
  .pricing__title {
    font-size: 1.5rem;
  }
  .pricing__subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }
  .pricing__cards-container {
    display: none;
  }
  .pricing__carousel-container {
    position: relative;
    padding: 10px 0 20px;
    overflow: hidden;
  }
  .pricing__carousel_track {
    position: relative;
    min-height: 680px;
    transition: transform 0.3s ease-out;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }
  .pricing__carousel_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
    overflow: visible;
    contain: layout;
  }
  .pricing__carousel_slide .pricing__card {
    padding: 1rem 0.75rem;
    margin: 0;
  }
  .pricing__carousel_slide .pricing__card--featured {
    padding-top: 1.25rem;
  }
  .pricing__carousel_slide .pricing__card-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
  .pricing__carousel_slide .pricing__card-title {
    font-size: 1rem;
  }
  .pricing__carousel_slide .pricing__card-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .pricing__carousel_slide .pricing__card-price-value {
    font-size: 1.35rem;
  }
  .pricing__carousel_slide .pricing__card-price-suffix {
    font-size: 0.75rem;
  }
  .pricing__carousel_slide .pricing__card-desc {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .pricing__carousel_slide .pricing__card-list {
    margin: 0;
    padding: 0;
  }
  .pricing__carousel_slide .pricing__card-list-item {
    font-size: 0.7rem;
    padding: 0.2rem 0;
  }
  .pricing__carousel_slide .pricing__card-list-item p {
    margin: 0;
  }
  .pricing__carousel_slide .pricing__period--in-card .pricing__period-btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.65rem;
  }
  .pricing__carousel_slide .pricing__card-button {
    margin-top: 0.75rem;
    padding: 8px 16px;
    font-size: 0.8125rem;
  }
  .pricing__carousel_nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 6px;
    padding-bottom: 12px;
  }
  .pricing__card {
    padding: 1.25rem 1rem;
  }
  .pricing__card--featured {
    padding-top: 1.75rem;
  }
  .pricing__card-title {
    font-size: 1.125rem;
  }
  .pricing__card-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .pricing__card-price-value {
    font-size: 1.75rem;
  }
  .pricing__card-price-suffix {
    font-size: 0.875rem;
  }
  .pricing__card-desc {
    font-size: 0.875rem;
  }
  .pricing__card-list {
    margin: 0;
  }
  .pricing__card-list-item {
    font-size: 0.8125rem;
    padding: 0.35rem 0;
  }
  .pricing__period--in-card .pricing__period-buttons {
    flex-wrap: wrap;
  }
  .pricing__period--in-card .pricing__period-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .pricing__card-button {
    margin-top: 1rem;
    padding: 10px 20px;
    font-size: 0.9375rem;
    width: 100%;
    text-align: center;
  }

  /* ========== FAQ ========== */
  .faq {
    padding: 2.5rem 0 3rem;
  }
  .faq__inner {
    padding-inline: 16px;
  }
  .faq__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .faq__list {
    gap: 0.75rem;
  }
  .faq__question {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }
  .faq__answer {
    padding: 0 1rem 0.875rem;
  }
  .faq__answer p {
    font-size: 0.8125rem;
  }

  /* ========== CTA ========== */
  .cta {
    padding: 3rem 1rem;
  }
  .cta__inner {
    padding-inline: 16px;
  }
  .cta__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .cta__desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .cta__btn {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
  }
  .cta__footnote {
    font-size: 0.75rem;
    margin-top: 1rem;
  }

  /* ========== Footer ========== */
  .footer {
    padding: 2.5rem 1rem 1.5rem;
  }
  .footer__inner {
    padding-inline: 16px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .footer__grid .footer__column {
    display: none;
  }
  .footer__brand-head {
    margin-bottom: 1rem;
  }
  .footer__logo-text {
    font-size: 1.125rem;
  }
  .footer__tagline {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }
  .footer__column-title {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  .footer__list li {
    margin-bottom: 0.5rem;
  }
  .footer__link {
    font-size: 0.8125rem;
  }
  .footer__bottom {
    padding-top: 1.5rem;
    gap: 0.75rem;
    text-align: center;
  }
  .footer__copy,
  .footer__legal-link {
    font-size: 0.6875rem;
  }
  .footer__legal {
    gap: 0.75rem 1rem;
  }

  /* ========== Общие ========== */
  .section__title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .float-contest {
    right: 1rem;
    bottom: 7rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .float-contest i {
    font-size: 1rem;
  }
  .float-school {
    right: 1rem;
    bottom: 4rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .float-school i {
    font-size: 1rem;
  }
  .float-contest .float-tooltip,
  .float-school .float-tooltip {
    max-width: 180px;
    font-size: 0.8125rem;
    padding: 9px 12px;
    border-radius: 8px;
    margin-right: 10px;
  }
  .float-contest .float-tooltip::after,
  .float-school .float-tooltip::after {
    width: 10px;
    height: 10px;
    right: -5px;
  }

  /* Мобильное меню: сворачиваемый блок «Инструменты» */
  .site-header__mobile-group {
    margin-top: 0.5rem;
  }
  .site-header__mobile-group-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--surface-600, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
  }
  .site-header__mobile-group-btn:hover {
    color: var(--nav-link);
    background: var(--dropdown-item-hover, rgba(255, 255, 255, 0.05));
  }
  .site-header__mobile-group-btn .site-header__mobile-label {
    padding: 0;
    margin: 0;
    margin-top: 0;
  }
  .site-header__mobile-group-icon {
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    font-size: 0.7rem;
  }
  .site-header__mobile-group.is-open .site-header__mobile-group-icon {
    transform: rotate(180deg);
  }
  .site-header__mobile-group-content {
    padding-left: 1rem;
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }
  .site-header__mobile-group-content[hidden] {
    display: none !important;
  }
  .site-header__mobile-group-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--nav-link, #d1d5db);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: color 0.2s, background 0.2s;
  }
  .site-header__mobile-group-link:hover {
    color: var(--nav-link-hover, #2dd4bf);
    background: rgba(255, 255, 255, 0.05);
  }

  /* Выбор языка — три кнопки */
  .site-header__mobile-lang-btns {
    display: flex;
    gap: 0.5rem;
    padding: 0 0 0.5rem;
  }
  .site-header__mobile-lang-btn {
    flex: 1;
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--nav-link, #d1d5db);
    text-decoration: none;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
  }
  .site-header__mobile-lang-btn:hover {
    color: var(--nav-link-hover, #2dd4bf);
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.35);
  }
  .site-header__mobile-lang-btn.is-current {
    color: #fff;
    background: rgba(20, 184, 166, 0.25);
    border-color: #14b8a6;
  }
}
