:root {
    --dark-bg: #222;
    --light-shadow: #2d2d2d;
    --dark-shadow: #1a1a1a;
    --text-color: #e0e0e0;
    /* --accent-color: #5b86e5; */
    /* --accent-color: #9f5023; */
    --accent-color: #b7402e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

h4 {
    font-weight: 400;
}

p, ul {
    margin: 20px 0;
    font-size: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    width: 100%;
    position: relative;
}

.header-image {
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mainImage {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100vw;
    max-width: 100%;
    height: 500px;
    overflow: hidden;
}

.mainImage img {
    width: 100%;
    position: relative;
    top: -230px;
}

.header-text {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    background: rgba(34, 34, 34, 0.4);
    border-radius: 20px;
    box-shadow: 
        8px 8px 16px var(--dark-shadow),
        -8px -8px 16px var(--light-shadow);
    backdrop-filter: blur(7px);
}

.header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--text-color);
    line-height: 3rem;
}

.header-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 100;
}

.inlineContacts {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 20px;
}

.inlineContacts a {
    color: var(--text-color);
}

.about-section ul {
    list-style-type: none; 
    padding: 0;
    padding-left: 20px;
}

.about-section ul li {
    position: relative; 
    padding-left: 20px; 
    margin-bottom: 5px;
}

.about-section ul li::before {
    content: '*';
    position: absolute; 
    left: 0; 
    color: var(--accent-color);
    font-size: 1.6rem;
    line-height: 1.9rem;
}

/* Neumorphic Elements */
.neumorphic-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--dark-bg);
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 
        5px 5px 10px var(--dark-shadow),
        -5px -5px 10px var(--light-shadow);
    transition: all 0.3s ease;
}

.neumorphic-button:hover {
    box-shadow: 
        inset 3px 3px 6px var(--dark-shadow),
        inset -3px -3px 6px var(--light-shadow);
    transform: translateY(2px);
    text-decoration: none;
}

.neumorphic-card {
    background-color: var(--dark-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        10px 10px 20px var(--dark-shadow),
        -10px -10px 20px var(--light-shadow);
}

/* Section Styles */
section {
    padding: 40px 0;
}

.about-section {
    text-align: left;
}

.about-text {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 35px;
    border-radius: 15px;
    background-color: var(--dark-bg);
    box-shadow: 
        inset 5px 5px 10px var(--dark-shadow),
        inset -5px -5px 10px var(--light-shadow);
}

/* Tech Section */
section.tech {
    padding: 20px 0 0;
}

.techBlocks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    align-items: start;
    justify-items: center;
    gap: 20px;
}

.techBlock {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    border-radius: 10px;
    box-shadow: inset 2px 2px 5px var(--dark-shadow), inset -2px -2px 5px var(--light-shadow);
    padding: 15px;
}

.techBlocks svg {
    width: 57px;
    height: 57px;
}

.techBlocks svg g path {
    fill: #fff;
    stroke: none;
}

.techBlockTitle {
    margin-top: 25px;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.techBlockText {
    text-align: center;
}

/* Технологический процесс */
.detailBlock {
    border-radius: 10px;
    box-shadow: inset 2px 2px 5px var(--dark-shadow), inset -2px -2px 5px var(--light-shadow);
    padding: 15px;
}

.detailBlock img {
    cursor: pointer;
}

.nav-button {
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
    padding: 0;
    background-color: var(--light-shadow);
    color: var(--accent-color);
}

.nav-button:hover {
    background-color: var(--light-shadow);
    color: var(--accent-color);
}

.prev-button {
    margin-right: 15px;
}

.next-button {
    margin-left: 15px;
}

button#prevBtn {
    position: absolute;
    left: -3.5rem;
    top: 45%;
}

button#nextBtn {
    position: absolute;
    right: -3.5rem;
    top: 45%;
}
/* EOF Технологический процесс */

/* Business Project */
.businessProject .neumorphic-card {
    background: var(--accent-color);
    box-shadow: 10px 10px 20px var(--dark-shadow), inset 0px 0px 9px var(--light-shadow);
}

.businessProject a {
    color: var(--text-color);
    text-decoration: underline;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}

.businessProject img {
    filter: invert(.88);
    height: 40px;
    width: auto;
}

.businessProject h2 {
    margin-bottom: 6px;
    display: block;
}
/* EOF Business Project */

/* Galleries */
span.titleSuffix {
    color: var(--accent-color);
    font-weight: 400;
    /* font-size: 2.4rem; */
    /* background: var(--accent-color); */
    /* padding: 1px 15px 4px; */
    /* color: var(--text-color); */
}

.galleryContainer {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 20px;
}

.galleryProDetails, .galleryLiveDetails {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    flex-grow: 1;
}

.galleryProDetails .detailBlock, .galleryLiveDetails .detailBlock {
    min-width: 90%;
    max-width: 90%;
    margin-right: 20px;
    box-shadow: none;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    max-height: 600px;
}

.galleryProDetails .detailBlock img, .galleryLiveDetails .detailBlock img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.galleryProDetails .detailBlock:last-child, .galleryLiveDetails .detailBlock:last-child {
    margin-right: 0;
}

.galleryNavButton {
    background-color: var(--light-shadow);
    color: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.galleryNavButton.prev-button {
    left: -25px;
}

.galleryNavButton.next-button {
    right: -25px;
}

.galleryNavButton:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.galleryProDetails::-webkit-scrollbar, .galleryLiveDetails::-webkit-scrollbar {
    display: none;
}

.galleryProDetails, .galleryLiveDetails {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* EOF GalleryPro Section Styles */

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

ul {
    list-style-type: none;
}

.contact-info {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--dark-bg);
    box-shadow: 
        inset 2px 2px 5px var(--dark-shadow),
        inset -2px -2px 5px var(--light-shadow);
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

.detailBlock span {
    font-size: 3rem;
}

/* Scope & Technology */
.technologicalDetails, .scopeDetails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.scopeDetails {
    grid-template-columns: 1fr 1fr 1fr;
}

.technologicalDetails.drying {
    grid-template-columns: 1fr 1fr 1fr;
}

.scopeDetails img {
    filter: invert(1);
    cursor: auto;
}

/* Contact */
.contact-info-item {
    width: 50%;
    padding-left: 30px;
}

.contact-info-item.contact-map {
    width: 50%;
    padding-left: 0;
}

.contact-info-item.contact-map iframe {
    border-radius: 10px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    background-color: var(--dark-bg);
    box-shadow: 
        0 -5px 10px var(--dark-shadow);
}

/* Modal windows */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    transition: all 0.3s ease;
}

#modalContact .modal-content {
    max-width: 500px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90vw;
    height: 90vh;
    background: var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 0 32px 0px #000;
}

.modal-content {
    transition: opacity 0.3s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

form#contactForm {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

label {
    align-self: flex-start;
}

input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    box-shadow: inset 2px 1px 5px rgba(0, 0, 0, .7);
}

.modal-content button.neumorphic-button {
    box-shadow: 3px 3px 10px #525050, -3px -3px 5px #959393;
}

label ~ input {
    margin-top: -20px;
}

input:focus-visible {
    border: none;
    outline: none;
}

.privacy {
    max-width: 255px;
    font-size: .9rem;
}

.privacy a {
    color: var(--text-color);
    text-decoration: underline;
}

/* Стили для навигации в модальном окне галереи */
.modal-navigation {
    position: absolute;
    bottom: 20px; /* Отступ снизу */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px; /* Расстояние между кнопками */
}

.modal-nav-button {
    background-color: var(--light-shadow);
    color: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1010; /* Выше чем modal-content */
}

.modal-nav-button:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.modal-nav-button:disabled {
    opacity: 0.5;
    cursor: default;
    background-color: var(--dark-shadow); /* Цвет для неактивной кнопки */
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 1400px) {
    .mainImage img {
        top: 0;
    }
}

@media (max-width: 1200px) {
    .businessProject h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 968px) {
    .header-text {
        width: 80%;
    }
    .header-text h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
        line-height: 2rem;
    }
    .header-text p {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    .techBlocks {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .techBlockTitle {
        margin-top: 25px;
    }
    .technologicalDetails, .scopeDetails {
        grid-template-columns: 1fr 1fr;
    }
    .technologicalDetails.drying {
        grid-template-columns: 1fr 1fr;
    }
    .businessProject h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-image {
        height: 400px;
    }

    .mainImage img {
        top: 0;
        min-height: 400px;
        width: 100%;
        object-fit: cover;
    }

    .header-text {
        background: rgba(34, 34, 34, .1);
        backdrop-filter: blur(5px);
        width: 90%;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .header-text p {
        font-size: 1rem;
    }
    
    .container {
        width: 100%;
    }

    .neumorphic-card {
        padding: 20px;
        padding-bottom: 70px;
    }
    button#prevBtn, #galleryPrevBtn, #galleryLivePrevBtn {
        top: auto;
        bottom: -55px;
        left: calc(50% - 55px);
    }
    .galleryContainer #galleryPrevBtn, .galleryContainer #galleryLivePrevBtn {
        bottom: -80px;
    }
    button#nextBtn, #galleryNextBtn, #galleryLiveNextBtn {
        top: auto;
        bottom: -55px;
        right: calc(50% - 55px);
    }
    .galleryContainer #galleryNextBtn, .galleryContainer #galleryLiveNextBtn {
        bottom: -80px;
    }
    .contact-info-item {
        padding-left: 0;
    }
    .contact-info {
        flex-direction: column;
    }
    .contact-info-item, .contact-info-item.contact-map {
        width: 100%;
    }
    .technologicalDetails, .scopeDetails {
        grid-template-columns: 1fr;
    }
    .businessProject .neumorphic-card {
        padding-bottom: inherit;
    }
}

@media (max-width: 580px) {
    .techBlocks, .technologicalDetails.drying {
        grid-template-columns: 1fr;
    }
}