/*
Theme Name: KredoTheme_child
Theme URI: https://wordpress.org/themes/KredoTheme_child/
Author: Sergey Batyrev
Author URI: https://wordpress.org/
Template:         twentyseventeen
Version: 3.2
License:          GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  twentyseventeen
*/
:root {
    --main-color: rgba(102, 161, 66, 1);
    --main-color2: #8f65b8;
    --main-color3: #2f655f;
    /* глобальная переменная */
    --font-size: 16px;
    --spacing: 20px;
}

/* var(--main-color); */

body {
    font-family: "PT Sans", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.FontTitle {
    font-family: "Oranienbaum", serif;
    font-weight: 500;
    font-style: normal;
}

.pt-sans-bold {
    font-family: "PT Sans", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.pt-sans-norm {
    font-family: "PT Sans", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.FontMenu {
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.8px;
}

/* Базовые стили */
.main-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

/* Подчёркивание при наведении */
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background-color: var(--main-color);
    /* Цвет подчёркивания */
    transition: width 0.3s ease;
}

.main-nav .nav-link:hover {
    color: var(--main-color);
}

.mobile-menu a {
    padding: 8px 0px !important;
}

.main-nav .nav-link:hover::after {
    width: 100%;
}

.top-img {
    max-height: 100%;
    filter: grayscale(50%);
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.top-img-container {
    border: 3px var(--main-color) solid;
}

.top-img-container2 {
    border: 3px #E5EF57 solid;
    position: relative;
    background-image: url('./img/photo-top.png');
    background-position: -20px 0;
    background-size: cover;
    overflow: hidden;
}

.top-img-container2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(10px);
    z-index: 0;
}

.card {
    cursor: pointer;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: #b6b5b49e 1px 0px 20px 0px;
}

.card img {
    height: 180px;
    width: auto;
    width: 100%;
    object-fit: contain;
}

.card-metod img {
    object-fit: cover;
    width: auto;
}

.ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ham4 .top {
    stroke-dasharray: 40 121;
}

.ham4 .bottom {
    stroke-dasharray: 40 121;
}

.hamRotate.active {
    transform: rotate(45deg);
}

.ham4.active .top {
    stroke-dashoffset: -68px;
}

.ham4.active .bottom {
    stroke-dashoffset: -68px;
}

.line {
    fill: none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke: #583921;
    stroke-width: 5.5;
    stroke-linecap: round;
}

.card-header {
    letter-spacing: 0.6px;
}

.card ul {
    list-style: none;
    /* убираем стандартные точки */
    padding-left: 0;
}

.card li {
    padding-left: 28px;
    /* отступ под иконку */
    position: relative;
    margin-bottom: 10px;
}

.card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.card .btn-coast {
    background-color: #e17820;
}

.card .btn-coast:hover {
    background-color: #ff943d;
}

.accordion-button {
    /* background-color: #EFECE9; */
    border: 2px rgb(186, 186, 186) solid;
    margin-bottom: 8px;
    border-radius: 12px !important;
}


.img-cover {
    top: 0;
    left: 0;
    background: #089D04;
    background: linear-gradient(180deg, #089d042b, #2d4e34e6);
}

.form-service input,
.form-service select {
    line-height: 2.2em;
}

@media (max-width: 768px) {
    .p-none {
        padding: 0px !important;
    }
}

/* Отключаем Bootstrap-галочку для поля телефона */
input[name="phone"]:valid {
    border-color: #ced4da !important;
    background-image: none !important;
}

input[name="phone"]:focus:valid {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Кастомные стили для валидации телефона */
input[name="phone"].is-valid {
    border-color: #198754 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

input[name="phone"].is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.about_jpg {
    max-width: 100%;
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.card-img-top {
    height: 100% !important;
    min-height: 162px;
    max-height: 162px;
    object-fit: cover !important;
}

.blog {
    min-height: 328px;
}


/* Фиксы для Owl Carousel */
.owl-carousel {
    overflow: hidden !important;
    position: relative;
    width: 100% !important;
}

.owl-stage-outer {
    overflow: hidden !important;
    width: 100% !important;
    padding-top: 18px;
    padding-bottom: 18px;
}

.owl-stage {
    display: flex !important;
}


/* Включаем навигацию */
.owl-nav.disabled {
    display: block !important;
}

.owl-nav {
    display: block !important;
}

.owl-prev,
.owl-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.owl-prev {
    left: -5px;
}

.owl-next {
    right: -5px;
}

.owl-dots {
    text-align: center;
    padding-top: 20px;
}



/* Для мобильных */
@media (max-width: 768px) {

    .owl-prev,
    .owl-next {
        width: 30px;
        height: 30px;
    }

    .owl-prev {
        left: 0px;
    }

    .owl-next {
        right: 0px;
    }
}

/* Убираем disabled у точек */
.owl-dots.disabled,
.owl-dots {
    display: block !important;
}


.social__fr {
    background-color: rgb(255 255 255 / 5%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 45px;
    justify-content: center;
}

.footer-call-cta .icon-container {
    background: #F4BA67;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
}

.footer-call-cta .icon-container:before {
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    display: block;
    top: 11px;
    left: 10px;
    background-image: url(./img/call-footer.svg);
}

.custom_menu li:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    left: 0;
    top: 13px;
    border-radius: 10px;
    background: #F4BA67;
}

.custom_menu li {
    padding-left: 20px;
    margin-bottom: 8px;
}

.footer-contacts i {
    color: #F4BA67;
}

a:hover{
    color:#583921;
}