* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f7fafe;
    color: #0b2145;
    font: 16px/1.65 Arial, sans-serif
}

a {
    color: #0877d6;
    text-decoration: none
}

.container {
    width: min(1160px, calc(100% - 36px));
    margin: auto
}

.top {
    background: #fff;
    border-bottom: 1px solid #e4ebf3
}

.top .container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #0b2145
}

.top nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap
}

.tel {
    font-weight: 700
}

.hero {
    background: #fff;
    padding: 55px 0
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
    align-items: center
}

.hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 22px
}

.eyebrow {
    font-weight: 700;
    color: #0877d6
}

h1 {
    font-size: clamp(33px, 4vw, 54px);
    line-height: 1.12;
    margin: 12px 0 18px
}

h2 {
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2
}

p {
    color: #52657d
}

/* Базовый стиль кнопки */
.button {
    background: #067fe2;
    color: white !important;
    border: 0;
    border-radius: 7px;
    padding: 15px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 9px #0077da1e;
    
    /* Важно: удерживаем пузыри строго внутри границ кнопки */
    position: relative;
    overflow: hidden; 
    z-index: 1;
    transition: background 0.3s ease;
}

.button:hover {
    background: #0072cf;
}

/* Текст кнопки всегда должен быть приподнят поверх мыльной пены */
.button * {
    position: relative;
    z-index: 3;
}

/* Стили для динамических мыльных пузырей */
.bubble-particle {
    position: absolute;
    bottom: -15px; /* Начинают движение из скрытой нижней зоны */
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    
    /* Реалистичный радиальный мыльный блик */
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0) 70%);
    box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), 0 0 4px rgba(255, 255, 255, 0.15);
    
    /* Запуск индивидуальной плавной анимации на основе JS-переменных */
    animation: liveBubbleUp var(--speed) ease-out forwards;
}

/* Бесшовная и плавная анимация бурления */
@keyframes liveBubbleUp {
    0% {
        transform: translateY(0) scale(0.1) translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 1; /* Мягкое появление пузырька на свет */
    }
    50% {
        /* Пузырь плавно покачивается вбок и расширяется в процессе подъема */
        transform: translateY(var(--wobble-y)) scale(1.1) translateX(var(--wobble-x));
    }
    85% {
        opacity: 0.9;
    }
    100% {
        /* Долетая до верхней точки, пузырь увеличивается и плавно растворяется (лопается) */
        transform: translateY(var(--distance)) scale(1.3) translateX(calc(var(--wobble-x) * 1.4));
        opacity: 0;
    }
}


.section {
    padding: 56px 0
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.panel {
    background: #fff;
    padding: 24px;
    border: 1px solid #e6edf5;
    border-radius: 16px
}

.panel h3 {
    margin: 0 0 8px
}

.panel p {
    margin: 0
}

.check {
    font-size: 19px;
    color: #0877d6;
    margin-right: 9px
}

.muted {
    color: #52657d
}

.faq {
    max-width: 900px
}

.faq details {
    background: #fff;
    padding: 17px 21px;
    margin: 12px 0;
    border: 1px solid #e5ecf5;
    border-radius: 12px
}

.faq summary {
    cursor: pointer;
    font-weight: 700
}

.related {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.related a {
    background: white;
    padding: 11px 16px;
    border: 1px solid #dce9f6;
    border-radius: 9px
}

.cta {
    background: #0b3262;
    color: #fff;
    padding: 48px 0
}

.cta p {
    color: #e1eefa
}

.cta .button {
    background: #0788eb
}

.footer {
    padding: 30px 0;
    background: #fff
}

.footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap
}

@media(max-width:720px) {

    .hero-grid,
    .grid {
        grid-template-columns: 1fr
    }

    .hero img {
        height: 260px
    }

    .top .container {
        padding: 15px 0
    }

    .hero {
        padding: 32px 0
    }
}