/* Подключение шрифтов Roboto */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.eot');
    src: url('../fonts/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Roboto-Regular.woff2') format('woff2'),
         url('../fonts/Roboto-Regular.woff') format('woff'),
         url('../fonts/Roboto-Regular.ttf') format('truetype'),
         url('../fonts/Roboto-Regular.svg#Roboto-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.eot');
    src: url('../fonts/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Roboto-Bold.woff2') format('woff2'),
         url('../fonts/Roboto-Bold.woff') format('woff'),
         url('../fonts/Roboto-Bold.ttf') format('truetype'),
         url('../fonts/Roboto-Bold.svg#Roboto-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}


.m-wrapper {
    background-color: #212121;
    color: #fff;
}

/* .container {
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
    background-color: #212121;
} */

.logo {
    padding:0 15px 15px;
    background-color: #212121;
    text-align: center;
}

.logo svg {
    max-width: 200px;
    height: auto;
}

.video-section {
    position: relative;
    width: 100%;
    margin-bottom: 0; /* Changed from 20px to 0 */
    /* Remove max-height restriction to let it follow the iframe size */
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
}

.video-overlay h2 {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 10px;
}

.video-description {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 25px;
    line-height: 30px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.category-section {
    background-color: #333;
    margin-bottom: 20px;
    overflow: hidden;
}

.category-content {
    position: relative;
    padding: 60px 0 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 4px solid #FFF870;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Add this new class for right-aligned content */
.category-content.align-right {
    align-items: flex-end;
}

.category-content.align-right .category-text {
    text-align: left;
    color: #212121;
    margin-right: 49px;
}

.category-content.align-right .category-text h2{
    color: #fff;
}

.category-content.align-right .category-text p{
    color: #fff;
}


.category-content.align-right .button-container {
    justify-content: flex-end;
    padding-right: 20px;
    margin-right: 82px;
}

.category-content.align-right .expand-button {
    margin: 0 20px 0 0;
}

.button-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    margin-top: auto; /* Pushes the button to the bottom */
    padding-bottom: 0; /* Remove bottom padding */
    margin-bottom: 0; /* Remove bottom margin */
    height: auto; /* Let height be determined by content */
}

.category-text {
    position: relative;
    max-width: 35%;
    margin-left: 82px;
    margin-top: 130px;
    padding: 0 20px;
    z-index: 2;
    color: #212121;
}

.category-text h2 {
    font-size: 35px;
    margin-bottom: 15px;
    color: #212121;
}

.category-text p {
    font-size: 25px;
    line-height: 1.2;
    color: #212121;
}

.expand-button {
    display: inline-block;
    width: auto;
    min-width: 180px;
    background-color: #FFF870;
    color: #000;
    text-align: center;
    padding: 16px 10px 10px 19px;
    margin: 0 0 0 82px; /* Add margin-bottom here instead */
    cursor: pointer;
    font-weight: bold;
    position: relative;
    z-index: 2;
    align-self: flex-start;
    border: none;
}

.subcategories {
    display: block;
    max-height: 0;
    overflow: hidden;
    background-color: #222;
    transition: max-height 0.5s ease-in-out;
    opacity: 0;
}

.subcategories.active {
    max-height: 1800px; /* Достаточно большое значение для полного отображения содержимого */
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out 0.1s;
}

/* Стили для подкатегорий */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.subcategory-item {
    position: relative;
    height: 300px; /* Фиксированная высота для всех карточек */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #444;
}

.subcategory-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Размещаем название вверху */
    align-items: center;
    padding-top: 15px; /* Отступ сверху */
}

.subcategory-item h4 {
    color: #FFF;
    font-size: 18px;
    margin: 0;
    padding: 8px 15px;
    text-align: center;

}

.subcategory-item img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

.subcategory-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.subcategory-link:hover .subcategory-item {
    transform: scale(1.03);
    transition: transform 0.2s ease;
}

.brand-section {
    background-color: #000;
    background-size: cover;
    background-position: 75% center;
    color: #fff;
    padding: 40px 20px;
    position: relative;
}

.brand-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
    gap: 5px;
}

.brand-image {
    flex: 1;
    max-width: 600px;
}

.brand-image img {
    width: 100%;
    height: auto;
    display: block;
}

.brand-info {
    flex: 0.8;
    padding-right: 20px;
}

.brand-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.brand-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-right: 50px;
}

.brand-stats {
    margin-top: 30px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 52px;
    font-weight: bold;
    color: #FFF;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 18px;
    line-height: 22px;
    color: #fff;
}

.timeline-container {
    max-width: 1160px;
    margin: 50px auto 0;
    overflow-x: auto;
    padding-bottom: 20px;
}

.timeline {
    display: flex;
    min-width: 900px; /* Обеспечивает прокрутку на мобильных */
    position: relative;
}

.timeline-item {
    flex: 1;
    text-align: center;
    padding: 0 4px;
    position: relative;
}

.timeline-year {
    font-size: 28px;
    font-weight: bold;
    color: #FFF870;
    margin-bottom: 10px;
}

.timeline-line {
    height: 10px;
    background-color: #FFF870;
    width: 100%;
    margin: 15px 0;
}

.timeline-desc {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    text-align: left;
    padding: 0 30px 0 30px;
}

.brand-footer {
    margin-top: 40px;
    text-align: center;
}

.designed-in {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #fff;
}

.designed-in img {
    height: 20px;
    width: auto;
}

/* Replace the existing arrow styles */
.arrow {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    vertical-align: middle;
    margin-left: 5px;
}

.expanded .arrow {
    transform: rotate(180deg);
}

/* Фоны для десктопной версии */
.brand-bg {
    background-image: url('images/brand/banner.webp');
    background-size: cover;
    background-position: 90% center;
}

.kitchen-bg {
    background-image: url('images/mkt/banner.webp');
    background-position: right center;
}

.home-bg {
    background-image: url('images/tdd/banner.webp');
    background-position: left center;
}

.beauty-bg {
    background-image: url('images/kiz/banner.webp');
    background-position: right center;
}

.tv-bg {
    background-image: url('images/tv/banner.webp');
    background-position: left center;
    background-size: 112%;
    background-repeat: no-repeat;
}

.comp-bg {
    background-image: url('images/comp/banner.webp');
    background-position: right center;
}

.gaming-bg {
    background-image: url('images/gaming/banner.webp');
    background-position: left center;
    background-size: 100%;
}

/* Фоны для мобильной версии */
@media (max-width: 768px) {
    .brand-bg {
        background-image: url('images/brand/banner-mobile.webp');
    }

    .kitchen-bg {
        background-image: url('images/mkt/banner-mobile.webp');
    }

    .home-bg {
        background-image: url('images/tdd/banner-mobile.webp');
    }

    .beauty-bg {
        background-image: url('images/kiz/banner-mobile.webp');
    }

    .tv-bg {
        background-image: url('images/tv/banner-mobile.webp');
    }

    .comp-bg {
        background-image: url('images/comp/banner-mobile.webp');
    }

    .gaming-bg {
        background-image: url('images/gaming/banner-mobile.webp');
    }

    /* Другие фоны... */

    .carrera-home-bg {
        background-image: url('images/tdd/banner-mobile.webp');
        background-position: left center !important;
    }

    /* Остальные фоны... */
}

/* Адаптивные стили */
@media (max-width: 992px) {
    .subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-text {
        max-width: 43%;  /* Теперь это значение будет применяться */
        margin-left: 20px; 
        margin-right: 20px;
        margin-top: 0;
    }
    
    .category-text h2 {
        font-size: 25px;
    }
    
    .category-text p {
        font-size: 18px;
        line-height: 1.3;
    }
    
    /* Выравнивание кнопок слева для всех секций */
    .category-content.align-right .button-container {
        justify-content: flex-start;
        padding-right: 0;
        margin-right: 0;
        margin-left: 20px; /* Отступ слева как у обычных кнопок */
    }
    
    .category-text {
        max-width: 70%;
        margin-left: 20px; /* Уменьшено отступ слева */
        margin-right: 20px;
        margin-top: 0; /* Убираем верхний отступ в планшетной версии */
    }
    
    /* Выравнивание кнопок слева для всех секций */
    .category-content.align-right .button-container {
        justify-content: flex-start;
        padding-right: 0;
        margin-right: 0;
        margin-left: 20px; /* Отступ слева как у обычных кнопок */
    }
    
    .category-content.align-right .expand-button {
        margin: 0 0 0 0;
    }
    
    .expand-button {
        margin: 0 0 0 20px; /* Уменьшаем боковой отступ */
    }
    
    .brand-content {
        flex-direction: column;
    }
    
    /* Остальные стили... */
    /* Существующие стили для планшетов */
    .subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Увеличиваем высоту блока категорий для планшетов */
    .category-content {
        min-height: 390px; /* Изменено с 600px на 390px */
    }
    
    .category-text {
        max-width: 40%;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    /* Остальные существующие стили */
    .category-content.align-right .button-container {
        justify-content: flex-start;
        padding-right: 0;
        margin-right: 0;
        margin-left: 20px;
    }
    
    .category-content.align-right .expand-button {
        margin: 0 0 0 0;
    }
    
    .expand-button {
        margin: 0 0 0 40px;
    }
    
    .brand-content {
        flex-direction: column;
    }
    
    /* Фоновые изображения для мобильной и планшетной версии... */
    
    /* Отступы для кнопок align-right в планшетной версии */
    .category-content.align-right .expand-button {
        margin: 0 40px 0 0;
    }

    /* Стили для видео-описания в планшетной версии */
    .video-description {
        font-size: 25px;
        line-height: 1.2;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Стиль для brand-info в планшетной версии */
    .brand-info {
        padding-left: 40px;
    }

    /* Устанавливаем высоту карточек подкатегорий для планшетной версии */
    .subcategory-item {
        height: 401px; /* Увеличиваем высоту для планшетов */
    }
}

@media (max-width: 768px) {
    .brand-content {
        flex-direction: column;
    }
    
    /* Дополнительное выравнивание для мобильных устройств */
    .category-content {
        align-items: flex-start; /* Все контейнеры выравниваем по левому краю */
        min-height: 420px; /* Уменьшаем с 620px до 420px */
        padding: 30px 0 0;
    }
    
    .category-content.align-right {
        align-items: flex-start; /* Отменяем выравнивание по правому краю */
    }
    
    .category-content.align-right .category-text {
        margin-left: 20px;
        margin-right: 20px;
        text-align: left;
    }
    
    .category-text {
        margin-left: 20px;
        margin-right: 20px;
        max-width: 90%; /* Увеличиваем максимальную ширину для лучшей читаемости */
        margin-top: 40px; /* Уменьшаем верхний отступ */
    }

    /* Новые стили для текста в категориях */
    .category-text p {
        font-size: 16px;
        line-height: 1.5;
        padding-right: 10%;
    }
    
    .button-container {
        justify-content: flex-start;
        margin-left: 0;
    }
    
    .expand-button {
        margin: 0 0 0 20px;
    }
    
    /* Остальные мобильные стили... */
    .brand-image {
        max-width: 80%;
        margin-bottom: 30px;
    }
    
    .brand-info {
        padding-right: 30px;
        padding-left: 30px;
    }

    .brand-info p{
        padding-right: 0;
    }
    
    .stat-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        flex-direction: unset; /* Отменяем колоночное расположение */
    }
    
    .stat-item {
        flex: none; /* Отменяем flex: 1 */
    }
    
    .stat-number {
        font-size: 32px; /* Немного уменьшаем размер для лучшего отображения */
    }
    
    .stat-desc {
        font-size: 14px;
    }

    .timeline-container {
        margin-top: 40px;
    }

    .video-description {
        font-size: 18px;
        line-height: 28px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Обновляем отступы для выравнивания текста и кнопок */
    .category-text {
        margin-left: 20px;
    }
    
    .expand-button {
        margin-left: 20px;
    }

    /* Изменения для блока brand-stats */
    .stat-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        flex-direction: unset; /* Отменяем колоночное расположение */
    }
    
    .stat-item {
        flex: none; /* Отменяем flex: 1 */
    }
    
    .stat-number {
        font-size: 32px; /* Немного уменьшаем размер для лучшего отображения */
    }
    
    .stat-desc {
        font-size: 14px;
    }

    /* Изменение высоты карточек подкатегорий для мобильной версии */
    .subcategory-item {
        height: 180px; /* Изменено с 300px на 180px для мобильных устройств */
    }

    /* Существующие стили для мобильных устройств */
    
    /* Уменьшаем шрифт для заголовков подкатегорий */
    .subcategory-item h4 {
        font-size: 12px;
    }
    
    /* Другие существующие стили... */
    
    /* Убираем верхний отступ для контейнера изображений подкатегорий */
    .subcategory-image-container {
        padding-top: 0px;
    }
}

@media (max-width: 576px) {
    .subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .subcategory-item h4 {
        font-size: 12px;
    }
    
    .category-text {
        max-width: 100%;
        margin-left: 30px;
        margin-right: 15px;
        padding: 0;
    }
    
    .category-content {
        min-height: 550px;
        padding: 30px 0 0;
    }
    
    .expand-button {
        margin-left: 30px;
        min-width: 160px; /* Немного уменьшаем минимальную ширину кнопки */
    }
    
    .category-content.align-right .category-text,
    .category-content.align-right .button-container {
        margin-left: 30px;
        margin-right: 15px;
    }
    
    /* Остальные стили для маленьких экранов... */
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .brand-content {
        flex-direction: column;
    }
    
    .brand-image {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .brand-info {
        padding-right: 0;
    }
    
    .stat-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-container {
        margin-top: 40px;
    }

    .video-description {
        font-size: 18px;
        line-height: 28px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Изменяем медиа-запрос для фонов мобильной и планшетной версии */
@media (max-width: 992px) {
    .brand-bg {
        background-image: url('images/brand/banner-mobile.webp');
    }

    .kitchen-bg {
        background-image: url('images/mkt/banner-mobile.webp');
    }

    .home-bg {
        background-image: url('images/tdd/banner-mobile.webp');
    }

    .beauty-bg {
        background-image: url('images/kiz/banner-mobile.webp');
    }

    .tv-bg {
        background-image: url('images/tv/banner-mobile.webp');
    }

    .comp-bg {
        background-image: url('images/comp/banner-mobile.webp');
    }

    .gaming-bg {
        background-image: url('images/gaming/banner-mobile.webp');
    }
    
    /* Остальные стили для планшетов... */
}

/* Фоны для мобильной версии - только для мобильных, не для планшетов */
@media (max-width: 768px) {
    /* Возвращаем мобильные фоны только для мобильных устройств */
    .brand-bg {
        background-image: url('images/brand/banner-mobile.webp');
    }

    .kitchen-bg {
        background-image: url('images/mkt/banner-mobile.webp');
    }

    .home-bg {
        background-image: url('images/tdd/banner-mobile.webp');
    }

    .beauty-bg {
        background-image: url('images/kiz/banner-mobile.webp');
    }

    .tv-bg {
        background-image: url('images/tv/banner-mobile.webp');
    }

    .comp-bg {
        background-image: url('images/comp/banner-mobile.webp');
    }

    .gaming-bg {
        background-image: url('images/gaming/banner-mobile.webp');
    }
    
    /* Другие стили для мобильных устройств... */
}

/* Общие стили для контейнера Carrera */
.carrera-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.carrera-wrapper {
    background-color: #212121;
    color: #fff;
    width: 100%;
}

.carrera-container {
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
    background-color: #212121;
}

.carrera-logo {
    padding: 0 15px 15px;
    background-color: #212121;
    text-align: center;
}

.carrera-logo svg {
    max-width: 200px;
    height: auto;
}

.carrera-video-section {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.carrera-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.carrera-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
}

.carrera-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
}

.carrera-video-overlay h2 {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 10px;
}

.carrera-video-description {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
    background-color: #343333;
    font-size: 25px;
    line-height: 1.5;
    padding-top: 32px;
    padding-bottom: 60px;
}

.carrera-category-section {
    background-color: #333;
    margin-bottom: 20px;
    overflow: hidden;
}

.carrera-category-content {
    position: relative;
    padding: 60px 0 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 4px solid #FFF870;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Add this new class for right-aligned content */
.carrera-category-content.carrera-align-right {
    align-items: flex-end;
}

.carrera-category-content.carrera-align-right .carrera-category-text {
    text-align: left;
    color: #212121;
    margin-right: 49px;
}

.carrera-category-content.carrera-align-right .carrera-category-text h2{
    color: #fff;
}

.carrera-category-content.carrera-align-right .carrera-category-text p{
    color: #fff;
}

.carrera-category-content.carrera-align-right .carrera-button-container {
    justify-content: flex-end;
    margin-right: 82px;
}

.carrera-category-content.carrera-align-right .carrera-expand-button {
    margin: 0;
}

.carrera-button-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-bottom: 0;
    margin-bottom: 0;
    height: auto;
}

.carrera-category-text {
    position: relative;
    max-width: 35%;
    margin-left: 82px;
    margin-top: 130px;
    padding: 0 20px 0 0px;
    z-index: 2;
    color: #212121;
}

.carrera-category-text h2 {
    font-size: 35px;
    margin-bottom: 15px;
    color: #212121;
    line-height: 1.2;
}

.carrera-category-text p {
    font-size: 25px;
    line-height: 1.2;
    color: #212121;
}

.carrera-expand-button {
    display: inline-block;
    width: auto;
    min-width: 180px;
    background-color: #FFF870;
    color: #000;
    text-align: center;
    padding: 16px 10px 10px 19px;
    margin: 0 0 0 82px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    z-index: 2;
    align-self: flex-start;
    border: none;
}

.carrera-subcategories {
    display: block;
    max-height: 0;
    overflow: hidden;
    background-color: #222;
    transition: max-height 0.5s ease-in-out;
    opacity: 0;
}

.carrera-subcategories.carrera-active {
    max-height: 1800px;
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out 0.1s;
}

/* Стили для подкатегорий */
.carrera-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.carrera-subcategory-item {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #444;
    transition: transform 0.2s ease;
}

.carrera-subcategory-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 15px;
}

.carrera-subcategory-item h4 {
    color: #FFF;
    font-size: 18px;
    margin: 0;
    padding: 8px 15px;
    text-align: center;
}

.carrera-subcategory-item img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

.carrera-subcategory-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    
}

.carrera-subcategory-link:hover .carrera-subcategory-item {
    transform: scale(0.98) !important;
}



.carrera-brand-section {
    background-color: #000;
    background-size: cover;
    background-position: 75% center;
    color: #fff;
    padding: 40px 20px;
    position: relative;
}

.carrera-brand-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
    gap: 5px;
}

.carrera-brand-image {
    flex: 1;
    max-width: 600px;
}

.carrera-brand-image img {
    width: 100%;
    height: auto;
    display: block;
}

.carrera-brand-info {
    flex: 0.8;
    padding-right: 20px;
}

.carrera-brand-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}

.carrera-brand-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-right: 50px;
}

.carrera-brand-stats {
    margin-top: 30px;
}

.carrera-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.carrera-stat-item {
    flex: 1;
}

.carrera-stat-number {
    font-size: 52px;
    font-weight: bold;
    color: #FFF;
    margin-bottom: 10px;
}

.carrera-stat-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
}

.carrera-timeline-container {
    max-width: 1160px;
    margin: 50px auto 0;
    padding-bottom: 20px;
}

.carrera-timeline {
    display: flex;
    gap: 5px;
}

.carrera-timeline-item {
    flex: 1;
    text-align: center;
}

.carrera-timeline-year {
    font-size: 28px;
    font-weight: bold;
    color: #FFF870;
    margin-bottom: 10px;
    line-height: 1;
}

.carrera-timeline-line {
    height: 10px;
    background-color: #FFF870;
    width: 100%;
    margin: 15px 0;
}

.carrera-timeline-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    text-align: left;
    padding: 0 30px 0 30px;
}

@media (max-width: 991.98px) {
    .carrera-timeline-desc {
        font-size: 14px;
        padding: 0 10px 0 10px;
    };
}

@media (max-width: 767.98px) {
    .carrera-timeline {
        flex-wrap: wrap-reverse;
        gap: 5px;
        row-gap: 20px;
        background: url('../img') 0 0 / 100px 0 no-repeat;
    }

    .carrera-timeline-item {
        flex: 0 1 49%;
        text-align: center;
    }
}

.carrera-brand-footer {
    margin-top: 40px;
    text-align: center;
}

.carrera-designed-in {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #fff;
}

.carrera-designed-in img {
    height: 20px;
    width: auto;
}

.carrera-footer {
    text-align: center;
    padding: 20px;
    background-color: #111;
}

/* Replace the existing arrow styles */
.carrera-arrow {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    vertical-align: middle;
    margin-left: 5px;
}

.carrera-expanded .carrera-arrow {
    transform: rotate(180deg);
}

/* Фоны для десктопной версии */
.carrera-brand-bg {
    background-image: url('images/brand/banner.webp');
    background-size: cover;
    background-position: 90% center;
}

.carrera-kitchen-bg {
    background-image: url('images/mkt/banner.webp');
    background-position: right center;
}

.carrera-home-bg {
    background-image: url('images/tdd/banner.webp');
    background-position: left center;
}

.carrera-beauty-bg {
    background-image: url('images/kiz/banner.webp');
    background-position: right center;
}

.carrera-tv-bg {
    background-image: url('images/tv/banner.webp');
    background-position: left center;
    background-size: 112%;
    background-repeat: no-repeat;
}

.carrera-comp-bg {
    background-image: url('images/comp/banner.webp');
    background-position: right center;
}

.carrera-gaming-bg {
    background-image: url('images/gaming/banner.webp');
    background-position: left center;
    background-size: 100%;
}

/* Фоны для мобильной версии */
@media (max-width: 768px) {
    .carrera-brand-bg {
        background-image: url('images/brand/banner-mobile.webp');
    }

    .carrera-kitchen-bg {
        background-image: url('images/mkt/banner-mobile.webp');
    }

    .carrera-home-bg {
        background-image: url('images/tdd/banner-mobile.webp');
    }

    .carrera-beauty-bg {
        background-image: url('images/kiz/banner-mobile.webp');
    }

    .carrera-tv-bg {
        background-image: url('images/tv/banner-mobile.webp');
    }

    .carrera-comp-bg {
        background-image: url('images/comp/banner-mobile.webp');
    }

    .carrera-gaming-bg {
        background-image: url('images/gaming/banner-mobile.webp');
    }
}

/* Адаптивные стили */
@media (max-width: 992px) {
    .carrera-subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .carrera-category-text {
        max-width: 43%;
        margin-left: 20px; 
        margin-right: 20px;
        margin-top: 0;
    }
    
    .carrera-category-text h2 {
        font-size: 25px;
    }
    
    .carrera-category-text p {
        font-size: 18px;
        line-height: 1.3;
    }
    
    /* Выравнивание кнопок слева для всех секций */
    .carrera-category-content.carrera-align-right .carrera-button-container {
        justify-content: flex-start;
        padding-right: 0;
        margin-right: 0;
        margin-left: 20px;
    }
    
    .carrera-category-text {
        max-width: 70%;
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 0;
    }
    
    .carrera-category-content.carrera-align-right .carrera-expand-button {
        margin: 0 0 0 0;
    }
    
    .carrera-expand-button {
        margin: 0 0 0 20px;
    }
    
    .carrera-brand-content {
        flex-direction: column;
    }
    
    /* Увеличиваем высоту блока категорий для планшетов */
    .carrera-category-content {
        min-height: 390px;
    }
    
    .carrera-category-text {
        max-width: 40%;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    /* Отступы для кнопок align-right в планшетной версии */
    .carrera-category-content.carrera-align-right .carrera-expand-button {
        margin: 0 40px 0 0;
    }

    /* Стили для видео-описания в планшетной версии */
    .carrera-video-description {
        font-size: 25px;
        line-height: 1.2;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Стиль для brand-info в планшетной версии */
    .carrera-brand-info {
        padding-left: 40px;
    }

    /* Устанавливаем высоту карточек подкатегорий для планшетной версии */
    .carrera-subcategory-item {
        height: 401px;
    }
}

@media (max-width: 768px) {
    .carrera-brand-content {
        flex-direction: column;
    }
    
    /* Дополнительное выравнивание для мобильных устройств */
    .carrera-category-content {
        align-items: flex-start;
        min-height: 420px;
        padding: 30px 0 0;
    }
    
    .carrera-category-content.carrera-align-right {
        align-items: flex-start;
    }
    
    .carrera-category-content.carrera-align-right .carrera-category-text {
        margin-left: 20px;
        margin-right: 20px;
        text-align: left;
    }
    
    .carrera-category-text {
        margin-left: 20px;
        margin-right: 20px;
        max-width: 90%;
        margin-top: 40px;
    }

    /* Новые стили для текста в категориях */
    .carrera-category-text p {
        font-size: 16px;
        line-height: 1.5;
        padding-right: 10%;
    }
    
    .carrera-button-container {
        justify-content: flex-start;
        margin-left: 0;
    }
    
    .carrera-expand-button {
        margin: 0 0 0 20px;
    }
    
    .carrera-brand-image {
        max-width: 80%;
        margin-bottom: 30px;
    }
    
    .carrera-brand-info {
        padding-right: 30px;
        padding-left: 30px;
    }

    .carrera-brand-info p {
        padding-right: 0;
    }
    
    .carrera-stat-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        flex-direction: unset;
    }
    
    .carrera-stat-item {
        flex: none;
    }
    
    .carrera-stat-number {
        font-size: 32px;
    }
    
    .carrera-stat-desc {
        font-size: 14px;
    }

    .carrera-timeline-container {
        margin-top: 40px;
    }

    .carrera-video-description {
        font-size: 18px;
        line-height: 28px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Изменение высоты карточек подкатегорий для мобильной версии */
    .carrera-subcategory-item {
        height: 180px;
    }

    /* Уменьшаем шрифт для заголовков подкатегорий */
    .carrera-subcategory-item h4 {
        font-size: 12px;
    }
    
    /* Убираем верхний отступ для контейнера изображений подкатегорий */
    .carrera-subcategory-image-container {
        padding-top: 0px;
    }
}

@media (max-width: 576px) {
    .carrera-subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .carrera-subcategory-item h4 {
        font-size: 12px;
    }
    
    .carrera-category-text {
        max-width: 100%;
        margin-left: 30px;
        margin-right: 15px;
        padding: 0;
    }
    
    .carrera-category-content {
        min-height: 550px;
        padding: 30px 0 0;
    }
    
    .carrera-expand-button {
        margin-left: 30px;
        min-width: 160px;
    }
    
    .carrera-category-content.carrera-align-right .carrera-category-text,
    .carrera-category-content.carrera-align-right .carrera-button-container {
        margin-left: 30px;
        margin-right: 15px;
    }
}

/* Изменяем медиа-запрос для фонов мобильной и планшетной версии */
@media (max-width: 992px) {
    .carrera-brand-bg {
        background-image: url('images/brand/banner-mobile.webp');
    }

    .carrera-kitchen-bg {
        background-image: url('images/mkt/banner-mobile.webp');
    }

    .carrera-home-bg {
        background-image: url('images/tdd/banner-mobile.webp');
    }

    .carrera-beauty-bg {
        background-image: url('images/kiz/banner-mobile.webp');
    }

    .carrera-tv-bg {
        background-image: url('images/tv/banner-mobile.webp');
    }

    .carrera-comp-bg {
        background-image: url('images/comp/banner-mobile.webp');
    }

    .carrera-gaming-bg {
        background-image: url('images/gaming/banner-mobile.webp');
    }
}