/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url(https://fonts.googleapis.com/css?family=Roboto:100,300,400);
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,700);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300italic,500,400,300,800);

/* ============================================
   ОБЩИЕ СТИЛИ
   ============================================ */
h1, h2, h3, h4, h5, h6, div, p, a {
    font-family: "Open Sans", serif;
}

.font-rubik {
    font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
    color: black;
}

hr {
    border: none;
    height: 3px;
    margin: 40px 0;
    background-image: linear-gradient(to right, #FFF, #0a77d5, #FFF);
}
hr:before,
hr:after {
    content: '';
    display: inline-block;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    border: 2px solid #0a77d5;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFF;
}
hr:after {
    animation: anim-hr 1s linear infinite;
}
@keyframes anim-hr {
    0% {
        width: 40px;
        height: 40px;
    }
    100% {
        width: 0;
        height: 0;
    }
}

/* ============================================
   КАРТОЧКИ УСЛУГ (activity)
   ============================================ */
.card-wrapper {
    margin-bottom: 30px;
}

.card-activity {
    display: inline-block;
    position: relative;
    overflow: hidden;
    min-height: 40rem;
    height: 100%;
}

.card-activity:hover {
    box-shadow: 8px 12px 31px -10px #ab98ab;
}

.card-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50%;
    overflow: hidden;
}

.card-img-wrapper img {
    transition: 1.5s ease;
}

.card-img-top {
    height: 100%;
    object-fit: fill;
    overflow: hidden;
}

.card-activity:hover .card-img-wrapper img {
    transform: scale(1.15);
}

.card-body-activity {
    position: absolute;
    padding: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-color: #fff;
    transition: 1.5s ease;
}

.card-activity:hover .card-body-activity {
    height: 80%;
}

.card-body-activity .card-title-activity {
    margin-top: 25%;
    margin-bottom: calc(50% + 20px);
    transition: 1.5s ease;
}

.card-activity:hover .card-body-activity .card-title-activity {
    margin-top: 0.5rem;
    margin-bottom: .75rem;
}

.card-title-activity {
    font-size: 2rem;
    font-weight: 600;
    font-family: "David Libre", serif;
    color: #25283D;
}

h2.card-title-activity {
    font-size: 1.5rem;
}

.card-content {
    left: 0;
    right: 0;
    overflow: hidden;
    width: 100%;
    height: auto;
    transition: 1.5s ease;
}

.card-activity:hover .card-content {
    bottom: 0;
}

.card-text p {
    font-family: "David Libre", serif;
    font-size: 1.2rem;
    color: #25283D;
}

.card-container {
    background-color: whitesmoke;
    border-radius: 5rem;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s ease;
}

/* Карусель внутри карточки */
.carousel-item {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

/* ============================================
   БЛОК ЦЕН (pricing)
   ============================================ */
.pricing-table-container {
    padding: 50px 0;
}

.pricing-table-3 {
    background-color: #FFF;
    margin: 15px auto;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    border-radius: 0 10px 0 10px;
    overflow: hidden;
    position: relative;
    min-height: 250px;
    transition: all ease-in-out 0.25s;
}

.pricing-table-3:hover {
    transform: scale(1.15);
    box-shadow: 0 30px 40px -15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
}

@media (hover: none) and (pointer: coarse) {
    .pricing-table-3:active {
        transform: scale(1.1);
        transition: transform 0.1s ease;
    }
}

/* Цвета цен */
.pricing-table-3.clr-blue .price {
    background-color: #28b6f6;
    color: #FFF;
}

.pricing-table-3.clr-dark-yellow .price {
    background-color: #ff9f00;
    color: #FFF;
}

.pricing-table-3.dark-red .price {
    background-color: #c3185c;
    color: #FFF;
}

.pricing-table-3.green .price {
    background-color: #04C27A;
    color: #FFF;
}

.pricing-table-3.red .price {
    background-color: #F5272E;
    color: #FFF;
}

.pricing-table-3.violet .price {
    background-color: #C894FF;
    color: #FFF;
}

/* Шапка тарифа */
.pricing-table-3 .pricing-table-header {
    background-color: #212121;
    color: #FFF;
    padding: 20px 0 0 20px;
    position: absolute;
    z-index: 5;
}

.pricing-table-3 .pricing-table-header p {
    font-size: 12px;
    opacity: 0.7;
}

.pricing-table-3 .pricing-table-header::before {
    content: "";
    position: absolute;
    left: -50px;
    right: -180px;
    height: 125px;
    top: -50px;
    background-color: #212121;
    z-index: -1;
    transform: rotate(-20deg);
}

/* Цена */
.pricing-table-3 .price {
    position: absolute;
    top: 0;
    text-align: right;
    padding: 110px 20px 0 0;
    right: 0;
    left: 0;
    font-size: 20px;
    z-index: 4;
}

.pricing-table-3 .price::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    bottom: -25px;
    background-color: inherit;
    transform: skewY(10deg);
    z-index: -1;
    box-shadow: 0 5px 0 5px rgba(0, 0, 0, 0.05);
}

/* Тело тарифа */
.pricing-table-3 .pricing-body {
    padding: 20px;
    padding-top: 200px;
}

.pricing-table-3 .pricing-table-ul li {
    color: rgba(0, 0, 0, 0.7);
    font-size: 13px;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-table-3 .pricing-table-ul .fa,
.pricing-table-3 .pricing-table-ul .fa-solid {
    margin-right: 10px;
}

/* Иконки с цветами */
.pricing-table-3.clr-blue .pricing-table-ul .fa,
.pricing-table-3.clr-blue .pricing-table-ul .fa-solid {
    color: #28b6f6;
}

.pricing-table-3.clr-dark-yellow .pricing-table-ul .fa,
.pricing-table-3.clr-dark-yellow .pricing-table-ul .fa-solid {
    color: #ff9f00;
}

.pricing-table-3.dark-red .pricing-table-ul .fa,
.pricing-table-3.dark-red .pricing-table-ul .fa-solid {
    color: #c3185c;
}

.pricing-table-3.green .pricing-table-ul .fa,
.pricing-table-3.green .pricing-table-ul .fa-solid {
    color: #04C27A;
}

.pricing-table-3.red .pricing-table-ul .fa,
.pricing-table-3.red .pricing-table-ul .fa-solid {
    color: #F5272E;
}

.pricing-table-3.violet .pricing-table-ul .fa,
.pricing-table-3.violet .pricing-table-ul .fa-solid {
    color: #C894FF;
}

/* ============================================
   КНОПКИ
   ============================================ */
/* Кнопка «Отзывы» */
#reviews {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Общие стили для контейнеров кнопок */
.div-btn-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 14px 28px;
    border-radius: 20px;
}

/* Стиль самой кнопки */
.btn-style-1 {
    margin: auto;
    color: #333;
    font-size: 1.8rem;
    border-radius: 40px;
    padding: 10px 24px;
    border-width: 3px;
    white-space: nowrap;
    --bs-btn-border-color: #333;
    --bs-btn-hover-border-color: #0d6efd;
    --bs-btn-hover-bg: #d5e1f3;
    --bs-btn-color: black;
    --bs-btn-hover-color: #ffb400;
}

/* Адаптация для мобилок */
@media (max-width: 768px) {
    .btn-style-1 {
        font-size: 1.4rem;
        padding: 6px 16px;
        white-space: normal;
    }

    .div-btn-contacts {
        padding: 10px 16px;
    }
}

/* Стиль для ссылки "отзывы" (если отдельный) */
.font-rubik-reviews {
    font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
    color: deepskyblue;
    font-size: 36px;
    padding: 2rem;
}

.font-rubik-reviews:hover {
    color: #ffb502;
}

/* ============================================
   КАЛЬКУЛЯТОР (offcanvas)
   ============================================ */
.offcanvas-btn-box {
    transition: transform 1s ease-in-out;
}

.offcanvas.show + div .offcanvas-btn-box {
    transform: translateX(400px);
    position: relative;
    top: 50%;
}

.offcanvas-btn-box .btn span:last-child,
.offcanvas.show + div .offcanvas-btn-box .btn span:first-child {
    display: none;
}

.offcanvas.show + div .offcanvas-btn-box .btn span:last-child {
    display: inline;
}

/* ============================================
   TOOLTIP (Bootstrap кастом)
   ============================================ */
.tooltip-inner {
    background-color: rgba(0, 0, 0, 0.9);
    font-size: 2rem;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(0, 0, 0, 0.9);
}

.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: rgba(0, 0, 0, 0.9);
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: rgba(0, 0, 0, 0.9);
}

.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: rgba(0, 0, 0, 0.9);
}

/* Показываем три точки на экранах шириной до 992px (телефоны, планшеты, небольшие ноутбуки) */
@media (max-width: 992px) {
    .card-activity {
        position: relative;
    }

    .card-activity::after {
        content: "⋮";
        position: absolute;
        bottom: 12px;
        right: 16px;
        font-size: 24px;
        font-weight: bold;
        color: #ffb502;
        opacity: 0.8;
        pointer-events: none;
    }
}

/* Скрываем точки на широких экранах (десктопы, большие ноутбуки) */
@media (min-width: 993px) {
    .card-activity::after {
        display: none;
    }
}