/* ══════════════════════════════════════
   Laptop — 1024px – 1440px
   ══════════════════════════════════════ */
@media (max-width: 1439px) {
    :root {
        --section-padding-x: 30px;
    }

    .header__nav { display: none; }
    .header__nav.is-open {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        z-index: 99;
        padding: 24px;
    }
    .header__nav.is-open .header__nav-list {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    .header__burger { display: flex; }
    .header__cta { margin-right: 16px; }

    .decision__content { flex-direction: column; gap: 40px; }
    .decision__problems { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .decision__problem { width: 400px; }
    .decision__solution { max-width: 100%; }
    .decision__solution-logo { justify-content: left; }
    .decision__solution-logo img {
        width: 360px;
    }
    .decision__solution-text { padding-right: 300px; }
    .decision__solution-decor { opacity: 0.9; }

    .advantages__grid { flex-direction: column; }

    .support {
        flex-direction: column;
        padding: 0 0 80px;
    }
    .support__header {
        width: 100%;
        border-radius: 0;
        min-height: 277px;
        padding: 60px 30px;
    }
    .support__table-wrap {
        padding: 40px 30px 0;
        overflow-x: auto;
    }
    .support__table-header,
    .support__row { grid-template-columns: 1fr 155px 155px; min-width: 640px; }
    .support__title { font-size: 54px; }
    .support__title-sub { font-size: 21px; }

    .functions__content--desktop { gap: 24px; }
    .functions__panel-title { font-size: 24px; line-height: 1.465; }

    /* Crypto hero — Figma 268:2136 (laptop): inset 30px, заголовок 60px */
    .crypto-module__hero {
        padding: 180px 30px 90px;
        justify-content: flex-end;
    }

    /* Crypto Speed — Figma 271:2662: зазор таблица–метрика 40px */
    .crypto-speed__content {
        gap: 40px;
    }
    .crypto-speed__metric {
        min-height: 0;
    }

    /* Metrics — Figma 268:2291: колонка, список в 2 колонки, скриншоты столбиком */
    .metrics__content {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }
    .metrics__right {
        width: 100%;
        max-width: 662px;
        align-self: center;
    }
    .metrics__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    /* Footer */
    .footer {
        gap: 60px;
        padding: 50px 30px;
    }
}

/* ══════════════════════════════════════
   Tablet — 768px – 1024px
   ══════════════════════════════════════ */
@media (max-width: 1023px) {
    :root {
        --fs-h1: 56px;
        --fs-h2: 40px;
        --fs-h3: 28px;
    }

    .hero {
        height: 800px;
        align-items: flex-end;
        padding-bottom: 80px;
        background-position: 10% center;
    }
    .hero__content { gap: 24px; margin-left: 0; }
    .hero__title-block { gap: 8px; }
    .hero__title { font-size: 80px; }

    .decision__problem { width: calc(50% - 16px); }
    .decision__solution-text { padding-right: 100px; }
    .decision__solution-logo { justify-content: left; }
    .decision__solution-logo img {
        width: 360px;
    }
    .decision__solution-decor { opacity: 0.9; }

    .advantages__card-title { font-size: 24px; line-height: 1.3; }

    .support {
        flex-direction: column;
        padding: 0 0 80px;
    }
    .support__header {
        width: 100%;
        border-radius: 0;
        min-height: 277px;
        padding: 60px 48px;
    }
    .support__title { font-size: 40px; }
    .support__title-sub { font-size: 18px; }
    .support__table-wrap {
        padding: 24px var(--section-padding-x) 0;
        overflow-x: auto;
    }
    .support__table-header,
    .support__row { grid-template-columns: 1fr 155px 155px; padding: 12px 16px; min-width: 640px; }
    .support__row-label { font-size: 16px; }

    .functions__heading { margin-bottom: 40px; text-align: left; }
    .functions__content--desktop { display: none; }
    .functions__content--stack { display: flex; }
    .functions__accordion-panel-inner { padding: 24px 24px; }

    .gallery__heading { margin-bottom: 40px; }
    .gallery__inner { gap: 20px; }
    .gallery__row { gap: 16px; }
    .gallery .gallery__arrow.swiper-button-prev,
    .gallery .gallery__arrow.swiper-button-next,
    .gallery__arrow {
        width: 48px;
        height: 48px;
    }

    .gallery__arrow img {
        width: 48px;
        height: 48px;
    }

    /* Migration — Figma 271:3276 (tablet): таймлайн горизонтальный, колонки 358px; заголовок 40px; зазор секции 40px */
    .migration {
        gap: 40px;
        padding: 80px 30px;
    }
    .migration__step-num {
        font-size: 32px;
        line-height: 1.1875;
    }
    .migration__step-title {
        font-size: 24px;
        line-height: 1;
    }

    /* Contact — Figma 271:4090 (tablet) */
    .contact {
        padding: 80px 60px;
    }
    .contact__heading-text--desktop {
        display: none;
    }
    .contact__heading-text--tablet {
        display: block;
    }
    .contact__heading {
        font-size: 40px;
        line-height: 1.1;
        margin-bottom: 60px;
    }
    .contact__form {
        max-width: none;
    }
    .contact__field {
        min-height: 49px;
    }
    .contact__input {
        min-height: 49px;
        font-size: 21px;
    }
    .contact__label {
        font-size: 21px;
    }
    .contact__textarea {
        min-height: 105px;
    }
    .contact__submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }
    .contact__consent {
        max-width: none;
        flex: 1 1 auto;
    }
    .contact__consent-link {
        color: var(--color-text-primary);
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    .contact__submit {
        align-self: flex-end;
        flex: 0 0 auto;
        width: 170px;
        min-width: 170px;
        height: 46px;
        font-size: 16px;
    }

    /* Crypto-adv — Figma 271:3428: сетка 2×2, заголовок секции 40px, заголовки карточек 24px */
    .crypto-adv__heading {
        line-height: 1.25;
        letter-spacing: -0.015em;
    }
    .crypto-adv__card-title {
        font-size: 24px;
        line-height: 1.3;
    }

    /* Monitor-adv — Figma 271:3554: сетка 2×2, заголовок 40px, заголовки карточек 24px */
    .monitor-adv__heading {
        line-height: 1.25;
        letter-spacing: -0.015em;
    }
    .monitor-adv__card-title {
        font-size: 24px;
        line-height: 1.3;
    }
    /* Crypto hero — Figma 271:3424: скругление 100px, контент как на макете */
    .crypto-module__hero {
        border-radius: 100px 100px 0 0;
        min-height: 810px;
        padding: 120px 30px 80px;
    }
    .crypto-module__decor {
        top: -642px;
        right: -210px;
    }
    .crypto-module__title {
        margin-bottom: 36px;
    }
    .crypto-module__subtitle {
        max-width: none;
    }
    /* Crypto Speed — Figma 271:3458: колонка, метрика на всю ширину, градиент 45% */
    .crypto-speed__content {
        flex-direction: column;
        gap: 40px;
    }
    .crypto-speed__heading {
        line-height: 1.25;
        letter-spacing: -0.015em;
    }
    .crypto-speed__metric {
        width: 100%;
        min-height: 0;
        padding: 24px 24px 100px;
        background: linear-gradient(180deg, #fafafa 45%, rgba(250, 250, 250, 0) 99%);
    }

    /* Metrics — Figma 271:3584: одна колонка списка, gap 24 */
    .metrics__heading {
        color: #1c1e1e;
    }
    .metrics__content {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }
    .metrics__list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .metrics__right {
        width: 100%;
        max-width: none;
        align-self: stretch;
        height: auto;
    }

    .footer {
        padding: 50px 30px;
    }
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* ══════════════════════════════════════
   Mobile — 375px – 768px
   ══════════════════════════════════════ */
@media (max-width: 767px) {
    :root {
        --fs-h1: 36px;
        --fs-h2: 28px;
        --fs-h3: 20px;
        --section-padding-x: 16px;
    }

    .header__cta { display: none; }
    .header__burger { margin-left: auto; }

    .hero { height: 577px; padding-bottom: 60px; background-position: 20% center; }
    .hero__content { gap: 24px; margin-left: 0; }
    .hero__title-block { gap: 8px; }
    .hero__title { font-size: 64px; }
    .hero__subtitle { font-size: 16px; }
    .hero__buttons { flex-direction: column; width: 100%; gap: 8px; }
    .hero__buttons .btn { width: 100%; justify-content: center; padding: 8px 26px; }
    .hero__btn-discuss { order: -1; }

    .decision__problems { flex-direction: column; flex-wrap: nowrap; gap: 24px; }
    .decision__problem { width: 100%; }
    .decision__solution { padding: 24px; gap: 24px; }
    .decision__solution-title { font-size: 24px; }
    .decision__solution-text { font-size: 16px; padding-right: 0; }
    .decision__solution-decor { opacity: 0.3; }
    .decision__solution-logo { justify-content: center; }
    .decision__solution-logo img {
        width: 100%;
        height: 100%;
        max-width: unset;
    }

    .advantages__card { padding: 32px; }
    .advantages__number { font-size: 40px; line-height: 1.2; }
    .advantages__card-title { font-size: 24px; line-height: 1.3; }

    .support { padding: 0 0 80px; }
    .support__header {
        min-height: 277px;
        padding: 40px 16px;
    }
    .support__title { font-size: 28px; margin-bottom: 16px; }
    .support__title-sub { font-size: 16px; }
    .support__table-wrap {
        padding: 0 16px;
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
    }
    .support__table-header {
        grid-template-columns: 1fr 1fr;
    }
    .support__table-header .support__col-label:first-child {
        display: none;
    }
    .support__table-header,
    .support__row {
        grid-template-columns: 1fr 1fr;
        min-width: 0;
        padding: 12px 0;
    }
    .support__row {
        gap: 16px;
        align-items: start;
    }
    .support__row-label {
        grid-column: 1 / -1;
        font-size: 14px;
        line-height: 1.1;
    }
    .support__col-label { font-size: 16px; }
    .support__row-val img { width: 28px; height: 28px; }

    .functions__heading { margin-bottom: 40px; text-align: left; }
    .functions__accordion-panel-inner { padding: 20px 16px; }
    .functions__accordion-panel-title { font-size: 20px; margin-bottom: 16px; }

    /* Crypto hero — Figma 271:4656: скругление 60px, заголовок 40px, отступы 30×16 */
    .crypto-module__hero {
        border-radius: 60px 60px 0 0;
        min-height: 810px;
        padding: 80px 16px 60px;
    }
    .crypto-module__title {
        font-size: 40px;
        margin-bottom: 36px;
    }
    .crypto-module__subtitle {
        font-size: 21px;
    }
    .crypto-speed__note {
        width: 564px;
    }

    /* Crypto-adv — Figma 271:4661: зазор заголовок–сетка 40px, карточки padding 32px, колонка */
    .crypto-adv {
        gap: 40px;
    }
    .crypto-adv__heading {
        line-height: 1.1;
        letter-spacing: -0.04em;
    }
    .crypto-adv__grid {
        grid-template-columns: 1fr;
    }
    .crypto-adv__card {
        padding: 32px;
    }
    .crypto-adv__card-title {
        font-size: 24px;
        line-height: 1.3;
    }

    /* Monitor-adv — Figma 271:4787: зазор 40px, карточки 32px, колонка, заголовок 28px */
    .monitor-adv {
        gap: 40px;
    }
    .monitor-adv__heading {
        line-height: 1.1;
        letter-spacing: -0.04em;
    }
    .monitor-adv__grid {
        grid-template-columns: 1fr;
    }
    .monitor-adv__card {
        padding: 32px;
    }
    .monitor-adv__card-title {
        font-size: 24px;
        line-height: 1.3;
    }

    /* Crypto Speed — Figma 271:4691: зазор заголовок–контент 40px; горизонтальный скролл таблицы */
    .crypto-speed {
        gap: 40px;
    }
    .crypto-speed__heading {
        line-height: 1.1;
        letter-spacing: -0.04em;
    }
    .crypto-speed__table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Migration — Figma 271:4509 (mobile): секция 80px 0, зазор 40px; шапка колонкой 24px; заголовок 28px; таймлайн горизонтальный скролл */
    .migration {
        gap: 40px;
        padding: 80px 0;
    }
    .migration__header {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 24px;
        padding: 0 16px;
    }
    .migration__heading {
        font-size: 28px;
        line-height: 1.071;
        letter-spacing: -0.01em;
    }
    .migration__decor {
        align-self: flex-end;
    }
    .migration__timeline {
        padding: 0 16px;
    }
    .migration__step-num {
        font-size: 32px;
        line-height: 1.1875;
    }
    .migration__step-title {
        font-size: 24px;
        line-height: 1;
    }

    /* Gallery — Figma 278:247 (mobile): фон #FFF, вертикальный ритм 40px */
    .gallery {
        background: var(--color-white);
    }
    .gallery .gallery__inner {
        gap: 40px;
    }

    /* Contact — Figma 271:5274 (mobile) */
    .contact__heading-text--tablet {
        display: none;
    }
    .contact__heading-text--mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .contact {
        padding: 40px 16px 80px;
    }
    .contact__heading {
        font-size: 28px;
        line-height: 1.14;
        margin-bottom: 40px;
    }
    .contact__form {
        max-width: none;
    }
    .contact__field {
        min-height: 41px;
    }
    .contact__input {
        min-height: 41px;
        font-size: 17px;
        padding: 12px 44px 8px 0;
    }
    .contact__label {
        font-size: 17px;
    }
    .contact__textarea {
        min-height: 89px;
    }
    .contact__submit-row {
        flex-direction: column;
        gap: 40px;
    }
    .contact__submit {
        align-self: stretch;
        width: 100%;
        min-width: 0;
        height: 46px;
        font-size: 16px;
    }
    .contact__consent-link {
        color: var(--color-dark-green);
    }

    /* Metrics — Figma 271:4817: иконки 40×20, текст 16px */
    .metrics__item {
        font-size: 16px;
    }
    .metrics__item img {
        width: 40px;
        height: 20px;
    }

    /* Footer: мобильная вертикальная композиция */
    .footer {
        gap: 30px;
        padding: 40px 16px;
    }
    .footer__top {
        display: flex;
        flex-direction: column;
        gap: 28px;
        align-items: stretch;
    }
    .footer__logo img {
        width: 132px;
        max-width: 100%;
        margin: 0 auto;
    }
    .footer__actions {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }
    .footer__nav {
        order: -1;
        width: 100%;
    }
    .footer__nav a {
        width: 100%;
        min-height: 48px;
    }
    .footer__address {
        font-size: 14px;
        text-align: center;
    }
    .footer__bottom {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        min-height: 0;
        padding-top: 25px;
        text-align: center;
    }
    .footer__bottom-link,
    .footer__copyright {
        font-size: 14px;
    }
}
