body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.logo .custom-logo {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.logo .custom-logo:hover {
    opacity: 0.9;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .logo .custom-logo {
        max-height: 40px;
    }
}

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

.row {
    display: flex;
    font-size: 1.2rem;
    line-height: 1;
    align-items: center;
}

.header-left {
    display: flex;
    font-size: 1.2rem;
    line-height: 1;
    align-items: center;
}

/* Header */
.site-header {
    background: #ffffff;
    color: white;
}

.site-header .logo a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 700;
}

.main-navigation .menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
}

.main-navigation .menu a {
    color: white;
    text-decoration: none;
}

.header-text {
    color: #000;
    padding-left: 30px;
    border: 2px solid #000;
    border-width: 0 0 0 3px;
    margin-left: 30px;
    font-weight: 600;
    text-transform: uppercase;
}


/* Hero Slider */
.hero-slider {
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-slider h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-slider p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.slide {
    margin-right: auto;
    margin-left: auto;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #3498db;
    color: white;
}

.btn-secondary:hover {
    background: #2980b9;
}

.btn-outline {
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.portfolio-item h3 {
    margin: 1rem 0 0.5rem;
}

/* About */
.about-section {
    background: #f5f5f5;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero-slider h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .main-navigation .menu {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hero Slider — исправленная версия */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    border-radius: 0 0 30px 30px;
}

.slide h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slide p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Dots navigation */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 42px;
    height: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot:hover,
.dot.active {
    background: white;
}

.slider-text-bg {
    padding: 50px;
    background: #000000a2;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;

}

.header-contact a {
    text-decoration: none;
    font-weight: 600;
    font-style: 1.2em;
    padding: 8px 16px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50px;
}

.justify-content {
    justify-content: space-between;
}


/* Адаптив */
@media (max-width: 768px) {

    .slide h1 {
        font-size: 1.6rem;
    }

    .slide p {
        font-size: .8rem;
    }

    .slider-text-bg {
        padding: 30px;
        border-radius: 20px;
    }
}

/* Стили для формы в модальном окне */
#modal .wpcf7-form {
    max-width: 100%;
}

#modal .form-row {
    margin-bottom: 20px;
}

#modal .form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

#modal input[type="text"],
#modal input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#modal input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#modal input[type="submit"]:hover {
    background: #c0392b;
}

/* Сообщения CF7 */
#modal .wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
}

#modal .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#modal .wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Галерея */
.gallery-section {
    padding: 5rem 0;
    background: #f9f9f9;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.9);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    display: block;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Адаптив */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox {
        padding: 1rem;
    }

    .close {
        font-size: 36px;
    }
}

/* Галерея */
.gallery-section {
    padding: 5rem 0;
    background: #f9f9f9;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.9);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    display: block;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.text-mobile {
    display: none;
}

.header-text-mobile {
    font-size: 12px;
    color: #000;
}

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

    .lightbox {
        padding: 1rem;
    }

    .close {
        font-size: 36px;
    }

    .header-text {
        display: none;
    }

    .header-contact a {
        font-size: 12px;
    }

    .text-mobile {
        display: block;
    }

}