/*
Theme Name: stroyqaz Locale
Text Domain: stroyqaz_locale
*/
body {
    font-family: "Rubik", serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
}

main {
    flex: 1;
}

html {
    scroll-behavior: smooth;
}

img {
    vertical-align: top;
}

.container {
    padding: 0 30px;
    margin-bottom: 60px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-weight: inherit;
    font-size: inherit;
}

.nav li,
.footer li,
.navbar-mobile__nav-bar-menu li,
.navbar-socials-mobile li {
    content: '';
    list-style: none;
}

b {
    font-weight: 700;
}

a,
a:visited {
    text-decoration: none;
    transition: 0.2s ease;
}

a {
    color: #353535;
}

a:hover {
    color: #0049a8;
}

.menu-item.current {
    font-weight: bold;
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* Навигация */
.navbar-wrap {
    padding: 10px 30px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1310px;
    margin: 0 auto;
    gap: 30px;
}

.nav-text {
    word-break: keep-all;
}

.navbar-collapse {
    display: flex;
}

.navbar-nav {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    max-width: 600px;
}

.navbar-socials {
    gap: 15px;
}

.lang-item::first-letter {
    text-transform: uppercase;
    /* Применяем верхний регистр */
}

ul.navbar-nav {
    padding: 0;
    margin: 0;
}

ul.lang-menu {
    padding: 0;
    margin: 0;
}

.navbar-collapse--gamb {
    display: block;
    width: 100%;
    margin: 0 auto;
    max-width: 200px;
    padding-top: 20px;
}

.lang-text {
    font-size: 20px;
    color: #0049a8;
    transition: .3s ease;
}

.navbar-nav li a {
    font-weight: 500;
}

.navbar-nav li a.active {
    color: #004E98;
}

.navbar-lang:hover .lang-text {
    color: #2684ff;
}

.lang-menu {
    display: flex;
    gap: 15px;
}

.current-lang a {
    color: #004E98;
}

.lang-menu--gamb .lang-item {
    background-color: #CCCCCC;
    transition: .3s ease;
}

.lang-menu--gamb .lang-item:not(.current-lang):hover {
    background-color: #999999;
}

.lang-menu--gamb a {
    color: #ffffff;
}

.lang-menu--gamb .current-lang {
    background-color: #004E98;
}

.lang-menu--gamb .current-lang a {
    color: #ffffff;
}

.search {
    display: flex;
    align-items: center;
}

#searchwp-form-1 input[type=submit] {
    display: none;
}

/* ВТОРОЕ МЕНЮ навигации с гамбургером*/
.navbar-socials-mobile {
    display: flex;
    gap: 15px;
}

.nav-gamburger-wrap {
    display: none;
    overflow: visible;
    background-color: #ffffff;
    transition: 0.4s;
    box-shadow: 1px 1px 5px 0px var(--gray);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    padding: 15px 0;
    box-shadow: 0px 10px 9px 0px rgba(0, 0, 0, 0.18);
}

.navbar-mobile {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;

}

#nav-gamburger {}

.lang-menu--gamb {
    width: 100%;
}

.lang-menu--gamb {
    display: flex;
    justify-content: space-around;
    gap: 0;
}

.lang-item {
    flex: 1;
}

.lang-item a {
    /* color: #ffffff; */
    text-align: center;
    display: block;
    width: 100%;
    padding: 5px 0 5px 0;
    flex: 1;
}

.navbar-lang--gamb li a {
    font-weight: 400;
}

.navbar-mobile__nav-bar-menu {
    max-width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    padding: 30px 15px;
    display: flex;
}
.navbar-mobile__nav-bar-menu li {
    width: 100%;
}

.navbar-mobile__col--left {
    display: flex;
    align-items: center;
    flex: 1;
}

.navbar-mobile__col--right {
    justify-content: flex-end;
    align-items: center;
}

.logo img {

    width: 220px;
    height: auto;
}

.logo-mobile--wrapper {
    flex: 1;
    align-self: center;
}

.logo-mobile img {
    width: 10rem;
    height: auto;
}

/* Nav menu */
.nav-burg {
    width: 100%;
    height: 100%;
    position: fixed;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    top: 0;
    background-color: #ffffff;
    overflow: hidden;
    z-index: 10;
    height: 0;
    max-width: 100%;
    transition: .2s ease-out;
    max-height: 100%;
    padding-top: 17px;
}

.nav-burg::before {
    content: '';
    position: absolute;
    top: 0;
    border-radius: 30px;
    display: block;
    height: 7px;
    width: 100%;
    max-width: 50px;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background-color: #4171B0; */
}

.menu {
    align-items: center;
    color: #4C637B;
    font-style: normal;
    font-weight: 400;
    text-align: center;
}

.menu a {
    display: block;
    padding: 10px 30px;
    color: #000000;
    transition: 0.5s ease-out;
}

.menu a:hover {
    background-color: #e9e9c4;
}


.navbar-mobile__item--link span {
    position: relative;
    z-index: 10;
}

.navbar-mobile__item--link {
    font-size: 16px;
    color: #353535;
    display: block;
    width: fit-content;
    font-weight: 400;
    width: 100%;
    padding: 10px 0;
    text-align: center;
}

a.navbar-mobile__item--link:hover {
    color: #004E98;
}

.navbar-mobile__item--link a {
    position: relative;
    display: block;
    padding: 10px 15px;
    transition: 0.3s ease-out, color 0.3s ease;

}

.navbar-mobile__item--link a:hover {
    color: #000000;
    background-color: #4171b03f;

}

.top-gamb-wrap {
    display: flex;
    padding: 0 26px;
}

.top-gamb-wrap .logo-mobile {
    flex: 1;
}

.top-gamb-wrap .logo-mobile a img {
    margin-left: 3px;
    margin-top: -2px;
}

/* Hide checkbox */

/* Menu Icon */
.hamb {
    cursor: pointer;
    /* float: right; */
    transition: 0.3s ease-out;
    /* position: relative; */
    display: flex;
    align-items: center;
    justify-content: flex-end;

}

.hamb.icon {
    padding: 5px;
    height: 28px;
    margin-top: 8px;
}

.hamb.hidden {
    margin-left: -69px;
    pointer-events: none;
}

.hamb.profile-burg {
    transition: 0.3s ease-out;
}

.hamb:hover {
    background-color: #dddddd23;
    border-radius: 10px;
}


.hamb.hidden:hover {
    background-color: #00000000;
}

.hamb.profile-burg img {
    width: 28px;
}

/* Style label tag */
.icon {
    position: relative;
    /* width: 32px; */
    cursor: pointer;
}

.side-menu__icon {
    margin-right: 5px;
}

.hamb-line {
    background: #353535;
    display: block;
    height: 2px;
    position: relative;
    width: 18px;
    border-radius: 15px;
}

/* Style span tag */
.hamb-line::before,
.hamb-line::after {
    background: #353535;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
    border-radius: 15px;
}

.hamb-line::before {
    top: 5px;
}

.hamb-line::after {
    top: -5px;
}

.side-menu {
    display: none;

}

/* Hide checkbox */

/* Toggle menu icon */
.side-menu:checked~.nav-burg {
    height: 100%;
    max-height: 100%;
    overflow: auto;
    box-shadow: 0px 10px 10px 5px rgba(0, 0, 0, 0.18);
    background-color: #ffffff;
}

.side-menu:checked~.hamb {
    margin-right: 10px;
}

.side-menu:checked~.hamb .hamb-line {
    background: transparent;
}

.side-menu:checked~.hamb .hamb-line::before {
    background: #353535;
    transform: rotate(-45deg);
    top: 0;
}

.side-menu:checked~.hamb .hamb-line::after {
    background: #353535;
    transform: rotate(45deg);
    top: 0;
}

.side-menu:checked~.navbar-mobile__nav-burg .hamb-line {
    background: transparent;
}

.side-menu:checked~.navbar-mobile__nav-burg .hamb-line::before {
    background: #353535;
    transform: rotate(-45deg);
    top: 0;
}

.side-menu:checked~.navbar-mobile__nav-burg .hamb-line::after {
    background: #353535;
    transform: rotate(45deg);
    top: 0;
}

/* First screen */
.container--background {
    display: flex;
    align-items: center;
    background-image: url('/wp-content/uploads/2024/11/background.png');
    min-height: 640px;
    background-size: cover;
    background-position: center center;
    height: 74vh;
    margin: 0 auto;
    overflow: hidden;
    /* width: 100%; */
}

.screen--background {
    width: 100%;
    margin: 0 auto;
    display: flex;
    /* justify-content: space-between; */
    max-width: 1310px;
    /* padding: 0 30px; */
}

.h1-text {
    color: #ffffff;
    font-size: clamp(18px, 4vw, 40px);
    max-width: 480px;
}

.h1-text--header {
    margin-bottom: 60px;
}

.screen__content {}

.screen__content--background {
    display: flex;
    flex-direction: column;
}

.screen__content--about {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1310px;
    margin: 0 auto;
    gap: 50px;
    margin-bottom: 50px;
}

.button {
    display: inline-block;
    background: linear-gradient(to bottom, #fff1b9, #f2c616 50%);
    border-radius: 50px;
    padding: 20px 50px;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.button.button--appeal {
    padding: 10px 6px;
    max-width: 170px;
}

.button-text {
    font-size: clamp(14px, 4vw, 16px);
}

.button-text.button-text--appeal {
    font-weight: 300;
    letter-spacing: 1px;
}

.button-wrap {
    width: 100%;
    max-width: 250px;
}

.button:hover {
    filter: brightness(1.1);
    color: #ffffff;
}

.container--about {}

.company-about__text {
    font-size: clamp(16px, 4vw, 24px);
    line-height: 32px;
    max-width: 600px;
    margin-bottom: 30px;
}

.button--deep {
    background: linear-gradient(to bottom, #79beff, #075EB0 50%);
    border-radius: 50px;
    padding: 20px 50px;
    color: #ffffff;
}

.vertical-text {
    font-size: clamp(22px, 6vw, 68px);
    color: #337FC6;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-weight: 700;
    letter-spacing: 0.2em;
}

.screen__content--service {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.h2-text {
    font-weight: 500;
    font-size: clamp(22px, 4vw, 32px);
    color: #353535;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    gap: 40px;
    margin-bottom: 40px;
}

.service {
    width: 100%;
    transition: .3s ease-out;
}

.service:hover {
    filter: brightness(1.1);
}

.service__top img {
    width: 100%;
    background-size: cover;
    object-fit: cover;
    background-position: center center;
    border-radius: 15px 15px 0 0;
    height: 315px;
}

.service__top {
    margin-bottom: 10px;
}

.service__text {
    font-size: clamp(14px, 4vw, 18px);
    color: #353535;
    text-align: center;
}

/* third screen  */

.screen__content--whychooseus {
    width: 100%;
    margin: 0 auto;
    display: flex;
    max-width: 1310px;
}

.whychooseus {
    width: 100%;
}

.whychooseus__mid {
    margin-bottom: 40px;
}

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

.whychooseus__item {
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

.whychooseus__item--mid {
    justify-self: center;
    width: 100%;
    max-width: 300px;
}

.whychooseus__text p span {
    font-weight: 500;
    font-size: clamp(24px, 6vw, 32px);
    color: #337FC6;
}

.whychooseus__text p {
    margin-bottom: 5px;
}

.whychooseus__text span {
    font-size: 22px;
    color: #353535;
}

.whychooseus__top {
    margin-bottom: 30px;
}

.whychooseus__item p span {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    font-size: clamp(40px, 4vw, 80px);
    font-weight: 500;
    color: #337FC6;
}

.whychooseus__item p {
    margin-bottom: 15px;

}

.whychooseus__item p span span {
    font-size: clamp(24px, 4vw, 60px);
}

.whychooseus__item span {
    color: #353535;
    font-size: 22px;
}

.whychooseus__bot {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.whychooseus__cards {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 850px;
}

.whychooseus__cards-bot {
    max-width: 700px;
}

.whychooseus__cards-top {
    margin-bottom: 20px;
}

.cards {
    background: linear-gradient(to top, #79beff, #127adc 50%);
    width: 100%;
    padding: 12px 30px;
    border-radius: 5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cards__item-number {
    font-weight: 500;
    font-size: clamp(40px, 4vw, 80px);
}

.cards__item-text {
    font-size: 16px;
    font-weight: 500;
}

.whychooseus__question {
    font-size: clamp(24px, 4vw, 60px);
    font-weight: 500;
    color: #337FC6;
    text-align: right;
}

.whychooseus__question.straight-text {
    display: none;
}

/* Контакты мобилки */
.contacts-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
    display: none;
    margin-bottom: 16px;
    padding: 0 16px;
}

.contacts-h1.contacts-h1--main {
    font-size: 22px;
}

.section--contacts-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contacts-main__item {
    /* padding-left: 15px; */
}

.contacts-h1--main {
    font-size: 24px;
}

.contacts-wrap a:hover {
    color: #0049a8;
}
.section--contacts-main.links {
    padding: 0 30px;
}
.contacts-main__item {
    display: inline-block;
    width: fit-content;
}
.contacts-main__item {
position: relative;
padding: 5px 0;
}
.contacts-main__item::before {
content: '';
width: 40px;
height: 38px;
background-size: 20px 20px;
background-repeat: no-repeat;
background-position: left center;
margin-left: -30px;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease-out;
}
.contacts-main__item.contact-address::before {
background-image: url('/wp-content/themes/storyqaz-theme/img/static/gps_blue.svg');
}
.contacts-main__item.contact-phone::before {
background-image: url('/wp-content/themes/storyqaz-theme/img/static/phone_blue.svg');
}
.contacts-main__item.contact-mail::before {
background-image: url('/wp-content/themes/storyqaz-theme/img/static/mail_blue.svg');
}
.section.contacts.links {
    padding: 0 20px;
}
.contact__item {
position: relative;
}
.contact__item::before {
content: '';
width: 40px;
height: 38px;
background-size: 20px 20px;
background-repeat: no-repeat;
background-position: left center;
margin-left: -25px;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease-out;
}
.contact__item.contact-address::before {
background-image: url('/wp-content/themes/storyqaz-theme/img/static/gps_blue.svg');
}
.contact__item.contact-phone::before {
background-image: url('/wp-content/themes/storyqaz-theme/img/static/phone_blue.svg');
}
.contact__item.contact-mail::before {
background-image: url('/wp-content/themes/storyqaz-theme/img/static/mail_blue.svg');
}
/* Футер */
footer {
    background-color: #004E98;
}

.navbar-footer {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px 0 30px;
    /* width: 100%; */
    margin: 0 auto;
    max-width: 1015px;
    margin-bottom: 10px;
}

.rights-footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;

}

.rights-footer p {
    text-align: center;
    font-size: 14px;
    font-weight: 100;
    color: #ffffff;

}

.navbar-footer__contacts span {
    font-weight: 100;
    color: #ffffff;
}

.navbar-footer__contacts a {
    font-weight: 100;
    color: #ffffff;
}

.navbar-footer__logo img {
    max-width: 250px;
}
.navbar-footer__contacts a:hover {
    color: #b3f7ff;
}

/* каталог с ajax */
.catalog__item-link {
    cursor: pointer;
    transition: .3s ease;
    font-size: clamp(14px, 3vw, 16px);
}

a.catalog__item-link {
    padding: 7px 10px;
    border-radius: 5px;
}

a.catalog__item-link:hover {
    background-color: #ececec8a;
    /* display: inline-block; */
}

.catalog__item-link.active {
    color: #0049a8;
}

.catalog__item-link:hover {
    color: #0049a8;
}

.container--catalog {
    padding-top: 40px;
    /* max-width: 1340px; */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    color: #35353542;
    box-sizing: border-box;
}

.catalog {
    display: flex;
    /* grid-template-columns: repeat(2, 1fr); */
    gap: 30px;
}

.catalog-text {
    font-weight: 500;
    font-size: clamp(22px, 4vw,32px);
    color: #337FC6;
    margin-bottom: 20px;
}

.catalog-filter {
    width: 100%;
    max-width: 310px;
    min-height: 701px;
}

.catalog-filter ul {
    padding: 0;
    margin: 0;
}

.catalog__item {
    padding: 0;
    margin: 0;
    color: #353535;
    text-decoration: none;
    list-style: none;
    margin-bottom: 15px;
}

.catalog-posts-container {
    position: relative;
    width: 100%;
    /* display: grid; */
}

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

}

.catalog-post {
    position: relative;
    border-radius: 5px;
    max-width: 200px;
    /* height: 250px; */
    box-shadow: 0px 10px 9px 0px rgba(0, 0, 0, 0.247);
}

.catalog-post-img-wrap {
    max-width: 200px;
    overflow: hidden;
    max-height: 200px;
    border-radius: 5px 5px 0 0;
    /* margin-bottom: 10px; */
}

.catalog-post:hover .catalog-post-img {
    transform: scale(1.1);
}

.catalog-post a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.catalog-post a img {
    border-radius: 5px 5px 0 0;
    /* margin-bottom: 5px; */
    max-width: 200px;
    background-size: contain;
    object-fit: cover;
    transition: .3s ease;
    min-height: 200px;
}

.catalog-post a:hover img {
    filter: brightness(1.1);
}

.catalog-post-text {
    /* margin-bottom: 10px; */
    margin-bottom: 0;
    font-size: 14px;
    padding: 15px;
    text-align: left;
}

.catalog-posts p {
    color: #353535;
}

/* Основной список */
.catalog-desktop {
    display: block;
}
.catalog-toogle {
    display: none;
}

.catalog-filter ul.catalog-dropdown {
    list-style: none;
}

.catalog-filter .catalog__item {
    position: relative;

}

.catalog-filter .catalog__item-link {
    text-decoration: none;
    display: block;
}

/* Скрываем вложенные списки по умолчанию */
ul.catalog-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    margin: 0;
    padding: 0px 15px 0 15px;

}
ul.dropdown {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    margin: 0;
    padding: 0px 15px 0 15px;
    overflow-y: auto;
}
ul.dropdown.open {
    padding: 0;
}
ul.dropdown.open .catalog__item {
    margin-bottom: 0;
}
ul.dropdown.open .catalog__item.has-children ul.catalog-dropdown > :first-child {
    margin-top: 0;
}
ul.dropdown.open .catalog__item.has-children ul.catalog-dropdown > :last-child {
    margin-bottom: 10px;
}
ul.dropdown.open .catalog__item a {
    padding: 15px 20px;
}
/* Вложенные элементы */
.catalog__item ul.catalog-dropdown {
    opacity: 0;
}

.catalog__item.open .catalog-dropdown {
    padding: 15px 15px 0 15px;
    margin-bottom: -15px;
}

/* Ссылка к которой есть вложенность */
.catalog__item.has-children>.catalog__item-link {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.catalog__item.has-children>.catalog__item-link::after {
    content: '';
    background-image: url('/wp-content/themes/storyqaz-theme/img/static/arrow-up.svg');
    width: 10px;
    height: 10px;
    margin-top: 9px;
    padding: 4px 7px;
    margin-left: 10px;
    /* background-size: 20px 20px; */
    /* background-repeat: no-repeat; */
    background-position: center center;
    /* position: relative; */
    /* right: 0; */
    /* top: 50%; */
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease-out;
}

.catalog__item.has-children.open>.catalog__item-link::after {
    transform: translateY(-50%) rotate(180deg);
    /* Поворот стрелки */
}
#toogle-link {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    border: 1px solid #e1e1e1;
    font-size: 14px;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    color: #353535;
    transition: .3s ease;
}
#toogle-link:hover {
    background-color: #ececec8a;
    color: #0049a8;
}
#toogle-link::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    background-image: url('/wp-content/themes/storyqaz-theme/img/static/catalog_filter.svg');
    width: 40px;
    height: 38px;
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-position: center center;
}
#toogle-link::after {
    position: absolute;
    top: 0;
    right: 0;
    content: '';
    background-image: url('/wp-content/themes/storyqaz-theme/img/static/arrow-up.svg');
    width: 40px;
    height: 38px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center center;
    transform: translateY(-50%);
    top: 50%;
    transition: transform 0.3s ease-out;
}
#toogle-link.active::after  {
    
    transform: translateY(-50%) rotate(180deg);
}
@media  screen and (max-width: 480px) { 
    .catalog-desktop {
        display: none;
    }
    .catalog-toogle {
        display: block;
    }
    ul.dropdown.open {
        border: 1px solid #e1e1e1;
        border-radius: 5px;
        
    }
}
@media  screen and (min-width: 480px) {
    #toogle-link {
        display: none;
    }    
}
/* Раскрытие списка */
.catalog-filter .catalog__item.open>ul {
    max-height: 500px;
    opacity: 1;
}
ul.dropdown.open {
    max-height: 500px;
    opacity: 1;
}

/* breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs-title {
    color: #0049a8;
}

/* спиннер */
.portfolio_posts {
    width: 100%;
}

.lds-ellipsis {
    /* change color here */
    color: #1894cf;
}

.lds-ellipsis {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    /* Скрываем спиннер по умолчанию */
}

.catalog-posts-container.loading .lds-ellipsis,
.portfolio_posts.loading .lds-ellipsis {
    display: block;
    /* Показываем спиннер */
}

.catalog-posts-container.loading .catalog-posts,
.portfolio_posts.loading .ajax_load_portfolio_posts {
    opacity: 0.5;
    /* Уменьшаем видимость постов */
}

.lds-ellipsis,
.lds-ellipsis div {
    box-sizing: border-box;
}

.lds-ellipsis {
    /* display: inline-block;
    position: relative; */
    width: 80px;
    height: 80px;
}

.lds-ellipsis.lds-ellipsis--button {
    width: 10px;
    height: 10px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33.33333px;
    width: 13.33333px;
    height: 13.33333px;
    border-radius: 50%;
    background: currentColor;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

/* About page */
.about-h1 {
    font-style: normal;
    font-weight: 500;
    font-size: clamp(22px,4vw,32px);
    color: #337FC6;
}

.container--about {
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.section {}

.section h2 {
    font-weight: 500;
    color: #337FC6;
    margin-bottom: 20px;
}

ul.column {
    padding-left: 20px;
}

.column h3 {
    font-weight: 500;
    margin-bottom: 3px;
}

ul.cities-list {
    margin-top: 0;
    padding-top: 0;
}

.section.exp {
    display: flex;
    gap: 50px;
    padding-left: 20px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-top: 0;
    margin-bottom: 20px;
}

.section.image-text {
    margin-bottom: 20px;
}

.image-text {
    display: flex;
    flex-wrap: wrap;
    /* align-items: center; */
    gap: 20px;
}

.image-text img {
    width: 100%;
    max-width: 500px;
}

.purpose {
    display: flex;
}

.purpose_left {
    display: inline-block;
    color: #337FC6;
    width: 100%;
    max-width: 100px;
}

.purpose_right {
    display: inline-block;
    width: 100%;
    max-width: 450px;
}

.columns {
    display: flex;
    gap: 20px;
}

.columns .column {
    flex: 1;
}

.list {
    padding-left: 20px;
}

.cities {}

.cities-about {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.cities .column {
    flex: 1;
}

.cities .column ul {
    padding-left: 20px;
}

/* Contacts page */
.container--contacts {
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.contacts-h1 {
    margin: 0;
    text-align: center;
    font-weight: 500;
    font-size: clamp(22px, 4vw,32px);
    color: #353535;
}

.section.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section.contacts span {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(16px,4vw,22px);
    color: #353535;
}

.contacts-wrap a {
    font-family: 'Rubik';
    font-weight: 400;
    font-size: clamp(16px,4vw,22px);
    color: #353535;
}

.contacts-wrap {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

/* Модалка */
.hidden {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

.modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    transition: .3s ease-out;
}

.modal {
    background-color: #ffffff;
    max-width: 560px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: 0 15px;
}

.top-modal {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.top-modal--background {
    min-height: 186px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    background-image: url('/wp-content/uploads/2024/11/background.png');
    background-size: cover;
    background-position: center center;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px 15px 0 0
}

.modal-background {
    height: 10px;
    background: #ccc;
}

.close-btn-wrap {
    position: relative;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    /* background-color: #ffffff; */
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s ease;
}

.close-btn-wrap:hover .close-modal{
    color: #0b55aa;
    /* background-color: #313131; */
}

.close-btn-wrap:hover .close-modal {
    /* color: #ffffff; */
}

.close-modal {
    margin-top: 3px;
    color: #0c3768;
    transition: .3s ease;
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
}

.button-text.button-text--modal {
    display: flex;
    justify-content: center; 
    align-items: center;
}
.bot-modal {
    padding: 20px;
}

.modal-content h2 {
    text-align: center;
    margin: 0 0 10px;
    font-weight: 500;
    font-size: clamp(16px, 4vw, 32px);
    color: #000000;
}

.modal-content p {
    text-align: center;
    margin: 10px 0;
    font-weight: 400;
    font-size: clamp(14px, 3vw, 18px);
    line-height: 24px;
    color: rgba(0, 0, 0, 0.5);
    max-width: 320px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    margin-bottom: 10px;
    padding: 16px 20px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 16px;
}

.button-wrap.button-wrap--modal {
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.modal-content button {
    width: 100%;
    padding: 15px 10px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: .3s ease;
}

.consent-text {
    max-width: 450px;
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}

/* иконка загрузки */

.lds-dual-ring,
.lds-dual-ring:after {
    transition: .3s ease;

    box-sizing: border-box;
}

.lds-dual-ring {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;

    width: 24px;
    height: 24px;
    margin-left: -10px;
    margin-top: -3px;
    left: 0;
    border-radius: 50%;
    border: 6.4px solid currentColor;
    border-color: currentColor transparent currentColor transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* Продукт сингл single  */
.container--product {
    margin: 0 auto;
    max-width: 1280px;
    padding-top: 40px;
    margin-bottom: 16px;
}

.product-top {
    display: flex;
    gap: 30px;
}

.product-h1 {
    font-style: normal;
    font-weight: 500;
    font-size: clamp(22px,4vw,32px);
    color: #353535;
}
.product-h1--hidden {
    display: none;
}
.product-top__title {
    flex: 1;
}
.product-thumbnail {
    flex: 1;
    max-width: 360px;
}
.product-thumbnail img {
    border-radius: 5px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.content-product.mobile {
    display: none;
}
.product-content__h3 {
    color: #337FC6;
    font-size: 16px;
    margin: 0;
    margin-bottom: 8px;
}
.product-meta__item {
    overflow-x: auto;
}

.product-meta__item td {
    padding: 10px 15px;
}
/* Стили табов */
.tabs {
    margin-top: 20px;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
    color: #333;
    background: transparent;
    border: none;
    font-size: 14px;
    text-align: center;
    transition: color 0.3s ease;
}

.tab-button.active {
    color: #337FC6;
}

.tab-button::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #337FC6;
    border-radius: 15px;
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.tab-button.active::after {
    width: 100%;
    /* Растягиваем линию до полной ширины кнопки */
}

.tabs-content {
    border-radius: 5px;
    background: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}
/* Портфолио сингл single */
.container--portfolio {
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
}

#btn-loader {
    /* display: none; */
    opacity: 0;
    width: 0;
    height: 0;
    transition: .3s ease;
}

#btn-loader.active {
    width: 20px;
    height: 20px;
    opacity: 1;
    display: inline;
}

.ajax_load_portfolio_posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    margin-bottom: 16px;
}

.load-more-btn {
    display: flex;
    display: none;
    background: linear-gradient(to bottom, #79beff, #075EB0 50%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s ease;
}

.load-more-btn.show {
    transition: .3s ease;
    display: flex;
}

.load-more-btn.disabled {
    cursor: default;
    opacity: .25;
}

.load-more-btn:hover {
    filter: brightness(1.1);

}

.portfolio-post {
    position: relative;
    border-radius: 5px;
    max-width: 300px;
    box-shadow: 0px 10px 9px 0px rgba(0, 0, 0, 0.247);
}

.portfolio-post a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.portfolio-post-top {
    overflow: hidden;
}

.portfolio-post-top img {
    border-radius: 5px 5px 0 0;
    /* margin-bottom: 10px; */
    max-width: 300px;
    background-size: contain;
    transition: .3s ease;
    min-height: 300px;
    width: 100%;
    object-fit: cover;
    background-position: center center;
    border-radius: 15px 15px 0 0;
    height: 315px;
}

.portfolio-post a:hover img {
    filter: brightness(1.1);
}

.portfolio-post-text {
    margin-bottom: 0px;
    font-size: clamp(14px,4vw,18px);
    padding: 15px;
    text-align: left;
}


@media screen and (max-width: 1280px) {
    

    .catalog-post {
        width: 100%;
        max-width: 100%;
    }

    .catalog-post-img-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 300px;
        overflow: hidden;
        max-width: 100%;
    }

    .catalog-post a img {
        max-width: 100%;
        width: 100%;
        object-fit: cover;
        background-size: contain;
        object-position: center;
    }
    
}

@media screen and (max-width: 1200px) {
    .container--about .section:nth-child(7),
    .container--about .section:nth-child(8) {
        display: none;
    }
}

/* Адаптив главная */
@media screen and (max-width: 1110px) {
    /* Адаптив каталог*/
    .catalog-posts {
        grid-template-columns: repeat(3, 1fr);
    }
    .screen__content--about {
        flex-direction: column;
        align-items: normal;
        /* gap: 8px; */
    }

    .vertical-text {
        margin-bottom: 0px;
        text-align: center;
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        font-weight: 700;
        letter-spacing: 0.2em;
    }

    .img-wrap {
        align-self: center;
    }

    .whychooseus__bot {
        /* gap: 8px; */
        flex-direction: column-reverse;
    }

    .whychooseus__question {
        display: none;
    }

    .whychooseus__question.straight-text {
        display: block;
    }

    .company-about {
        align-self: center;
        display: flex;
        flex-direction: column;
    }

    .button {
        padding: 10px 0px;
        /* max-width: 150px; */
    }

    .button-wrap--about {
        align-self: center;
    }

    .navbar-footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
}
@media screen and (max-width: 1058px) {
   
   /* Адаптив портфолио */
   .ajax_load_portfolio_posts {
       grid-template-columns: repeat(2, 1fr);
   }

   .portfolio-post {
       position: relative;
       border-radius: 5px;
       width: 100%;
       max-width: 100%;
       box-shadow: 0px 10px 9px 0px rgba(0, 0, 0, 0.247);
   }

   .portfolio-post-top img {
       background-position: center center;
       border-radius: 5px 5px 0 0;
       margin-bottom: 10px;
       width: 100%;
       max-width: 100%;
       object-fit: cover;
       background-size: contain;
       transition: .3s ease;
       min-height: 0;
       height: 300px;
   }
}

@media screen and (max-width: 1000px) {
    .image-text {
        flex-direction: column;
    }

    .about-text {
        
    }
    
    .container--about .section:nth-child(6),
    .container--about .section:nth-child(7),
    .container--about .section:nth-child(8) {
        display: none;
    }
}

@media screen and (max-width: 888px) {
 /* Адаптив каталог*/
 .catalog-posts {
    grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width: 850px) {
     /* Адаптив каталог*/
 .catalog-posts {
    grid-template-columns: repeat(1, 1fr);
}
    .nav-gamburger-wrap {
        display: block;
    }

    .navbar-wrap {
        display: none;
    }

    .wrapper {
        padding-top: 78px;
    }
}

@media screen and (max-width: 767px) {
   
    .whychooseus__grid-text {
        grid-template-columns: repeat(1, 1fr);
    }

    .whychooseus__item {
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .whychooseus__item--mid {
        max-width: 767px;
    }

    .whychooseus__cards {
        flex-direction: column;
    }

    .cards {
        padding: 20px 15px;
        box-sizing: border-box;
    }

    .service-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .service {
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        border-radius: 5px;
    }

    .service__top img {
        height: 200px;
        border-radius: 5px 5px 0 0;
    }

    .service__text {
        padding-bottom: 10px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media screen and (max-width: 670px) {

    .navbar-footer__contacts,
    .rights-footer {
        display: none;
    }
}

@media screen and (max-width: 585px) {
    .section.exp {
        display: flex;
        flex-flow: column;
        gap: 0;
        padding-left: 0;
    }
}
@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .container--about {
        padding-top: 16px;
    }

    .container--background {
        min-height: 190px;
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .container--portfolio,
    .container--catalog,
    .container--about,
    .container--contacts,
    .container--product,
    .container--gallery{
        padding-top: 30px;
    }

    .h1-text--header {
        margin-bottom: 12px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
        /* max-width: 250px; */
    }

    .company-about {
        display: block;
    }

    .button {
        padding: 7px 20px;
        width: auto;
        /* max-width: 150px; */
    }

    .button-text {
        /* text-transform: lowercase; */
        /* color: #353535; */
        font-weight: 400;
    }

    .screen__content--about {
        flex-direction: column;
        align-items: normal;
        gap: 16px;
        margin-bottom: 10px;
    }

    .screen__content--about :nth-child(2) {
        order: 3;
    }

    .img-wrap {
        align-self: auto;
    }

    .img-wrap img {
        width: 100%;
    }

    .button--deep .button-text {
        color: #ffffff;
    }

    .company-about__text {
        margin-bottom: 16px;
        line-height: 20px;
    }

    .vertical-text {
        margin-bottom: 0px;
        text-align: center;
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        font-weight: 700;
        letter-spacing: 0.2em;
    }

    .service-grid {
        grid-template-columns: repeat(1, 1fr);
        margin-bottom: 16px;
        gap: 16px;
    }

    .h2-text {
        margin-bottom: 10px;
    }

    .service {
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        border-radius: 5px;
    }

    .service__top img {
        height: 166px;
        border-radius: 5px 5px 0 0;
    }

    .service__text {
        padding-bottom: 10px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .button-wrap--service {
        text-align: center;
    }

    .container--service {
        margin-bottom: 16px;
    }

    .whychooseus__grid-text {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 16px;
    }

    .whychooseus__item {
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .whychooseus__item--mid {
        justify-self: flex-start;
        max-width: 1000%;
    }

    .whychooseus__item p span {
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
        font-size: 40px;
        font-weight: 500;
        color: #337FC6;
    }

    .whychooseus__item p span span {
        font-size: 24px;
    }

    .whychooseus__mid {
        margin-bottom: 16px;
    }

    .whychooseus__bot {
        gap: 8px;
        flex-direction: column-reverse;
    }

    .whychooseus__cards-top {
        margin-bottom: 16px;
    }

    .whychooseus__cards {
        flex-direction: column;
        gap: 16px;
    }

    .cards {
        padding: 20px 15px;
        gap: 16px;
        box-sizing: border-box;
    }

    .cards__item-text {
        font-weight: 400;
    }

    .whychooseus__question {
        display: none;
        font-weight: 500;
        text-align: left;
    }

    .whychooseus__question.straight-text {
        display: block;
    }

    .container--whychooseus {
        margin-bottom: 16px;
    }

    .contacts-main {
        display: flex;
    }

    .navbar-footer {
        justify-content: center;
        align-items: center;
        padding: 12px 0;
        margin-bottom: 0;
    }

    .navbar-footer__logo img {
        max-width: 105px;
    }
    /* адаптив контакты */
    .section.contacts .contacts-h1 {
        /* align-self: center; */
        text-align: left ;
    }
    .contacts-wrap {
        flex-direction: column;
        gap: 16px;
    }
    .section.contacts {
        gap: 16px;
        margin-bottom: 20px;
        align-items: flex-start;
    }

    /* адаптив каталог */
     /* Адаптив каталог*/
     .catalog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog {
        flex-direction: column;
        margin-bottom: 16px;
    }
    .catalog-filter {
        min-height: 0;
        max-width: 100%;
    }
    .catalog-dropdown > :first-child {
        margin-top: 5px; 
    }
    .catalog-dropdown > :last-child {
        margin-bottom: 15px; 
    }
    .catalog-post-img-wrap {
        height: 150px;
    }
    .catalog-text {
        text-align: center;
    }
    .catalog__item  {
        margin-bottom: 5px
    }
    .catalog__item.open .catalog-dropdown {
        padding-top: 0;
        margin-bottom: -15px;
    }
    /* адаптив портфолио */
    .ajax_load_portfolio_posts {
        grid-gap: 16px;
    }

    .portfolio-post {
        position: relative;
        border-radius: 5px;
        width: 100%;
        max-width: 100%;

    }

    .portfolio-post-top img {
        border-radius: 5px 5px 0 0;
        margin-bottom: 10px;
        height: 166px;
    }
    .loader-wrapper {
        margin-top: 0;
    }
    .load-more-btn {
        text-transform:lowercase;
        /* padding: 5px 15px; */
    }
    /* адаптив продукт сингл */
    
    .button.button--appeal {
        padding: 10px 16px;
        max-width: 170px;
    }
    .product-top {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }
    .product-thumbnail {
        max-width: 100%;
    }
    .product-h1 {
        display: none;
        
    }
    .product-h1--hidden {
        margin-bottom: 0;
        display: block;
    }
    .button-wrap.button-wrap--product {
        max-width: 100%;
        text-align: center;
    }
    .content-product.mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .tabs {
        display: none;
    }
    /* о нас */
    .purpose {
        flex-direction: column;
        gap: 10px;
    }
    .section.image-text {
        margin-bottom: 0
    }
    ul.column {
        margin: 5px 0;
    }
    
}