@media (min-width: 980px) {
    .container {
        max-width: 980px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

.h1-title {
    font-size: 2.5rem;
}

@media (min-width: 980px) {
    .h1-title {
        font-size: clamp(24px, calc(8px + 4vw), 50px);
    }
}

h2 {
    font-size: 2.25rem;
    text-align: center;
}

@media (min-width: 980px) {
    h2 {
        font-size: clamp(22px, calc(16px + 2vw), 44px);
    }
}

.first-screen-pref-right {
    max-width: 200px;
}

@media (min-width: 980px) {
    .first-screen-pref-right {
        max-width: 174px;
    }
}

.first-screen-bg {
    background-position: center 109vw;
}
@media (min-width: 400px) {
    .first-screen-bg {
        background-position: center 80vw;
    }
}
@media (min-width: 600px) {
    .first-screen-bg {
        background-position: center calc(100% + 350px);
    }
}
@media (min-width: 980px) {
    .first-screen-bg {
        background-position: center 100%;
    }
}

.first-screen-price-btn {
    margin-top: 4rem;
}
@media (min-width: 980px) {
    .first-screen-price-btn {
        margin-top: 16px;
    }
}

.get-sale-p,
.how-we-work-block-title,
.ostavte-zayvku, .btn,
.how-we-work-block-phone,
.leave-review-link {
    font-size: 1.25rem;
}

#contacts .container {
    padding: 1.5rem;
}

#contacts .container p {
    padding-bottom: 1rem;
}

@media (min-width: 980px) {
    #contacts .container {
        padding-top: 78px;
        padding-bottom: 58px; 
    }

    #contacts .container p {
        padding-bottom: 40px;
    }
}

.footer-phone {
    font-size: 2.5rem;
}

.email-link {
    font-size: 1.125rem;
}

@media (min-width: 980px) {
    .footer-phone {
        font-size: 32px;
    }
}
    
.marquiz-pops {
    --marquiz-pop-background-color: #3775a8!important;
    --marquiz-pop-color-pulse: rgba(48, 97, 137, 0.4)!important;
    border-color: #306189;
}

.marquiz-pops_shadowed {
    box-shadow: 0 0 12px 0 var(--marquiz-pop-background-color, #3b6d96)!important;
}

.text-sm,
.md\:text-base {
    font-size: 1.125rem!important;
    line-height: 1.5!important;
}

@media (min-width: 980px) {
    .footer-first-col {
        gap: 1.72rem!important;
    }
}
.footer-privacy {
    padding-top: 14px;
}
.price-card[data-astro-cid-lkieq62d] {
    border-radius: 6px;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(224 224 224 / var(--tw-border-opacity, 1));
    padding: 2rem;
    --tw-text-opacity: 1;
    color: rgb(51 51 51 / var(--tw-text-opacity, 1))
}

.price-card[data-astro-cid-lkieq62d] ul[data-astro-cid-lkieq62d] {
    list-style-type: disc;
    padding-left: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.5rem
}

.price-card[data-astro-cid-lkieq62d] p {
    font-size: 1.25rem;
}

.price-card[data-astro-cid-lkieq62d] li[data-astro-cid-lkieq62d] {
    margin-bottom: .5rem
}

.price-card[data-astro-cid-lkieq62d] .price-num[data-astro-cid-lkieq62d] {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    line-height: 24px
}

.faq-answer[data-astro-cid-al2ca2vr] {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease, padding .5s ease, opacity .3s ease;
    opacity: 0
}

.faq-item[data-astro-cid-al2ca2vr].active .faq-answer[data-astro-cid-al2ca2vr] {
    max-height: 1000px;
    opacity: 1;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1rem;
    padding-top: 0;
    font-size: 1.125rem;
    line-height: 1.5;
}

@media (min-width: 980px) {
    .faq-item[data-astro-cid-al2ca2vr].active .faq-answer[data-astro-cid-al2ca2vr] {
        padding: 1rem 2rem 2rem;
    }
}

.faq-icon[data-astro-cid-al2ca2vr] {
    transition: transform .3s ease
}

.faq-item[data-astro-cid-al2ca2vr].active .faq-icon[data-astro-cid-al2ca2vr] {
    transform: rotate(180deg)
}

.faq-item[data-astro-cid-al2ca2vr] {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: .375rem;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(224 224 224 / var(--tw-border-opacity, 1))
}

.transition-main[data-astro-cid-pab2ejtl],
.transition-main[data-astro-cid-pab2ejtl]:hover {
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .3s
}
#cookie_notification {
    display: none;
    justify-content: space-between;
    align-items: flex-end;
    position: fixed;
    bottom: 100px;
    left: 50%;
    width: auto;
    max-width: 90%;
    transform: translateX(-50%);
    padding: 1rem;
    z-index: 1000;
}
@media (min-width: 980px) {
    #cookie_notification {
        padding: 24px;
    }
}

#cookie_notification p {
    margin: 0;
    text-align: left;
    font-size: 1.125rem;
}

.cookie_accept {
    background: #3775a8;
    letter-spacing: .3px;
    padding: 7px 12px;
    border-color: #306189;
}

.cookie_accept:hover {
    background: #306189;
}

@media (min-width: 576px){
    #cookie_notification.show{
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .cookie_accept{
        margin: 0 0 0 25px;
    }
}
@media (max-width: 575px){
    #cookie_notification.show{
        display: block;
        text-align: center;
    }
    .cookie_accept{
        margin: 10px 0 0 0;
    }
}
.floating-phone-btn-animation {
    content: '';
    will-change: left;
    position: absolute;
    transform: skewX(-22deg);
    width: 45px;
    height: 100%;
    opacity: 0;
    left: 0%;
    animation-delay: 2s;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.6) 100%);
    animation-name: marquiz__pop-blick;
    animation-duration: 5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Анимация тряски иконки (цикл 5 секунд) */
@keyframes phone-shake {
    0%, 80%, 100% { transform: rotate(0deg); }
    82% { transform: rotate(-15deg); }
    84% { transform: rotate(13deg); }
    86% { transform: rotate(-11deg); }
    88% { transform: rotate(9deg); }
    90% { transform: rotate(-7deg); }
    92% { transform: rotate(5deg); }
    94% { transform: rotate(-3deg); }
    96% { transform: rotate(1deg); }
    98% { transform: rotate(0deg); }
}

/* Сверхплавная анимация для первого текста (Позвонить) — цикл 10 секунд */
@keyframes text-fade-one {
    0%, 36% { opacity: 1; filter: blur(0px); }
    46%, 86% { opacity: 0; filter: blur(4px); } /* Плавное растворение за 1 секунду */
    96%, 100% { opacity: 1; filter: blur(0px); } /* Плавное возвращение */
}

/* Сверхплавная анимация для второго текста (Номер) — цикл 10 секунд */
@keyframes text-fade-two {
    0%, 36% { opacity: 0; filter: blur(4px); }
    46%, 86% { opacity: 1; filter: blur(0px); } /* Плавно проявляется и держится */
    96%, 100% { opacity: 0; filter: blur(4px); } /* Плавно растворяется */
}

.animate-phone-ring {
    animation: phone-shake 5s infinite ease-in-out;
    transform-origin: center;
}

.text-slide {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
}

.text-slide span {
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
}

/* cubic-bezier дает очень мягкий, премиальный эффект скольжения прозрачности */
.text-one {
    animation: text-fade-one 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.text-two {
    animation: text-fade-two 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.cls-1 {
    fill: #fff;
    fill-rule: evenodd;
}
.floating-button {
    z-index: 9999;
}

.header-logo-text {
    font-size: 1.5rem;
}
@media (min-width: 980px) {
    .header-logo-text {
        font-size: clamp(13px, calc(10px + 2vw), 32px);
    }
}

.footer-years {
    max-width: 300px;
}

@media (min-width: 980px) {
    .get-sale-img-container {
        bottom: -24px;
    }
}

.header-logo {
    align-items: start;
}
@media (min-width: 980px) {
    .header-logo {
        align-items: center;
    }
}


@media (max-width: 979px) {
    /* Прячем горизонтальный скролл */
    .first-screen-bg {
        overflow: hidden;
    }

    /* Общие правила для строк преимуществ */
    .hero-row-left,
    .hero-row-right {
        position: relative;
        min-height: 240px;
    }

    /* Базовые стили персонажей для узких мобилок (до 575px) */
    .hero-row-left::before {
        content: '';
        position: absolute;
        right: -50px;
        top: 50%;
        transform: translateY(-50%);
        width: 300px;
        height: 300px;
        background-image: url('/_astro/she.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        pointer-events: none;
        z-index: 1;
    }

    .hero-row-right::before {
        content: '';
        position: absolute;
        left: -50px;
        top: 50%;
        transform: translateY(-50%);
        width: 250px;
        height: 250px;
        background-image: url('/_astro/he.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        pointer-events: none;
        z-index: 1;
    }

    /* Ширина текста для мобильных */
    .hero-row-left .first-screen-pref-left,
    .hero-row-right .first-screen-pref-right {
        position: relative;
        z-index: 2;
        width: 62% !important;
        max-width: none !important;
    }

    .hero-row-left .first-screen-pref-left {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .hero-row-right .first-screen-pref-right {
        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

/* Увеличение и приближение персонажей на экранах от 576px до 979px */
@media (min-width: 576px) and (max-width: 979px) {
    .hero-row-left::before {
        width: 350px;       /* Увеличиваем размер девушки */
        height: 350px;
        right: -20px;       /* Сдвигаем ближе к тексту */
    }

    .hero-row-right::before {
        width: 320px;       /* Увеличиваем размер мужчины */
        height: 320px;
        left: -20px;        /* Сдвигаем ближе к тексту */
    }

    /* Делаем текстовые блоки чуть шире на планшетах */
    .hero-row-left .first-screen-pref-left,
    .hero-row-right .first-screen-pref-right {
        width: 50% !important;
    }
}

/* В диапазоне от 980px до 1023px принудительно оставляем мобильную/планшетную структуру 
   (в столбик), чтобы колонки с max-content не обрезались по краям */
@media (min-width: 980px) and (max-width: 1080px) {
    .hero-content-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 40px !important;
    }

    .hero-row-right {
        margin-left: 50px;
    }
}

.grid-container-photo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px; 
    width: 100%;
    margin: 0 auto;
}

.grid-item-photo {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    padding: 16px;
    width: 100%;
}

.grid-item-photo img {
    height: 100%;
}

@media (min-width: 576px) {

    .grid-container-photo {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 30px; 
    }

    .grid-item-photo {
        border: 1px solid #ddd;
        border-radius: 6px;
        overflow: hidden;
        padding: 32px;
    }

    /* Левый блок занимает обе строки по вертикали */
    .item-photo-large {
        grid-row: 1 / span 2;
        grid-column: 1;
    }

    /* Размещение правых блоков */
    .item-photo-small-top {
        grid-row: 1;
        grid-column: 2;
    }

    .item-photo-small-bottom {
        grid-row: 2;
        grid-column: 2;
    }
}