/*!
Theme Name: automanufactura
Theme URI: http://underscores.me/
Author: xside
Author URI: http://xside
Description: automanufactura xside theme
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: automanufactura
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

 */

 @font-face {
    font-family: "TT Norms Pro";
    src: url("assets/fonts/TTNormsPro-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TT Norms Pro";
    src: url("assets/fonts/TTNormsPro-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TT Norms Pro";
    src: url("assets/fonts/TTNormsPro-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TT Norms Pro";
    src: url("assets/fonts/TTNormsPro-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root{
    --color-primary: #1C290D;
    --color-light: #CDDCC5;
    --bg-dark: #464840;
    --bg-light: #F2F1F1;
}

html {
    scroll-padding-top: 150px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

*{
    box-sizing: border-box;
    position: relative;
}

body {
    font-family: "TT Norms Pro", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.2;
    color: #1F2A1F;
    background: #FFFFFF;
}


.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.wrapper.row{
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

section{
    margin: 90px 0;
}

img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Логотипы и иконки в SVG — не растягиваем на всю ширину */
img[src$=".svg"],
img[src$=".SVG"] {
    width: auto;
    max-width: 100%;
}



a{
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:hover{
    opacity: 0.8;
}

p{
    margin: 0;
}

h1{
    font-size: 40px;
    font-weight: 700;
    margin: 0;
}

h2{
    font-size: 36px;
    font-weight: 500;
    margin: 0;
}

h3{
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

h2.bordered{
    border-bottom: 1px solid #CDDCC5;
    padding: 0 25px 10px 25px;  
    margin: 0 auto;
    width: fit-content;
    margin-bottom: 40px;
}

.btn{
    font-size: 16px;
    font-weight: 700;
    background-color: #1C290D;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn img{
    margin-top: 3px;
    width: auto;
    max-width: 100%;
}

.btn-outline{
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

span.line{
    display: block;
    border-bottom: 1px solid var(--color-light);
    margin: 0 auto;
    width: fit-content;
    padding: 0 25px 10px 25px;
    margin-top: 40px; 
}

input, textarea {
    border: none;
    background-color: #F8F7F7;
    border-radius: 5px;
    padding: 15px;
    font-family: 'TT Norms Pro';
    margin-bottom: 10px;
    width: 100%;
    margin-top: 5px;
    font-size: 16px;
}

textarea{
    min-height: 65px;
    height: 85px;
    max-height: 150px;
}

label{
    font-weight: 500;
}

.wpcf7-acceptance span{
    margin-left: 0;
    font-size: 14px;
}

.wpcf7-acceptance label{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    align-items: flex-start;
}

.wpcf7-acceptance input{
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
}

.wpcf7 .wpcf7-submit{
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    background-color: #1C290D;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7 .wpcf7-submit:hover{
    opacity: 0.8;
}

.wpcf7 .wpcf7-submit:disabled{
    background-color: #F2F1F1;
}

.wpcf7-not-valid-tip{
    position: absolute;
    right: 0;
    font-size: 11px;
    bottom: calc(100% + 15px);
}

.wpcf7 form .wpcf7-response-output{
    padding: 0;
    margin: 0;
    border: none;
    font-size: 11px;
    color: red;
}



button{
    width: 100%;
    text-align: center;
    justify-content: center;
    font-family: 'TT Norms Pro';
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.icon-list{
    display: flex;
    flex-direction: column;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.icon-list li{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}




.header {
    padding: 13px 0;
    box-shadow: 0px 2px 2px 0px #0000001A;
    background: #fff;
    z-index: 1001;
}

.header .wrapper{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header-menu > ul{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.header-menu > ul > li > a{
    text-decoration: none;
    color: inherit;
}

.header-menu > ul > li.menu-item-has-children > a{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-menu > ul > li.menu-item-has-children > a::after{
    content: '';
    flex-shrink: 0;
    width: 13.2px;
    height: 13.2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 1;
    transform: translateY(1px);
    transition: transform 0.15s ease;
}

.header-menu > ul > li.menu-item-has-children:hover > a::after,
.header-menu > ul > li.menu-item-has-children:focus-within > a::after{
    transform: translateY(3px);
}

.header-menu > ul > li.menu-item-has-children{
    z-index: 2;
}

.header-menu .sub-menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 12px 0 8px;
    list-style: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    z-index: 1005;
}

.header-menu .sub-menu .menu-item a{
    display: block;
    padding: 10px 18px;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.header-menu .sub-menu .menu-item a:hover,
.header-menu .sub-menu .menu-item a:focus{
    background: var(--bg-light);
    outline: none;
}

.header-menu li.menu-item-has-children:hover > .sub-menu,
.header-menu li.menu-item-has-children:focus-within > .sub-menu{
    display: flex;
}

.header-info{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.header-info span{
    display: flex;
    gap: 5px;
    align-items: center;
}

.header-info a{
    font-weight: 700;
}



.section-hero{
    padding: 90px 0;
    margin: 0;
    color: #fff;
}

.section-hero.hero-small{
    padding: 40px 0;
}

.section-hero::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(197, 199, 197, 0) 0%, rgba(32, 96, 61, 0.84) 0%, rgba(28, 41, 13, 0.84) 100%);
}

.section-hero h1{
    max-width: 600px;
    margin-bottom: 10px;
}

.section-hero.hero-small h1{
    max-width: 1000px;
}

.section-hero p{
    max-width: 520px;
    font-size: 20px;
    margin-bottom: 40px;
}

.section-hero.hero-small p{
    max-width: 1000px;
}

.service-slider .item{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.service-slider .item img{
	aspect-ratio: 16/9;
	object-fit: cover;
	border-radius: 5px;
}

.service-slider .item p{
    border-left: 1px solid var(--color-light);
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;;
}

.service-swiper .swiper-wrapper {
    align-items: stretch;
}

.service-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.service-swiper .swiper-slide .item {
    flex: 1;
    width: 100%;
    min-height: 0;
}

.service-slider .item > .btn {
    margin-top: auto;
}



.swiper-wrapper{
    padding-bottom: 90px;
}

.swiper .swiper-button-prev,
.swiper .swiper-button-next {
    position: absolute;
    top: 100%;
    margin-top: -50px; /* 30px ниже слайдера */
    transform: translateY(0);
    color: #1C290D;
    height: 33px;
    width: 33px;
    border: 2px solid #1C290D;
    border-radius: 50%;
}

.bg-dark .swiper .swiper-button-prev,
.bg-dark .swiper .swiper-button-next{
    color: var(--bg-light);
    border: 2px solid var(--bg-light)
}

.swiper .swiper-button-prev::after,
.swiper .swiper-button-next::after{
    font-size: 16px;
    font-weight: 700;
}

.swiper .swiper-button-prev {
    left: 50%;
    margin-left: -40px;
}

.swiper .swiper-button-next {
    right: 50%;
    margin-right: -40px;
}

.swiper .swiper-pagination {
    display: none;
}

.project-gallery-swiper {
    width: 100%;
    overflow: hidden;
}

.project-gallery-swiper .swiper-wrapper{
    padding-bottom: 70px;
}

.project-gallery-swiper .swiper-slide img,
.project-gallery-swiper .swiper-slide .acf-glightbox img{
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 5px;
}

@media (max-width: 767px){
    .project-gallery-swiper .swiper-slide img,
    .project-gallery-swiper .swiper-slide .acf-glightbox img{
        height: 260px;
    }
}

.advantages{
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 40px;
}

.advantages .item{
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #F2F1F1;
    padding: 25px;
    border-radius: 5px;
    text-align: center;
}

.advantages .item h3{
    margin: 10px 0;
}

.section-advantages .advantages{
    flex-wrap: wrap;
    margin-top: 0;
}

.section-advantages .advantages .item{
    width: calc(33.3% - 15px);
    align-items: flex-start;
    text-align: left;   
}

.advantages .item::after{
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 5px;
    background-color: var(--color-primary);
    border-radius: 0px 5px 0px 5px;
}

.section-steps .swiper-wrapper{
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.steps-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.steps-swiper .swiper-slide .item {
    flex: 1;
    width: 100%;
    min-height: 0;
}

.section-steps .item{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.section-steps .item .content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-height: 0;
    width: 100%;
    padding-right: 20px;
	padding-bottom: 20px;
    border-right: 2px solid var(--color-light);
}

.section-steps .item .num{
    font-size: 20px;
    font-weight: 700;
    width: 46px;
    height: 46px;
    color: var(--color-primary);
    background-color: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-top: -35px;
    margin-bottom: 10px;
}



.why-choose-us .wrapper{
    display: flex;
    flex-direction: row;
    gap: 50px;
    background-color: var(--color-primary);
    color: #fff;
    padding: 30px 70px;
    border-radius: 5px;
}

.why-choose-us .item{
    width: 33.3%;
}

.why-choose-us .item .title{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.project-item{
    box-shadow: 0px 4px 8px 0px #0000000D;
    border-radius: 5px;
    width: calc(33.3% - 10px);
}

.projects-swiper .swiper-wrapper {
    align-items: stretch;
}

.projects-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.projects-swiper .swiper-slide .project-item {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.projects-swiper .project-item .content {
    flex: 1;
    min-height: 0;
    width: 100%;
}

.projects-swiper .project-item .content > .btn {
    margin-top: auto;
}

.project-item > img{
    border-radius: 5px 5px 0 0;
	aspect-ratio: 16/9;
	object-fit: cover;
	border-radius: 5px;
}

.project-item .content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    background-color: #F2F1F1;
    padding: 20px;
    border-radius: 0 0 5px 5px;
}

.section-portfolio-dark{
    padding: 40px 0;
    background-color: var(--bg-dark);
    color: #fff;
    text-align: center;
}

.section-portfolio-dark .subtitle{
    max-width: 600px;
    margin: 0 auto;
}

.section-portfolio-dark .wrapper{
    margin-top: 40px;
}

.section-portfolio-dark .portfolio-dark-swiper {
    margin-top: 40px;
    text-align: left;
}

.section-portfolio-dark .portfolio-dark-swiper .item img,
.section-portfolio-dark .portfolio-dark-swiper .item .acf-glightbox img {
    width: 100%;
    border-radius: 5px;
    display: block;
}

.section-portfolio-dark .swiper .swiper-button-prev,
.section-portfolio-dark .swiper .swiper-button-next {
    color: var(--bg-light);
    border: 2px solid var(--bg-light);
}

.section-partners .item{
    padding: 20px;
    background-color: #F2F1F1;
    border-radius: 5px;
    box-shadow: 0px 4px 8px 0px #0000000D;
}

.partners-swiper .swiper-wrapper {
    align-items: stretch;
}

.partners-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.partners-swiper .swiper-slide .item {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-swiper .swiper-slide .item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.section-contacts{
    background-color: #F2F1F1;
    padding: 50px 0;
}

.section-contacts::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-color: #464840;
    z-index: 0;
}

.section-contacts .wrapper{
    align-items: stretch;
}

.section-contacts .form-wrapper{
    width: 365px;
    min-width: 365px;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-contacts .form-wrapper form{
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.section-contacts .cf7-phone-country-row,
.footer .cf7-phone-country-row{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.section-contacts .cf7-phone-country-row > .wpcf7-not-valid-tip,
.footer .cf7-phone-country-row > .wpcf7-not-valid-tip{
    position: absolute;
    right: 0;
    font-size: 11px;
    bottom: calc(100% - 3px);
}

/* Телефон CF7: флаг и код слева в одном поле, список под полем */
.section-contacts .cf7-phone-combo,
.footer .cf7-phone-combo{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    border-radius: 5px;
    box-sizing: border-box;
    overflow: visible;
}

.section-contacts .cf7-phone-combo:focus-within,
.footer .cf7-phone-combo:focus-within{
    border-color: var(--color-primary, #1C290D);
}

.section-contacts .form-wrapper .cf7-phone-combo__dial,
.footer .cf7-phone-combo__dial{
    width: auto;
    max-width: none;
}

.section-contacts .cf7-phone-combo__dial,
.footer .cf7-phone-combo__dial{
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0 10px;
    min-height: 46px;
    border: none;
    border-radius: 3px 0 0 3px;
    background: #EEF2EB;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary, #1C290D);
    cursor: pointer;
    transition: background 0.15s ease;
    margin-top: 5px;
}

.section-contacts .cf7-phone-combo__dial:hover,
.footer .cf7-phone-combo__dial:hover{
    background: #E4E9E0;
}

.section-contacts .cf7-phone-combo__dial:focus-visible,
.footer .cf7-phone-combo__dial:focus-visible{
    outline: 2px solid var(--color-primary, #1C290D);
    outline-offset: -2px;
    z-index: 2;
}

.section-contacts .cf7-phone-combo__dial-flag{
    font-size: 1.25rem;
    line-height: 1;
}

.section-contacts .cf7-phone-combo__dial-code{
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    opacity: 0.9;
}

.section-contacts .cf7-phone-combo__dial-chev{
    display: flex;
    flex-shrink: 0;
    align-items: center;
    opacity: 0.55;
}

.section-contacts .cf7-phone-combo .wpcf7-form-control-wrap{
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.section-contacts .cf7-phone-combo .wpcf7-form-control-wrap input,
.footer .cf7-phone-combo .wpcf7-form-control-wrap input{
    width: 100%;
    margin-bottom: 0;
    border: none;
    border-radius: 0 3px 3px 0;
    background-color: #F8F7F7;
    box-shadow: none;
}

.section-contacts .cf7-phone-combo__dropdown,
.footer .cf7-phone-combo__dropdown{
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    max-height: min(280px, 55vh);
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(28, 41, 13, 0.08);
    -webkit-overflow-scrolling: touch;
}

.section-contacts .cf7-phone-combo__dropdown[hidden],
.footer .cf7-phone-combo__dropdown[hidden]{
    display: none !important;
}

.section-contacts .cf7-phone-combo__list,
.footer .cf7-phone-combo__list{
    list-style: none;
    margin: 0;
    padding: 6px;
}

.section-contacts .cf7-phone-combo__list li,
.footer .cf7-phone-combo__list li{
    margin: 0;
    padding: 0;
}

.section-contacts .form-wrapper .cf7-phone-combo__option,
.footer .cf7-phone-combo__option{
    width: 100%;
    max-width: none;
}

.section-contacts .cf7-phone-combo__option,
.footer .cf7-phone-combo__option{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.section-contacts .cf7-phone-combo__option:hover,
.section-contacts .cf7-phone-combo__option:focus-visible,
.footer .cf7-phone-combo__option:hover,
.footer .cf7-phone-combo__option:focus-visible{
    background: var(--bg-light, #F2F1F1);
}

.section-contacts .cf7-phone-combo__option:focus-visible,
.footer .cf7-phone-combo__option:focus-visible{
    outline: 2px solid var(--color-primary, #1C290D);
    outline-offset: -2px;
}

.section-contacts .cf7-phone-combo__option.is-selected,
.footer .cf7-phone-combo__option.is-selected{
    background: #EEF2EB;
}

.section-contacts .cf7-phone-combo__option-flag,
.footer .cf7-phone-combo__option-flag{
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.section-contacts .cf7-phone-combo__option-name,
.footer .cf7-phone-combo__option-name{
    flex: 1;
    font-weight: 600;
    min-width: 0;
}

.section-contacts .cf7-phone-combo__option-dial,
.footer .cf7-phone-combo__option-dial{
    font-size: 14px;
    font-weight: 700;
    color: #6B7A6A;
    font-variant-numeric: tabular-nums;
}

.section-contacts .cf7-phone-combo__option.is-selected .cf7-phone-combo__option-dial,
.footer .cf7-phone-combo__option.is-selected .cf7-phone-combo__option-dial{
    color: var(--color-primary, #1C290D);
}

.section-contacts .map-wrapper{
    width: 100%;
}

.section-contacts .map-wrapper iframe{
    width: 100%;
    border: none;
    border-radius: 5px;
}

.section-contacts .map-wrapper > div{
    height: 100%;
}

.section-breadcrumbs{
    margin: 20px 0;
    font-size: 14px;
}

.section-breadcrumbs .wrapper{
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    overflow: auto;
    /* отступ под строкой — полоса прокрутки визуально ниже текста */
    padding-bottom: 12px;
}

.section-breadcrumbs span{
    white-space: nowrap;
}

.section-services{
    margin-top: 0;
}

.section-services .wrapper{
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch;
}

.section-services .project-item{
    width: calc(33.3% - 20px);
    display: flex;
    flex-direction: column;
}

.section-services .project-item img {
    flex-shrink: 0;
}

.section-services .project-item .content {
    flex: 1;
}

.section-services .project-item .content .btn {
    margin-top: auto;
}

.section-project{
    margin: 0;
}

.section-project.bg-dark{
    background-color: var(--bg-dark);
    color: #fff;
    padding: 40px 0;
}

.section-project.bg-light{
    background-color: var(--bg-light);
    color: #1F2A1F;
    padding: 40px 0;
}

.section-project .list-title{
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 20px;
}

.section-project ul{
    padding-left: 20px;
}

.section-project .swiper{
    margin-top: 20px;
}

.section-project .projects-swiper .item img,
.section-project .projects-swiper .item .acf-glightbox img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    object-fit: cover;
}

a.acf-glightbox{
    display: block;
    color: inherit;
    text-decoration: none;
}

a.acf-glightbox:focus-visible{
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.section-content{
    margin-top: 0;
    margin-bottom: 40px;
}

.section-content .list-title{
    font-weight: 500;
}

.section-content ul{
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.section-content ul li::before{
    content: '—';
    display: inline-block;
    margin-right: 10px;
}

.section-portfolio{
    margin-top: 40px;
}

.section-portfolio .portfolio-cats{
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
}

.section-portfolio .portfolio-cats ul{
    display: flex;
    flex-direction: row;
    gap: 10px;
    list-style: none;
    padding-left: 0;
    margin: 0;
    overflow: auto;
    padding-bottom: 12px;
}

.section-portfolio .portfolio-cats ul li{
    padding: 14px 20px;
    font-weight: 700;
    border: 1px solid #464840;
    border-radius: 5px;
    cursor: pointer;
    text-wrap-mode: nowrap;
}

.section-portfolio .portfolio-cats ul li a{
    color: inherit;
    text-decoration: none;
    display: block;
}

.section-portfolio .portfolio-cats ul li.active,
.section-portfolio .portfolio-cats ul li:hover{
    background-color: #464840;
    color: #fff;
}

.section-portfolio .portfolio-cats ul li:hover{
    opacity: 0.8;
}

.section-portfolio .wrapper{
    flex-wrap: wrap;
    margin-top: 40px;
}

.section-portfolio .wrapper.row{
    align-items: stretch;
}

.section-portfolio .project-item{
    width: calc(33.3% - 20px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.section-portfolio .project-item .content{
    flex: 1;
    min-height: 0;
    width: 100%;
}

.section-portfolio .project-item .content > .btn{
    margin-top: auto;
}



.section-pagination .wrapper{
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.section-pagination a,
.section-pagination span.page-numbers{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    height: 34px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
}

.section-pagination a.active,
.section-pagination a.current,
.section-pagination span.page-numbers.active,
.section-pagination span.page-numbers.current,
.section-pagination a:hover{
    background-color: #CDDCC5;
    border-radius: 2px;
}

.section-pagination a img{
    filter: brightness(0);
}

.project-hero{
   margin-top: 0;
}

.project-hero .wrapper{
    gap: 120px;
}

.project-hero .col-text{
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-hero .col-text .project-info{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 5px;
    box-shadow: 0px 4px 8px 0px #0000000D;
    margin-top: 10px;
}

.project-hero .col-text .project-info ul{
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.project-hero .col-text .project-info ul .project-info-label{
    font-weight: 500;
}

.project-done .wrapper{
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.project-done .item{
    max-width: 800px;
}

.project-done .item .title{
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.project-gallery .swiper{
    margin-top: 20px;
}

.project-gallery .swiper-slide img,
.project-gallery .swiper-slide .acf-glightbox img{
    height: 230px;
    object-fit: cover;
}

.contacts-info{
    margin-top: 0;
}

.contacts-info .wrapper{
    gap: 120px;
    margin-top: 40px;
}

.contacts-info .col-left{
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    row-gap: 20px;
}

.contacts-info .col-left .item{
    width: calc(50% - 30px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.contacts-info .col-left .item .title{
    font-weight: 500;
    font-size: 20px;
}

.contacts-info .col-right{
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px 0px #0000000D;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 50%;
}

.section-404{
    margin: 0;
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-404::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 290px;
    background: linear-gradient(180deg, rgba(197, 199, 197, 0) 0%, rgba(32, 96, 61, 0.84) 0%, rgba(28, 41, 13, 0.84) 100%);

}

.section-404 .container{
    background-image: url('assets/img/404.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.section-404 .wrapper{
    width: 420px;
    justify-self: right;
}

.section-404 h1{
    font-size: 220px;
    line-height: 1em;
    color: #CDDCC5;
}

.section-404 h2{
    font-weight: 700;
}





.footer{
    padding: 20px 0;
    background-color: #F2F1F1;
}



.footer .col{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 25%;
}

.footer .col:first-child{
    width: 35%;
    padding-right: 50px;
}

.footer .col:nth-child(2){
    width: 15%;
}

.footer .logo  img{
    width: 250px;
}

.footer .info{
    font-weight: 500;
}

.footer .contacts-box{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.footer .contacts-box .item{
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer .title{
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 15px;
}


.footer .footer-menu ul{
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer .footer-menu ul li{
    margin-bottom: 5px;
}

.footer .footer-menu ul li a{
    font-weight: 400;
}

.footer .footer-bottom{
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #CDDCC5;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
}

.footer .footer-bottom a{
    text-decoration: underline;
}


/* ===== Burger Button ===== */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: #1C290D;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ===== Mobile Menu Dropdown ===== */
.mobile-menu {
    position: fixed;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, box-shadow 0.35s ease;
    box-shadow: none;
}

.mobile-menu.open {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}

.mobile-menu-overlay.open {
    display: block;
}

.mobile-menu-top {
    display: none;
}

.mobile-menu-nav {
    padding: 16px 20px;
}

.mobile-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-nav ul li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.mobile-menu-nav ul li > a {
    display: block;
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu-nav ul li > a:hover {
    background-color: #f2f1f1;
    opacity: 1;
}

.mobile-menu-nav ul li.active > a {
    background-color: #1C290D;
    color: #fff;
}

.mobile-menu-nav ul li.active > a:hover {
    opacity: 0.9;
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    width: auto;
    display: flex;
    align-items: center;
    color: #1C290D;
    flex-shrink: 0;
    height: 48px;
}

.mobile-submenu-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle.open svg {
    transform: rotate(180deg);
}

.mobile-menu-nav ul li ul.mobile-submenu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0 0 5px 16px;
    gap: 2px;
}

.mobile-menu-nav ul li ul.mobile-submenu.open {
    display: flex;
}

.mobile-menu-nav ul li ul.mobile-submenu li a {
    font-size: 14px;
    padding: 10px 16px;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #CDDCC5;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-menu-footer span {
    font-size: 14px;
    color: #444;
    text-align: center;
}

.mobile-menu-footer .btn {
    justify-content: center;
    width: 100%;
    font-size: 16px;
}

.mobile-menu-footer .btn img{
    filter: brightness(0) invert(1);
    margin-top: 0;
}

@media(max-width:1024px){

    .container{
        padding: 0 40px;
    }

    h2{
        font-size: 32px;
    }

    h2.bordered{
        text-align: center;
    }

    .header .header-menu{
        display: none;
    }

    

    

    .burger-btn {
        display: flex;
    }

    .section-hero.hero-small p{
        margin-bottom: 0;
    }

    .section-hero.hero-small h1{
        margin-bottom: 0;
    }

    .section-services .project-item{
        width: calc(50% - 10px);
    }

    .advantages{
        flex-wrap: wrap;
    }

    .advantages .item{
        width: calc(50% - 10px);
    }

    .why-choose-us .wrapper{
        padding: 30px;
        overflow: scroll;
    }

    .why-choose-us .item{
        width: 350px;
        min-width: 350px;
    }

    .section-advantages .advantages .item{
        width: calc(50% - 10px);
    }

    .section-contacts .form-wrapper{
        width: 300px;
        min-width: 300px;
    }

    .section-portfolio .project-item{
        width: calc(50% - 10px);
    }

    .project-hero .wrapper{
        gap: 20px;
    }

    .project-hero .col-text{
        width: 50%;
    }

    .project-hero .col-img{
        width: 50%;
        height: stretch;
    }

    .project-hero .col-img img{
        height: 100%;
        object-fit: cover;
        border-radius: 5px;
    }

    .contacts-info .wrapper{
        flex-direction: column;
        gap: 40px;
    }

    .contacts-info .col-left{
        width: 100%;
    }

    .contacts-info .col-right{
        width: 100%;
    }

    .section-404 h1{
        font-size: 180px;
    }

    .section-404::before{
        height: 215px;
    }

    .section-404 .wrapper{
        width: 350px;
    }

    .section-404 .container{
        background-size: 50%;
        background-position: left;
    }

    .footer .wrapper.row{
        flex-wrap: wrap;
    }

    .footer .col{
        width: 35%;
    }

    .footer .col:first-child{
        width: calc(45% - 15px);
        padding-right: 30px;
    }

    .footer .col:nth-child(2){
        width: 15%;
    }

    .footer .col:last-child{
        width: 50%;
    }
}

@media(max-width:767px){

    .container{
        padding: 0 20px;
    }

    h1{
        font-size: 32px;
    }

    h2{
        font-size: 26px;
    }

    h2.bordered{
        padding: 0 10px 10px 10px;
    }

    section{
        margin: 40px 0;
    }

    .header-logo{
        width: 147px;
    }

    .header-info{
        display: none;
    }

    .section-hero{
        padding: 40px 0;
    }

    .section-hero h1{
        margin-bottom: 0;
    }

    .section-hero p{
        margin-bottom: 0;
    }

    .advantages{
        margin-top: 20px;
    }

    .advantages .item{
        width: 100%;
    }

    .why-choose-us .item{
        width: 250px;
        min-width: 250px;
    }

    .section-advantages .advantages .item{
        width: 100%;
    }

    span.line{
        text-align: center;
        font-size: 12px;
    }

    .section-contacts .wrapper{
        flex-direction: column;
    }

    .section-contacts .form-wrapper{
        width: 100%;
        min-width: 100%;
    }

    .section-contacts .map-wrapper iframe{
        height: 400px;
    }

    .section-portfolio .project-item{
        width: 100%;    
    }

    .section-pagination a,
    .section-pagination span.page-numbers{
        font-size: 14px;
    }

    .project-hero .wrapper{
        flex-direction: column;
    }

    .project-hero .col-text{
        width: 100%;
    }

    .project-hero .col-img{
        width: 100%;
    }

    .contacts-info .wrapper{
        margin-top: 20px;
    }

    .contacts-info .col-left{
        flex-direction: column;
    }

    .contacts-info .col-left .item{
        width: 100%;
    }

    .section-services .project-item{
        width: 100%;
    }

    .section-404{
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .section-404 .container{
        padding-bottom: 250px;
        background-size: 100%;
        background-position: bottom;
    }

    .section-404 .wrapper{
        width: 100%;
    }

    .footer .wrapper.row{
        flex-direction: column;
    }

    .footer .col{
        width: 100%;
        gap: 20px;
    }

    .footer .col:first-child{
        width: 100%;
    }

    .footer .title{
        margin-top: 20px;
        margin-bottom: 0px;
    }

    .footer .footer-menu ul{
        gap: 5px;
    }

    .footer .col:last-child{
        width: 100%;
    }

    .footer .col:nth-child(2){
        width: 100%;
    }

    .footer .footer-bottom{
        margin-top: 20px;
        padding-top: 20px;
        margin-bottom: 0;
        gap: 5px;
    }

    .footer .footer-bottom span{
        font-size: 12px;
    }
}
