* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: #0b2145;
    font: 15px/1.45 Arial, Helvetica, sans-serif;
    background: #fff
}

a {
    color: inherit;
    text-decoration: none
}

img {
    display: block;
    width: 100%;
    object-fit: cover
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: clamp(33px, 4vw, 55px);
    line-height: 1.05;
    letter-spacing: -1.6px
}

h2 {
    font-size: clamp(25px, 2.5vw, 35px);
    line-height: 1.16;
    letter-spacing: -.8px;
    margin-bottom: 12px
}

h3 {
    font-size: 15px;
    margin: 0 0 5px
}

p {
    color: #52637b
}

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

.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 12px #18365315
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 23px;
    min-height: 75px
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap
}

.brand-mark {
    font-size: 46px;
    color: #087bd8;
    line-height: .8;
    font-weight: bold
}

.brand strong {
    font-size: 21px;
    display: block
}

.brand small {
    display: block;
    font-size: 9px;
    color: #52708e
}

.nav {
    display: flex;
    gap: 17px;
    margin: auto;
    font-size: 12px;
    font-weight: bold
}

.nav a:hover,
.footer a:hover {
    color: #0780e2
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 15px
}

.messengers {
    display: flex;
    gap: 7px
}

.messengers a {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: bold
}


.phone {
    display: grid;
    text-align: right;
    white-space: nowrap
}

.phone a:first-child {
    font-weight: bold;
    font-size: 16px
}

.phone a:last-child {
    font-size: 11px;
    color: #0078d8
}

/* Базовый стиль кнопки */
.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;
    }
}


.button:hover {
    background: #006ac2
}

.header-order {
    font-size: 11px;
    padding: 11px;
    white-space: nowrap
}

.mobile-toggle {
    display: none
}

.hero {
    min-height: 490px;
    background: linear-gradient(90deg, #ffffffef 0%, #ffffffd9 36%, #ffffff00 75%), url(images/hero.webp) center/cover
}

.hero-inner {
    min-height: 490px;
    display: flex;
    align-items: center
}

.hero-copy {
    max-width: 600px
}

.hero-copy p {
    color: #223a5a;
    font-size: 18px
}

.blue-line {
    display: block;
    width: 45px;
    height: 4px;
    background: #0781e8;
    margin: -5px 0 20px
}

.hero-benefits {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 24px 0
}

.hero-benefits span {
    font-size: 11px;
    background: #ffffffd9;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold
}

.hero-copy small {
    margin-left: 13px;
    color: #536c87
}

.section {
    padding: 62px 0
}

.tint {
    background: #f4f8fc
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 25px
}

.section-heading p {
    margin: 0
}

.section-heading>a {
    font-size: 13px;
    color: #0781e2;
    font-weight: bold
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
}

.card {
    background: white;
    border: 1px solid #e7edf3;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 4px 14px #102d5010
}

.service img {
    height: 145px
}

.card-body {
    padding: 15px
}

.service .card-body {
    position: relative;
    min-height: 105px;
    padding-right: 37px
}

.card-body p {
    font-size: 12px;
    margin: 0
}

.service .card-body>a {
    position: absolute;
    right: 12px;
    bottom: 17px;
    border: 1px solid #aed6fb;
    color: #087ee1;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center
}

.before-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border-radius: 9px;
    overflow: hidden
}

.pair figure {
    margin: 0;
    position: relative
}

.pair img {
    height: 175px
}

.pair figcaption {
    position: absolute;
    bottom: 9px;
    left: 8px;
    background: #1c304bdb;
    color: white;
    border-radius: 15px;
    padding: 3px 11px;
    font-size: 11px
}

.before-card h3,
.before-card>p {
    text-align: center
}

.before-card h3 {
    margin: 12px 0 3px
}

.before-card>p {
    font-size: 12px
}

.features {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 45px
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px
}

.feature-grid>div {
    position: relative;
    padding-left: 45px
}

.feature-grid span {
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: #e6f3ff;
    color: #0085ed;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px
}

.feature-grid strong {
    font-size: 13px
}

.feature-grid p {
    font-size: 12px;
    margin: 4px 0
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 2.15fr;
    gap: 45px;
    align-items: center
}

.section-side small {
    display: block;
    color: #7b8998;
    margin-top: 15px
}

.price-grid,
.district-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.price img {
    height: 95px
}

.price b {
    font-size: 17px
}

.price p {
    margin-top: 7px
}

.district img {
    height: 115px
}

.district .card-body {
    padding: 10px
}

.district h3 {
    font-size: 12px
}

.district span {
    font-size: 11px;
    color: #5c728d
}

.district-grid {
    grid-template-rows: repeat(2, auto)
}

.calculator {
    background: linear-gradient(90deg, #07172bbf, #07172b9c), url(images/cta.webp) center/cover;
    padding: 50px 0;
    color: white
}

.calc-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center
}

.calc-copy p {
    color: #fff
}

.calc-form {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    color: #112b4e
}

.calc-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.calc-fields label {
    font-size: 12px;
    color: #5b6b80
}

.calc-fields select {
    display: block;
    width: 100%;
    padding: 13px 8px;
    border: 1px solid #d9e2ed;
    border-radius: 6px;
    margin-top: 8px;
    background: white;
    color: #112b4e
}

.calc-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 19px 0;
    font-size: 12px
}

.calc-checks input {
    accent-color: #0086f2
}

.calc-form .button {
    width: 100%
}

#calc-result {
    padding: 8px 0 15px;
    font-size: 13px
}

#calc-result strong {
    color: #067fe2
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.review {
    padding: 25px;
    min-height: 195px
}

.review p {
    font-size: 13px
}

.avatar {
    border-radius: 50%;
    background: #e4f3ff;
    color: #067fe2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 15px
}

.blog img {
    height: 105px
}

.blog h3 {
    font-size: 12px
}

.blog a {
    font-size: 11px;
    color: #087de0
}

.cta {
    background: linear-gradient(90deg, #06182abf, #06182a55), url(images/cta.webp) center/cover;
    padding: 55px 0;
    color: #fff
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 45px;
    align-items: center
}

.cta p {
    color: #fff
}

.order-form {
    background: #fff;
    color: #112b4e;
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center
}

.order-form>input:not(.honeypot) {
    flex: 1;
    min-width: 140px;
    padding: 13px;
    border: 1px solid #d8e1ec;
    border-radius: 6px
}

.order-form .consent {
    width: 100%;
    font-size: 11px;
    color: #586b82
}

.honeypot {
    position: absolute;
    left: -9999px
}

.footer {
    padding: 55px 0 15px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr .7fr 1.15fr 1.35fr;
    gap: 25px
}

.footer-grid>div>a:not(.brand),
.footer-grid>div>p {
    display: block;
    font-size: 12px;
    margin: 7px 0;
    color: #50617a
}

.footer-grid h3 {
    font-size: 13px;
    margin-bottom: 15px
}

.footer-grid .brand {
    margin-bottom: 20px
}

.map-placeholder {
    background: linear-gradient(45deg, #e9f2f7 25%, #f7f9fa 25%, #f7f9fa 50%, #e9f2f7 50%, #e9f2f7 75%, #f7f9fa 75%);
    background-size: 50px 50px;
    border-radius: 9px;
    min-height: 165px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 15px
}

.map-placeholder a {
    color: #057edc !important
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #e9edf3;
    padding-top: 25px;
    margin-top: 35px;
    font-size: 11px;
    color: #7b8a9c
}

@media(max-width:1150px) {
    .nav {
        gap: 9px
    }

    .header-order {
        display: none
    }

    .phone a:first-child {
        font-size: 13px
    }

    .services-grid {
        gap: 12px
    }

    .container {
        width: min(1240px, calc(100% - 36px))
    }
}

@media(max-width:850px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: 68px
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
        background: none;
        border: 0;
        font-size: 26px
    }

    .nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        padding: 10px 0 20px;
        flex-direction: column
    }

    .nav.open {
        display: flex
    }

    .head-actions {
        margin-left: auto
    }

    .hero {
        background-position: 60% center
    }

    .hero-copy {
        background: #fffffff0;
        border-radius: 12px;
        padding: 25px
    }

    .services-grid,
    .before-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .features,
    .split-section,
    .calc-inner,
    .cta-inner {
        grid-template-columns: 1fr
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .section {
        padding: 45px 0
    }
}

@media(max-width:560px) {
    h1 {
        font-size: 34px
    }

    .header-inner {
        gap: 10px
    }

    .head-actions {
        width: 100%;
        justify-content: space-between;
        padding-bottom: 10px
    }

    .hero,
    .hero-inner {
        min-height: 480px
    }

    .hero-benefits {
        gap: 4px
    }

    .hero-benefits span {
        font-size: 10px;
        padding: 7px
    }

    .hero-copy p {
        font-size: 15px
    }

    .services-grid,
    .before-grid,
    .price-grid,
    .district-grid,
    .blog-grid,
    .review-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .review-grid .review:last-child {
        display: none
    }

    .calc-fields {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid .map-placeholder {
        grid-column: 1/-1
    }

    .footer-bottom {
        flex-wrap: wrap
    }

    .service img {
        height: 105px
    }

    .pair img {
        height: 130px
    }

    .section-heading {
        align-items: start;
        gap: 10px
    }

    .section-heading>a {
        white-space: nowrap;
        font-size: 11px
    }

    .order-form>input:not(.honeypot) {
        flex-basis: 100%
    }
}

/* НОВЫЙ CSS*/
.messengers a img {
    width: 24px;  /* Задайте нужную ширину иконки */
    height: 24px; /* Задайте нужную высоту иконки */
    display: inline-block;
    vertical-align: middle;
    
    /* Добавляем плавность для всех изменений (скорость 0.3 секунды) */
    transition: transform 0.3s ease, opacity 0.3s ease; 
}

/* Эффект при наведении курсора */
.messengers a:hover img {
    /* Иконка плавно увеличивается на 15% и приподнимается вверх на 2 пикселя */
    transform: scale(1.15) translateY(-2px); 
    
    /* Опционально: можно сделать иконку чуть ярче или наоборот мягче */
    opacity: 0.85; 
}
