/* ============================
 * Mobile Header & Menu
 * ============================ */

@media (max-width: 991.98px) {
    #site-header .lqd-mobile-sec-inner {
        background: #fff !important;
        transition: background .5s ease;
    }

    #site-header.is-stuck .lqd-mobile-sec-inner {
        background: #90d7ff !important;
    }

    #site-header .module-search {
        display: none !important;
    }

    #site-header .lqd-mobile-sec-inner {
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #site-header .navbar-toggle {
        order: -1 !important;
        background: #fff !important;
        border-radius: 50% !important;
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        align-self: center !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
    }

    #site-header .navbar-toggle .bar {
        background-color: #D85651 !important;
    }

    #site-header .navbar-brand {
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        align-items: center !important;
        transform: translateX(-15px);
    }

    #site-header .lqd-mobile-sec-nav {
        position: static !important;
        pointer-events: none;
    }

    #site-header .mobile-navbar-collapse {
        position: fixed !important;
        top: var(--mh, 76px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-height: none !important;
        height: auto !important;
        overflow-y: auto !important;
        background: #fff4e6 !important;
        transform: scale(3) translateY(-50%);
        opacity: 0;
        transform-origin: center top;
        display: block !important;
        visibility: hidden;
        transition: none;
        z-index: 1000 !important;
        will-change: transform;
        pointer-events: none;
    }

    #site-header .mobile-navbar-collapse.show,
    #site-header .mobile-navbar-collapse.menu-falling {
        pointer-events: auto;
    }

    #site-header .mobile-navbar-collapse a,
    #site-header .mobile-navbar-collapse a * {
        color: #4c4242 !important;
        font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    #site-header .mobile-navbar-collapse li.is-active,
    #site-header .mobile-navbar-collapse li.active {
        background: transparent !important;
    }

    #site-header .mobile-navbar-collapse li.is-active a,
    #site-header .mobile-navbar-collapse li.active a {
        background: transparent !important;
        color: #4c4242 !important;
    }

    #site-header .mobile-navbar-collapse a.mobLogIn,
    #site-header .mobile-navbar-collapse a.mobLogOut {
        background: transparent !important;
        color: #4c4242 !important;
        padding: 15px 20px !important;
        display: flex !important;
        align-items: center !important;
    }

    #site-header .mobile-navbar-collapse a.mobLogIn::before,
    #site-header .mobile-navbar-collapse a.mobLogOut::before {
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-right: 10px;
        background: url('/pwa/icons/user-1.svg') no-repeat center/contain;
    }

    #site-header .mobile-navbar-collapse.show,
    #site-header .mobile-navbar-collapse.collapsing {
        visibility: visible;
        animation: menuFallBounce 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    #site-header .mobile-navbar-collapse.menu-falling {
        visibility: visible !important;
        animation: menuFallDown 0.28s cubic-bezier(0.4, 0, 1, 0.4) forwards !important;
    }

    @keyframes menuFallBounce {
        0% {
            transform: scale(3) translateY(-50%);
            opacity: 0;
        }
        40% {
            opacity: 1;
        }
        70% {
            transform: scale(0.95) translateY(0);
            opacity: 1;
        }
        85% {
            transform: scale(1.03) translateY(0);
        }
        100% {
            transform: scale(1) translateY(0);
            opacity: 1;
        }
    }

    @keyframes menuFallDown {
        0% {
            transform: translateY(0);
            opacity: 1;
        }
        30% {
            transform: translateY(5vh);
            opacity: 1;
        }
        100% {
            transform: translateY(110vh);
            opacity: 1;
        }
    }
}

/* ============================
 * Cloud Callback Animation
 * ============================ */

@media (max-width: 991.98px) {
    .callback-container.cloud-fly-in {
        animation: cloudFlyIn 0.8s cubic-bezier(0.55, 0, 0.2, 1);
    }

    .callback-container.cloud-fly-out {
        animation: cloudFlyOut 0.6s ease forwards;
        pointer-events: none !important;
    }

    @keyframes cloudFlyIn {
        0% {
            transform: translateX(150%);
        }
        60% {
            transform: translateX(-12%);
        }
        80% {
            transform: translateX(4%);
        }
        100% {
            transform: translateX(0);
        }
    }

    @keyframes cloudFlyOut {
        0% {
            transform: translateX(0);
            opacity: 1;
        }
        40% {
            transform: translateX(10%);
            opacity: 1;
        }
        100% {
            transform: translateX(-200vw);
            opacity: 0;
        }
    }

    .callback-container.cloud-falling {
        animation: cloudFallDown 0.55s cubic-bezier(0.55, 0, 1, 0.45) forwards;
    }

    .callback-container.cloud-rising {
        animation: cloudRiseUp 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
    }

    @keyframes cloudFallDown {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(120vh);
        }
    }

    @keyframes cloudRiseUp {
        0% {
            transform: translateY(120vh);
        }
        100% {
            transform: translateY(0);
        }
    }

    #site-header:not(.is-stuck)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px;
        height: 2px;
        background: #fff;
        z-index: 1;
        pointer-events: none;
    }
}

/* ============================
 * Nav Links
 * ============================ */

#primary-nav a {
    font-family: 'Roboto Slab', serif !important;
}

#primary-nav > li > a::after {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.dt-order-link {
    font-family: 'Roboto Slab', serif !important;
    font-size: 14px !important;
    color: #006bd8 !important;
    text-decoration: none !important;
    border: 3px solid #006bd8 !important;
    border-radius: 999px !important;
    padding: 5px 20px !important;
    background: transparent !important;
    transition: background 0.3s, color 0.3s !important;
    display: inline-block !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.5 !important;
}

.dt-order-link:hover {
    background: #006bd8 !important;
    color: #fff !important;
}

.dt-login-link {
    font-family: 'Roboto Slab', serif !important;
    font-size: 14px !important;
    color: #006bd8 !important;
    text-decoration: none !important;
}

.dt-cabinet-link {
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    color: #fff !important;
    text-decoration: none !important;
    border: 3px solid #fff !important;
    border-radius: 999px !important;
    padding: 5px 20px !important;
    background: #F18E90 !important;
    transition: background 0.3s, border-color 0.3s !important;
    display: inline-block !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.5 !important;
}

.dt-cabinet-link:hover {
    background: #e67c7e !important;
    border-color: #e67c7e !important;
    color: #fff !important;
}

/* ============================
 * Progress Bars
 * ============================ */

.liquid-progressbar-bar {
    background: #F18E90 !important;
    left: 0 !important;
}

.liquid-progressbar-bar.wave-override {
    width: var(--wave-w, 0%) !important;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.wave-active .liquid-progressbar-percentage {
    left: calc(100% - 16px) !important;
    transition: none !important;
}

.liquid-progressbar-percentage {
    background: #fce4ec !important;
    color: #c62828 !important;
    border-radius: 50%;
    min-width: 32px !important;
    min-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    right: auto !important;
    left: var(--pct-left, 0) !important;
    transition: left 0.15s ease !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
}

/* ============================
 * Hero Animation (mobile)
 * ============================ */

@media (max-width: 991.98px) {
    .main3-hero-title {
        display: block !important;
        white-space: nowrap !important;
        font-size: clamp(32px, 9vw, 56px) !important;
        line-height: 1.05 !important;
        text-align: center !important;
        margin-top: 0 !important;
    }

    .slog-text {
        text-align: center !important;
    }

    .slog-text .ld-fh-element {
        text-align: center !important;
    }

    .main3-hero-title .main3-hero-word {
        display: block !important;
        opacity: 1 !important;
        will-change: transform !important;
    }

    .main3-hero-title .main3-hero-word.hero-anim {
        animation: heroWordIn 0.9s cubic-bezier(0.55, 0, 0.2, 1) both !important;
    }

    .main3-hero-title .main3-hero-word.hero-anim:nth-child(1) {
        animation-delay: 0.1s !important;
    }

    .main3-hero-title .main3-hero-word.hero-anim:nth-child(2) {
        animation-delay: 0.45s !important;
    }

    .main3-hero-title .main3-hero-word.hero-anim:nth-child(3) {
        animation-delay: 0.8s !important;
    }

    @keyframes heroWordIn {
        0% {
            transform: translateX(120vw);
        }
        55% {
            transform: translateX(-6%);
        }
        72% {
            transform: translateX(3%);
        }
        85% {
            transform: translateX(-1%);
        }
        100% {
            transform: translateX(0);
        }
    }

    .slog-text .ld-fh-element {
        font-size: clamp(13px, 3.8vw, 17px) !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }

    .slog-text .slog-line1 {
        display: block;
        margin-bottom: 8px;
    }

    .slog-text .slog-line2 {
        display: block;
    }

    .viewSs .first-oo {
        border: 4px solid #fff !important;
        border-radius: 999px !important;
        transform-origin: 50% 50%;
        animation: btnCoinUnfold 1s cubic-bezier(0.55, 0, 0.2, 1) both;
        animation-delay: 2.6s;
        backface-visibility: hidden;
    }

    @keyframes btnCoinUnfold {
        0% {
            transform: perspective(900px) rotateY(180deg) scale3d(0.9, 0.9, 1);
            opacity: 0;
        }
        40% {
            opacity: 1;
        }
        100% {
            transform: perspective(900px) rotateY(0deg) scale3d(1, 1, 1);
            opacity: 1;
        }
    }

    .lqd-section.services .iconbox {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .lqd-section.services .iconbox .iconbox-icon-wrap {
        margin-right: 0 !important;
        margin-bottom: 18px !important;
    }

    .lqd-section.services .iconbox .iconbox-icon-wrap img {
        width: 160px !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .lqd-section.services .iconbox .contents {
        text-align: center !important;
    }

    .callback-container {
        pointer-events: none;
    }

    .callback-container .cloud-button {
        pointer-events: auto !important;
    }

    .callback-container .cloud-center-hit {
        width: 56px !important;
        height: 56px !important;
        pointer-events: auto !important;
    }
}

/* ============================
 * Global Text Alignment
 * ============================ */

@media (max-width: 991.98px) {
    #wrap > main,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) {
        text-align: center !important;
    }

    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) .ld-fancy-heading,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) h1,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) h2,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) h3,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) h4,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) h5,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) h6,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) p,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) .contents,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) .iconbox {
        text-align: center !important;
    }

    #wrap > main section#steps.steps.lqd-section .iconbox,
    #wrap > main section#steps.steps.lqd-section .iconbox h3,
    #wrap > main section#steps.steps.lqd-section .iconbox p,
    #wrap > main section#steps.steps.lqd-section .iconbox .contents {
        text-align: left !important;
    }

    #wrap > main section#service-plans.lqd-section .iconbox,
    #wrap > main section#service-plans.lqd-section .iconbox h3,
    #wrap > main section#service-plans.lqd-section .iconbox p,
    #wrap > main section#service-plans.lqd-section .iconbox .contents {
        text-align: left !important;
    }

    /* Документные страницы: text-align:left */
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) .legal-doc,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) .legal-doc p,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) .legal-doc h5,
    #wrap > main section:not(#site-footer):not(.lqd-section.module-top) .legal-doc b {
        text-align: left !important;
    }

    #site-footer,
    #site-footer * {
        text-align: initial;
    }
}

/* ============================
 * Mobile Banner
 * ============================ */

@media (max-width: 991.98px) {
    /* Унификация вертикальных отступов между секциями на мобильной */
    #lqd-contents-wrap > section.lqd-section:not(#banner) {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 991.98px) {
    #banner {
        overflow: hidden !important;
        min-height: clamp(500px, calc(100vh - 96px), 860px) !important;
        height: auto !important;
        padding-top: 90px !important;
        padding-bottom: 20px !important;
        background-image: url('/img/clouds.svg'), linear-gradient(#90d7ff, #90d7ff) !important;
        background-position: 50% 0%, 0 0 !important;
        background-size: contain, 100% 100% !important;
        background-repeat: no-repeat, no-repeat !important;
        background-color: #90d7ff !important;
    }

    #banner > .container {
        height: 100% !important;
        max-width: 600px !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #banner .row.slogan {
        height: 100% !important;
        align-items: stretch !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #banner .row.slogan > .col {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #lqd-contents-wrap > section#banner .slog-text {
        margin-bottom: 0 !important;
    }

    #banner .main-pad {
        flex: 1 1 auto !important;
        min-height: calc(100vw / 2.4139 + 20px) !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 0 !important;
    }

    #banner .main-pad::before {
        content: '';
        position: absolute;
        left: -100vw;
        right: -100vw;
        top: calc(50% + 100vw * 0.103);
        bottom: -100vh;
        background: #87BE42;
        z-index: -1;
    }

    #banner .main-pad::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        top: 50%;
        transform: translateY(-50%);
        aspect-ratio: 2559.7/1060.9;
        background: url('/img/mobile.svg') center/100% 100% no-repeat;
        z-index: 1;
        pointer-events: none;
    }

    #banner .container-fluid.p-0 {
        flex-shrink: 0;
        position: relative;
        z-index: 1;
        background: #87BE42;
    }

    #banner .container-fluid.p-0 > a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #banner .container-fluid.p-0 .viewSs {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #vacansii h2,
    #vacansii .ld-fh-element {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
    }

    #wrap,
    #lqd-site-content,
    #lqd-contents-wrap {
        overflow-x: hidden !important;
    }
}

@media (max-width: 991.98px) and (max-height: 680px) {
    #banner {
        padding-top: 55px !important;
    }

    #lqd-contents-wrap > section#banner > .container > .row.slogan > .col > .ld-fancy-heading:first-child {
        margin-bottom: 6px !important;
    }
}

/* ============================
 * Spacing Overrides
 * ============================ */

#lqd-contents-wrap > section#site-footer {
    padding-top: 60px !important;
    padding-bottom: 0 !important;
}

#lqd-contents-wrap > section .row > .col,
#lqd-contents-wrap > section .row > [class*=col-] {
    margin-bottom: 20px !important;
}

#lqd-contents-wrap > section h2,
#lqd-contents-wrap > section h1 {
    margin-bottom: 14px !important;
}

#lqd-contents-wrap > section h6 {
    margin-bottom: 8px !important;
}

#lqd-contents-wrap > section .ld-fancy-heading {
    margin-bottom: 14px !important;
}

#lqd-contents-wrap > section .iconbox {
    margin-bottom: 24px !important;
}

#lqd-contents-wrap > section .row > .col:last-child,
#lqd-contents-wrap > section .row > [class*=col-]:last-child {
    margin-bottom: 0 !important;
}

#lqd-contents-wrap > section .row > .col:last-child .iconbox,
#lqd-contents-wrap > section .row > [class*=col-]:last-child .iconbox {
    margin-bottom: 0 !important;
}

#lqd-contents-wrap > section .mb-40 {
    margin-bottom: 16px !important;
}

#lqd-contents-wrap > section .mb-30 {
    margin-bottom: 12px !important;
}

#lqd-contents-wrap > section .mb-20 {
    margin-bottom: 10px !important;
}

#lqd-contents-wrap > section .mb-2em {
    margin-bottom: 1em !important;
}

#lqd-contents-wrap > section .py-90,
#lqd-contents-wrap > section .py-100,
#lqd-contents-wrap > section .pt-100,
#lqd-contents-wrap > section .pb-100,
#lqd-contents-wrap > section .pt-75,
#lqd-contents-wrap > section .pb-75,
#lqd-contents-wrap > section .pt-90,
#lqd-contents-wrap > section .pb-90,
#lqd-contents-wrap > section .pt-80,
#lqd-contents-wrap > section .pb-80,
#lqd-contents-wrap > section .pt-70,
#lqd-contents-wrap > section .pb-70 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

@media (max-width: 991.98px) {
    .slog-text.hero-sub-anim .ld-fh-element {
        opacity: 0;
        animation: heroSubFade 1s ease forwards;
        animation-delay: 1.7s;
    }

    @keyframes heroSubFade {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    .viewSs .first-oo.hero-btn-anim {
        animation: heroBtnFlip 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) 2.2s both !important;
    }

    @keyframes heroBtnFlip {
        0% {
            opacity: 0;
            transform: perspective(900px) rotateY(90deg);
        }
        40% {
            opacity: 1;
        }
        100% {
            opacity: 0.8;
            transform: perspective(900px) rotateY(0deg);
        }
    }
}

@media (min-width: 992px) {
    #banner {
        padding-top: 60px !important;
        padding-bottom: 20px !important;
    }

    .slog-text .ld-fh-element {
        line-height: 37px !important;
    }

    .slog-text .slog-line1,
    .slog-text .slog-line2 {
        display: block;
        white-space: nowrap;
    }
}

#site-header.is-stuck {
    box-shadow: rgba(0, 107, 217, 0.63) -2px 3px 90px -20px !important;
}

/* ============================
 * Circle Draw Icons
 * ============================ */

#steps .iconbox-icon-container,
#service-plans .iconbox-icon-container {
    position: relative;
}

#steps .iconbox-icon-container .circle-draw,
#service-plans .iconbox-icon-container .circle-draw {
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    pointer-events: none;
    transform: rotate(-90deg);
}

#steps .iconbox-icon-container .circle-draw circle,
#service-plans .iconbox-icon-container .circle-draw circle {
    fill: none;
    stroke: #F18E90;
    stroke-width: 3;
    stroke-dasharray: 141.37;
    stroke-dashoffset: 141.37;
    stroke-linecap: round;
    transition: none;
}

#steps .iconbox-icon-container.circle-animate .circle-draw circle,
#service-plans .iconbox-icon-container.circle-animate .circle-draw circle {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.6s ease-out;
}

#steps .iconbox-icon-container .lqd-icn-ess,
#service-plans .iconbox-icon-container .lqd-icn-ess {
    color: #F18E90 !important;
}

/* ============================
 * Back to Top
 * ============================ */

.lqd-back-to-top {
    opacity: 0.35 !important;
    transition: opacity 2s ease !important;
    left: 15px !important;
}

.lqd-back-to-top.btt-tap {
    opacity: 1 !important;
    transition: none !important;
}

/* ============================
 * Footer
 * ============================ */

#site-footer .iconbox h3,
#site-footer .lqd-fancy-menu ul a {
    font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
    font-weight: 400;
}

.pwa-install-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    border: none;
    border-radius: 12px;
    padding: 10px 20px 10px 14px;
    text-decoration: none !important;
    transition: background .2s;
    margin-top: 20px;
}

.pwa-install-badge:hover {
    background: #1a1a1a;
}

.pwa-install-badge__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-install-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.pwa-install-badge__sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .65);
    font-weight: 400;
}

.pwa-install-badge__title {
    font-size: 17px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
}

.footer-cloud {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.footer-cloud--1 {
    width: 160px;
    top: 20px;
    animation: fcloud1 35s linear infinite;
}

.footer-cloud--2 {
    width: 140px;
    top: 50%;
    animation: fcloud2 45s linear infinite;
}

.footer-cloud--3 {
    width: 110px;
    bottom: 50px;
    animation: fcloud3 40s linear infinite;
}

@keyframes fcloud1 {
    0% {
        left: -180px;
    }
    100% {
        left: 100%;
    }
}

@keyframes fcloud2 {
    0% {
        right: -160px;
    }
    100% {
        right: 100%;
    }
}

@keyframes fcloud3 {
    0% {
        left: -130px;
    }
    100% {
        left: 100%;
    }
}
