/* Общие стили */
:root {
    --primary-color: #e67e22;
    --text-color: #4a4a4a;
    --background-color: #f5f5f5;
    --heading-font-weight: 700;
    --default-font-family: 'Montserrat', sans-serif;
    --container-padding: 1rem;
    --swiper-navigation-size: 30px; /* Размер стрелок Swiper */
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
    font-family: var(--default-font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: var(--container-padding);
    max-width: 1200px;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: var(--heading-font-weight);
    color: var(--primary-color);
    line-height: 1.3;
    -webkit-text-stroke: 0.5px #333;
    text-stroke: 0.5px #333;
    letter-spacing: 0.02em;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-weight: 600;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: none;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.02em;
}

.button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Шапка */
.header {
    background-color: #fff;
    color: #333;
    padding: 0.5rem 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo__image {
    width: 50px;
    margin-right: 0.5rem;
    border-radius: 0;
    box-shadow: none;
}

.logo__title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
    font-weight: var(--heading-font-weight);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Бургер-меню */
.burger-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    display: block;
}

.burger-menu:focus {
    outline: none;
}

/* Навигация */
.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    text-align: center;
    z-index: 99;
}

.main-nav.show {
    display: block;
}

.main-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-nav__item {
    margin: 0.5rem 0;
}

.main-nav__link {
    color: #333;
    font-weight: var(--heading-font-weight);
    font-size: 1rem;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

.main-nav__link:hover {
    color: var(--primary-color);
}

/* Герой */
.hero {
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .parallax {
        background-attachment: fixed;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    font-family: 'Roboto', sans-serif;
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Lato', sans-serif;
    -webkit-text-stroke: 0.5px #000;
    text-stroke: 0.5px #000;
    word-break: break-word;
}

/* О нас */
.about {
    padding: 2rem 0;
    background-color: #fff;
}

.about ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.about ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.about ul li::before {
    content: '\f00c';
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Услуги */
.services {
    padding: 2rem 0;
    background-color: var(--background-color);
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-item {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.15);
}

.service-item__image {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.service-item__image:hover {
    transform: scale(1.03);
}

.service-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 0.9rem;
    word-break: break-word;
}

/* Проекты */
.projects {
    padding: 2rem 0;
    background-color: #fff;
}

.projects h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Стили для слайдера */
.project-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.project-swiper {
    width: 100%;
    height: auto;
}

.project-slide {
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.project-slide h3 {
    margin-bottom: 0.5rem;
}

.project-slide p {
    font-size: 0.9rem;
    word-break: break-word;
    margin-bottom: 1rem;
}

.project-slide__image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 80%;
    margin: 0 auto;
}

.project-slide__image {
    width: calc(50% - 0.25rem);
    max-width: none;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.project-slide__image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Стили для кнопок навигации */
.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    z-index: 10;
    cursor: pointer;
    /* Убираем текст стрелок */
}

.swiper-button-prev:after,
.swiper-button-next:after {
    content: ''; /* Убираем стандартные стрелки */
}

.swiper-button-prev {
    left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M22 42l-20-20 20-20-1-22 21 22-21 22z' fill='%23e67e22'/%3E%3C/svg%3E"); /* SVG стрелки влево */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.swiper-button-next {
    right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M5 2l20 20-20 20 1-22-21-22z' fill='%23e67e22'/%3E%3C/svg%3E"); /* SVG стрелки вправо */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Медиа-запрос для мобильных устройств (одно изображение в ряд) */
@media (max-width: 600px) {
    .project-slide__image {
        width: 100%;
    }

    .project-slide__image-container {
        width: 100%;
    }
}

/* Lightbox стили - Общие */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 1rem;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1.4rem;
    border-radius: 5px;
    z-index: 1001;
}

/* Медиа-запрос для маленьких экранов */
@media (max-width: 768px) {
    .lightbox-close {
        padding: 10px 14px;
        font-size: 1.2rem;
    }
}

/* Swiper styles */
.project-swiper {
    width: 100%;
    height: auto;
}

/* Стили для десктопной версии (убираем бургер-меню и правильная навигация) */
@media (min-width: 900px) {
    .burger-menu {
        display: none;
    }

    .main-nav {
        display: flex;
        position: static;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        align-items: center;
    }

    .main-nav__list {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-left: auto;
    }

    .main-nav__item {
        margin: 0 1rem;
    }

    .main-nav__link {
        padding: 0;
    }

    .header__container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Подвал */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(230, 126, 34, 0), var(--primary-color));
}

.footer .container {
    position: relative;
    z-index: 2;
    padding: 0.5rem;
}

.footer p {
    margin: 0.2rem 0;
    font-size: 0.8rem;
    word-break: break-word;
}

/* Стили для секции "Контакты" */
.contacts {
    padding: 3rem 0;
    background-color: var(--background-color);
    text-align: center;
}

.contacts h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-info {
    margin: 0 auto;
    max-width: 900px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.contact-info h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    word-break: break-word;
}

.contact-info a {
    color: var(--primary-color);
    word-break: break-word;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #c0392b;
}

.contact-info iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/*Относительно чего выравниваем?*/
[class*="swiper-button-"] {
    width: var(--swiper-navigation-size);
    height: var(--swiper-navigation-size);
    position: absolute;
    top: 50%;
}

/*Стрелки располагаем по бокам*/
.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

/*Добавим стиль для слайдов с одной картинкой*/
.project-slide__image-container:has(> img:only-child) {
  justify-content: center; /*Растягиваем изображение на всю ширину*/
}

/*Добавим стиль для слайдов с одной картинкой, чтобы она растягивалась*/
.project-slide__image-container:has(> img:only-child) .project-slide__image {
    width: 100%; /*Растягиваем изображение на всю ширину*/
    max-width: 100%; /*Убираем максимальную ширину*/
}