/********** Template CSS **********/
:root {
    --primary: #1E60AA;
    --secondary: #FF4917;
    --light: #EDF1FC;
    --dark: #17224D;
}

a {
    color: #d01010!important;
}

.nb {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e63946;
    text-align: center;
}
h1 span, h2 span {
    color: #d01010!important;
}
.service-item-top .bg-light {
    background-color: #1e60aa !important;
}
.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 25px;
    bottom: 25px;
    z-index: 99;
}

.nav-link:hover {
text-decoration: underline;
}
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF!important;
}

.btn-square {
    width: 58px;
    height: 58px;
}

.btn-sm-square {
    width: 52px;
    height: 52px;
}

.btn-lg-square {
    width: 68px;
    height: 68px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    color: white !important;
}


/*** Navbar ***/
.top-bar {
    height: 75px;
    padding: 0 4rem;
}

.nav-bar {
    position: relative;
    padding: 0 4.75rem;
    transition: .5s;
    z-index: 9999;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel .container,
.page-header .container {
    position: relative;
    padding: 45px 0 45px 35px;
    border-left: 15px solid #FFFFFF;
}

.header-carousel .container::before,
.header-carousel .container::after,
.page-header .container::before,
.page-header .container::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100px;
    height: 15px;
    background: #FFFFFF;
}

.header-carousel .container::after,
.page-header .container::after {
    top: 100%;
    margin-top: -15px;
}

@media (min-width: 769px) {
    .mstart {
    display:none;
}
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Facts ***/
.fact {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}


/*** Service ***/
.service-item-top img {
    transition: .5s;
}

.service-item-top:hover img {
    transform: scale(1.1);
}

.service-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.service-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    transition: .5s;
}

.service-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}


/*** Booking ***/
.video {
    position: relative;
    padding: 8rem 0 12rem 0;
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video .btn-play {
    position: relative;
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
    margin-bottom: 4rem;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--primary);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-text {
    height: 90px;
    overflow: hidden;
}

.team-item .team-text .bg-light,
.team-item .team-text .bg-primary {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: .5s;
}

.team-item .team-text .bg-primary {
    flex-direction: row;
}

.team-item:hover .team-text .bg-light {
    margin-top: -90px;
}

.team-item .team-text .bg-primary .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-text .bg-primary .btn:hover {
    color: #FFFFFF;
    background: var(--secondary)
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item .testimonial-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    border: 15px solid;
    border-color: var(--light) transparent transparent transparent;
    transition: .5s;

}

.testimonial-carousel .owl-item.center .testimonial-text::after {
    border-color: var(--primary) transparent transparent transparent;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    font-size: 30px;
    color: var(--primary);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light)!important;
}

/* ---- Стили для промо-сообщения в верхней панели ---- */

.topbar-promo {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.topbar-promo .promo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d3557; /* Темно-синий цвет темы */
    line-height: 1.2;
}

.topbar-promo .fa-shield-alt {
    font-size: 1.5rem; /* Иконка чуть больше текста */
    line-height: 1;
}

/* ---- Стили для Прайс-листа (Hinnakiri) ---- */
.price-section-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 40px 20px;
    background-color: #f4f7fc;
}
.price-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 40px;
}
h3{
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 40px;
}
h5{
    color: #ffffff;
}
.ms-4 {
        text-align: center;
    padding: 10px;
    border-width: 2px;
    border-color: #ff2d2d;
    border-style: dashed;
    margin-left: 0 !important;
}
.price-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.price-column {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.price-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}
.price-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.price-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d3557;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #457b9d;
}
.price-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.price-item li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 1rem;
    color: #555;
    border-bottom: 1px solid #f1f1f1;
}
.price-item li:last-child {
    border-bottom: none;
}
.price-item li strong {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e63946;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .price-title {
        font-size: 2rem;
    }
}

/* ---- Новый стиль для промо-сообщения ВНУТРИ навигации (мобильные) ---- */
.mobile-navbar-promo {
    padding-top: 10px; /* Отступ от логотипа/телефона сверху */
    margin-top: 10px;
    border-top: 1px solid #eee; /* Тонкая линия-разделитель */
}

.mobile-navbar-promo .promo-text {
    font-size: 0.9rem; /* Компактный размер для мобильных */
    font-weight: 600;
    color: #d01010;
}

.mobile-navbar-promo .fa-shield-alt {
    font-size: 1rem;
}

/* ---- Стили для новой секции "Аварийная служба 24/7" ---- */

.emergency-section {
    background-color: #1d3557; /* Фирменный темно-синий фон */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Полупрозрачный фоновый узор для динамики */
.emergency-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%2306A3DA' fill-opacity='0.1'/%3E%3C/svg%3E");
    z-index: 1;
}

.emergency-text-content {
    position: relative;
    z-index: 2;
}

.emergency-section h2.display-5 {
    font-weight: 700;
}

.problem-list p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.problem-list .fa-check {
    margin-right: 10px;
}

/* Блок с акцентом на времени работы */
.time-accent-box {
    background: rgba(6, 163, 218, 0.1); /* Полупрозрачный фон акцентного цвета */
    border-left: 5px solid #06A3DA; /* Яркая рамка слева */
    border-radius: 8px;
    padding: 20px;
}

.time-accent-content {
    display: flex;
    align-items: center;
}

.time-accent-content .time-text {
    margin-left: 20px;
}

.time-accent-content h4 {
    font-weight: 600;
}

/* Блок с изображением */
.emergency-image-holder {
    position: relative;
    z-index: 2;
}

.emergency-image-holder img {
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Stiilid kompaktsele hinnakalkulaatori vidinale */
.price-calculator-widget-compact {
    margin: 20px 0;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.price-calculator-widget-compact .widget-header {
    background-color: #005cbf; /* Sinine */
    color: #ffffff;
    padding: 15px;
}

.price-calculator-widget-compact .widget-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}

.price-calculator-widget-compact .current-price-display {
    padding: 20px;
}

.price-calculator-widget-compact .price-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.price-calculator-widget-compact .price-value-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-calculator-widget-compact .price-value {
    background-color: #ffc107; /* Kollane */
    color: #212529;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.price-calculator-widget-compact .price-description {
    font-size: 14px;
    color: #6c757d;
}

.price-calculator-widget-compact .price-plus {
    font-size: 20px;
    font-weight: 700;
    color: #005cbf;
}

.price-calculator-widget-compact .live-time-display {
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
}

.price-calculator-widget-compact .live-time-display span {
    font-weight: 700;
    color: #333;
}

/* Stiilid kontaktivormile */
#kontakt-vorm .form-control {
    border-radius: 0;
    border-width: 1px;
    border-color: #ced4da;
}

#kontakt-vorm .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 92, 191, 0.25); /* Sinine fookus */
    border-color: #005cbf;
}

#kontakt-vorm .form-floating > label {
    color: #6c757d;
}

#kontakt-vorm .btn-primary {
    background-color: #005cbf;
    border-color: #005cbf;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#kontakt-vorm .btn-primary:hover {
    background-color: #004a99;
    border-color: #004a99;
}

/* --- Стили для иконки "i" и всплывающей подсказки --- */

/* Добавляем это, чтобы позиционировать иконку внутри заголовка */
.price-calculator-widget-compact .widget-header {
    position: relative;
    padding-right: 45px; /* Освобождаем место для иконки */
}

/* Стили самой иконки "i" */
.info-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #fff;
    color: #005cbf;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #005cbf;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-icon:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Стили для затемняющего фона (оверлея) */
.info-modal-overlay {
    display: none; /* По умолчанию скрыто */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

/* Класс для показа окна через JS */
.info-modal-overlay.visible {
    display: flex;
}

/* Стили для самого окна с текстом */
.info-modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #333;
}

.info-modal-content h4 {
    color: #005cbf;
    margin-top: 0;
    margin-bottom: 15px;
}
.info-modal-content h5 {
    margin-top: 20px;
    margin-bottom: 10px;
}
.info-modal-content ul {
    padding-left: 20px;
    margin-bottom: 0;
}
.info-modal-content p {
    line-height: 1.6;
}


/* Стили для крестика "закрыть" */
.info-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.info-modal-close:hover {
    color: #000;
}

/* --- Стили для плавающего виджета связи --- */
.floating-widget {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1030;
    user-select: none;
}

.widget-button {
    width: 80px;
    height: 80px;
    background-color: #bf0000cc; 
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.widget-button:hover {
    transform: scale(1.1);
}

.floating-widget.open .widget-button {
    background-color: #d9534f; /* Красный цвет для закрытия */
}

.widget-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 28px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0; /* Все иконки по умолчанию невидимы */
    pointer-events: none; /* Чтобы не мешали клику */
}

/* Ссылка-иконка телефона */
.widget-icon#phone-icon {
    pointer-events: auto; /* Разрешаем клик по ссылке */
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.widget-icon#phone-icon i {
    color: #fff;
}


/* Активная (видимая) иконка */
.widget-icon.active {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Меню с опциями связи */
.widget-menu {
    position: absolute;
    bottom: 75px; /* Располагаем над кнопкой */
    left: 0;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.floating-widget.open .widget-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-item:hover {
    transform: translateX(-5px);
}

.menu-item i {
    font-size: 24px;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

/* Цвета брендов */
.menu-item.whatsapp i { color: #25D366; }
.menu-item.telegram i { color: #0088cc; }
.menu-item.viber i { color: #665CAC; }
.menu-item.form-link i { color: #ffc107; } /* Желтый цвет вашего сайта */

/* --- НАЧАЛО: Единый блок стилей для адаптивности --- */

@media (max-width: 768px) {

    /* --- 1. Общие улучшения для мобильных --- */

    /* Уменьшаем слишком большие заголовки на главной */
    .display-3, .display-4 {
        font-size: 2.5rem; /* Делаем заголовки компактнее */
        line-height: 1.2;
    }
    
    /* Уменьшаем отступы у основных секций, чтобы контент не был "зажат" */
    .container-xxl.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }


    /* --- 2. Адаптивность для калькулятора цен ("Meist") --- */
    
    .price-calculator-widget-compact .price-value {
        font-size: 20px; /* Уменьшаем размер цены */
        padding: 6px 14px;
    }

    .price-calculator-widget-compact .price-description {
        font-size: 13px; /* Уменьшаем подпись */
    }


    /* --- 3. Адаптивность для всплывающей подсказки (окно с "i") --- */

/* --- 3. Адаптивность для всплывающей подсказки (окно с "i") --- */

.info-modal-overlay.visible {
    /* Прижимаем окно к низу экрана, а не центрируем */
    align-items: flex-end; 
}

.info-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 65vh; /* Окно занимает не более 85% высоты экрана */
    overflow-y: auto; /* Включаем вертикальную прокрутку ВНУТРИ окна */
    border-radius: 20px 20px 0 0; /* Скругляем только верхние углы */
    padding: 25px 20px 40px 20px; /* Увеличиваем нижний отступ */
    
    /* Начальное состояние для анимации (спрятано внизу) */
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

/* Когда окно видимо, оно выезжает на свое место */
.info-modal-overlay.visible .info-modal-content {
    transform: translateY(0);
}

.info-modal-close {
    /* Слегка меняем позицию крестика */
    top: 15px;
    right: 20px;
}


    /* --- 4. Адаптивность для плавающего виджета связи --- */
    
    .floating-widget {
        bottom: 15px; /* Ближе к краю на мобильных */
        left: 15px;   /* Ближе к краю на мобильных */
    }

    .widget-button {
        width: 65px; /* Немного уменьшаем кнопку */
        height: 65px;
    }

    .widget-icon {
        font-size: 24px; /* Уменьшаем иконки внутри кнопки */
    }

    .widget-menu {
        bottom: 70px; /* Корректируем положение меню над кнопкой */
        width: 230px; /* Немного сужаем меню */
    }
    
    .menu-item {
        padding: 10px 15px;
    }

} /* --- КОНЕЦ: Единый блок стилей для адаптивности --- */

/* --- НАЧАЛО: Анимация для пульсирующей кнопки телефона в шапке --- */

/* Класс для родительского белого квадрата */
.pulsing-box {
    border-radius: 8px; /* Слегка скруглим углы для красоты */
    animation: ripple-effect 2s infinite;
    box-shadow: 0 0 0 0 rgba(0, 92, 191, 0.7); /* Цвет волны - синий, как ваш сайт */
}

/* Класс для самой иконки телефона */
.pulsing-phone {
    animation: pulse-effect 2s infinite ease-in-out;
}

/* Анимация "волны" (расходящийся круг) */
@keyframes ripple-effect {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 92, 191, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 92, 191, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 92, 191, 0);
    }
}

/* Анимация "пульса" (увеличение-уменьшение) */
@keyframes pulse-effect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2); /* Насколько сильно увеличивается иконка */
    }
    100% {
        transform: scale(1);
    }
}
/* --- КОНЕЦ: Анимация --- */