:root {
    --secondary-color: #F97E25;
}

/* Общие утилиты для заглушек (НЕ блоки) */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #D9D9D9;
    border-radius: 4px;
}

section {
    padding: 60px 0;
}

.migration.page {
    padding-top: 0;
}

.migration.page::before {
    display: none;
}

.popup__title-migration {
    margin: 0 auto 30px;
    font-size: 32px;
    font-weight: 500;
    color: var(--text-black-color);
    text-align: center;
    text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
    background-color: #030406;
    color: #fff;
    position: relative;
    padding: 0;
}

.hero__wrapper {
    padding: 90px 0 160px 20px;
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero__content>* {
    margin-bottom: 0;
}

.for-logo {
    display: flex;
}

.for-logo::after {
    content: '';
    display: block;
    background: url('./wp-content/themes/webmx/images/migration/logo-sm.svg.png');
    width: 104px;
    height: 44px;
}

.hero__bg-2,
.hero__bg-1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.hero__bg-2 {
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

img.hero__bg-3 {
    position: absolute;
    right: 0;
    top: 40px;
    width: 75vh;
}

.hero__title {
    font-size: 44px;
    line-height: 50px;
    font-weight: 500;
}

.hero__subtitle {
    color: var(--secondary-color);
    font-size: 22px;
    line-height: 26px;
}

.hero__button {
    color: #D1D1D1;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 20px;
    border: 1px solid currentColor;
    display: block;
    width: fit-content;
}

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}


/* ===== STEPS ===== */

.lead__title,
.pilot__title,
.platform__title,
.migration__title,
.advantages__title,
.steps__title {
    color: #2A2A2A;
    font-size: 36px;
    line-height: 43px;
    font-weight: 500;
    margin-bottom: 30px;
}

.swiper:not(.swiper-initialized) .steps__list.swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
}
.swiper.swiper-initialized .steps__list.swiper-wrapper {
    padding: 0;
}
 .steps__item.swiper-slide {
    list-style: none;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 22px;
    box-shadow: 0px 0px 25px 0px #0000000D;
    margin-bottom: 0 !important;

}

.steps__item--highlight {
    background-color: var(--secondary-color);
    color: #fff;
}

.steps__item--highlight .steps__text {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.steps__item--highlight .steps__badge,
.steps__item--highlight .steps__item-title {
    color: inherit;
}

.steps__item-title {
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;
    color: #2A2A2A;
    margin: 0;
}

.steps__badge {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 35px;
    line-height: 35px;
}



.steps__text a {
    color: var(--secondary-color);
}

.steps__text {
    color: inherit;
    font-size: 14px;
    line-height: 18px;
    color: #666666;
    margin-bottom: 0;
}

.steps__button:hover {
    background-color: #c46218;
}
.steps__button {
    padding: 15px 20px;
    width: 100%;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    display: block;
    transition: 0.3s;
}

/* ===== ADVANTAGES ===== */
.advantages {
    position: relative;
}

.advantages_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.advantages_bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.advantages__card {
    padding: 30px 25px;
    box-shadow: 0px 10px 25px 0px #0000000D;
    border-radius: 12px;
    grid-column: span 2;
    color: #666666;
    font-size: 18px;
    line-height: 22px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advantages__card:nth-child(7),
.advantages__card:nth-child(8) {
    grid-column: span 3;
}

.advantages__icon {
    min-width: 40px;
    min-height: 40px;
}

.advantages__card-title {
    font-size: 20px;
    line-height: 22px;
    display: flex;
    gap: 20px;
    font-weight: 500;
    color: #2A2A2A;
    align-items: center;
    margin: 0;
    word-break: auto-phrase;
}


/* ===== MIGRATION (laws & notes) ===== */

.migration__title {
    margin-bottom: 20px;
}

.migration__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    background: url(/wp-content/themes/webmx/images/migration/migration.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 50px;
    border-radius: 12px;
}

.migration__note {
    font-size: 18px;
    line-height: 24px;
    color: #2A2A2A;
}


.migration__law {
    font-size: 16px;
    line-height: 20px;
    color: #2A2A2A;
    padding-bottom: 20px;
    border-bottom: 1px solid #E9E9E9;
    margin-bottom: 20px;
}

.migration__law:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}


/* ===== PLATFORM ===== */
.platform {
    background-color: #F2F2F2;
    position: relative;
    overflow: hidden;
}

.platform::after {
    content: '';
    background-image: url(/wp-content/themes/webmx/images/migration/platform.png);
    background-repeat: no-repeat;
    background-size: contain;
    height: 120%;
    width: 205px;
    position: absolute;
    right: 0;
    top: 0;
}

.platform__tags {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.platform__tag::before {
    content: '';
    display: block;
    min-width: 2px;
    background-color: var(--secondary-color);
    height: 100%;
    margin-right: 15px;
}

.platform__tag {
    padding: 30px 25px;
    background-color: #fff;
    border-radius: 12px;
    font-size: 18px;
    line-height: 24px;
    color: #2A2A2A;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
}

/* ===== PILOT ===== */

.pilot__title {
    display: flex;
    justify-content: space-between;
}

.pilot__title span {
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    align-items: center;
    max-width: 225px;
    text-align: right;
}

.pilot__timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 50px;
    margin-bottom: 10px;
    position: relative;
}

.pilot__step:before {
    content: '';
    border-bottom: 3px solid #F97E25;
    position: absolute;
    bottom: -32px;
    width: calc(100% + 1px);
    left: 0;
}

.pilot__step:after {
    content: '';
    background-size: contain;
    height: 41px;
    width: 18px;
    position: absolute;
    bottom: -32px;
    left: calc(50% - 9px);
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='41' viewBox='0 0 18 41' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 0.339746L0.339746 9L9 17.6603L17.6603 9L9 0.339746ZM7.5 39C7.5 39.8284 8.17157 40.5 9 40.5C9.82843 40.5 10.5 39.8284 10.5 39H9H7.5ZM9 9H7.5V39H9H10.5V9H9Z' fill='%23F97E25'/%3E%3C/svg%3E%0A");
}

.pilot__step:nth-child(1) {
    border-width: 1px 1px 1px 1px;
    border-radius: 12px 0 0 12px;
}

.pilot__step:nth-child(2) {
    border-width: 1px 1px 1px 0px;
}

.pilot__step:nth-child(3) {
    border-width: 1px 0px 1px 0px;
}

.pilot__step:nth-child(4) {
    border-width: 1px 1px 1px 1px;
    border-radius: 0 12px 12px 0;
}

.pilot__step {
    position: relative;
    padding: 20px;
    border-style: solid;
    border-color: #E9E9E9;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.pilot__duration {
    color: var(--secondary-color);
    font-size: 22px;
    line-height: 24px;
    font-weight: 700;
}

.pilot__step-title {
    color: #2A2A2A;
    font-size: 18px;
    line-height: 22px;
}

.pilot__weeks {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
}

.pilot_week-after {
    width: 50px;
    height: 50px;
    background-size: contain;
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    background-image: url("data:image/svg+xml,%3Csvg width='54' height='54' viewBox='0 0 54 54' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3.5' y='3.5' width='47' height='47' rx='23.5' fill='%23F97E25'/%3E%3Crect x='3.5' y='3.5' width='47' height='47' rx='23.5' stroke='white' stroke-width='7'/%3E%3Cpath d='M19 27L35 27M35 27L29 33M35 27L29 21' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.pilot__week {
    padding: 30px 25px;
    background-color: #F2F2F2;
    border-radius: 12px;
    box-shadow: 0px 10px 25px 0px #0000000D;
    font-size: 18px;
    line-height: 22px;
    color: #2A2A2A;
}

.pilot__week-title {
    font-size: 20px;
    line-height: 22px;
    font-weight: 500;
    display: flex;
    gap: 15px;
    align-items: center;
    color: var(--secondary-color);
}

.pilot__list .pilot__list-item {
    margin-bottom: 10px;
}

.pilot__list {
    margin-top: 20px;
    padding-left: 1.25rem;
}

.pilot ::-webkit-scrollbar {
    background-color: #F2F2F2;
    width: 5px;
    height: 5px;
}

.pilot ::-webkit-scrollbar-track {
    background-color: #F2F2F2;
    width: 5px;
    height: 5px;
}

.pilot ::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 3px;
    width: 5px;
    height: 5px;
}

/* ===== LEAD FORM ===== */
.lead {}

.lead__form {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.lead__row.checkbox {
    grid-column: span 5;
    display: flex;

    --size: 24px;
}

.lead__form input::placeholder {
    color: #666666;
}

.lead__form input {
    height: 50px;
    border-radius: 8px;
    background-color: #fff;
    color: #666666;
}

.lead__form input[type="submit"] {
    background-color: var(--secondary-color);
    color: #fff;
}

/* custom checkbox styling for contact form 7 checkbox */
.migration__form .checkbox span.wpcf7-list-item {
    display: inline-block;
    margin: 0;
}

.migration__form .checkbox .wpcf7 .wpcf7-list-item {
    display: block;
    margin-bottom: 10px;
}

.migration__form .checkbox label {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.migration__form .checkbox input[type=checkbox] {
    /*position: relative;*/
    position: absolute;
    visibility: hidden;
    width: var(--size);
    height: var(--size);
    top: 0;
    left: 0;
}


.migration__form .checkbox input[type=checkbox]+span:before {
    display: inline-block;
    position: absolute;
    content: '';
    border-radius: 0;
    height: var(--size);
    width: var(--size);
    top: 0px;
    left: 0px;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    margin-right: 10px;
}

.migration__form .checkbox a {
    color: inherit;
}

.migration__form .checkbox input[type=checkbox]+span:after {
    display: block;
    position: absolute;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.55018 9.15L14.0252 0.675C14.2252 0.475 14.4585 0.375 14.7252 0.375C14.9918 0.375 15.2252 0.475 15.4252 0.675C15.6252 0.875 15.7252 1.11267 15.7252 1.388C15.7252 1.66333 15.6252 1.90067 15.4252 2.1L6.25018 11.3C6.05018 11.5 5.81685 11.6 5.55018 11.6C5.28351 11.6 5.05018 11.5 4.85018 11.3L0.55018 7C0.35018 6.8 0.25418 6.56267 0.26218 6.288C0.27018 6.01333 0.374513 5.77567 0.57518 5.575C0.775847 5.37433 1.01351 5.27433 1.28818 5.275C1.56285 5.27567 1.80018 5.37567 2.00018 5.575L5.55018 9.15Z' fill='%23F97E25'/%3E%3C/svg%3E%0A");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: calc(var(--size) / 1.5);
    width: calc(var(--size) / 1.5);
    top: calc(50% - calc(calc(calc(var(--size) / 1.5)) / 1.5));
    left: calc(calc(calc(var(--size) / 1.5)) / 4);
    visibility: hidden;
}

.migration__form .checkbox input[type=checkbox]:checked+span:before {
    background: transparent;
}

.migration__form .checkbox input[type=checkbox]:checked+span:after {
    visibility: visible;
}

.migration p:has(.has-spinner) {
    position: relative;
}

.migration form.submitting .wpcf7-submit {
    opacity: 0.25;
    pointer-events: none;
}

.migration .wpcf7-spinner {
    left: calc(50% - 12px) !important;
    margin: 0 !important;
    top: calc(50% - 12px) !important;
}

#callback_migration .migration__form .checkbox .wpcf7-list-item-label {
    margin-top: -6px;
}

#callback_migration .lead__row.checkbox {
    margin-bottom: 15px;
}

.migration__form .checkbox .wpcf7-list-item-label {
    min-height: var(--size);
    font-size: 14px;
    line-height: 18px;
    color: #2A2A2A;
    padding-left: calc(var(--size) + 10px);
    margin-top: 6px;
}

.lead__wrapper {
    background-image: url(/wp-content/themes/webmx/images/migration/form_bg.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 50px;
    border-radius: 12px;
}

.advantages_mobile,
.hero__media-mobile {
    display: none;
}

body .swiper-pagination-bullet {
     background-color: var(--secondary-color);
}
body .swiper-pagination-bullets {
    text-align: center;
    position: absolute;
    bottom: 0px !important;
}
body .swiper-pagination-bullet-active {
    background-color: var(--secondary-color);
}
@media screen and (max-width: 1260px) {

    .hero__title {
        font-size: 38px;
        line-height: 44px;
    }

    .hero__subtitle {
        font-size: 20px;
        line-height: 24px;
    }

    .hero__content {
        max-width: 500px;
    }

    .lead__form {
        grid-template-columns: repeat(3, 1fr);

    }

    .lead__row.checkbox {
        grid-column: span 3;
    }

    img.hero__bg-3 {
        max-height: 450px;
    }
}

@media screen and (max-width: 1024px) {
    .pilot__timeline {
        grid-template-columns: repeat(4, 280px);
        overflow-x: scroll;
        overflow-y: hidden;
    }

    .hero__bg-1,
    img.hero__bg-3 {
        display: none;
    }

    .hero__media-mobile {
        display: block;
    }

    .hero__content {
        max-width: unset;
        align-items: center;
        gap: 20px;
    }

    .hero__wrapper {
        padding: 60px 0;
        text-align: center;
    }

    .hero__bg-4 {
        width: 100%;
        max-width: 600px;
    }

    .swiper:not(.swiper-initialized) .steps__list.swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);

    }

    .advantages__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .advantages__card:nth-child(7),
    .advantages__card:nth-child(8) {
        grid-column: span 4;
    }

    .advantages__card-title {
        font-size: 18px;
        line-height: 20px;
    }
}

@media screen and (max-width: 768px) {
    .lead__form {
        grid-template-columns: repeat(2, 1fr);

    }

    .lead__row.checkbox {
        grid-column: span 2;
    }

    .pilot__weeks,
    .migration__content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .migration__content {
        padding: 20px;
    }

    .pilot_week-after {
        top: calc(50% + 15px);
        transform: rotate(90deg);
    }

    section {
        padding: 30px 0;
    }
}

@media screen and (max-width: 580px) {

    .platform__tags,
    .lead__form {
        grid-template-columns: 1fr;

    }

    .lead__row.checkbox {
        grid-column: span 1;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages__card:nth-child(7),
    .advantages__card:nth-child(8) {
        grid-column: span 2;
    }

    .hero__wrapper {
        padding: 40px 0;
    }

    .hero__bg-4 {
        height: 230px;
        width: auto;
    }

    .hero__title {
        font-size: 28px;
        line-height: 32px;
    }

    .hero__subtitle {
        font-size: 18px;
        line-height: 22px;
    }

    .hero__bg-2 {
        object-position: 0%;
    }

    .lead__title,
    .pilot__title,
    .platform__title,
    .migration__title,
    .advantages__title,
    .steps__title {
        font-size: 28px;
        line-height: 32px;
    }

    section.steps {
        padding-top: 50px;
    }

    section {
        padding: 25px 0;
    }

    .steps__item {
        padding: 20px;
        gap: 15px;
    }

    .lead__wrapper {
        padding: 20px;
    }

    .steps__badge {
        font-size: 25px;
        line-height: 25px;
    }

    .advantages__card-title {
        font-size: 20px;
        line-height: 22px;
        word-break: auto-phrase;
    }

    .advantages_mobile {
        display: block;
        margin-top: 30px;
        grid-column: span 2;
    }

    .migration__form .checkbox .wpcf7-list-item-label {
        margin-top: -2px;
    }

    .migration__form .checkbox input[type=checkbox]+span:after {
        top: 5px;
    }
}







  [data-animate] { will-change: transform, opacity; }

  /* исходные состояния */
  [data-animate="fade-up"],
  [data-animate="fade-left"],
  [data-animate="fade-right"],
  [data-animate="stagger-up"] > * {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity .6s ease, transform .6s ease;
  }
  [data-animate="fade-left"] { transform: translate3d(-24px, 0, 0); }
  [data-animate="fade-right"] { transform: translate3d(24px, 0, 0); }

  /* активные состояния */
  .is-inview[data-animate="fade-up"],
  .is-inview[data-animate="fade-left"],
  .is-inview[data-animate="fade-right"] {
    opacity: 1; transform: none;
  }

  /* стэггер */
  [data-animate="stagger-up"] > * {
    opacity: 0; transform: translate3d(0, 16px, 0);
  }
  .is-inview[data-animate="stagger-up"] > * {
    opacity: 1; transform: none;
  }
  .is-inview[data-animate="stagger-up"] > * { transition: opacity .5s ease, transform .5s ease; }
  .is-inview[data-animate="stagger-up"] > *:nth-child(1) { transition-delay: .05s; }
  .is-inview[data-animate="stagger-up"] > *:nth-child(2) { transition-delay: .12s; }
  .is-inview[data-animate="stagger-up"] > *:nth-child(3) { transition-delay: .19s; }
  .is-inview[data-animate="stagger-up"] > *:nth-child(4) { transition-delay: .26s; }
  .is-inview[data-animate="stagger-up"] > *:nth-child(5) { transition-delay: .33s; }
  .is-inview[data-animate="stagger-up"] > *:nth-child(6) { transition-delay: .40s; }


/* мелкая приятность для .hero__media — лёгкий параллакс */
.hero__media img { transition: transform .3s ease; }
.hero__media._parallax img.hero__bg-1 { transform: translateY(var(--parallax-1, 0)); }
.hero__media._parallax img.hero__bg-2 { transform: translateY(var(--parallax-2, 0)); }
.hero__media._parallax img.hero__bg-3 { transform: translateY(var(--parallax-3, 0)); }


