:root {
    --primary-bg: #222224;
    --secondary-bg: #5a5d5e;
    --accent: #e6d9b3;
    --light: #f5f5f5;
    --text-light: white;
}

/* === ОБЩИЕ СТИЛИ === */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Gilroy, Arial, sans-serif;
    line-height: 1.2;
    background-color: var(--light); /* фон для остальных секций */
}
.arial_h3{
    font-weight: 600;
    font-style: normal;
    font-family: Arial, sans-serif;
}
.arial_h4{
    font-weight: 400;
    font-style: normal;
    font-family: Arial, sans-serif;
}
/* === HEADER === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* всегда поверх контента */
    transition: all 0.3s ease;
    padding: 0;
    /*background-color: transparent !important;*/
    box-shadow: none;
}

.navbar.scrolled {
    background-color: gray !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-size: 0.9rem;
    margin: 0 8px;
}

.lang-select {
    background: transparent !important;
    border: 1px solid var(--text-light) !important;
    color: var(--text-light) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

/* === HERO — должен быть первым и иметь фон === */
.hero {
    background-color: var(--secondary-bg); /* обязательно! */
    color: var(--text-light);
    padding: 160px 0 100px; /* отступ сверху, чтобы контент не был под меню */
    margin-top: 0;
    position: relative;
    z-index: 10; /* ниже шапки (z-index: 1030) */
}

.hero-title {
    font-size: 2.3rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.news{
    background-color: transparent;
    color: #000;
    padding: 100px 0 10px;
    margin-top: 0;
    position: relative;
    z-index: 10;
}
.news-title {
    font-size: 2.3rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-align: center;
}


.brand-name {
    color: var(--accent);
}

/* === ОСТАЛЬНЫЕ СЕКЦИИ === */
.products,
.contacts-section {
    padding: 80px 0;
}

.footer {
    background-color: var(--primary-bg);
    color: var(--accent);
    padding: 60px 0 30px;
}

/* === КОМПОНЕНТЫ (карточки и т.д.) — без изменений === */
.product-card {
    height: 620px;
    position: relative;
    overflow: hidden;
    transition: transform .5s;
}
.product-card:hover {
    transform: scale(0.99);
}
/* Фоновая картинка — растягивается на всю карточку */
.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Наложение затемнения для лучшей читаемости текста */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.01); /* затемнение */
    z-index: 2;
}

/* Название продукта — сверху, поверх картинки */
.product-title {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 20px;
    color: white;
    font-size: 1.1rem;
    font-weight: 100;
    line-height: 1.2;
    z-index: 3;
    max-width: 90%;
    text-transform: uppercase;
}

/* Вертикальный текст слева (например, категория) */
.product-label {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 1rem;
    width: 36px;
    background-color: transparent;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: end;
    writing-mode: sideways-lr;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 2rem 0;
    z-index: 3;
    transform: translateY(-7rem);
    animation: slideIn 2.5s ease-out forwards;
}
@keyframes slideIn {
    0% {
        transform: translateY(-7rem);
        opacity: 0; /* можно добавить для большей плавности */
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
/* новости */
.news-card {
    height: 270px;
    position: relative;
    overflow: hidden;
    transition: transform .5s;
}
.news-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.news-meta li::before {
    content: "•";
    color: var(--accent);
    margin-right: 8px;
}

.logo-placeholder {
    height: 40px;
    background-color: #eee;
    margin-top: 10px;
}

.contact-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    color: var(--primary-bg);
}

.btn-primary-custom {
    background-color: var(--primary-bg);
    color: white;
    border: 1px solid black;
    border-radius: 50px;
    width: 100%;
    margin-bottom: 0rem;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary-bg);
    border: 1px solid #ccc;
}

.btn-outline-dark-custom {
    color: var(--primary-bg);
    border-color: var(--primary-bg);
    border-radius: 50px;
    width: 100%;
    margin-bottom: 1rem;
}

.btn-outline-dark-custom:hover {
    background-color: var(--primary-bg);
    color: white;
}


.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.85rem;
}

.slider-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Левая колонка с миниатюрами */
.thumbnail-list {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 400px;           /* одинаковая высота с каруселью */
    overflow-y: auto;
    padding-right: 5px;
}

.thumbnail-item {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.thumbnail-item:hover {
    opacity: 1;
}
.thumbnail-item.active {
    border-color: #0d6efd;
    opacity: 1;
}
.thumbnail-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

/* Правая колонка с каруселью */
.main-carousel {
    flex: 1;
    height: 400px;            /* строго одинаковая высота */
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}
.main-carousel .carousel-inner,
.main-carousel .carousel-item {
    height: 100%;
}
.main-carousel .carousel-item img,
.main-carousel .carousel-item iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.main-carousel .carousel-item img {
    object-fit: contain;
    cursor: pointer;
}

/* Адаптивность */
@media (max-width: 768px) {
    .slider-wrapper {
        flex-direction: column;
    }
    .thumbnail-list {
        flex-direction: row;
        width: 100%;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 5px;
    }
    .thumbnail-item {
        width: 120px;
        flex-shrink: 0;
    }
    .main-carousel {
        width: 100%;
    }
}
.carousel-control-next-icon, .carousel-control-prev-icon {
    filter:invert(100%);
}
.contact-icon img{
    max-width: 28px;
}
.contact-item span a{
    font-family: Gilroy, Arial, sans-serif;
    line-height: 2rem;
    text-decoration: none;
    color: #000;
    font-size: 1rem;
}
.custom_send_form {
    width: 100%;
    max-width: 600px;
    padding: .1em;
}
/*
.product-img{
    background-size: cover;
    background-repeat: no-repeat;
}
.slider-nav-prod {
    width: 10rem;
    height: 25rem;
}
.slider-nav-prod img {
    width: 100%;
    height: auto;
    max-height: 8rem;
    object-fit: cover;
    border: 3px solid transparent;

}
.slider-nav-prod .slick-current img {
    border: 1px solid lightgrey;
}
.slider-main-prod img {
    object-fit: cover; max-width: 100%; max-height: 100%;
    padding: .1em;

}
.slick-list {
    max-height: 24rem;
}

 */
.row.product-detail {
    margin-bottom: 2rem;
}
h1.atom {
    vertical-align: middle;
    color: #292c2f;
    font-size: 22px;
    font-family: var(--t-headline-font, Arial);
    line-height: 1.15;
    font-weight: 600;
    text-transform: uppercase;
    background-position: center center;
    border-width: var(--t396-borderwidth, 0);
    border-style: var(--t396-borderstyle, solid);
    border-color: var(--t396-bordercolor, transparent);
    transition: background-color var(--t396-speedhover, 0s)
    ease-in-out, color var(--t396-speedhover, 0s)
    ease-in-out, border-color var(--t396-speedhover, 0s)
    ease-in-out, box-shadow var(--t396-shadowshoverspeed, 0.2s)
    ease-in-out;
    --t396-shadow-text-opacity: 100%;
    text-shadow: var(--t396-shadow-text-x, 0px) var(--t396-shadow-text-y, 0px) var(--t396-shadow-text-blur, 0px) rgba(var(--t396-shadow-text-color), var(--t396-shadow-text-opacity, 100%));
}
.tn-atom {
    vertical-align: middle;
    color: #292c2f;
    font-size: 14px;
    font-family: var(--t-headline-font, Arial);
    line-height: 1.1;
    font-weight: 700;
}
.size{
    border: 1px solid black;
    display: inline-block;
    width: fit-content;
    padding: .5em;
    text-box: auto;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: transparent;
    border-bottom: 1px solid #f5f5f5;
}
.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    min-height: 20rem;
    padding: 1rem;
    margin-bottom: 2rem;
}
.nav-link {
    color: #000;
}
input#AGGREE {
    width: 14px;
    height: 2em;
    padding: 0;
}
.send_form_field {
    width: 100%;
    padding: .2rem;
    display: inline-flex;
}
.send_form_field p{
    line-height: 2em;
    padding-left: 1em;
}
textarea::placeholder { color: darkgray; font-weight: bold; }
.table{
    font-size: .9rem;
}
.news_h1{
    vertical-align: middle;
    color: #000000;
    font-size: 28px;
    font-family: Arial, sans-serif;
    line-height: 1.15;
    font-weight: 500;
    text-transform: uppercase;
}
.detail_picture{
    width: 100%;
    background: lightgrey;
}
a.btn.btn-primary-black.w-20 {
    background-color: var(--primary-bg);
    color: white;
    border: none;
    border-radius: 50px;
    margin-bottom: 1rem;
    margin: 1em 0;
}
.btn-primary-custom:hover{
    background-color: #ffffff;
    color: black;
    border: 1px solid black;
}
/* === АДАПТИВНОСТЬ === */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .hero { padding: 140px 0 80px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .hero { padding: 120px 0 70px; }
    .contacts-wrapper { flex-direction: column; }
    .product-card {
        height: 730px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
}

@media (max-width: 576px) {
    .hero { padding: 100px 0 60px; }
    h2.section-title { font-size: 1.5rem; }
}