/* style.css */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh; /* Занимаем всю высоту экрана */
    background: linear-gradient(to bottom right, #0014ae, #010737);
    color: white; /* Цвет текста по умолчанию */
    padding-top: 56px; /* Отступ, равный высоте меню */
}

.slide {
    height: 100vh; /*  Занимает всю высоту экрана  */
    display: flex; /*  Для выравнивания по центру  */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-left: 20px; /* Левый отступ */
    padding-right: 20px; /* Правый отступ */
    padding-top: 60px;   /* Уменьшенный отступ сверху */
    padding-bottom: 60px; /* Уменьшенный отступ снизу */
    box-sizing: border-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Уменьшение отступов на мобильных устройствах */
@media (max-width: 768px) {
    .slide {
        padding-left: 15px; /* Уменьшаем левый отступ */
        padding-right: 15px; /* Уменьшаем правый отступ */
        padding-top: 45px; /* Уменьшенный отступ сверху */
        padding-bottom: 45px; /* Уменьшенный отступ снизу */
        background-attachment: scroll; /* Отключаем fixed на мобильных */
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    #slide2 {
        background-attachment: scroll; /* Отключаем fixed на мобильных */
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
}

@media (max-width: 480px) {
    .slide {
        padding-left: 10px; /* Еще меньше левый отступ */
        padding-right: 10px; /* Еще меньше правый отступ */
        padding-top: 35px; /* Уменьшенный отступ сверху */
        padding-bottom: 35px; /* Уменьшенный отступ снизу */
    }
}

/* Стили для первого слайда */
#slide1 .container {
    height: 100%; /* Контейнер занимает всю высоту слайда */
}

#slide1 h1 {
    font-size: 3em; /* Примерный размер заголовка */
    margin-bottom: 0em;
    text-align: left; /* Выравнивание по левому краю */
}

#slide1 p.lead {
    font-size: 1.2em; /* Размер шрифта для "музыкальное агентство..." */
    text-align: left; /* Выравнивание по левому краю */
    /* Дополнительные стили для выравнивания текста и стрелки */
    display: flex;
    align-items: center;
}

#slide1 p.lead svg {
    margin-left: 0.25em; /* Отступ для стрелки */
    width: 1em;
    height: 1em;
}

.colored-rectangle {
    background: linear-gradient(to bottom, #E53D00 50%, #333 50%); /* Градиент */
    color: white;
    padding: 1em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Растягиваем прямоугольник на всю высоту оставшегося места */
}

#slide1 .col-md-8 {
  padding-right: 15px; /*  Небольшой отступ справа  */
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Buyan', sans-serif;
    font-weight: bold;
}

.colored-rectangle {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(185deg, #E53D00 0%, #E53D00 50%, #7c7c7c 50%, #7c7c7c 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.colored-rectangle .top-part {
    background: transparent;
    color: white;
    padding: 1.5em 1em; /* Уменьшаем отступы слева и справа */
    text-align: left;
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.colored-rectangle .top-part p {
    font-size: 1em; /* Базовый размер шрифта */
    line-height: 1.4;
    margin: 0;
}

.colored-rectangle .bottom-part {
    background: transparent;
    color: white;
    padding: 1.5em 1em; /* Уменьшаем отступы слева и справа */
    text-align: left;
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.colored-rectangle .bottom-part p {
    font-size: 1em; /* Базовый размер шрифта */
    line-height: 1.4;
    margin: 0;
}

/* Дополнительные стили для ваших элементов */
@font-face {
    font-family: 'Buyan-Regular';
    src: url('fonts/Buyan-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Buyan';
    src: url('fonts/Buyan-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Стили для меню */
.navbar {
    background-color: white;
    color: #010737;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 1rem;
}

.navbar-nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.nav-link {
    font-family: 'Buyan-Regular', sans-serif;
    color: #010737;
    font-size: 1em;
    padding: 0;
    white-space: nowrap;
    text-decoration: none; /* Убираем подчеркивание ссылок */
    transition: color 0.3s ease; /* Плавный переход цвета */
}

.nav-link:hover {
    color: #5bc0de; /* Цвет при наведении */
}

.nav-link.active {
    color: #5bc0de; /* Бледно-голубой цвет активного пункта */
    font-weight: bold; /* Делаем текст жирным */
}

/* Адаптивный размер шрифта */
@media (max-width: 1400px) {
    .nav-link { font-size: 0.9em; }
}

@media (max-width: 1200px) {
    .nav-link { font-size: 0.8em; }
}

/* Сворачивание в бургер для iPad и меньше */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
    
    .navbar-nav {
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 8px 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

.navbar-toggler {
    border: none;
    background-color: transparent; /* Убираем фон кнопки */
    padding: 0; /* Убираем отступы */
}


/* Класс для отображения меню при нажатии на бургер */
.navbar-nav.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 0.15rem 0.15rem;
}

.navbar-nav.show .nav-link {
    text-align: center;
    padding-bottom: 0.15rem;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Buyan', sans-serif;
    font-weight: bold;
}
/* Добавляем id к секциям */
#slide1, #slide2, #slide3, #slide4, #slide5, #slide6, #slide7, #slide8, #slide9, #slide10, #slide11, #slide12, #slide13, #slide14 {
  scroll-margin-top: 60px; /*  Учитываем высоту фиксированного меню  */
}

/* Дополнительная настройка для мобильных */
@media (max-width: 768px) {
  #slide1, #slide2, #slide3, #slide4, #slide5, #slide6, #slide7, #slide8, #slide9, #slide10, #slide11, #slide12, #slide13, #slide14 {
    scroll-margin-top: 80px; /* Увеличиваем отступ для мобильных */
  }
}

.hidden {
    opacity: 0; /* Элемент полностью прозрачен */
}

/* Увеличение шрифта в прямоугольнике для планшетов */
@media (min-width: 992px) {
    .colored-rectangle p {
        font-size: 1.1em; /* Небольшое увеличение для планшетов */
        line-height: 1.5;
    }
    
    .colored-rectangle .top-part p {
        font-size: 1.15em; /* Увеличиваем шрифт в верхней части */
    }
    
    .colored-rectangle .bottom-part p {
        font-size: 1.1em; /* Увеличиваем шрифт в нижней части */
    }
    
    .colored-rectangle .top-part,
    .colored-rectangle .bottom-part {
        padding: 1.8em 1.2em; /* Увеличиваем отступы, но уменьшаем слева и справа */
    }
}

/* Увеличение шрифта в прямоугольнике для десктопной версии */
@media (min-width: 1200px) {
    .colored-rectangle p {
        font-size: 1.2em; /* Увеличиваем базовый размер шрифта */
        line-height: 1.5;
    }
    
    .colored-rectangle .top-part p {
        font-size: 1.3em; /* Увеличиваем шрифт в верхней части */
    }
    
    .colored-rectangle .bottom-part p {
        font-size: 1.2em; /* Увеличиваем шрифт в нижней части */
    }
    
    .colored-rectangle .top-part,
    .colored-rectangle .bottom-part {
        padding: 2em 1.5em; /* Увеличиваем отступы для лучшего восприятия, но уменьшаем слева и справа */
    }
}

@media (min-width: 1400px) {
    .colored-rectangle p {
        font-size: 1.4em; /* Еще больше увеличиваем на очень больших экранах */
        line-height: 1.6;
    }
    
    .colored-rectangle .top-part p {
        font-size: 1.5em; /* Увеличиваем шрифт в верхней части */
    }
    
    .colored-rectangle .bottom-part p {
        font-size: 1.4em; /* Увеличиваем шрифт в нижней части */
    }
    
    .colored-rectangle .top-part,
    .colored-rectangle .bottom-part {
        padding: 2.5em 1.8em; /* Еще больше отступов, но уменьшаем слева и справа */
    }
}

@media (min-width: 1600px) {
    .colored-rectangle p {
        font-size: 1.6em; /* Максимальное увеличение для очень больших экранов */
        line-height: 1.7;
    }
    
    .colored-rectangle .top-part p {
        font-size: 1.7em; /* Увеличиваем шрифт в верхней части */
    }
    
    .colored-rectangle .bottom-part p {
        font-size: 1.6em; /* Увеличиваем шрифт в нижней части */
    }
    
    .colored-rectangle .top-part,
    .colored-rectangle .bottom-part {
        padding: 3em 2em; /* Максимальные отступы, но уменьшаем слева и справа */
    }
}

/* Стили для второго слайда */
.slide-header {
    margin-bottom: 3rem;
    background: transparent;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: transparent;
}

.slide-title {
    font-family: 'Buyan', sans-serif;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: bold;
    margin: 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    flex-wrap: nowrap;
    white-space: nowrap;
    background: transparent;
}

.title-main {
    color: white;
}

.title-sub {
    color: #E53D00;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.arrow-link:hover {
    color: #E53D00;
    text-decoration: none;
}

.arrow-link svg {
    transition: transform 0.3s ease;
}

.arrow-link:hover svg {
    transform: translateY(3px);
}

.mobile-title {
    display: none;
    font-family: 'Buyan', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
}

.mobile-subtitle {
    display: none;
    font-size: 1.2em;
    text-align: center;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
}

/* Скрываем мобильные элементы на десктопе */
@media (min-width: 769px) {
    .mobile-title {
        display: none !important;
    }
    
    .mobile-subtitle {
        display: none !important;
    }
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 200px);
    align-content: stretch;
    background: transparent;
}

.tech-block {
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.block-number {
    font-family: 'Buyan', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.2rem;
}

.block-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    text-align: center;
    line-height: 1.3;
}

/* Цвета блоков */
/* Чередующиеся цвета рекламных блоков */
.block-01 {
    background-color: #E53D00; /* Оранжевый */
}

.block-02 {
    background-color: #2E8B57; /* Зеленый */
}

.block-03 {
    background-color: #8A2BE2; /* Фиолетовый */
}

.block-04 {
    background-color: #FF6347; /* Томатный */
}

.block-05 {
    background-color: #20B2AA; /* Бирюзовый */
}

.block-06 {
    background-color: #FFD700; /* Золотой */
    color: #000;
}

.block-07 {
    background-color: #DC143C; /* Красный */
}

.block-08 {
    background-color: #4682B4; /* Синий */
}

.block-09 {
    background-color: #32CD32; /* Лайм */
    color: #000;
}

.block-10 {
    background-color: #FF1493; /* Розовый */
}

.block-11 {
    background-color: #E53D00; /* Оранжевый (повтор) */
}

.block-12 {
    background-color: #2E8B57; /* Зеленый (повтор) */
}

.block-13 {
    background-color: #8A2BE2; /* Фиолетовый (повтор) */
}

.block-14 {
    background-color: #FF6347; /* Томатный (повтор) */
}

.block-15 {
    background-color: #20B2AA; /* Бирюзовый (повтор) */
}

.block-16 {
    background-color: #FFD700; /* Золотой (повтор) */
    color: #000;
}

/* Адаптивные стили для второго слайда */
@media (max-width: 1200px) {
    .slide-header {
        margin-bottom: 1.5rem; /* Уменьшаем отступ под заголовком */
    }
    
    .title-row {
        gap: 1.5rem;
    }
    
    .slide-title {
        font-size: clamp(1.2rem, 3.5vw, 3rem);
        gap: clamp(0.8rem, 1.5vw, 1.5rem);
        flex-wrap: nowrap;
        white-space: nowrap;
        margin-bottom: 0; /* Убираем отступ снизу у заголовка */
    }
    
    .technologies-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 1rem;
        height: calc(100vh - 160px); /* Увеличиваем высоту сетки */
    }
}

@media (max-width: 768px) {
    .title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .slide-title {
        display: none;
    }
    
    .mobile-title {
        display: flex;
        font-size: clamp(1rem, 4vw, 2rem);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: clamp(0.3rem, 1vw, 0.5rem);
        white-space: nowrap;
        margin-bottom: 0.2em;
        flex-wrap: nowrap;
    }
    
    .mobile-subtitle {
        display: flex;
        font-size: clamp(0.8em, 2.5vw, 1.2em);
        text-align: center;
        color: white;
        margin: 0;
        margin-bottom: 0.5em;
        align-items: center;
        justify-content: center;
        gap: clamp(0.3rem, 1vw, 0.5rem);
        white-space: nowrap;
    }
    
    .technologies-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 0.8rem;
        height: calc(100vh - 120px);
    }
    
    .tech-block {
        padding: 1rem 0.8rem;
        height: 100%;
        min-height: 80px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 0.5rem;
    }
    
    .block-number {
        font-size: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .block-text {
        font-size: 0.7rem;
        line-height: 1.1;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .mobile-title {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    
    .technologies-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(16, 1fr);
        gap: 0.5rem;
        height: calc(100vh - 100px);
    }
    
    .tech-block {
        padding: 0.8rem 0.6rem;
        height: 100%;
        min-height: 60px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 0.4rem;
    }
    
    .block-number {
        font-size: 1.2rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .block-text {
        font-size: 0.6rem;
        line-height: 1.1;
        flex: 1;
    }
}

@media (max-width: 360px) {
    .mobile-title {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

/* Адаптивные стили для третьего слайда */
@media (max-width: 1200px) {
    .packaging-title {
        font-size: clamp(1.8rem, 3.5vw, 3rem);
        margin-bottom: 2.5rem;
    }
    
    .packaging-grid {
        grid-template-columns: 1fr; /* Один столбец для планшетов */
        grid-template-rows: repeat(8, auto);
        max-height: none;
        height: auto;
    }
    
    .item-text {
        font-size: 0.95rem;
    }
    
    .item-subtext {
        font-size: 0.8rem;
    }
}

/* Адаптивные стили для второго слайда (Наши услуги) */
@media (max-width: 1200px) {
    #slide2 .slide4-title {
        font-size: clamp(1.8rem, 3.5vw, 3rem);
        margin-bottom: 2.5rem;
    }
    
    #slide2 .services-grid {
        grid-template-columns: 1fr; /* Один столбец для планшетов */
        grid-template-rows: repeat(6, auto);
        max-height: none;
        height: auto;
        gap: 1rem;
    }
    
    #slide2 .service-item {
        padding: 1.2rem;
    }
    
    #slide2 .service-content h3 {
        font-size: 1rem;
    }
    
    #slide2 .service-content p {
        font-size: 0.85rem;
    }
}

/* Адаптивные стили для четвертого слайда (Развитие и продвижение) */
@media (max-width: 1200px) {
    .slide4-title {
        font-size: clamp(1.8rem, 3.5vw, 3rem);
        margin-bottom: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* Один столбец для планшетов */
        grid-template-rows: repeat(6, auto);
        max-height: none;
        height: auto;
        gap: 1rem;
    }
    
    .service-item {
        padding: 1.2rem;
    }
    
    .service-content h3 {
        font-size: 1rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    #slide3 .row {
        flex-direction: column;
    }
    
    #slide3 .col-md-8 {
        order: 1;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #slide3 .col-md-4 {
        order: 2;
        display: none; /* Скрываем изображение на мобильных */
    }
    
    .packaging-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .packaging-grid {
        grid-template-columns: 1fr 1fr; /* Два столбца вместо одного */
        grid-template-rows: repeat(4, auto); /* 4 строки вместо 8 */
        max-height: none;
        gap: 0.6rem;
        height: auto;
    }
    
    .packaging-item {
        padding: 0.8rem;
        min-height: auto;
        flex-direction: column; /* Вертикальное расположение */
        text-align: center;
        justify-content: center;
    }
    
    .packaging-item .block-number {
        display: none; /* Скрываем цифры */
    }
    
    .item-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .item-subtext {
        font-size: 0.65rem;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .packaging-title {
        font-size: clamp(1.2rem, 5vw, 2rem);
        margin-bottom: 1.5rem;
    }
    
    .packaging-item {
        padding: 0.6rem;
        min-height: auto;
        flex-direction: column; /* Вертикальное расположение */
        text-align: center;
        justify-content: center;
    }
    
    .packaging-item .block-number {
        display: none; /* Скрываем цифры */
    }
    
    .item-text {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .item-subtext {
        font-size: 0.6rem;
        line-height: 1.1;
    }
    
    /* Мобильные стили для второго слайда (Наши услуги) */
    #slide2 .row {
        flex-direction: column;
    }
    
    #slide2 .col-md-8 {
        order: 1;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #slide2 .col-md-4 {
        order: 2;
        display: none; /* Скрываем изображение на мобильных */
    }
    
    #slide2 .slide4-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #slide2 .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        max-height: none;
        gap: 0.8rem;
        height: auto;
    }
    
    #slide2 .service-item {
        padding: 1rem;
        min-height: auto;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    #slide2 .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    #slide2 .service-content h3 {
        font-size: 0.9rem;
    }
    
    #slide2 .service-content p {
        font-size: 0.8rem;
    }
    
    /* Мобильные стили для четвертого слайда (Развитие и продвижение) */
    #slide4 .row {
        flex-direction: column;
    }
    
    #slide4 .col-md-8 {
        order: 1;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    #slide4 .col-md-4 {
        order: 2;
        display: none; /* Скрываем изображение на мобильных */
    }
    
    .slide4-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        max-height: none;
        gap: 0.8rem;
        height: auto;
    }
    
    .service-item {
        padding: 1rem;
        min-height: auto;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 0.9rem;
    }
    
    .service-content p {
        font-size: 0.8rem;
    }
}


/* Стили для второго слайда */
#slide2 {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

/* Стили для третьего слайда */
#slide3 {
    color: white;
    padding: 2rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Стили для второго слайда (Наши услуги) */
#slide2 {
    color: white;
    padding: 2rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#slide2 .slide4-content {
    padding: 2rem 0;
}

#slide2 .slide4-title {
    font-family: 'Buyan', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 3rem;
    line-height: 1.2;
    text-align: left;
}

#slide2 .slide4-title .title-main {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

#slide2 .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    height: 100%;
    max-height: 60vh;
}

#slide2 .service-item {
    padding: 1.5rem;
    border: 1px solid #E53D00;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#slide2 .service-item:hover {
    background: rgba(229, 61, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 61, 0, 0.2);
}

#slide2 .service-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 61, 0, 0.1);
    border-radius: 50%;
    border: 2px solid #E53D00;
}

#slide2 .service-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

#slide2 .service-content p {
    font-size: 0.9rem;
    margin: 0;
    color: #bdc3c7;
    line-height: 1.4;
}

#slide2 .slide4-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#slide2 .slide4-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    object-fit: cover;
}

/* Стили для четвертого слайда (Развитие и продвижение) */
#slide4 {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.slide4-content {
    padding: 2rem 0;
}

.slide4-title {
    font-family: 'Buyan', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 3rem;
    line-height: 1.2;
    text-align: left;
}

.slide4-title .title-main {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.slide4-title .title-sub {
    color: white;
    display: block;
    font-size: 0.7em;
    font-weight: normal;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    height: 100%;
    max-height: 60vh;
}

.service-item {
    padding: 1.5rem;
    border: 1px solid #E53D00;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(229, 61, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 61, 0, 0.2);
}

.service-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 61, 0, 0.1);
    border-radius: 50%;
    border: 2px solid #E53D00;
}

.service-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.service-content p {
    font-size: 0.9rem;
    margin: 0;
    color: #bdc3c7;
    line-height: 1.4;
}

.slide4-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.slide4-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    object-fit: cover;
}

.packaging-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.packaging-title {
    font-family: 'Buyan', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.title-orange {
    color: #E53D00;
}

.title-white {
    color: white;
}

.packaging-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 1rem;
    height: 100%;
    max-height: 60vh;
}

.packaging-item {
    padding: 1.5rem;
    border: 1px solid #E53D00;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    transition: all 0.3s ease;
}

.packaging-item:hover {
    background: rgba(229, 61, 0, 0.1);
    transform: translateY(-2px);
}

.item-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.item-subtext {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
    font-style: italic;
}

.packaging-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.packaging-image img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


.slide-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #ccc;
    text-align: center;
    margin-top: 2rem;
}

/* Адаптивные стили для первого слайда на мобильных устройствах */
@media (max-width: 768px) {
    #slide1 h1 {
        font-size: 2em; /* Уменьшаем размер заголовка на мобильных */
        margin-bottom: 0.2em; /* Минимальный отступ под заголовком */
    }
    
    #slide1 p.lead {
        font-size: 0.9em; /* Уменьшаем размер текста */
        white-space: nowrap; /* Запрещаем перенос строки */
        margin-bottom: 0.5em; /* Небольшой отступ снизу */
    }
    
    .colored-rectangle {
        margin-top: 0.5em; /* Минимальный отступ сверху */
        height: calc(100vh - 200px); /* Прямоугольник занимает почти все свободное пространство */
        min-height: 300px; /* Минимальная высота для читаемости */
    }
    
    .colored-rectangle .top-part,
    .colored-rectangle .bottom-part {
        padding: 0.8em 0.6em; /* Уменьшаем отступы от краев на мобильных, особенно слева и справа */
    }
    
    .colored-rectangle p {
        font-size: 0.9em; /* Уменьшаем размер текста в прямоугольнике */
        line-height: 1.4;
    }
    
    /* Скрываем фотографию на мобильных устройствах */
    #slide1 .col-md-4 {
        display: none;
    }
    
    /* Расширяем левую колонку на всю ширину */
    #slide1 .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    #slide1 h1 {
        font-size: 1.8em; /* Еще меньше заголовок на очень маленьких экранах */
        margin-bottom: 0.1em; /* Минимальный отступ */
    }
    
    #slide1 p.lead {
        font-size: 0.8em; /* Еще меньше текст на очень маленьких экранах */
        white-space: nowrap; /* Запрещаем перенос строки */
        margin-bottom: 0.3em; /* Минимальный отступ снизу */
    }
    
    .colored-rectangle {
        margin-top: 0.3em; /* Минимальный отступ сверху */
        height: calc(100vh - 180px); /* Прямоугольник занимает почти все свободное пространство */
        min-height: 250px; /* Минимальная высота для читаемости */
    }
    
    .colored-rectangle .top-part,
    .colored-rectangle .bottom-part {
        padding: 0.6em 0.4em; /* Еще меньше отступы для очень маленьких экранов, особенно слева и справа */
    }
    
    .colored-rectangle p {
        font-size: 0.85em; /* Еще меньше шрифт */
        line-height: 1.3;
    }
    
    /* Дополнительно убеждаемся, что фотография скрыта на очень маленьких экранах */
    #slide1 .col-md-4 {
        display: none !important;
    }
    
    #slide1 .col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
