/*!
Theme Name: berliner
Theme URI: http://underscores.me/
Author: Eugene Winner
Author URI: https://eugene-winner.name/
Description: Special Theme for building company
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: berliner
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

html {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    list-style-type: none;
}
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}
h1, h2, h3 {
    font-family: 'Montserrat', serif;
}
.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
    color: inherit;
}
.btn {
    background-color: #e30613;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #c10510;
}
img{
    width: 100%;
    height: auto;
    object-fit: contain;
}

.header {
    background-color: #fff;
    top: 0;
    width: 100%;
    z-index: 1000;
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
}
.header .menu-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 135px;
}
.header .menu-area .logo{
    width: 198px;
    height: 100%;
    margin-right: 15px;
}
.header .nav {
    display: flex;
    justify-content: center;
    align-items: center;
}
.header .nav-list {
    display: flex;
    list-style: none;
    margin-right: 20px;
    flex-wrap: wrap;
}
.header .nav-list li {
    margin-left: 40px;
}
.header .nav-list a{
    text-transform: uppercase;
    font-family: 'Open Sans';
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #000;
}
.header .nav-list li:hover a{
    transition: 0.7s;
    color: #e6101b;
}
.header .nav-list li.current_page_item a{
    color: #e6101b;
    cursor: unset;
}
.header .hamburger {
    background-color: #e6101b;
    cursor: pointer;
    color: #fff;
    border: none;
    border-radius: 0;
    -webkit-border-radius: 0;
    padding: 14px 40px;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    float: none;
    visibility: hidden;
    margin: 20px 0 0;
}
.header .hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
}
.header .title-page{
    background-color: #F4F4F4;
    padding: 40px 0;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    size: 30px;
    line-height: 33px;
    color: #2a2F35;
}
.header .title-page h1{
    background-color: #F4F4F4;
    padding-top: 40px;
    padding-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    size: 30px;
    line-height: 33px;
    color: #2a2F35;
    text-transform: uppercase;
}
.header .breadcrumbs{
    padding: 15px 0;
    font-size: 14px;
    color: #2a2f35;
    border-bottom: 1px solid #f5f5f5;
    text-transform: uppercase;
}
.header .breadcrumbs a{
    color: #828282;
    transition: 0.7s;
}
.header .breadcrumbs a:hover{
    color: #e6101b;
}
@media  (max-width: 1080px) {
    .header .hamburger{
        display: none;
    }
}
@media (max-width: 910px) {
    .header .menu-area{
        flex-direction: column;
        height: auto;
    }
    .header .nav-list{
        margin: 20px 20px 50px;
    }
}
@media (max-width: 770px) {
    .header .menu-area {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
    }
    .header .nav-list {
        display: flex;
        flex-direction: column;
        order: 1;
        background-color: #fff;
        overflow: hidden;
        text-transform: uppercase;
        transition: max-height 1s ease-in-out, opacity 1s ease-in-out;
        width: 100%;
        justify-content: center;
        align-items: center;
        margin: 0;
        max-height: 0;
        opacity: 0;
        padding: 20px;
    }
    .header .nav-list.active {
        max-height: 500px; /* Установите достаточное значение, чтобы вместить всё меню */
        margin-bottom: 15px;
        opacity:1;
    }
    .header .nav-list li {
        margin-left: 0;
        padding: 5px 0;
    }
    .header .hamburger {
        display: flex;
        visibility: visible;
        margin-bottom: 20px;
    }
}
@media (max-width: 555px) {
    .header .title-page {
        overflow: hidden;
    }
    .header .title-page h1 {
        padding-top: 20px;
        padding-bottom: 20px;
        font-size: 23px;
        line-height: 30px;
    }
}

.sticky-nav {
    /*display: none;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 15px 20px;*/
    box-shadow: 0 0 5px rgb(0 0 0 / 20%);
    color: #fff;
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    transition: top 0.3s ease-in-out;
    z-index: 1000;
    background: #ffffff;
}
.sticky-nav .container{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.sticky-nav .logo img {
    max-width: 60px;
    height: auto;
}
.sticky-nav .menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.sticky-nav .menu ul li {
    margin: 0 15px;
}
.sticky-nav .menu ul li a {
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    transition: 0.7s;
}
.sticky-nav .menu ul li:hover a{
    transition: 0.7s;
    color: #e6101b;
}
.sticky-nav .burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.sticky-nav .burger span {
    height: 3px;
    width: 25px;
    background-color: #e6101b;
    margin: 4px 0;
}
.sticky-nav .mobile-menu {
    display: flex;
    flex-direction: column;
    background-color: #444;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: 1s;
}
.sticky-nav.active .mobile-menu {
    height: 385px;
}
.sticky-nav .mobile-menu ul {
    list-style: none;
    padding: 10px 0;
}
.sticky-nav .mobile-menu ul li {
    text-align: center;
    margin: 10px 0;
}
.sticky-nav .mobile-menu ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}
@media (max-width: 910px) {
    .sticky-nav .menu {
        display: none;
    }
    .sticky-nav .burger {
        display: flex;
    }
    .sticky-nav .sticky-nav.active .mobile-menu {
        display: flex;
    }
}
@media (max-width: 620px) {
    .sticky-nav .logo img {
        max-width: 40px;
    }
    .sticky-nav .burger span {
        height: 1.5px;
        width: 12px;
        margin: 2px 0;
    }
    .sticky-nav {
        /* display: none; */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
    }
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #2a2f35;
    color: #fff;
    padding: 20px 0 0;
    text-align: center;
}
.footer .footer-content-top{
    display: flex;
    justify-content: space-between;
    padding: 60px 15px 10px;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
}
.footer .footer-content-top .item{
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    max-width: 25%;
    padding-right: 30px;
    width: max-content;
}
.footer .footer-content-top .item:last-child{
    padding-right: 0;
}
.footer .footer-content-top .item .title-f{
    display: flex;
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer .footer-content-top .item .text-f{
    display: flex;
    align-items: center;
    text-align: start;
    color: #b8b8b8;
    font-weight: 400;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}
.footer .footer-content-top .item .item-it{
    display: flex;
    align-items: center;
    color: #b8b8b8;
    font-weight: 400;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    transition: 0.7s;
    width: unset;
    overflow-wrap: break-word;
    text-align: start;
}
.footer .footer-content-top .item .item-it:hover{
    color: #e6101b;
}
.footer .footer-content-top .item .items-contact .item-it .img{
    margin-right: 5px;
}
.footer .footer-content-top .item .items-contact .item-it .img svg{
    width: 14px;
    height: 14px;
    color: #b8b8b8;
}
.footer .footer-content-top .item .items-contact .item-it .img svg path{
    fill: #b8b8b8;
    transition: 0.7s;
}
.footer .footer-content-top .item .items-contact .item-it:hover .img svg path{
    fill: #e6101b;
}
.footer .footer-content-top .item .items-social .item-it .img svg{
    width: 14px;
    height: 14px;
    transition: 0.7s;
}
.footer .footer-content-top .item .items-social .item-it .img svg path{
    transition: 0.7s;
}
.footer .footer-content-top .item .items-social .item-it:hover .img svg path{
    fill: #e6101b;
}
.footer .footer-content-top .item .items-social .item-it .img{
    margin-right: 5px;
}
.footer .footer-content-bottom{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 25px 0;
    font-size: 13px;
    background: #1c2126;
    color: rgba(255,255,255,.4);
}
.footer .footer-content-bottom .container{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.footer .footer-content-bottom .footer-content{
    display: flex;
    margin-right: 10px;
    /*margin-bottom: 10px;*/
}
.footer .footer-content-bottom .footer-content > p{
    margin-bottom: 0;
}
.footer .footer-content-bottom .footer-content a{
    color: #fff;
    margin: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer .footer-content-bottom .footer-content a:hover{
    transition: 0.7s;
    color: #e6101b;
}
@media  (max-width: 1080px) {
    .footer .footer-content-top {
        flex-wrap: wrap;
    }
    .footer .footer-content-top .item {
        width: 50%;
        padding-right: 50px;
        max-width: unset;
    }
}
@media (max-width: 620px) {
    .footer .footer-content-top .item {
        width: 100%;
        padding-right: 0;
    }
    .footer .footer-content-bottom{
        flex-direction: column;
    }
    .footer .footer-content-bottom .footer-content {
        max-width: 100%;
        margin: 0 auto 10px;
        flex-wrap: wrap;
    }

}
@media (max-width: 555px) {
    .footer .footer-content-bottom .container {
        flex-direction: column;
    }

}

/* Retina Support */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx) {
    .banner {
        background-image: url('banner@2x.jpg');
    }
    .service-item img,
    .project-item img {
        background-image: url('image@2x.jpg');
    }
}

/* Info-page */
.info-page{
    margin: 30px auto 50px;
    overflow-wrap: break-word;
}
.info-page p{
    margin-bottom: 10px;
}

/* FAQ */
.faq {
    position: relative;
    width: 100%;
    margin: 40px auto;
}
.faq-item {
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}
.faq-question {
    background-color: #f1f1f1;
    padding: 10px;
    border: 1px solid #ccc;
}
.faq-answer {
    position: absolute;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    top: 102%;
    left: 0;
    z-index: 2;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Максимальная высота для раскрытого блока */
    opacity: 1;
    width: 100%;
}

/* 404 */
.error-404 {
    text-align: center;
    padding: 50px;
}
.error-404 h1 {
    font-size: 36px;
    color: #333;
}
.error-404 p {
    font-size: 18px;
    color: #666;
}
.error-404 a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #e6101b;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}
.error-404 a:hover {
    background-color: #e94c89;
}
@media (max-width: 600px) {
    .error-404 h1 {
        font-size: 24px;
    }
    .error-404 p {
        font-size: 16px;
    }
}
<meta name="google-adsense-account" content="ca-pub-2555297996450268">