/* ============================================
   STYLES.CSS - Все стили сайта
   ============================================
   Примечание: CSS переменные и цветовая палитра находятся в color.css
   ============================================ */

/* ============================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 106, 3, 0.6) rgba(0, 0, 0, 0.3);
}

html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

html::-webkit-scrollbar-thumb {
    background: rgba(245, 106, 3, 0.6);
    border-radius: 5px;
    transition: background 0.3s ease;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 106, 3, 0.8);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #f8f8f7;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/fon_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   УТИЛИТНЫЕ КЛАССЫ
   ============================================ */

.d_flex { 
    display: flex; 
    box-sizing: border-box; /* Учитываем padding и border в ширине */
}
.flex_1-1-auto { flex: 1 1 auto; }
.flex_100 { flex: 100%; }
.t_flex_100 { width: 100%; }
.t_flex_50 { width: 50%; }
.w_100 { width: 100%; }
.p_relative { position: relative; }
.p { padding: 1rem; }
.sp-t { padding-top: 1rem; }
.m { margin: 1rem; }
.m-b { margin-bottom: 1rem; }
.m-t { margin-top: 1rem; }
.m-r { margin-right: 1rem; }
.m-l { margin-left: 1rem; }
.p-t { padding-top: 1rem; }
.p-b { padding-bottom: 1rem; }
.p-l { padding-left: 1rem; }
.p-r { padding-right: 1rem; }
.j-c_center { justify-content: center; }
.j-c_space-between { justify-content: space-between; }
.j-c_flex-start { justify-content: flex-start; }
.j-c_flex-end { justify-content: flex-end; }
.a-i_center { align-items: center; }
.a-i_flex-start { align-items: flex-start; }
.a-i_flex-end { align-items: flex-end; }
.flex_33 { width: 33.333%; }
.flex_50 { 
    width: 50%; 
    box-sizing: border-box; /* Учитываем padding в ширине */
    min-width: 0; /* Позволяем сжиматься при необходимости */
    overflow-wrap: break-word; /* Переносим длинные слова */
}
.flex_50-p { width: 50%; padding: 1rem; }
.f-w_nowrap { 
    flex-wrap: nowrap; 
    min-width: 0; /* Позволяем сжиматься при необходимости */
    overflow: hidden; /* Скрываем переполнение */
}
.f-w_wrap { flex-wrap: wrap; }
.t-a_center { text-align: center; }
.t-a_left { text-align: left; }
.t-a_right { text-align: right; }
.t_t-a_center { text-align: center; }
.f-s_90 { font-size: 0.9rem; }
.f-s_100 { font-size: 1rem; }
.f-s_120 { font-size: 1.2rem; }
.f-s_140 { font-size: 1.4rem; }
.f-s_150 { font-size: 1.5rem; }
.f-s_170 { font-size: 1.7rem; }
.f-s_180 { font-size: 1.8rem; }
.f-s_200 { font-size: 2rem; }
.f-w_400 { font-weight: 400; }
.f-w_500 { font-weight: 500; }
.f-w_700 { font-weight: 700; }

.text-black { color: #f8f8f7; }
.text-white { color: #f8f8f7; }
.white { background-color: transparent; }
.bp { background-color: #f56a03; }
.bm { background-color: #424242; }
.b { border: 1px solid; }
.b-b { border-bottom: 1px solid; }
.sp { cursor: pointer; }

/* Адаптивная видимость */
.hide_800 { display: block; }
.show_800 { display: none; }
.hide_900 { display: block; }
.show_900 { display: none; }
.hide-t { display: inline; }
.show-t { display: none; }

/* Все медиа-запросы перенесены в responsive.css */

/* ============================================
   СТРУКТУРА СТРАНИЦЫ
   ============================================ */

.sd {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sd__wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sd__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    background-color: transparent;
}

.sd__list {
    width: 100%;
}

.sd__main {
    width: 100%;
}

.fullpage-container {
    width: 100%;
}

.internal__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    overflow-x: hidden; /* Убираем горизонтальный скролл */
    box-sizing: border-box; /* Учитываем padding в ширине */
    flex-direction: column;
}

/* ============================================
   ШАПКА САЙТА (HEADER)
   ============================================ */

/* --- Базовые стили контейнера шапки --- */
header {
    position: relative;
    width: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    margin: 0;
    padding: 0;
}

/* Контейнер содержимого шапки */
.header_b-c {
    background-color: transparent;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
}

/* Общие стили для flex-контейнеров в шапке */
.header_b-c .d_flex {
    align-items: center;
    color: #f8f8f7;
    width: 100%;
    justify-content: space-between;
    position: relative;
}

/* Ссылка "наверх" (логотип) */
.header_b-c .scroll-to-top {
    display: inline-flex;  /* inline-flex вместо flex - не растягивается */
    align-items: center;
    width: fit-content;     /* Ширина строго по содержимому */
    background: transparent; /* Убираем фон */
    border: none; /* Убираем границы */
}

/* Обертка для логотипа (предотвращает растягивание) */
.header-logo-wrapper {
    flex: 0 0 auto;  /* Размер строго по содержимому */
    padding: 0;
    background: transparent; /* Убираем фон */
}


.header-grid {
    display: grid;
    grid-template-columns: auto 2fr auto;  /* логотип | текст | контакты */
    align-items: center;
    gap: 2rem;  /* Расстояние между колонками */
}

/* Левая колонка: логотип */
.header-left {
    display: block;
    justify-self: start;  /* Выравнивание: start | center | end */
    width: fit-content;   /* Ширина строго по содержимому */
    max-width: 100%;      /* Не выходить за границы колонки */
    background: transparent; /* Убираем фон */
}

/* Центральная колонка: название и подзаголовок */
.header-center {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;  /* Расстояние между заголовком и подзаголовком */
    justify-self: start;  /* Выравнивание: start | center | end */
}

/* Название в центральной колонке (основной заголовок) */
/* Размер шрифта управляется только через CSS - измените значение font-size здесь */
.header-center .header-title {
    font-size: 1.8rem;  /* Измените размер шрифта здесь (например: 1rem, 1.2rem, 1.5rem) */
    font-weight: 700;   /* Измените толщину шрифта здесь (400, 500, 700) */
}

/* Подзаголовок в центральной колонке */
/* Размер шрифта управляется только через CSS - измените значение font-size здесь */
.header-center .header-subtitle {
    font-size: 1.2rem;     /* Измените размер шрифта здесь (например: 0.9rem, 1rem, 1.1rem) */
    font-weight: 500;    /* Измените толщину шрифта здесь (400, 500, 700) */
}

/* Правая колонка: контакты */
.header-right {
    display: flex;
    justify-content: flex-end;  /* Выравнивание содержимого: flex-start | center | flex-end */
    align-items: center;
    transform: translateX(-2rem);  /* Сдвиг влево: измените значение по необходимости (-1rem, -5rem, -12rem и т.д.) */
}

/* --- Логотип --- */
.header-logo {
    max-height: 60px;      /* Максимальная высота логотипа */
    max-width: 100%;       /* Не выходить за границы контейнера */
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;   /* Сохранять пропорции */
    background: transparent; /* Убираем фон */
    border: none; /* Убираем границы */
}

/* --- Контакты --- */
/* Общие стили для блока контактов */
.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;  /* Выравнивание по правому краю */
    gap: 0.5rem;
}

/* Элемент контакта (телефон, email) */
.header-contact-item {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8f8f7;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.header-contact-item:hover {
    opacity: 0.7;
}

/* Иконка в элементе контакта */
.header-contact-item .sm-r {
    margin-right: 0.5rem;
}

/* ============================================
   ПОДВАЛ САЙТА
   ============================================ */

footer {
    position: relative;
    width: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4) ;
    backdrop-filter: blur(5px);
    display: block;
    visibility: visible;
    opacity: 1;
    margin: 0;
    padding: 0;
}

.footer_b-c {
    background-color: transparent ;
    padding: 1.5rem 0;
    color: #f8f8f7;
    position: relative;
    z-index: 1;
}

.footer_b-c .d_flex {
    align-items: center;
    color: #f8f8f7;
}

.footer_b-c a {
    color: #f8f8f7;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer_b-c a:hover {
    opacity: 0.7;
}

/* ============================================
   ШРИФТЫ
   ============================================ */

.quarry {
    font-family: 'Montserrat', sans-serif;
    color: #f8f8f7;
}

/* Заголовки секций - размер и вес шрифта */
.quarry.f-w_700 {
    font-weight: 700 ; /* Вес шрифта (толщина) - жирный */
    line-height: 1.3;
}

/* Размер шрифта задается через класс f-s_180 в HTML */
.quarry.f-w_700.f-s_180,
.section-shadow .quarry.f-w_700.f-s_180,
.section-spacing-bottom .quarry.f-w_700.f-s_180,
.p .quarry.f-w_700.f-s_180,
.section-shadow .p .quarry.f-w_700.f-s_180 {
    font-size: 1.8rem ;
    font-weight: 700 ;
    line-height: 1.3;
}



/* Базовые стили для desktop/ноутбука */
.hero-overlay {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Убираем затемняющий фон */
    padding: 0;
    margin: 0;
}

.hero-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    padding: 80px 24px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1 1 50%;
    gap: 2rem;
}

/* Заголовок hero - адаптивный размер шрифта */
.hero-title {
    font-size: clamp(64px, 4vw, 86px);
    line-height: 1.8;
    margin: 0 0 24px 0;
    padding: 0;
    font-weight: 700;
    color: #fff;
}

/* Текст под заголовком */
.hero-bottom-text {
    font-size: 30px;
    font-weight: 300;
    line-height: 1.4;
    text-align: left;
    color: #fff;
    margin: 0;
    padding: 0;
}

.hero-form {
    flex: 0 0 400px;
    width: 400px;
    max-width: 100%;
    background: transparent; /* Убираем фон формы */
    border-radius: 8px;
    padding: 2rem;
    box-sizing: border-box;
}

.hero-form .form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-form input:not([type="submit"]),
.hero-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(248, 248, 247, 0.3);
    border-radius: 4px;
    background-color: rgba(248, 248, 247, 0.1);
    color: #fff;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

.hero-form input:not([type="submit"]):focus,
.hero-form textarea:focus {
    outline: none;
    border-color: #f56a03;
    background-color: rgba(248, 248, 247, 0.15);
}

.hero-form textarea {
    resize: none; /* Запрещаем растягивание окна комментариев */
    min-height: 100px;
    max-height: 150px; /* Ограничиваем максимальную высоту */
    overflow-y: auto; /* Добавляем прокрутку при превышении высоты */
}

.hero-form .form-submit {
    width: 100%;
}

.btn-raised,
.hero-form input[type="submit"],
.hero-form .btn-raised,
.hero-form a.btn-raised {
    width: 100%;
    padding: 14px 24px;
    background-color: #f56a03 !important; /* Оранжевый цвет кнопки - принудительно */
    color: #fff !important;
    border: 2px solid transparent !important; /* Прозрачная граница для плавного перехода */
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Плавный переход для фона и границы */
    display: block;
    text-decoration: none !important;
    text-align: center;
}

.btn-raised:hover,
.hero-form input[type="submit"]:hover,
.hero-form .btn-raised:hover,
.hero-form a.btn-raised:hover {
    background-color: #f56a03 !important; /* Оставляем оранжевый фон */
    border-color: #ff8c42 !important; /* Более светлая оранжевая обводка по периметру при наведении */
    box-shadow: 0 0 0 2px rgba(255, 140, 66, 0.4); /* Дополнительное свечение вокруг кнопки */
    color: #fff !important;
}

/* ============================================
   ВКЛАДКИ - УНИФИЦИРОВАННАЯ СТРУКТУРА
   ============================================ */

/* Компенсируем padding родителя для выравнивания вкладок */
.tabs {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}


/* Навигация вкладок - горизонтальная на ПК */
.tabs__nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    overflow-x: hidden; /* Убираем горизонтальный скролл на ПК */
    padding: 1rem 0;
    margin: 0;
}

.tabs__nav-item {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: rgba(248, 248, 247, 0.7);
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 0 0 auto;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    height: auto;
    line-height: 1.3;
}

.tabs__nav-item:hover {
    color: #f8f8f7;
    border-bottom-color: rgba(245, 106, 3, 0.5);
}

.tabs__nav-item.active {
    color: #f8f8f7;
    border-bottom-color: #f56a03;
    font-weight: 700;
}

/* Контент вкладок */
.tabs__content {
    width: 100%;
}

.tabs__content-item {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.tabs__content-item.active {
    display: block;
}

.tabs__content-inner {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.tabs__content-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f8f8f7;
}

.tabs__content-text {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    color: #f8f8f7;
}

.tab-opacity {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-opacity.active {
    opacity: 1;
}


/* ============================================
   ОТСТУПЫ СЕКЦИЙ
   ============================================ */

.section-spacing-top {
    padding-top: 15%;
}

.section-spacing-top-small {
    padding-top: 2rem;
}

.fon_2 .section-spacing-top-small {
    padding-top: 0 ;
}

.section-spacing-bottom {
    padding-bottom: 2%;
    padding-top: 1rem;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
}

.section-shadow {
    box-shadow: none;
    padding-bottom: 2%;
    padding-top: 0px;
    display: flex;
    align-items: flex-start;
    overflow-x: hidden; /* Убираем горизонтальный скролл */
    width: 100%; /* Ограничиваем ширину */
    max-width: 100%; /* Не выходим за границы */
    box-sizing: border-box; /* Учитываем padding в ширине */
}

/* ============================================
   АККОРДЕОН
   ============================================ */

.accordion-hidden {
    display: none;
}

.accordion-toggle {
    color: rgba(248, 248, 247, 0.8) ;
    font-size: 1.2rem ;
    font-weight: 500 ;
    transition: all 0.3s ease;
    padding: 1rem 1.5rem ;
    border-radius: 4px;
}

.accordion-toggle:hover {
    color: #f8f8f7 ;
    background-color: rgba(248, 248, 247, 0.1);
}

.accordion-toggle + .tabs__content-item {
    background-color: rgba(248, 248, 247, 0.1) ;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.grey-200 {
    background-color: transparent ;
    color: #f8f8f7 ;
    border-radius: 0;
    padding: 2rem ;
}

.grey-200 .f-s_180,
.grey-200 .f-s_150,
.grey-200 .f-s_120 {
    color: #f8f8f7 ;
    line-height: 1.6;
}

.grey-200 .f-s_180,
.grey-200 .f-s_150 {
    font-weight: 700 ;
    margin-bottom: 1rem;
}

.grey-200 .f-s_120,
.grey-200 .f-s_150.f-w_400 {
    font-weight: 400 ;
    line-height: 1.8;
}

/* ============================================
   ИКОНКИ ХАРАКТЕРИСТИК
   ============================================ */

.feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    margin-right: 1rem;
    background-color: rgba(245, 106, 3, 0.2);
    border-radius: 50%;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: #f56a03;
}

/* ============================================
   ТАБЛИЦЫ
   ============================================ */
/* Стили таблицы перенесены в отдельный файл css/table.css */

/* ============================================
   ГАЛЕРЕЯ АРЕНДАТОРОВ
   ============================================ */

/* Галерея арендаторов - десктопная версия */
.renters-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem; /* Фиксированные равномерные отступы между логотипами */
    align-items: stretch; /* Все ячейки растягиваются на одинаковую высоту */
    justify-items: stretch; /* Все ячейки растягиваются на одинаковую ширину */
    padding: 1rem 0;
    margin: 2rem 0;
}

/* Явно указываем стили для десктопа (больше 1023px) - переопределяем стили планшетов */
@media (min-width: 1024px) {
    .renters-gallery {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 2rem !important;
        align-items: stretch !important;
        justify-items: stretch !important;
        padding: 1rem 0 !important;
        margin: 2rem 0 !important;
    }
}

/* Отключаем grid для мобильных устройств - два ряда */
@media (max-width: 767px) {
    .renters-gallery {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
    }
    
    .renters-gallery .renter-logo {
        width: calc(50% - 0.25rem) !important;
        flex: 0 0 calc(50% - 0.25rem) !important;
        max-width: none !important;
    }
}

.renter-logo {
    width: 100%; /* Занимает всю ширину ячейки grid */
    height: 100%; /* Занимает всю высоту ячейки grid */
    min-height: 120px; /* Минимальная высота для симметрии */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* Убираем padding для равномерных отступов */
    margin: 0; /* Убираем все отступы */
    background-color: transparent; /* Убираем прозрачный фон */
    border-radius: 4px;
    box-sizing: border-box;
}

.renter-img {
    max-width: 90%; /* Оставляем небольшой отступ от краев */
    max-height: 90%; /* Оставляем небольшой отступ от краев */
    width: auto;
    height: auto;
    object-fit: contain; /* Сохраняем пропорции, вписываем в контейнер */
    object-position: center; /* Центрируем изображение */
    display: block;
    margin: 0; /* Убираем все отступы */
}

.renter-logo-bottom-1 { grid-column: 1; }
.renter-logo-bottom-2 { grid-column: 2; }
.renter-logo-bottom-3 { grid-column: 3; }
.renter-logo-bottom-4 { grid-column: 4; }
.renter-logo-bottom-5 { grid-column: 5; }


/* ============================================
   ССЫЛКИ В ТЕКСТЕ
   ============================================ */

.f-w_400 a[href="#google-map-section"] {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    vertical-align: middle;
}

.f-w_400 a[href="#google-map-section"]:hover {
    opacity: 0.7;
}

.f-w_400 a[href="#google-map-section"] svg {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #f56a03;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: #e05a00;
}

.price-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f56a03;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.price-button:hover {
    background-color: #e05a00;
}

/* ============================================
   ГАЛЕРЕЯ ИЗОБРАЖЕНИЙ
   ============================================ */

.background-slider {
    position: relative;
}

.warehouse-gallery {
    width: 100%;
    position: relative;
    overflow: hidden; /* Ограничиваем отображение точек только внутри галереи */
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-image.active {
    opacity: 1;
}

/* Точки галереи - только внутри контейнера warehouse-gallery */
.warehouse-gallery .gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative; /* Ограничиваем позиционирование */
    z-index: 1; /* Обеспечиваем правильный порядок наложения */
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(248, 248, 247, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-dot.active,
.gallery-dot:hover {
    background-color: #f56a03;
}
