/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #F5F5DC;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}
/* Логотип */
h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin: 0.5rem 0;
}

/* Навигация */
nav a {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

/* Текстовые блоки */
.text-block {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    min-width: 180px; /* Гарантирует, что элементы поместятся */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 768px) {
  .container {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    padding: 0 8px;
    box-sizing: border-box;
  }
}



/* Шапка */
/* Шапка сайта (общие стили) */
.site-header {
    flex-wrap: nowrap;
    justify-content: space-between;
    background-color: #000;
    padding: 12px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    width: 100%;
}

/* Логотип кнопка Pastila */
.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 1px;
  color: #F5F5DC;
  border: 3px solid #F5F5DC;
  border-radius: 40px;
  padding: 8px 28px; /* ← ключевой параметр */
  background: transparent;
  transition: box-shadow 0.2s;
  box-shadow: 0 4px 18px 0 rgba(0,0,0,0.07);
  display: inline-block;
  line-height: 1.2;
}


/* Основное меню (десктоп) */
.main-menu {
    display: flex;
    margin-top: 0;
}

.main-menu ul {
    display: flex;
    gap: clamp(10px, 2vw, 20px); /* Адаптивный промежуток */
    list-style: none;
    padding-right: 15px;
}

.main-menu a {
    color: #F5F5DC;
    font-size: clamp(14px, 3vw, 16px); /* Гибкий размер шрифта */
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.main-menu a:hover {
    opacity: 0.8;
}

/* Бургер-кнопка (скрыта на десктопе) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    margin-right: 15px;
}

.menu-toggle-line {
    width: 100%;
    height: 4px;
    background-color: #F5F5DC;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Мобильное меню */
@media (max-width: 768px) {
    .site-header {
        padding: 5px 0;
        align-items: center;
        width: 100vw; /* Всегда 100% ширины экрана */
        min-width: 0;
        left: 0;
        right: 0;
    }
    
    .logo {
        order: 1;
        margin: 0;
        padding: 5px 14px;
        font-size: 17px;
    }

     .menu-toggle {
        display: flex;
        margin-left: auto; /* Оставь только это! */
        margin-right: 0;   /* Лишнее убери или обнули */
        order: 2;
    }
    
     .menu-toggle-line {
        height: 4px; /* увеличить толщину */
        border-radius: 2px;
    }
    
     .main-menu {
        order: 3;
        overflow: hidden;
        transition: all 0.4s ease;
        z-index: 1000;
        position: fixed;
        top: 0px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.85); /* Прозрачность 85% */;
        backdrop-filter: blur(5px); /* Эффект размытия */
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
    }
    
    .main-menu.active {
        height: 100vh;
        padding-top: 30px;
        right: 0;
    }
     
    .main-menu ul {
        flex-direction: column;
        gap: 25px;
        padding: 0;
        width: 100%;
        text-align: center;
  }
   
    .main-menu a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
    }
    
    /* Анимация бургера */
    .menu-toggle.active .menu-toggle-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .menu-toggle.active .menu-toggle-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .menu-toggle-line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}


/* Контент */
.content {
    padding: 0px 20px 20px;
    text-align: center;
}

.centered-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.centered-section p {
    font-size: 18px;
    color: #ccc;
}

/* Обновленные стили для слайдера */
.slider-section {
    height: 500px;
    overflow: hidden;
    position: relative;
    top: 0px;
    margin-top: 0px; /* Убираем верхний отступ */
    border-radius: 30px;
}

.slider-container {
    width: 100%;
    height: 100%;
    border-radius: 30px; /* Скругление внутреннего контейнера */
    overflow: hidden; /* Обрезаем содержимое по скруглённым краям */
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
    top: 0px;
    border-radius: 30px; /* Дублируем для надёжности */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    border-radius: 30px; /* Скругление для каждого слайда */
}

.slide.active {
    opacity: 1;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .slider-section {
        height: 200px;
        margin: 0; /* Меньшие отступы на мобильных */
        border-radius: 16px; /* Чуть меньше скругление на мобильных */
    }
    
    .slider-container,
    .slider,
    .slide {
        border-radius: 16px; /* Синхронизируем скругление */
    }
 
    .slider-section {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .slide.error {
         background: #111;
         display: flex;
         align-items: center;
         justify-content: center;
    }
    .slide.error::after {
        content: "Изображение не загружено";
        color: #F5F5DC;
        font-size: 16px;
    }
}

/* Стили для новой компактной секции */
.compact-black-section {
    height: 60px;
    background-color: #000;
    border: 0px solid #000;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-black-section::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 0px solid #000;
    pointer-events: none;
}

.compact-content {
    padding: 15px;
    color: #F5F5DC;
    text-align: center;
    width: 100%;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .compact-content {
        height: 15px;
    }
    .compact-black-section {
        height: 15px;
        background-color: #000;
        border: 0px solid #000;
        margin: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .compact-black-section::before {
        content: "";
        position: absolute;
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        border: 0px solid #000;
        pointer-events: none;
    }

     .compact-content {
    padding: 15px;
    color: #F5F5DC;
    text-align: center;
    width: 100%;
    }
}

/* Стили для новой текстовой секции */
.brands-section {
    background-color: #000;
    color: #F5F5DC;
    padding: 10px 10px;
    text-align: center;
}

.brands-content {
    max-width: 900px;
    margin: 0 auto;
}

.brands-line1,
.brands-line2,
.brands-line3 {
    font-family: 'Montserrat', sans-serif; /* Принудительно применяем шрифт */
    font-size: 36px; /* Новый размер */
    font-weight: normal; /* Убираем жирность */
    line-height: 1.8;
    margin: 0;
    letter-spacing: 12px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .brands-line1,
    .brands-line2,
    .brands-line3 {
        font-size: 16px; /* Уменьшаем */
        letter-spacing: 2px; /* Меньше интервал */
        line-height: 1.4; /* Уменьшаем межстрочный интервал */
    }
    
    .brands-section {
        padding: 10px 10px;
        opacity: 0;
        font-size: 16px;
    }
     .brands-content {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Стили для пустой секции */

.black-bordered-section.with-extra-space {
    height: 150px; /* Или нужное вам значение */
}
.black-bordered-section {
    height: 130px;
    background-color: #000;
    border: 0px solid #000; /* Чёрная граница */
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


.bordered-content {
    padding: 20px;
    color: #F5F5DC; /* Цвет текста как в основном дизайне */
    text-align: center;
    max-width: 100%;
    position: relative;
    vertical-align: high;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .black-bordered-section {
        height: 20px;
        margin: 20px 0;
        font-size: 14px;
    }
    .black-bordered-section.with-extra-space {
    height: 20px; /* Или нужное вам значение */
    }
    .bordered-content {
        max-width: 90%;
    }
}

.logo-section {
    background-color: #000;
    padding: 20px 0;
    margin: 20px auto; /* Центрируем секцию */
    max-width: 100%; /* Гибкая ширина */
    text-align: center; /* Выравниваем лого и текст по центру */
}
  
}

.logo-section::before {
    content: "";
    position: relative;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 0px solid #000;
    pointer-events: none;
} 

.logo-container {
    max-width: 900px; /* Фиксируем максимальную ширину как на референсе */
    margin: 0 auto; /* Центрируем */
    padding: 10px 0; /* Отступы сверху/снизу */
}

.site-logo {
    width: 900px; /* Фиксированная ширина как на референсе */
    height: auto; /* Сохраняем пропорции */
    display: block;
    margin: 0 auto 0px; /* Отступ снизу для текста */
    border: none;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .site-logo {
        width: 100%; /* Гибкий размер */
        max-width: 400px; /* Максимальная ширина */
    }
    
}
    
}
/* Секция с кнопкой-логотипом Telegram */
.telegram-section {
    background-color: #000;
    padding: 40px 0;
    text-align: center;
    margin: 30px auto;
    border-radius: 30px;
}

.telegram-logo-link {
    display: inline-block;
    border: 2px solid #F5F5DC;
    border-radius: 30px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.telegram-logo-link:hover {
    background-color: rgba(245, 245, 220, 0.1);
    transform: scale(1.05);
}

.telegram-logo-image {
    width: 150px; /* Настройте под размер вашего лого */
    height: auto;
    vertical-align: middle;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .telegram-logo-image {
        width: 120px;
    }
    .telegram-logo-link {
        padding: 8px 15px;
    }
}
/* Контейнер для нижней кнопки */
.bottom-logo-container {
    text-align: center;
    margin: 50px auto;
    width: 100%;
}

/* Нижняя кнопка (точно как в шапке) */
.bottom-logo-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #F5F5DC;
    border: 2px solid #F5F5DC;
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-block;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.bottom-logo-link:hover {
    background-color: rgba(245, 245, 220, 0.1);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .logo, 
    .bottom-logo-link {
        font-size: 20px;
        padding: 6px 12px;
    }
    
    .bottom-logo-container {
        margin: 30px auto;
    }
}
/* Секция с услугами (обновлённая) */
.services-section {
    background-color: #000;
    padding: 80px 20px;
    margin: 0 auto;
    max-width: 900px;
    display: flex;
    justify-content: center;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 85%; /* Регулирует общий отступ от краёв */
}

.service-item {
    display: flex;
    gap: 45px; /* Расстояние между цифрами и текстом */
    align-items: flex-start;
}

.service-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    color: #F5F5DC;
    font-weight: bold;
    min-width: 25px; /* Фиксированная ширина для цифр */
    text-align: right;
    padding-top: 2px; /* Выравнивание по базовой линии */
}

.service-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #F5F5DC;
    line-height: 1.8;
    letter-spacing: 8.5px;
    margin: 0;
    text-align: left;
}

/* Заголовок "Мы рядом" */
.services-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    color: #F5F5DC;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 7px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .services-section {
        padding: 50px 15px;
    }
    
    .services-container {
        width: 95%;
        gap: 30px;
    }
    
    .service-number, 
    .service-text {
        font-size: 14px;
        letter-spacing: 2px; /* Уже лучше */
    }
    
    .services-title {
        font-size: 14px;
        letter-spacing: 3px;
    }
}


/* Секция с полноразмерным изображением */

.full-width-image-section {
    background-color: #000;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: visible; /* Меняем на visible чтобы не обрезало */
}

.image-container {
    margin: 0;
    padding: 0;
    line-height: 0;
    display: flex; /* Добавляем flex для лучшего контроля */
    justify-content: center;
    align-items: center;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Меняем cover на contain */
}

/* Адаптация для мобильной версии */
@media (max-width: 768px) {
    .full-width-image-section.concierge-section { /* Специальный класс для секции консьержа */
        overflow: visible;
        padding: 10px 0; /* Добавляем отступы */
    }
    
    .image-container.concierge-container {
        max-width: 100%;
        height: auto;
    }
    
    .full-width-image.concierge-image {
        object-fit: contain;
        max-height: 70vh; /* Ограничиваем максимальную высоту */
        width: auto; /* Снимаем фиксированную ширину */
        margin: 0 auto; /* Центрируем */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .full-width-image.concierge-image {
        max-height: 60vh;
    }
}

/* Секция с кнопкой Telegram */
.telegram-button-section {
    background-color: #000;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    border: 1px solid #000;
}

.button-container {
    text-align: center;
}

.telegram-logo-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #F5F5DC;
    border: 2px solid #F5F5DC;
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-block;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.telegram-logo-button:hover {
    background-color: rgba(245, 245, 220, 0.1);
    transform: scale(1.05);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .telegram-logo-button, 
    .bottom-logo-link {
        font-size: 16px;
        padding: 8px 12px; /* Удобно для тапов */
    }
}
    
    .telegram-button-section {
        height: 100px;
    }
}
/* Секция с полноразмерным изображением (нижнее) */
.bottom-image-section {
    background-color: #000;
    border: 1px solid #000;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.bottom-image-section .image-container {
    margin: 0;
    padding: 0;
}

.bottom-image-section .full-width-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
/* Стили для второго слайдера */
.second-slider-section {
    height: 600px;
    overflow: hidden;
    position: relative;
    margin: 50px 0;
    border-radius: 16px;
}

.second-slider-section .slider-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

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

.second-slider-section .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.second-slider-section .slide.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .second-slider-section {
        height: 200px;
        border-radius: 16px;
        margin: 10px 10px 5px 10px;
    }
}

/* Стили для ошибок загрузки изображений */
.slide.error {
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide.error::after {
    content: "Изображение временно недоступно";
    color: #F5F5DC;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    opacity: 0.7;
    padding: 20px;
    text-align: center;
}

/* Анимация перехода слайдов */
.slide {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease;
} 

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
    .slide.error::after {
        font-size: 14px;
        padding: 10px;
    }
}

html {
  scroll-behavior: smooth;
}

/* Дополнительные стили для анимации */
.main-menu a {
  transition: all 0.3s ease;
}

.main-menu a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
    .full-width-image {
        loading: lazy; /* Ленивая загрузка */
    }
}
/* Подвал */
/* --- FOOTER --- */
.site-footer {
  background: #000;
  border-top: 1px solid #222;
  padding: 16px 0 10px 0;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 12px;
}

.footer-logo {
  color: #f5f5dc;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; /* ← размер надписи PASTILA в подвале */
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
}

/* --- Кнопка офферта в подвале --- */
.footer-offer-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;        /* ← Размер шрифта кнопки (меняй для размера) */
  padding: 4px 18px;      /* ← Вертикальный/горизонтальный отступ (размер кнопки) */
  border: 2px solid #f5f5dc;
  border-radius: 30px;
  background: transparent;
  color: #f5f5dc;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(.55,.11,.43,.91);
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.5px;
  /* ↓ Эти параметры регулируют компактность кнопки */
  /* padding: 4px 18px; font-size: 13px; */
}

.footer-offer-btn:hover {
  background: rgba(245,245,220,0.10);
  box-shadow: 0 2px 12px 0 rgba(245,245,220,0.06);
  transform: scale(1.07);
}

/* --- Адаптив для мобильных, кнопка и текст остаются в строку --- */
@media (max-width: 600px) {
  .footer-container {
    gap: 8px;
    padding: 0 6px;
  }
  .footer-logo {
    font-size: 12px;      /* ← на мобильном чуть меньше */
  }
  .footer-offer-btn {
    font-size: 11.5px;    /* ← кнопка поменьше */
    padding: 3px 12px;    /* ← размер кнопки на мобильном */
  }
}
