/*
Theme Name: Эстетика Пространства
Description: Custom theme for Эстетика Пространства
Version: 1.0
*/

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500&display=swap');

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    font-weight: 400;
}

/* Основной макет */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Боковая панель - ФИКСИРОВАННАЯ 240px ДЛЯ ВСЕХ СТРАНИЦ */
.sidebar {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    background: #000000;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: hidden !important;
    z-index: 1000;
    flex-shrink: 0;
}

/* НАЗВАНИЕ ПО ЦЕНТРУ - ИСПРАВЛЕНО: убрал text-transform: uppercase */
.sidebar__logo {
    text-align: center;
    margin-bottom: 40px;
}

.sidebar__logo span {
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    /* УБРАНО: text-transform: uppercase; */
    display: inline-block;
}

.sidebar__logo a {
    text-decoration: none;
    display: block;
}

/* Стили для первых трех букв "ПРО" - ДОБАВЛЕНО */
.uppercase-pro {
    text-transform: uppercase;
    font-weight: bold;
    display: inline;
}

/* Вертикальное меню - ВСЕ ПУНКТЫ ВИДИМЫ */
.sidebar__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

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

.sidebar__menu li {
    margin-bottom: 14px;
    display: block !important;
}

.sidebar__menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
    display: block;
    padding: 6px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

.sidebar__menu a:hover {
    color: #ffffff;
}

.sidebar__menu a.active {
    color: #ffffff;
    font-weight: 500;
}

/* Для страницы проекта тоже применяем эти стили */
body.project-page .sidebar__menu a {
    font-size: 20px !important;
    font-weight: 400 !important;
    font-family: 'Oswald', sans-serif !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

/* Контакты в сайдбаре - БЕЗ РАЗДЕЛИТЕЛЬНОЙ ПОЛОСЫ */
.sidebar__contacts {
    border-top: none !important;
    padding-top: 20px;
    text-align: center;
}

.sidebar__contacts a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    font-family: 'Oswald', sans-serif;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.sidebar__contacts p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    /* ИСПРАВЛЕНО: убрал text-transform: lowercase */
}

/* Основная область контента */
.main-content {
    flex: 1;
    background: #000000;
    margin-left: 240px;
    width: calc(100% - 240px);
}

/* Общий контейнер для контента справа */
.main-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Блок портфолио с асимметричной сеткой */
.portfolio {
    padding: 0;
    background: #000000;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 50vh 50vh;
    gap: 20px;
    grid-template-areas: 
        "left top-right"
        "left bottom-right";
    min-height: 100vh;
}

/* Левая плитка - на всю высоту сетки */
.panel--left {
    grid-area: left;
    height: 100%;
}

/* Правая верхняя плитка */
.panel--top-right {
    grid-area: top-right;
    height: 100%;
}

/* Правая нижняя плитка */
.panel--bottom-right {
    grid-area: bottom-right;
    height: 100%;
}

.panel {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

.panel__image {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    height: 100%;
    width: 100%;
}

/* НАСТРОЙКИ ДЛЯ ИЗОБРАЖЕНИЙ НА ГЛАВНОЙ СТРАНИЦЕ */
.panel__image .image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
}

/* Индивидуальные настройки позиционирования для главной страницы */
.panel--left .image-placeholder {
    object-position: center 20% !important;
}

.panel--top-right .image-placeholder {
    object-position: center 40% !important;
}

.panel--bottom-right .image-placeholder {
    object-position: center 60% !important;
}

.panel:hover .panel__image .image-placeholder {
    transform: scale(1.05);
}

/* Overlay с текстом */
.panel__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.panel:hover .panel__overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ===== МОБИЛЬНЫЕ УСТРОЙСТВА (портретная ориентация) ===== */
@media (max-width: 768px) and (orientation: portrait) {
    
    /* 1. Текст на плитках всегда виден */
    .panel__overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.7) 100%) !important;
    }
    
    /* 2. Скрываем описание проекта */
    .panel__text {
        display: none !important;
    }
    
    /* 3. Увеличиваем название для лучшей видимости */
    .panel__title {
        font-size: 20px !important;
        margin-bottom: 5px !important;
    }
    
    .panel__subtitle {
        font-size: 13px !important;
    }
    
    /* 4. Выравниваем размеры изображений */
    .panel__image .image-placeholder {
        object-position: center center !important;
    }
    
    /* 5. Задаем одинаковую высоту всем плиткам */
    .portfolio__grid,
    .portfolio__grid-second {
        grid-template-rows: repeat(3, 40vh) !important;
        gap: 15px !important;
    }
    
    .panel {
        height: auto !important;
        min-height: 40vh !important;
    }
    
    /* 6. Гарантируем заполнение изображением */
    .panel__image {
        height: 100% !important;
    }
    
    .panel__image .image-placeholder {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* ===== ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ (горизонтально) ===== */
@media (max-width: 1024px) and (orientation: landscape) and (hover: none) {
    
    /* 1. Текст всегда виден - УСИЛИВАЕМ ПРАВИЛА */
    .panel__overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%) !important;
        display: flex !important;
        visibility: visible !important;
    }
    
    /* 2. Скрываем описание */
    .panel__text {
        display: none !important;
    }
    
    /* 3. Увеличиваем название - ДЕЛАЕМ ЯРЧЕ */
    .panel__title {
        font-size: 22px !important;
        margin-bottom: 8px !important;
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    }
    
    .panel__subtitle {
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
    }
    
    /* 4. Центрируем изображения */
    .panel__image .image-placeholder {
        object-position: center center !important;
    }
    
    /* 5. ОДНА КОЛОНКА С ОТСТУПАМИ */
    .portfolio__grid,
    .portfolio__grid-second {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(3, 28vh) !important; /* Немного меньше */
        gap: 20px !important; /* ОТСТУПЫ МЕЖДУ КАРТИНКАМИ */
        margin: 15px 0 !important;
        grid-template-areas: none !important;
    }
    
    /* 6. Все плитки одинакового размера */
    .panel,
    .panel--left,
    .panel--top-right,
    .panel--bottom-right,
    .panel--left-second,
    .panel--top-right-second,
    .panel--bottom-right-second {
        height: auto !important;
        min-height: 28vh !important;
        grid-area: auto !important;
        margin: 0 !important;
    }
    
    /* 7. Контейнер для изображения */
    .panel__image {
        height: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .panel__image .image-placeholder {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* 8. ДОПОЛНИТЕЛЬНО: рамка для отладки (можно удалить после проверки) */
    /*
    .panel {
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
    .portfolio__grid {
        background: rgba(255, 0, 0, 0.1) !important;
    }
    */
}
.panel__titlecard {
    margin-bottom: 10px;
}

.panel__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 5px;
    color: #ffffff;
    text-transform: uppercase;
}

.panel__subtitle {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
}

.panel__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.panel__text p {
    margin: 0;
}

/* Герой-блок */
.hero {
    background: #000000;
    padding: 80px 0;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.hero__buttons {
    display: flex;
    gap: 20px;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.button:hover {
    background: #ffffff;
    color: #000000;
}

.button--secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.button--secondary:hover {
    background: #ffffff;
    color: #000000;
}

.hero__visual {
    position: relative;
}

.hero__image {
    background: rgba(255, 255, 255, 0.1);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
}

/* Для реальных изображений в hero */
.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Блок услуг */
.services {
    padding: 100px 0;
    background: #000000;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 36px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 60px;
    text-transform: uppercase;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.service-price {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #ffffff;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Блок "О компании" */
.about {
    padding: 100px 0;
    background: #000000;
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__content {
    max-width: 500px;
}

.about__text {
    margin-bottom: 40px;
}

.about__text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

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

.stat {
    text-align: center;
}

.stat__number {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.about__image {
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
}

/* Для реальных изображений в about */
.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Блок КОНТАКТЫ */
.contacts {
    padding: 100px 0;
    background: #000000;
}

.contacts__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacts__items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 24px;
    margin-top: 5px;
}

.contact-content h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
    text-transform: uppercase;
}

.contact-content a, 
.contact-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.contact-content a:hover {
    color: #ffffff;
}

.contacts__form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contacts__form h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 30px;
    color: #ffffff;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 15px 40px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    text-transform: uppercase;
}

.form-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Блок FAQ */
.faq {
    padding: 100px 0;
    background: #000000;
}

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

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

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #ffffff;
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    padding-bottom: 25px;
    margin: 0;
}

/* Активное состояние FAQ */
.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Футер */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-left: 240px;
    width: calc(100% - 240px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo span {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer__logo p {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
}

.footer__nav h4,
.footer__contacts h4,
.footer__social h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
}

.footer__nav ul {
    list-style: none;
}

.footer__nav li {
    margin-bottom: 10px;
}

.footer__nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__nav a:hover {
    color: #ffffff;
}

.footer__contacts a,
.footer__contacts p {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
}

.footer__contacts a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ffffff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer__bottom p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* УБИРАЕМ АНИМАЦИЮ ЗМЕЙКИ ДЛЯ КНОПКИ */
.animated-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-bottom: 25px;
    overflow: hidden;
}

/* УДАЛЯЕМ ВСЮ АНИМАЦИЮ ПСЕВДОЭЛЕМЕНТА */
.animated-button::before {
    display: none; /* Полностью убираем анимацию */
}

.animated-button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    border-color: #ffffff; /* Добавляем изменение цвета границы при наведении */
}

.animated-button span {
    position: relative;
    z-index: 1;
}

/* ИКОНКИ СОЦИАЛЬНЫХ СЕТЕЙ - ЦЕНТРИРОВАННЫЕ */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255,255,255,0.2);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto !important;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Контакты в сайдбаре - БЕЗ РАЗДЕЛИТЕЛЬНОЙ ПОЛОСЫ */
.sidebar__contacts-info {
    border-top: none !important;
    padding-top: 0;
    text-align: center;
}

.sidebar__contacts-info a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    font-family: 'Oswald', sans-serif;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.sidebar__contacts-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    /* ИСПРАВЛЕНО: убрал text-transform: lowercase */
}

/* СТИЛИ ДЛЯ СТРАНИЦЫ ПРОЕКТА */

/* Герой проекта */
.project-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, #000000 100%);
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #333;
}

.project-info {
    position: absolute;
    right: 80px;
    bottom: 80px;
    z-index: 2;
    text-align: right;
    max-width: 500px;
}

.project-caption {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: lowercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.g-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.project-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    text-align: right;
}

.project-meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-meta-item {
    text-align: right;
}

.project-meta-value {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #ffffff !important;
}

.project-meta-label {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: lowercase;
    color: rgba(255,255,255,0.7) !important;
}

/* Галерея */
.project-gallery {
    width: 100%;
}

.gallery-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #333;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-family: 'Montserrat', sans-serif;
}

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

/* Детали проекта */
.project-details {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.details-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.details-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.details-list {
    list-style: none;
    padding: 0;
}

.details-list li {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.details-list li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.7);
}

.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.spec-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.spec-value {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

/* Команда */
.project-team {
    padding: 80px 40px;
    background: rgba(255,255,255,0.05);
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.team-member {
    text-align: center;
}

.team-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 8px;
}

.team-role {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: lowercase;
    color: rgba(255,255,255,0.7);
}

/* CTA секция */
.project-cta {
    padding: 120px 40px;
    text-align: center;
    background: rgba(255,255,255,0.05);
}

.cta-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cta-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ */
body.contacts-page {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Убираем футер */
body.contacts-page .footer {
    display: none !important;
}

/* ФИКСИРОВАННОЕ МЕНЮ С БЕЛЫМ ФОНОМ */
body.contacts-page .sidebar {
    background: #ffffff !important;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    z-index: 1000;
}

body.contacts-page .sidebar__logo span,
body.contacts-page .sidebar__menu a,
body.contacts-page .sidebar__contacts a,
body.contacts-page .sidebar__contacts p {
    color: #000000 !important;
}

body.contacts-page .sidebar__menu a:hover {
    color: #000000 !important;
    opacity: 0.7;
}

/* Основной контент с отступом */
body.contacts-page .main-content {
    background: #ffffff !important;
    width: calc(100vw - 240px) !important;
    margin-left: 240px !important;
    position: relative;
    z-index: 2;
    height: 100vh;
    overflow: hidden;
}

/* КОНТЕЙНЕР КОНТАКТОВ */
.contacts-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
}

/* ЛЕВАЯ КОЛОНКА - КОНТАКТНАЯ ИНФОРМАЦИЯ (30%) */
.contacts-info {
    width: 30%;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    position: relative;
    z-index: 3;
    height: 100vh;
    overflow-y: hidden;
}

/* ЗАГОЛОВОК "КОНТАКТЫ" - УВЕЛИЧЕН НА 50% И ЧЕРНО-БЕЛЫЙ */
.contacts-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 24px !important;
    text-transform: lowercase;
    margin-bottom: 60px;
    color: #000000 !important;
    letter-spacing: 0.5px;
    position: absolute;
    top: 80px; /* ДОСТАТОЧНЫЙ ОТСТУП СВЕРХУ */
    left: 40px;
    right: 40px;
}

/* ФОРМА В СТИЛЕ NEAPOL - ИСПРАВЛЕННАЯ */
.contacts-form {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px; /* ДОБАВЛЕН ОТСТУП СВЕРХУ */
}

.form-line {
    position: relative;
    min-height: 85px;
    display: block;
}

.form-block {
    position: relative;
    width: 100%;
    padding-top: 25px;
}

.contact-value {
    width: 100%;
    padding: 12px 0 15px 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px !important;
    font-weight: 300;
    color: #000000;
    line-height: 1.3;
    display: block;
    min-height: auto;
}

.contact-value a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 1.3;
    display: inline-block;
    font-size: 28px !important;
}

.contact-value a:hover {
    opacity: 0.7;
}

/* ЛЕЙБЛЫ - УВЕЛИЧЕНЫ НА 50% И ЧЕРНО-БЕЛЫЕ */
.form-label {
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 18px !important;
    text-transform: lowercase;
    color: #000000 !important;
    pointer-events: none;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

/* УБИРАЕМ СОЦИАЛЬНЫЕ СЕТИ И ВРЕМЯ РАБОТЫ */
.contacts-social {
    display: none !important;
}

.social-links-minimal {
    display: none !important;
}

/* ПРАВАЯ КОЛОНКА - КАРТА (70%) */
.contacts-map {
    width: 70%;
    position: relative;
    background: #f5f5f5;
    height: 100vh;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Черно-белый фильтр для карты */
.map-container iframe,
.map-container div {
    filter: grayscale(100%) contrast(110%);
}

/* ЭЛЕМЕНТЫ УПРАВЛЕНИЯ КАРТОЙ */
.map-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.map-zoom {
    width: 44px;
    height: 44px;
    background: rgba(7, 5, 0, 0.3);
    border: 1px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.map-zoom:hover {
    background: rgba(7, 5, 0, 0.5);
}

.map-zoom svg {
    width: 14px;
    height: 14px;
}

/* СКРОЛЛ ВНИЗ */
.contacts-scroll {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10;
}

.scroll-down {
    width: 18px;
    height: 18px;
    color: #000000;
}

/* Исправление для иконок соцсетей в сайдбаре */
body.contacts-page .social-icon svg path,
body.contacts-page .social-icon svg {
    stroke: #000000;
    fill: #000000;
}

/* Кнопка в сайдбаре */
body.contacts-page .animated-button {
    border: 1px solid #000000;
    color: #000000;
}

body.contacts-page .animated-button:hover {
    background: #000000;
    color: #ffffff;
}

/* СТИЛИ ДЛЯ СТРАНИЦЫ ПРОЕКТОВ */
body.projects-page {
    background: #000000 !important;
    color: #ffffff !important;
}

.projects-main {
    padding: 80px 0;
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
}

.projects-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.projects-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    overflow: hidden;
    height: 500px;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card__image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

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

.project-card:hover .project-card__image img {
    transform: scale(1.05);
}

.project-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 30px;
    opacity: 1;
    transition: all 0.3s ease;
}

.project-card:hover .project-card__overlay {
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.9) 100%);
}

.project-card__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.project-card__subtitle {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    text-transform: lowercase;
}

.project-card__description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.project-card__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
}

.project-meta-value {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
}

.project-meta-label {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
}

/* Фильтры */
.projects-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Кнопка загрузки еще */
.load-more {
    text-align: center;
    margin-top: 40px;
}

/* ОБЩАЯ АДАПТИВНОСТЬ */
@media (max-width: 968px) {
    .portfolio__grid {
        gap: 15px;
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    /* АДАПТИВНОСТЬ ДЛЯ КОНТАКТОВ */
    body.contacts-page .main-content {
        width: 100vw !important;
        margin-left: 0 !important;
    }
    
    .contacts-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .contacts-info {
        width: 100%;
        padding: 120px 40px 60px; /* УВЕЛИЧЕН ВЕРХНИЙ PADDING */
        height: auto;
        min-height: 50vh;
        justify-content: flex-start;
    }
    
    .contacts-title {
        position: static;
        margin-bottom: 40px;
        font-size: 20px !important;
    }
    
    .contacts-map {
        width: 100%;
        height: 50vh;
    }
    
    .contacts-form {
        gap: 40px;
        margin-top: 0;
    }
    
    .form-line {
        min-height: 75px;
    }
    
    .contact-value {
        font-size: 24px !important;
    }
    
    .contact-value a {
        font-size: 24px !important;
    }
    
    .form-label {
        font-size: 16px !important;
    }
    
    /* АДАПТИВНОСТЬ ДЛЯ ПРОЕКТОВ */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        height: 400px;
    }
    
    .projects-title {
        font-size: 36px;
    }
    
    .projects-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: relative;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto;
        margin-left: 0;
        padding: 20px;
        overflow-y: visible;
    }
    
    .sidebar__nav {
        justify-content: flex-start;
    }
    
    .sidebar__menu {
        margin: 20px 0;
    }
    
    .main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .portfolio__grid {
        grid-template-columns: 1fr;
        grid-template-rows: 40vh 25vh 25vh;
        grid-template-areas: 
            "left"
            "top-right"
            "bottom-right";
        gap: 15px;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .about__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-content-container {
        padding: 0 20px;
    }
    
    .footer {
        margin-left: 0;
        width: 100%;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .about__stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .project-hero {
        height: 80vh;
    }
    
    .project-info {
        padding: 0 20px 40px 20px;
        right: 40px;
        bottom: 40px;
        left: 40px;
        text-align: left;
        max-width: none;
    }
    
    .project-meta {
        justify-content: flex-start;
    }
    
    .project-meta-item {
        text-align: left;
    }
    
    .project-description {
        text-align: left;
    }
    
    .g-title {
        font-size: 36px;
    }
    
    .gallery-section {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 15px;
    }
    
    .gallery-item {
        height: 50vh;
    }
    
    .project-details,
    .project-team,
    .project-cta {
        padding: 60px 20px;
    }
    
    /* АДАПТИВНОСТЬ ДЛЯ КОНТАКТОВ */
    .contacts-info {
        padding: 100px 20px 40px;
    }
    
    .contacts-title {
        font-size: 18px !important;
        margin-bottom: 30px;
    }
    
    .contact-value {
        font-size: 20px !important;
    }
    
    .contact-value a {
        font-size: 20px !important;
    }
    
    .contacts-form {
        gap: 35px;
    }
    
    .form-line {
        min-height: 65px;
    }
    
    .map-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .contacts-scroll {
        bottom: 20px;
        left: 20px;
    }
    
    .form-label {
        font-size: 14px !important;
    }
    
    /* АДАПТИВНОСТЬ ДЛЯ ПРОЕКТОВ */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        height: 350px;
    }
    
    .project-card__overlay {
        padding: 20px;
    }
    
    .project-card__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 32px;
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .button {
        width: 100%;
        justify-content: center;
    }
    
    .contacts__form {
        padding: 20px;
    }
    
    .portfolio__grid {
        grid-template-rows: 35vh 20vh 20vh;
    }
    
    .project-info {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }
    
    .g-title {
        font-size: 28px;
    }
    
    .project-meta {
        gap: 20px;
        flex-direction: column;
    }
    
    .gallery-item {
        height: 40vh;
    }
    
    /* АДАПТИВНОСТЬ ДЛЯ КОНТАКТОВ */
    .contacts-info {
        padding: 80px 15px 30px;
    }
    
    .contact-value {
        font-size: 18px !important;
    }
    
    .contact-value a {
        font-size: 18px !important;
    }
    
    .contacts-form {
        gap: 30px;
    }
    
    .form-line {
        min-height: 60px;
    }
    
    .form-block {
        padding-top: 20px;
    }
    
    .contacts-title {
        font-size: 16px !important;
    }
    
    .form-label {
        font-size: 12px !important;
    }
}

/* ===== ПОДДЕРЖКА БОЛЬШИХ МОНИТОРОВ (27+ ДЮЙМОВ) ===== */

@media (min-width: 1920px) {
    /* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ */
    
    /* Увеличиваем максимальную ширину контента */
    .main-content-container {
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 60px;
    }
    
    /* Увеличиваем отступы для больших экранов */
    .hero, .about, .services, .contacts, .faq {
        padding: 120px 0;
    }
    
    /* Увеличиваем размеры шрифтов */
    .hero__title {
        font-size: 64px;
    }
    
    .hero__subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 48px;
        margin-bottom: 80px;
    }
    
    /* Увеличиваем карточки услуг */
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
    }
    
    .service-card {
        padding: 50px 40px;
    }
    
    .service-card h3 {
        font-size: 24px;
    }
    
    .service-card p {
        font-size: 16px;
    }
    
    /* Увеличиваем статистику */
    .stat__number {
        font-size: 42px;
    }
    
    .stat__text {
        font-size: 16px;
    }
    
    /* Увеличиваем FAQ */
    .faq-question h3 {
        font-size: 20px;
    }
    
    .faq-answer p {
        font-size: 18px;
    }
    
    /* Увеличиваем кнопки */
    .button {
        padding: 18px 45px;
        font-size: 16px;
    }
    
    /* Увеличиваем портфолио на главной */
    .portfolio__grid,
    .portfolio__grid-second {
        gap: 30px;
    }
    
    .panel__title {
        font-size: 24px;
    }
    
    .panel__subtitle {
        font-size: 14px;
    }
    
    .panel__text {
        font-size: 14px;
    }
    
    .view-all-button {
        padding: 18px 40px;
        font-size: 16px;
    }
    
    .hero__container {
        gap: 80px;
    }
    
    .hero__image {
        height: 500px;
    }
    
    .about__container {
        gap: 80px;
    }
    
    .about__image {
        height: 600px;
    }
    
    .contacts__container {
        gap: 80px;
    }
    
    /* Улучшение читаемости на больших экранов */
    body {
        font-size: 18px;
    }
    
    p, li, a {
        font-size: 18px;
    }
    
    /* Улучшение line-height для больших экранов */
    .hero__subtitle,
    .about__text p,
    .contact-content p,
    .faq-answer p {
        line-height: 1.8;
    }
    
    /* СТРАНИЦА ПРОЕКТОВ */
    .projects-main {
        padding: 120px 0;
    }
    
    .projects-title {
        font-size: 56px;
        margin-bottom: 30px;
    }
    
    .projects-subtitle {
        font-size: 20px;
        max-width: 800px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .project-card {
        height: 600px;
    }
    
    .project-card__overlay {
        padding: 40px;
    }
    
    .project-card__title {
        font-size: 28px;
    }
    
    .project-card__subtitle {
        font-size: 16px;
    }
    
    .project-card__description {
        font-size: 16px;
    }
    
    .project-meta-value {
        font-size: 18px;
    }
    
    .project-meta-label {
        font-size: 14px;
    }
    
    .filter-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .load-more .button {
        padding: 18px 45px;
        font-size: 16px;
    }
    
    /* СТРАНИЦА ПРОЕКТА */
    .project-info {
        right: 100px;
        bottom: 100px;
        max-width: 600px;
    }
    
    .g-title {
        font-size: 56px;
    }
    
    .project-description {
        font-size: 18px;
        margin-bottom: 50px;
    }
    
    .project-meta-value {
        font-size: 28px;
    }
    
    .project-meta-label {
        font-size: 14px;
    }
    
    .gallery-section {
        gap: 30px;
        margin-bottom: 30px;
        padding: 0 40px;
    }
    
    .gallery-item {
        height: 85vh;
    }
    
    .project-details {
        padding: 150px 60px;
    }
    
    .details-grid {
        gap: 100px;
    }
    
    .details-title {
        font-size: 36px;
    }
    
    .details-text {
        font-size: 18px;
    }
    
    .details-list li {
        font-size: 18px;
    }
    
    .spec-item {
        padding: 25px 0;
    }
    
    .spec-label {
        font-size: 16px;
    }
    
    .spec-value {
        font-size: 18px;
    }
    
    .project-team {
        padding: 100px 60px;
    }
    
    .team-grid {
        gap: 60px;
    }
    
    .team-name {
        font-size: 20px;
    }
    
    .team-role {
        font-size: 14px;
    }
    
    .project-cta {
        padding: 150px 60px;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .cta-text {
        font-size: 20px;
    }
    
    .project-cta .button {
        padding: 18px 45px;
        font-size: 16px;
    }
    
    /* СТРАНИЦА КОНТАКТОВ */
    .contacts-info {
        padding: 0 60px;
    }
    
    .contacts-title {
        font-size: 28px !important;
        top: 100px;
        left: 60px;
        right: 60px;
    }
    
    .contacts-form {
        gap: 60px;
        margin-top: 140px;
    }
    
    .contact-value {
        font-size: 24px !important;
    }
    
    .contact-value a {
        font-size: 24px !important;
    }
    
    .form-label {
        font-size: 16px !important;
    }
    
    .map-controls {
        bottom: 60px;
        right: 60px;
    }
    
    .map-zoom {
        width: 50px;
        height: 50px;
    }
    
    .map-zoom svg {
        width: 16px;
        height: 16px;
    }
}

@media (min-width: 2560px) {
    /* ДЛЯ 2K МОНИТОРОВ */
    
    .main-content-container {
        max-width: 2000px;
        padding: 0 80px;
    }
    
    .hero__title {
        font-size: 72px;
    }
    
    .hero__subtitle {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 56px;
    }
    
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 50px;
    }
    
    .portfolio__grid,
    .portfolio__grid-second {
        gap: 40px;
    }
    
    .panel__overlay {
        padding: 40px;
    }
    
    .panel__title {
        font-size: 28px;
    }
    
    .panel__text {
        font-size: 16px;
    }
    
    .hero__title {
        font-size: 72px;
    }
    
    /* СТРАНИЦА ПРОЕКТОВ */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
        gap: 50px;
    }
    
    .project-card {
        height: 650px;
    }
    
    /* СТРАНИЦА ПРОЕКТА */
    .project-info {
        right: 120px;
        bottom: 120px;
        max-width: 700px;
    }
    
    .g-title {
        font-size: 64px;
    }
    
    .gallery-section {
        padding: 0 60px;
    }
    
    .gallery-item {
        height: 90vh;
    }
    
    /* СТРАНИЦА КОНТАКТОВ */
    .contacts-info {
        padding: 0 80px;
    }
    
    .contacts-title {
        font-size: 32px !important;
        top: 120px;
        left: 80px;
        right: 80px;
    }
    
    .contact-value {
        font-size: 28px !important;
    }
    
    .contact-value a {
        font-size: 28px !important;
    }
    
    .form-label {
        font-size: 18px !important;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Убрать outline для кнопок при фокусе */
button:focus,
a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ГАРАНТИЯ ОТОБРАЖЕНИЯ ВСЕХ ПУНКТОВ МЕНЮ */
.sidebar__menu li:first-child {
    display: block !important;
}

.sidebar__nav ul li:first-child,
.sidebar__nav .sidebar__menu li:first-child {
    display: block !important;
}

body.project-page .project-gallery {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.project-page .gallery-section {
    width: 100vw !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Оптимизация загрузки изображений */
.image-placeholder,
.hero-image,
.gallery-image {
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

/* Улучшение производительности анимаций */
.panel,
.service-card {
    will-change: transform;
    backface-visibility: hidden;
}

/* Базовая стилизация для всех изображений */
img {
    max-width: 100%;
    height: auto;
}

/* Стили для мобильного меню */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar__menu a.active {
        color: #ffffff !important;
        font-weight: 500;
    }
        /* Исправление для страницы Проектов на мобильных */
    body.projects-page .sidebar__logo span {
        color: #ffffff !important;
    }
    body.projects-page .sidebar__menu a {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    body.projects-page .sidebar__menu a:hover,
    body.projects-page .sidebar__menu a.active {
        color: #ffffff !important;
    }
}

/* Оптимизация производительности */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    /* Ваши стили уже оптимизированы для темной темы */
}

/* Улучшение фокуса для доступности */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Стили для ошибок формы */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444 !important;
}

/* Дополнительные стили для 6 плиток на главной */
.portfolio-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-section {
    margin-bottom: 10px;
}

/* Вторая сетка с такой же структурой */
.portfolio__grid-second {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 50vh 50vh;
    gap: 20px;
    grid-template-areas: 
        "left-second top-right-second"
        "left-second bottom-right-second";
    min-height: 100vh;
}

/* Стили для второй сетки */
.panel--left-second {
    grid-area: left-second;
    height: 100%;
}

.panel--top-right-second {
    grid-area: top-right-second;
    height: 100%;
}

.panel--bottom-right-second {
    grid-area: bottom-right-second;
    height: 100%;
}

/* Кнопка "Смотреть все проекты" */
.view-all-projects {
    text-align: center;
    margin: 15px 0;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.view-all-button::after {
    content: "››";
    font-size: 16px;
    transition: transform 0.3s ease;
}

.view-all-button:hover::after {
    transform: translateX(5px);
}

/* Обновленные стили для футера */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 30px 0 20px;
    margin-left: 240px;
    width: calc(100% - 240px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer__content {
    display: none; /* Скрываем основное содержимое футера */
}

.footer__bottom {
    border-top: none; /* Убираем верхнюю границу */
    padding-top: 0; /* Убираем отступ сверху */
    text-align: center; /* Выравниваем по центру */
}

.footer__bottom p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .footer {
        margin-left: 0;
        width: 100%;
        padding: 20px 0 15px;
    }
    
    .footer__container {
        padding: 0 20px;
    }
}


/* Полноширинное изображение без затемнения и текста */
.gallery-fullwidth-simple {
    position: relative;
    width: 100vw;
    height: 75vh;
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-fullwidth-image-simple {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

/* Убираем затемнение для простого варианта */
.gallery-fullwidth-simple::before {
    display: none;
}

/* Полноширинное изображение на 85% высоты страницы */
.gallery-fullheight {
    position: relative;
    width: 100vw;
    height: 86vh; /* 85% высоты viewport */
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-fullheight-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

/* Убираем все эффекты для полноразмерного изображения */
.gallery-fullheight::before {
    display: none;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ МОБИЛЬНОЙ АДАПТИВНОСТИ ===== */

@media (max-width: 768px) {
    /* ОБЩИЕ ИСПРАВЛЕНИЯ ДЛЯ ВСЕХ СТРАНИЦ */
    
    /* Меню на главной странице - горизонтальное */
    body:not(.project-page) .sidebar {
        position: relative !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
        padding: 20px !important;
    }
    
    body:not(.project-page) .sidebar__menu {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px 20px !important;
        margin: 20px 0 !important;
        padding: 0 !important;
    }
    
    body:not(.project-page) .sidebar__menu li {
        display: inline-block !important;
        margin: 0 !important;
    }
    
    body:not(.project-page) .sidebar__menu a {
        font-size: 14px !important;
        padding: 5px 0 !important;
    }
    
    body:not(.project-page) .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Футер на всех страницах */
    .footer {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px 0 15px !important;
    }
    
    /* Специфические стили для страницы проектов на мобильных */
    body.projects-page .sidebar__menu a {
        color: #000000 !important;
    }
    
    body.projects-page .sidebar__logo span {
        color: #000000 !important;
    }
    
    body.contacts-page .sidebar__menu a {
        color: #000000 !important;
    }
    
    body.contacts-page .sidebar__logo span {
        color: #000000 !important;
    }
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНЫХ (max-width: 768px) ===== */

@media (max-width: 768px) {
    
    /* Убираем фиксированный сайдбар и делаем его горизонтальным */
    .sidebar {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 15px 20px !important;
        transform: translateX(0) !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Скрываем логотип на мобильных */
    .sidebar__logo {
        display: none !important;
    }
    
    /* Горизонтальное меню */
    .sidebar__nav {
        flex-direction: row !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    .sidebar__menu {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .sidebar__menu li {
        margin-bottom: 0 !important;
    }
    
    .sidebar__menu a {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
    
    /* Скрываем контакты в сайдбаре на мобильных */
    .sidebar__contacts {
        display: none !important;
    }
    
    /* Убираем отступ слева от основного контента */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Убираем отступ слева от футера */
    .footer {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Адаптируем контейнер контента */
    .main-content-container {
        padding: 0 15px !important;
    }
    
    /* Блок ПРОЕКТЫ правильно начинается с верхней части */
    .portfolio {
        margin-top: 0 !important;
        padding-top: 40px !important;
    }
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦ С БЕЛЫМ ФОНОМ ===== */

/* Для всех страниц с белым фоном (добавь класс white-bg к body) */
body.white-bg {
    background: #ffffff !important;
    color: #000000 !important;
}

body.white-bg .main-content {
    background: #ffffff !important;
}

/* БЕЛОЕ МЕНЮ */
body.white-bg .sidebar {
    background: #ffffff !important;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.white-bg .sidebar__logo span {
    color: #000000 !important;
}

body.white-bg .sidebar__menu a {
    color: #000000 !important;
}

body.white-bg .sidebar__menu a:hover {
    color: #000000 !important;
    opacity: 0.7;
}

body.white-bg .sidebar__menu a.active {
    color: #000000 !important;
    font-weight: 500;
}

body.white-bg .sidebar__contacts a,
body.white-bg .sidebar__contacts p {
    color: #000000 !important;
}

body.white-bg .sidebar__contacts p {
    color: rgba(0, 0, 0, 0.7) !important;
}

/* МОБИЛЬНЫЙ ВИД НА БЕЛОМ ФОНЕ */
@media (max-width: 768px) {
    body.white-bg .sidebar {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-right: none !important;
    }
    
    body.white-bg .sidebar__menu a {
        color: #000000 !important;
    }

}

/* ===== ИКОНКИ СОЦСЕТЕЙ НА БЕЛОМ ФОНЕ ===== */

body.white-bg .social-icon {
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
    color: #000000 !important;
}

body.white-bg .social-icon svg {
    stroke: #000000 !important;
    fill: #000000 !important;
}

body.white-bg .social-icon:hover {
    border-color: #000000 !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

/* ===== CTA СЕКЦИЯ НА БЕЛОМ ФОНЕ ===== */

body.white-bg .project-cta {
    background: #ffffff !important;
    color: #000000 !important;
}

body.white-bg .project-cta .cta-title {
    color: #000000 !important;
}

body.white-bg .project-cta .cta-text {
    color: #000000 !important;
}

body.white-bg .project-cta .button {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
}

body.white-bg .project-cta .button:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* ===== ИСПРАВЛЕНИЕ ПЕРЕПОЛНЕНИЯ КОНТЕНТА ===== */

.main-content {
    margin-left: 240px;
    width: calc(100% - 240px);
    overflow-x: hidden !important;
}

.main-content-container {
    max-width: 100%;
    overflow-x: hidden !important;
    padding: 0 40px;
}

/* На белом фоне */
body.white-bg .main-content {
    margin-left: 0 !important;
    width: 100% !important;
}

body.white-bg .main-content-container {
    max-width: 100%;
    padding: 0 40px;
}

/* Картинки не должны выходить за края */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Контейнеры изображений */
.gallery-section,
.project-hero,
section {
    width: 100%;
    overflow-x: hidden;
}
/* ===== УБИРАЕМ ПОЛОСКУ МЕЖДУ МЕНЮ И КОНТЕНТОМ ===== */

.sidebar {
    border-right: none !important;
}

body.white-bg .sidebar {
    border-right: none !important;
}

/* НА МОБИЛЬНЫХ УСТРОЙСТВАХ */
@media (max-width: 768px) {
    .panel__overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.7) 100%) !important;
    }
    
    .panel__text {
        display: none !important;
    }
    
    .panel__title {
        font-size: 20px !important;
        margin-bottom: 5px !important;
    }
    
    .panel__subtitle {
        font-size: 13px !important;
    }
    
    /* ВЫРАВНИВАЕМ РАЗМЕРЫ ИЗОБРАЖЕНИЙ НА МОБИЛЬНЫХ */
    
    /* 1. Отключаем индивидуальные настройки позиционирования */
    .panel--left .image-placeholder,
    .panel--top-right .image-placeholder,
    .panel--bottom-right .image-placeholder,
    .panel--left-second .image-placeholder,
    .panel--top-right-second .image-placeholder,
    .panel--bottom-right-second .image-placeholder {
        object-position: center center !important;
    }
    
    /* 2. Задаем одинаковую высоту всем плиткам */
    .panel {
        height: 40vh !important; /* 40% от высоты экрана */
        min-height: 250px !important; /* Минимальная высота */
    }
    
    /* 3. Исправляем сетку для одинаковых пропорций */
    .portfolio__grid,
    .portfolio__grid-second {
        grid-template-rows: 40vh 40vh 40vh !important;
        gap: 15px !important;
    }
    
    /* 4. Гарантируем, что изображение заполняет весь блок */
    .panel__image .image-placeholder {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* ===== ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ (горизонтально) - ОКОНЧАТЕЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 1024px) and (orientation: landscape) and (hover: none) {
    
    /* СБРОС ВСЕХ ОТСТУПОВ */
    .portfolio__grid *,
    .portfolio__grid-second * {
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 1. СЕТКА С ОТСТУПАМИ */
    .portfolio__grid,
    .portfolio__grid-second {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(3, 28vh) !important;
        gap: 20px !important; /* ОТСТУПЫ МЕЖДУ КАРТИНКАМИ */
        margin: 20px 0 !important;
        padding: 0 15px !important; /* Отступы слева/справа от края экрана */
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* 2. ПЛИТКИ */
    .panel {
        width: 100% !important;
        min-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* 3. КОНТЕЙНЕРЫ */
    .portfolio-sections,
    .portfolio-section {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* 4. ТЕКСТ ВСЕГДА ВИДЕН */
    .panel__overlay {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%) !important;
        display: flex !important;
        visibility: visible !important;
    }
    
    /* 5. СКРЫВАЕМ ОПИСАНИЕ */
    .panel__text {
        display: none !important;
    }
    
    /* 6. УВЕЛИЧИВАЕМ НАЗВАНИЕ */
    .panel__title {
        font-size: 10px !important;
        margin-bottom: 8px !important;
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    }
    
    .panel__subtitle {
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
    }
    
    /* 7. ЦЕНТРИРУЕМ ИЗОБРАЖЕНИЯ */
    .panel__image .image-placeholder {
        object-position: center center !important;
    }
    
    /* 8. ГАРАНТИРУЕМ ЗАПОЛНЕНИЕ ИЗОБРАЖЕНИЕМ */
    .panel__image {
        height: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .panel__image .image-placeholder {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}
