/* Base styles */
:root {
    --primary-color: rgb(0, 0, 0);
    --primary-dark: rgb(229,33,33);
    --secondary-color: #000000;
    --light-color: #f8f8f8;
    --dark-color: #ffffff;
    --gray-color: #ffffff;
    --light-gray: #eeeeee;
    --white: #ffffff;
    --black: #000000;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: #2cb742;
    display: inline-flex;
    margin-top: 20px;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: white;
    align-items: center;
}
.btn--primary svg{
    fill: white;
}

.btn--primary:hover {
    background-color: #25a639;
}

.btn--primary:active {
    background-color: #1c7828;
}

.btn--whatsapp {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #2cb742;
    color: #fff;
    border: 2px solid #25D366;
}

.btn--whatsapp svg{
    flex-shrink: 0;
}


.btn--whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:active {
    background-color: #055c53;
}

.btn--phone {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #3498db;
    color: #fff;
    border: 2px solid #3498db;
}

.btn--phone svg{
    flex-shrink: 0;
}

.btn--phone:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn--phone:active {
    background-color: #175378;
}

.no-scroll {
    overflow: hidden;
}

.whatsapp{
    display: flex;
    height: 100%;
    width: 100%;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: white;
    align-items: center;
}
.whatsapp svg{
    fill: white;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: black
}

.main_background{
    background-repeat: no-repeat;
    background-image: url("images/mainImprShortDesk.webp");
    background-position: center;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    overflow: hidden;
    position: relative;
    z-index: 2;
    padding: 80px 0 0 0; /* Добавляем отступы сверху */
}
.main_background:before{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color:rgba(0, 0, 0, 0.5);
}

.main_background .container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header styles */
.header {
    background-color: white;
    width: 100%;
    height: max-content;
    line-height: 1.3;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header__logo {
    width: 100px;
    height: 80%;

}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__item a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__item a:hover {
    color: rgb(229,33,33);
}

.header__contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact__link {
    transition: color 0.3s ease;
}

.contact__link:hover {
    color: var(--primary-color);
}

/* Burger menu styles */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--black);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__nav {
    margin-bottom: 30px;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu__item a {
    font-size: 1.2rem;
    color: var(--black);
    padding: 10px;
    display: block;
    transition: color 0.3s ease;
}

.mobile-menu__item a:hover {
    color: rgb(229,33,33);
}

.mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.mobile-menu__contact-link {
    font-size: 1rem;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu__contact-link:hover{
    color: rgb(229,33,33);
}
.mobile-menu__contact-link:active{
    color: rgb(229,33,33);
}

.mobile-menu__contact-link svg {
    width: 20px;
    height: 20px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Burger menu active state */
.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

/* Hide desktop menu on mobile */
@media (max-width: 992px) {
    .header__nav, .header__contacts {
        display: none;
    }

    .burger-menu {
        display: flex;
    }
}

/* Mobile menu when active */
.header__nav.active,
.header__contacts.active {
    display: block;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.header__nav.active {
    height: calc(100vh - 140px);
    overflow-y: auto;
}

.nav__list.active {
    flex-direction: column;
    gap: 20px;
}

.header__contacts.active {
    top: auto;
    bottom: 0;
    border-top: 1px solid var(--light-gray);
}

/* Hero section */
.hero {
    padding: 60px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero__content {
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px; /* Дополнительный отступ сверху */
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    text-shadow: 0 0 5px #000;
    padding-top: 20px; /* Запасной отступ */
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    text-shadow: 0 0 5px #000;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.feature {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 8px;
    align-items: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature__icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.feature__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
    align-items: center;
    text-align: center;
    text-shadow: 0 0 5px #000;
    width: 100%;
}

@media (min-width: 550px) {
    .feature__icon {
        margin-bottom: 10px; /* Было 15px, стало 10px */
    }
}

/* Фиксим выравнивание на мобильных */
@media (max-width: 550px) {
    .features {
        grid-template-columns: 1fr;
    }

    .feature {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 15px;
    }

    .feature__icon {
        margin: 0; /* Убираем нижний отступ */
        flex-shrink: 0; /* Запрещаем сжатие иконки */
    }

    .feature__title {
        text-align: left; /* Выравниваем текст по левому краю */
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 100px 0 40px;
    }

    .hero__title {
        font-size: 2.5rem;
        padding-top: 15px;
    }
}

@media (min-width: 700px) and (max-height: 800px){
    .main_background{
        height: 100%;
    }
}
@media (max-width: 1000px) and (max-height:974px){
    .main_background{
        background-image: url("images/mainImprShortMob.webp");
    }
}

@media (max-width: 700px){
    .main_background{
        height: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
        padding-bottom: 30px;
        min-height: 70vh; /* Увеличиваем высоту на мобильных */
    }
    .main_background .container{
        height: auto;
    }

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

    .hero__title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .feature {
        padding: 12px;
    }
}

@media (max-width: 480px) and (max-height: 945px) {
    .hero {
        min-height: 80vh; /* Еще больше высота для маленьких экранов */
    }
    .main_background .container{
        height: auto;
    }

    .hero__title {
        font-size: 2.1rem;
    }

    .feature__icon {
        width: 40px;
        height: 40px;
    }

    .feature__title {
        font-size: 0.9rem;
    }
}

/* Services section */
.services {
    padding: 80px 0;
    background-color: #fff;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.service-card__desc {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.service-card__btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: rgb(229,33,33);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.service-card__btn:hover {
    background-color: rgb(181, 0, 0);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgb(229,33,33,0.3);
}

.service-card__btn:active {
    background-color: rgb(113, 2, 2);
}


/* Секция с техникой */
.equipment {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.equipment__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.equipment-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.equipment-card__img {
    width: 100%;
    padding: 25px;
    min-height: 50%;
    object-fit: cover;
}

.equipment-card__content {
    padding: 20px;
}

.equipment-card__title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.equipment-card__price {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 15px;
}

/* Projects section */
.projects {
    background-color: var(--light-color);
    padding: 80px 0;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 5px;
    background: #f5f5f5;
}

.project-card__gallery .project-card__img-link:first-child:nth-last-child(1),
.project-card__gallery .project-card__img-link:first-child:nth-last-child(1) ~ .project-card__img-link {
    grid-column: span 2;
}

.project-card__img-link {
    display: block;
    overflow: hidden;
    height: 180px;
    transition: transform 0.3s ease;
}

.project-card__img-link:hover {
    transform: scale(0.98);
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card__img-link:hover .project-card__img {
    transform: scale(1.05);
}

.project-card__caption {
    padding: 20px;
}

.project-card__title {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
    line-height: 1.4;
}

/* Стили для видео в проектах */
.project-card__video-container {
    grid-column: span 2;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    height: 0;
    overflow: hidden;
    background: #000;
}

.project-card__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Адаптация сетки для случаев с видео */
.project-card__gallery:has(.project-card__video-container) {
    grid-template-columns: repeat(2, 1fr);
}

.project-card__gallery:has(.project-card__video-container) .project-card__img-link {
    height: 120px; /* Чуть меньше высота для фото, когда есть видео */
}

/* Steps section */
.steps {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.steps__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
    margin-top: 50px;
    position: relative;
    align-items: stretch;
}

.steps__list::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
}

.step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #2c3e50;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid #f9f9f9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.step__content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    width: 100%;
    height: 100%;
}

.step__title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.step__desc {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .steps__list {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .steps__list::before {
        display: none;
    }

    .step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .step__number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .step__content {
        padding: 20px;
    }
}


/* About section */
.about {
    display: flex;
    align-items: center;
    padding: 100px 0;
    background-color: #fff;
}


.about__content {
    max-width: 600px;
}

.about__text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1;
}

.stat__label {
    font-size: 1rem;
    color: #7f8c8d;
}

.about__image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about__img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA section - светлая тема */
.cta {
    background-color: #f8f9fa;
    color: #2c3e50;
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.cta__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta__content {
    max-width: 800px;
    margin: 0 auto;
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #2c3e50;
}

.cta__text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #555;
}

/* Footer styles*/
.footer {
    background-color: #fff;
    color: #333;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer__col--logo {
    max-width: 300px;
}

.footer__logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer__text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer__title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: rgb(229,33,33);
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__list a:hover {
    color: rgb(229,33,33);
}

.contact-link {
    display: flex;
    align-items: center;
    color: #666;
    margin-bottom: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover, .contact__link:hover {
    color: rgb(229,33,33);
}

.contact-link svg {
    margin-right: 10px;
    flex-shrink: 0;
    fill: rgb(229,33,33);
}

.footer__social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}


.footer__schedule {
    margin-bottom: 30px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.footer__requisites {
    color: #666;
    line-height: 1.6;
}

.requisites-item {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
}

.requisites-item span {
    font-weight: 500;
    color: #555;
    min-width: 100px;
    display: inline-block;
}


.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}



/* Responsive styles */
@media (max-width: 768px) {
    .header__nav, .header__contacts {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .cta__buttons{
        flex-direction: column;
    }

    .steps__list {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}