/* ===== Базовые настройки ===== */
:root {
    --bg-light: #f8faff;
    /* светло-серый с голубизной */
    --white: #ffffff;
    --sky-blue: #a8d8ff;
    /* небесно-голубой */
    --gold: #D4AF37;
    --orange-outline: #CC5500;
    --text-dark: #2c3e50;
    --text-light: #5a6b7a;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Шапка ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--sky-blue);
}

.logo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.logo-link {
    display: flex;
    text-decoration: none;
    align-items: flex-start;
    gap: 10px;
}

.logo-icon {
    height: 70px;
    width: 60px;
    background-color: var(--sky-blue);
    /* временный фон, позже заменится на картинку */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.logo-text {
    font-family: sans-serif;
    font-weight: 600;
    font-size: 3rem;
    align-self: flex-end;
    margin-top: auto;
    letter-spacing: 1px;
    color: var(--gold);
    text-shadow: 2px 2px 0 var(--orange-outline), -1px -1px 0 var(--orange-outline);

}

/* Меню */
.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.menu li a:hover,
.menu li a.active {
    border-bottom-color: var(--sky-blue);
    color: var(--sky-blue);
}

/* ===== Основной контент ===== */
main {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    margin-top: 120px;
    padding: 0 2rem;
    width: 100%;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-left: 6px solid var(--sky-blue);
    padding-left: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

p,
li {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Страница "О компании" */
.features {
    list-style: none;
    margin: 1rem 0;
}

.features li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
}

.features li::before {
    content: "✔";
    color: var(--sky-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.lead {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* ===== Галерея ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
}

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

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

/* Лайтбокс */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-description {
    background: var(--white);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-top: 1rem;
    max-width: 600px;
    text-align: center;
    font-size: 1.1rem;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: var(--sky-blue);
}

/* ===== Контакты ===== */
.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--bg-light);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.social-link:hover {
    background: var(--sky-blue);
    color: var(--white);
    border-color: var(--white);
}

.social-link img {
    width: 24px;
    height: 24px;
}



.map {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-note {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-light);
}

/* ===== Подвал ===== */
footer {
    background-color: var(--white);
    padding: 0.8rem;
    text-align: center;
    color: var(--text-light);
    border-top: 2px solid var(--sky-blue);
    margin-top: 2rem;
}

.services-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.services-list_num {
    /*list-style: none;*/
    margin: 1.5rem 0;
    padding: 0;
}

.services-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Блок важной информации */
.important-info {
    background-color: var(--white);
    border-left: 6px solid var(--sky-blue);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.important-info p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.important-info p:last-child {
    margin-bottom: 0;
}

.important-info strong {
    color: var(--text-dark);
    font-size: 1.2rem;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .menu {
        flex-wrap: wrap;
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .lightbox-description {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

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

.project-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Модальное окно (на весь экран) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    width: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--sky-blue);
}

/* Слайдер */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.slider-btn:hover {
    background: var(--white);
    opacity: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider-dots {
    text-align: center;
    margin: 15px 0 5px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--sky-blue);
}

.project-description {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: left;
}

#modal-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

#modal-desc {
    font-size: 1rem;
    color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        padding: 15px;
        width: 95%;
    }

    .slider-container {
        height: 300px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    #modal-title {
        font-size: 1.4rem;
    }
}