/*
Theme Name: Generator Solutions
Theme URI: 
Author: Sergio Rieznyk
Author URI: http://rieznyk.pro
Description: Тема для сайту продажу генераторів та послуг з їх обслуговування
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generator-solutions
*/

:root {
    --accent: #F9C623;
    --text-color: #262626;
    --dark-bg: #262626;
    --light-bg: #F2F2F2;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: 'Inter Tight', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */

.header {
    position: relative;
}

.top-bar {
    background-color: var(--accent);
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address, .phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-bg);
    font-size: 14px;
    font-weight: 500;
}

.address svg, .phone svg {
    color: var(--dark-bg);
}

.phone a, .address  a{
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 150ms;
}

.address  a{
    font-size: 14px;
}

.phone a:hover, 
.address a:hover,
.content-box .phone a:hover,
.content-box .address a:hover{
    text-decoration: underline;
}

.main-header .callus{
    display: none;
}

.additional{
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.lang-wrapper{
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-item a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.54);
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.lang-item.current-lang a,
.lang-item a:hover {
    background-color: var(--text-color);
    color: var(--accent);
}

/* Main Header */
.main-header {
    background-color: var(--dark-bg);
    padding: 15px 0;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
/*    position: sticky; */
    position: relative;
    top: 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

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

.logo a{
    line-height: 100%;
    height: 40px;
}

.logo-image {
    height: 40px;
    width: auto;
}

/* NAV */

.menu-wrap .phone,
.menu-wrap .address,
.menu-wrap .lang-wrapper{
    display: none;
}

.main-navigation{
    height: 76px;
}

.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0
}

.menu-item {
    margin: 0 20px;
}

.menu > .menu-item:last-child{
    margin-right: 0;
}

.menu > .menu-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 150ms;
    display: flex;
    align-items: center;
    height: 76px;
}

.menu-toggle {
    display: none;
    background-color: transparent;
    border: 0;
    color: var(--text);
    font-size: 30px;
    cursor: pointer;
}

/* Стилі для підменю */
.menu > .menu-item-has-children > .sub-menu {
    display: none; /* Ховаємо підменю за замовчуванням */
    position: absolute; /* Використовуємо absolute, щоб позиціонувати його над іншими елементами */
    background-color: #fff; /* Колір фону */
    padding: 48px 0; /* Поля для підменю */
    margin: 0;
    top: 76px;
    left: 0;
    right: 0;
    list-style: none;
    min-width: 100%;
    z-index: 10000; /* Щоб підменю не ховалося за іншими елементами */
}

.menu > .menu-item-has-children:hover > .sub-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 110px;
    padding-left: calc( (100vw - 1170px)/2 );
    padding-right: calc( (100vw - 1170px)/2 );
}

.sub-menu li {
    margin: 0;
}

.sub-menu > .menu-item a {
    color: black;
    font-size: 19px;
    font-weight: 600;
    height: auto;
}

.sub-menu > .menu-item a:hover{
    color: var(--accent);
    text-decoration: underline;
}

.menu > .menu-item-has-children .sub-menu .sub-menu {
    list-style-type: square;
    flex-direction: column;
    display: flex;
    margin-top: 22px;
    margin-left: 16px;
    
}

.menu > .menu-item-has-children .sub-menu .sub-menu a{
    font-size: 16px;
    font-weight: 400;

}

.sub-menu .sub-menu li:not(:last-child){
        margin-bottom: 16px;
}

.menu .menu-item a:hover, 
.menu .current-menu-item > a {
    color: var(--accent);
}

#checkbox {
    display: none;
    z-index: 100000
}

.toggle {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition-duration: .5s;
    display: none;
    z-index: 1100;
}

.bars {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 4px
}

#bar2 {
    transition-duration: .8s
}

#bar1,#bar3 {
    width: 70%
}

#checkbox:checked+.toggle .bars {
    position: absolute;
    transition-duration: .5s
}

#checkbox:checked+.toggle #bar2 {
    transform: scaleX(0);
    transition-duration: .5s
}

#checkbox:checked+.toggle #bar1 {
    width: 100%;
    transform: rotate(45deg);
    transition-duration: .5s
}

#checkbox:checked+.toggle #bar3 {
    width: 100%;
    transform: rotate(-45deg);
    transition-duration: .5s
}

#checkbox:checked+.toggle {
    transition-duration: .5s;
    transform: rotate(180deg)
}

@media (max-width: 768px) {

    .menu-wrap .phone,
    .menu-wrap .address,
    .menu-wrap .lang-wrapper{
        display: flex;
    }

    .main-header{
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
    }

    .main-navigation{
        height: auto;
    }

    .menu-wrap{
        display: none;
        background-color: var(--text-color);
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100vw;
        height: calc(var(--vhc, 1vh) * 100);
        padding: 20px 40px;
        z-index: 1000;
        overflow: hidden;
        overscroll-behavior: contain;
    }

    .menu-wrap .phone a,
    .menu-wrap .address a{
        color: var(--white);
    }

    .menu-wrap .address a{
        font-size: 14px;
        text-decoration: none;
        line-height: 120%;
    }

    .menu-wrap .lang-item a {

    }

    .menu-wrap .lang-item.current-lang a {
        background-color: var(--accent);
        color: var(--text-color);
    }

    .menu {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
        overscroll-behavior: contain;
    }

    .menu li{
        margin: 0;
    }

    #checkbox:checked + .toggle + .menu-wrap {
        display: flex; 
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .toggle {
        display: flex; 
    }

    .menu > .menu-item a{
        display: flex;
        align-items: center;
        height: auto;
        font-size: 20px;
    }

    .menu > .menu-item-has-children .sub-menu{
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0;
        top: 0;
        color: var(--white);
        position: relative;
        background-color: transparent;
        margin-left: 16px;
        margin-top: 16px;
    }

    .menu > .menu-item-has-children .sub-menu:hover,
    .menu > .menu-item-has-children .sub-menu:active,
    .menu > .menu-item-has-children .sub-menu:focus,
    .menu > .menu-item-has-children:hover,
    .menu > .menu-item-has-children:active,
    .menu > .menu-item-has-children:focus{
        display: block !important;
        flex-direction: column !important;
    }

    .menu > .menu-item-has-children .sub-menu .sub-menu{
        display: none;
    }

    .sub-menu > .menu-item a {
        color: var(--white);
        font-size: 16px;
        font-weight: 400;
        height: auto;
    }

    .body-no-scroll{
        overflow: hidden;
        height: 100vh;
        touch-action: none;
    }

    .main-header .callus a{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        text-decoration: none;
        float: right;
    }

    .main-header .callus{
        display: block;
        height: 32px;
        position: absolute;
        right: 72px;
        top: 14px;
    }

    .hide-sub .sub-menu{
        display: none !important;
    }
}


/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 782px;  
    transition: opacity 1s ease-in-out; 
}

.slide {
    position: absolute; 
    width: 100%;
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}

.slide.active {
    opacity: 1; 
}

.slide-bg {
    position: relative;
    width: 100%;
    height: 782px;
    overflow: hidden;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 16%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.slide-content-wrap{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.slide-title,
.cat-item h2 a,
.services h2,
.main-content h1 {
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent);
    position: relative;
    display: inline-block;
    text-align: left;
}

.slide-title::before,
.cat-item h2 a::before,
.services h2::before,
.main-content h1::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 0;
    bottom: 0;
    width: 8px;
    background-color: var(--accent);
}

.cat-item h2 a::after{
    display: none;
}

.main-content h1{
    font-size: 44px;
    color: var(--text-color);
}

.services h2{
    margin-left: 32px;
}

.slide-description {
    font-size: 24px;
    max-width: 600px;
    text-align: left;
}

.slider-controls {
    position: absolute;
    bottom: 44px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-dots {
    display: flex;
    gap: 16px;
    margin: 0 auto;
}

.dot {
    width: 52px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--accent);
}

.content{
    max-width: 1170px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-list {
        gap: 15px;
    }
    
    .slide-title {
        font-size: 40px;
    }
    
    .slide-description {
        font-size: 20px;
    }
}

/* Category section */

.cat{
    padding: 60px 0;
}

.main-content.cat,
.main-content.services{
    padding-top: 0;
    margin-top: 0;
}

.cat-item{
    padding: 40px;
    background-color: var(--white);
    border-radius: 14px;
    display: flex;
    gap: 64px;
    align-items: center;
    margin-bottom: 40px;
}

.cat .cat-item:last-child{
    margin-bottom: 0;
}

.cat-item h2 a,
.services h2{
    font-size: 32px;
    font-weight: 600;
    line-height: 100%;
    margin-bottom: 24px;
    padding: 10px 0;
    color: var(--text-color);
}

.cat-item p,
.services p{
    font-size: 16px;
    line-height: 1.6em;
    margin-bottom: 20px;
}

.cat-item a{
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    transition: all 150ms;
}

.cat-item a:hover{
    color: var(--accent);
    text-decoration: underline;
}

.cat-item__cont h2 a:hover{
    color: black;
    text-decoration: none;
}

.cat-item a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    background-color: currentColor; 
    -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M11.5303 0.46967C11.8232 0.762563 11.8232 1.23744 11.5303 1.53033L1.53033 11.5303C1.23744 11.8232 0.762563 11.8232 0.46967 11.5303C0.176777 11.2374 0.176777 10.7626 0.46967 10.4697L10.4697 0.46967C10.7626 0.176777 11.2374 0.176777 11.5303 0.46967Z"%3E%3C/path%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H11C11.4142 0.25 11.75 0.585786 11.75 1V11C11.75 11.4142 11.4142 11.75 11 11.75C10.5858 11.75 10.25 11.4142 10.25 11V1.75H1C0.585786 1.75 0.25 1.41421 0.25 1Z"%3E%3C/path%3E%3C/svg%3E');
    mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M11.5303 0.46967C11.8232 0.762563 11.8232 1.23744 11.5303 1.53033L1.53033 11.5303C1.23744 11.8232 0.762563 11.8232 0.46967 11.5303C0.176777 11.2374 0.176777 10.7626 0.46967 10.4697L10.4697 0.46967C10.7626 0.176777 11.2374 0.176777 11.5303 0.46967Z"%3E%3C/path%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H11C11.4142 0.25 11.75 0.585786 11.75 1V11C11.75 11.4142 11.4142 11.75 11 11.75C10.5858 11.75 10.25 11.4142 10.25 11V1.75H1C0.585786 1.75 0.25 1.41421 0.25 1Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
}

.cat-item a:hover::after{
    background-color: var(--accent);
}

.cat-item__img img{
    border-radius: 14px;
}

.cat-item h2::before {
    width: 6px;
}

.cat .cat-item:nth-child(even){
    flex-direction: row-reverse;
    gap: 40px;
    padding-left: 64px;
}

.slide-mobile{
    display: none;
}

@media (max-width: 576px) {
    .top-bar {
        display: none;
    }

    .main-header{
        height: 60px;
    }

    .hero-slider{
        margin-top: 60px;
    }

    .logo a{
        line-height: 100%;
        height: 30px;
    }

    .logo-image {
        height: 30px;
        width: auto;
    }
    
    .slide-bg, 
    .slider-container {
        height: calc(var(--vhc, 1vh) * 100 - 60px);
    }

    .container{
        padding: 0 20px;
    }
    
    .slide-title {
        font-size: 36px;
        padding-left: 24px;
    }
    
    .slide-description {
        font-size: 20px;
        margin-left: 24px;
    }

    .cat{
        padding: 40px 0;
    }

    .cat-item, 
    .cat .cat-item:last-child {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .cat .cat-item:last-child{
        margin-bottom: 0;
    }

    .cat-item__img img{
        width: 100%;
        height: auto;
    }

    .cat-item h2,
    .services h2{
        font-size: 24px;
        margin-left: 24px;
        padding: 6px 0;
        margin-bottom: 16px;

    }

    .cat-item h2::before,
    .services h2::before {
        width: 4px;
        left: -24px;
    }

    .cat-item p{
        font-size: 15px;
        line-height: 1.6em;
        margin-bottom: 16px;    
    }

    .slide-mobile{
        display: block;
    }

    .slide-desktop{
        display: none;
    }

    .dot {
        width: 40px;
        height: 6px;
    }

    .slide-title::before{
        left: 0;
        margin-right: 24px;
        width: 4px;
    }

}

/* ----------- FORM ----------- */

.consultation {
    background-color: var(--accent);
    padding: 60px 0;
    text-align: center;
}

.consultation__title,
.advantages__title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 100%;
    text-align: center;
}

.consultation__text {
    font-size: 18px;
    margin-bottom: 32px;
}

.consultation__form {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.consultation__input {
    width: 280px;
    height: 48px;
    font-size: 16px;
    border: 2px solid var(--text-color);
    border-radius: 30px;
    color: var(--text-color);
    text-align: center;
    font-weight: 500;
}

.consultation__button,
.btn-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 48px;
    font-size: 16px;
    font-weight: 500;
    background-color: var(--text-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 150ms;
    gap: 4px;
}

.btn-all{
    font-size: 16px;
    font-weight: 600;
    width: auto;
    padding: 0 24px;
    background-color: var(--accent);
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-all:hover{
    background-color: #EDB503;
}

.consultation__button:hover {
    background-color: #000;
}

input::focus {
    border: 2px solid red;
}

input::placeholder {
    color: var(--text-color);
    opacity: 1;
    font-weight: 500;
}

@media (max-width: 768px) {
    .consultation {
        padding: 40px 0;
    }

    .consultation__title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .consultation__text {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .consultation__form {
        flex-direction: column;
        align-items: center;
    }

    .consultation__input,
    .consultation__button {
        width: 100%;

    }
}

/* ----------- FOOTER ----------- */

.top-footer {
    background: var(--text-color);
    color: #fff;
    padding: 32px 0 16px;
}

.bottom-footer{
    background-color: black;
    color: #A0A0A0;
    padding: 16px 0;
    font-size: 14px;
}

.footer-wrap,
.copy-wrap{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer__nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
}

.footer__info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.footer__info .address a,
.footer__info .phone a{
    color: var(--white);
    transition: all 150ms;
}

.footer__info .phone a:hover,
.footer__info .address a:hover{
    color: var(--accent);
}

.footer__nav{
     flex-grow: 1; 
    justify-content: space-between;
}

.footer__nav ul li.menu-item:not(:last-child){
    margin: 0;
    margin-bottom: 16px;    
}

.footer__nav ul li.menu-item a{
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    transition: all 150ms;
}

.footer__nav ul li.menu-item ul {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.footer__nav ul li.menu-item ul li.menu-item:not(:last-child){
    margin-bottom: 12px;
}

.footer__nav ul li.menu-item ul li.menu-item a{
    font-size: 14px;
    font-weight: 400;
}

.footer__nav ul li.menu-item a:hover{
    color: var(--accent);
}

.cursor{
    display: flex;
    align-items: center;
    gap: 8px;
}

.cursor a{
    color: #A0A0A0;
    text-decoration: none;
    transition: all 150px;
}

.cursor a:hover{
    color: white;
}


@media (max-width: 1024px) {
    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 32px;
    }

    .footer__info {
        align-items: flex-start;
        text-align: left;
        gap: 24px;
    }

    .footer__nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__nav ul li {
        margin-bottom: 16px;
    }

    .footer__nav ul li ul {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .top-footer {
        padding: 32px 0;
    }

    .footer__logo img {
        max-width: 180px;
    }

    .footer__info {
        gap: 24px;
    }

    .copy-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .bottom-footer{
        padding: 24px 0;
    }

    .footer__nav ul li ul{
        margin-left: 16px;
    }

}

/* -------- SERVICES -------- */

.services{
    margin: 60px 0;
}

.services-wrap{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.service-item{
    background-color: var(--white);
    padding: 24px;
    border-radius: 24px;
    transition: all 150ms;

}

.service-item:hover{
    background-color: var(--accent);
}

.service-item a img{
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin-bottom: 16px;
}

.service-item h3{
    margin-bottom: 0;
    line-height: 120%;
    
}

.service-item h3 a{
    font-size: 22px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: all 150ms;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.service-item h3 a::after{
    content: '';
    display: inline-block;
    width: 20px;
    height: 16px;
    background: url(images/arrow-big.svg) center right no-repeat;
    opacity: 0;
    transition: all 150ms;
}

.service-item h3 a:hover::after{
    opacity: 1;
}

@media (max-width: 768px) {

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

@media (max-width: 576px) {

    .services-wrap{
        grid-template-columns: repeat(1, 1fr);
        margin-top: 24px;
    }

    .services{
        margin: 40px 0;
    }

    .service-item{
        padding: 20px;
    }

    .service-item h3 a {
        font-size: 20px;
    }


}

/* ---------- ADVANTAGES ---------- */

.advantages {
    background: #F4BA22;
    padding: 80px 0;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    padding-left: 32px;
}

.advantage {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    z-index: 20;
}

.advantage::after{
    content: '';
    background: url(images/advantages-bg.svg) left no-repeat;
    display: inline-block;
    width: 70px;
    height: 57px;
    position: absolute;
    top: 16px;
    left: -32px;
    z-index: -1;
}

.advantage img {
    width: 48px;
    height: auto;
    margin-bottom: 12px;
}

.advantage h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.advantage p {
    font-size: 16px;
    color: var(--text-color);
}

.advantages-wrap{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.advantages__title{
    margin-bottom: 48px;
}

/* Адаптивність */
@media (max-width: 992px) {
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .advantages__grid {
        grid-template-columns: 1fr;
    }

    .advantages__grid{
        gap: 40px;
    }

    .advantages{
        padding: 40px 0;
    }

    .advantages__title{
        margin-bottom: 32px;
        font-size: 24px;
    }
}

/* -------- CATALOGUE ---------- */

.bread{
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    width: 100%;
    margin-top: 32px;
    margin-bottom: 16px;
}

.bread a, 
.bread span{
    font-size: 14px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 150ms;
    white-space: nowrap;
}

.bread a:hover{
    color: #000;
    text-decoration: underline;
}

.bread span{
    color: #A3A3A3;
}

.title-btn{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.main-content h1{
    margin-bottom: 48px;
    margin-left: 32px;
}

.main-content h2{
    font-size: 30px;
    font-weight: 600;
}

.product-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 56px;
}

.product-item{
    background-color: var(--white);
    border-radius: 24px;
    padding: 24px;
    transition: all 150ms;
    object-fit: cover;
}

.product-item:hover{
    background-color: var(--accent);
}

.product-item img{
    width: 100%;
    /*height: 260px;*/
    height: auto;
    border-radius: 14px;
    margin-bottom: 16px;
    object-fit: cover;
}

.product-item h3{
    margin-bottom: 10px;
    
}

.product-item h3 a{
    font-size: 26px;
    line-height: 1.2em;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    transition: all 150ms;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.product-item h3 a::after{
    content: '';
    display: inline-block;
    width: 18px;
    height: 16px;
    background: url(images/arrow-big.svg) center center no-repeat;
    opacity: 0;
    transition: all 150ms;
}

.product-item h3 a:hover::after{
    opacity: 1;
}

.product-item p{
    font-size: 15px;
    color: var(--text-color);
    line-height: 140%;
}

.product-item p span{
    font-weight: 600;
}

.product-item h3 img{
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: all 150ms;
    margin-bottom: 0;
    border-radius: 0;
}

.product-item h3:hover > img{
    opacity: 1;
}

.text-cont{
    background-color: var(--white);
    padding: 60px 0;
}

.text-cont h4{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 120%;
    margin-bottom: 20px;
}

.text-cont p,
.text-cont li{
    font-size: 14px;
    color: #676767;
}

.text-cont ul{
    margin-left: 24px;
    margin-bottom: 8px;
}

.text-cont p:not(:last-child){
    margin-bottom: 8px;
}

.content-box{
    background-color: var(--white);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 60px;
}

.content-box-img,
.download-links{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.download-links{
    gap: 8px;
}

.content-box-img img{
    border-radius: 14px;
}

.content-box p:not(:last-child),
.content-text p:not(:last-child){
    margin-bottom: 16px;
}

.content-box p span{
    font-weight: 600;
}

.content-box a{
    font-weight: 500;
    color: var(--text-color);
    transition: all 150ms;
}

.content-box a:hover{
    color: black;
    text-decoration: none;
}

.content-box ol,
.content-box ul,
.content-text ul{
    margin-left: 24px;
    padding-left: 0;
    margin-bottom: 16px;
}

.content-text{
    margin-bottom: 60px;
}

.content-box h3{
    margin-bottom: 16px;
}

.content-box .btn-all{
    margin-bottom: 24px;
    margin-top: 24px;
    font-weight: 600;
    width: 255px;
    white-space: nowrap;
}

.btn-all.back{
    background: transparent;
    border: 2px solid var(--text-color);
    width: 240px;
    margin: 0 auto;
    margin-top: -28px;
    margin-bottom: 60px;
}

.btn-all.back:hover{
    background-color: var(--white);
}

.btn-all img{
    border-radius: 0px;
}

.download{
    display: flex;
    align-items: center;
    gap: 12px;
}

.download::before{
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(images/pdf.svg) center no-repeat;
}

.contact h1{
    margin-top: 60px;
}

.content-box-img.contact a{
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 150ms;
}

.map-container {
    position: relative;
    width: 580px;
    max-width: 580px; /* Максимальна ширина */
    height: 440px;
    display: flex;
}

.map-container iframe {
    border-radius: 14px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.content-box-img.contact .address{
    align-items: flex-start;
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bread{
        gap: 12px;
        justify-content: flex-start;
        width: 100%;
        overflow-x: scroll;
        margin-top: 72px;
        margin-bottom: 24px;
        -ms-overflow-style: none;  /* Для Internet Explorer та Edge */
        scrollbar-width: none;
    }

    .bread::-webkit-scrollbar {
        display: none; /* Для Chrome, Safari */
    }

    .bread a, 
    .bread span{
        font-size: 12px;
    }

    .main-content h1{
        font-size: 28px;
        margin-bottom: 24px;
        margin-left: 24px;
        line-height: 100%;
        padding: 4px 0;
    }

    .main-content h1::before {
        width: 4px;
        left: -24px;
    }

    .main-content h2{
        font-size: 22px;
    }

    .title-btn{
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .product-item h3 a{
        font-size: 20px;
    }

    .product-item{
        padding: 16px;
    }

    .product-item img{
        margin-bottom: 12px;
    }

    .product-grid{
        margin-bottom: 40px;
    }

    .text-cont{
        padding: 24px 0;
    }

    .content-box{
        flex-direction: column;
        padding: 20px;
        gap: 24px;
        margin-bottom: 40px;
    }

    .content-box-img img{
        width: 100%;
        height: auto;
    }

    .btn-all.back{
        margin-bottom: 40px;
    }

    .btn-all{
        height: 40px;
        padding: 0 16px;
    }

    .content-box-img.contact .address img,
    .content-box-img.contact .phone img{
        width: 24px;
        height: 24px;
    }

    .content-box-img.contact a{
        font-size: 16px;
    }

    .contact h1{
        margin-top: 92px;
    }

    .map-container {
        width: 100%;
        height: 400px; /* Менша висота на мобільних */
    }

    .map-container iframe {
        width: 100%;
        height: 100%;
    }   

    .content-box-text{
        width: 100%;
   /*     margin-top: 16px; */
    }

    .content-box-img{
        width: 100%;
    }

    .menu-item{
        margin: 0;
    }

}

.page-wrap,
.main-content.cat{
    margin-top: 60px;
    padding-top: 0;
}

.page-wrap h2{
    margin-bottom: 16px;

}

.wpcf7-spinner{
    display: none;
}

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output, 
.wpcf7 form.unaccepted .wpcf7-response-output{
    border: none !important;
    border-radius: 50px;
    margin: 0 auto !important;
    margin-top: 16px !important;
    padding: 24px 40px !important;
    color: var(--text-color) !important;
    font-weight: 500;
    background-color: rgba(256, 256, 256, .4);
    width: fit-content;
    font-size: 18px;
}

.wpcf7 form.sent .wpcf7-response-output{
    margin-top: 0 !important;
}

.wpcf7 form.invalid .wpcf7-response-output, 
.wpcf7 form.unaccepted .wpcf7-response-output{
    border-color: red !important;
    color: red !important;
}

.page-wrap h2{
    font-weight: 500;
}

@media (max-width: 576px) {

    .page-wrap, .main-content.cat{
        margin-top: 90px;
    }

    .cat .cat-item:nth-child(even){
        flex-direction: column;
        padding: 20px;
        padding-bottom: 24px;
        gap: 20px;
    }
}

@media (min-width: 769px) {
  .main-navigation ul ul {
    display: none;
  }

  .main-navigation li:hover > ul {
    display: flex;
  }
}

@media (max-width: 768px) {
  .main-navigation ul ul {
    display: block !important;
    position: static;
    flex-direction: column;
    width: 100%;
    padding-left: 1rem;
    background-color: transparent;
    box-shadow: none;
  }

  .main-navigation li {
    position: static;
  }

  .main-navigation li:hover > ul,
  .main-navigation li.focus > ul,
  .main-navigation li.open > ul {
    display: block !important;
  }

  .menu > .menu-item-has-children .sub-menu .sub-menu{
        display: none !important;
    }

    .menu > .menu-item-has-children .sub-menu li:not(:last-child){
        margin-bottom: 16px;
    }
}

.error{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.error h2,
.error p{
text-align: center;}

.button_slide {    
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    background: #f9c623;
    display: inline-block;
    padding: 10px 15px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    border-top-right-radius: 25px;
    border-top-left-radius: 25px;
    max-width: inherit;
    margin: 0 auto;
    padding-right: 45px;
    position: relative;
    animation: breathing-pulse 3s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes breathing-pulse {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.03);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
.button_slide::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(images/download.svg);
    position: absolute;
    right: 15px;
    top: 18px;
}
