:root {
    --primary-blue: #1a73e8;
    --light-blue: #e8f0fe;
    --dark-blue: #0d47a1;
    --accent-blue: #4285f4;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-dark: #5f6368;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #202124;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Навигация */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar-brand {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--gray-dark);
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    background-color: var(--light-blue);
}

/* Герой секция */
.hero-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 100px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%231a73e8" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-section h1 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 2.8rem;
    position: relative;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto 35px;
    position: relative;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.4);
}

/* Секции */
.section {
    padding: 90px 0;
}

.section-light {
    background-color: var(--white);
}

.section-gray {
    background-color: var(--gray-light);
}

.section-title {
    color: var(--dark-blue);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

/* О компании */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    padding: 25px;
    height: 100%;
    transition: transform 0.3s;
    border-left: 4px solid var(--primary-blue);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h5 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

/* Карусель продукции */
.products-carousel {
    padding: 50px 0;
    position: relative;
    min-height: 500px;
    height: calc(100% + 20px);
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 400px;
    transition: all 0.3s;
    height: 100%;
    margin: 0 15px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.product-img {
    height: 350px;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 3rem;
}

.product-body {
    padding: 25px;
}

.product-title {
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Кнопки навигации карусели по бокам */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.9;
    border: none;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s;
}

.carousel-control-prev {
    left: -30px;
}

.carousel-control-next {
    right: -30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Индикаторы для мобильной версии */
.carousel-indicators-mobile {
    display: flex;
    justify-content: center;
}

.indicators-wrapper {
    display: flex;
    gap: 12px;
}

.carousel-indicators-mobile button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    transition: all 0.3s;
    padding: 0;
}

.carousel-indicators-mobile button.active {
    background-color: var(--primary-blue);
    transform: scale(1.3);
}

/* Новости - исправленная карусель */
.news-carousel-container {
    position: relative;
    padding: 20px 0;
}

.news-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    background: var(--white);
    cursor: grab;
}

.news-carousel:active {
    cursor: grabbing;
}

.news-carousel-inner {
    display: flex;
    transition: transform 0.6s ease-in-out;
    height: 100%;
}

.carousel-inner{
    display: flex;
    align-items: center;
    height: calc(100% + 20px);
    padding-top: 20px;
}

.news-carousel-item {
    flex: 0 0 100%;
    padding: 40px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.news-carousel-item.active {
    opacity: 1;
    position: relative;
}

.news-date {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.news-carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.news-carousel-indicators {
    display: flex;
    gap: 10px;
}

.news-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.news-carousel-indicator.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

.news-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.news-carousel-nav:hover {
    opacity: 1;
}

.news-carousel-prev {
    left: -20px;
}

.news-carousel-next {
    right: -20px;
}

/* Контакты */
.contact-info {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.contact-text h5 {
    color: var(--dark-blue);
    margin-bottom: 5px;
}

/* Футер */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.main {
    background: var(--primary-blue);
}

.main-button {
    position: fixed;
    width: 50px;
    height: 50px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.main-button-left {
    left: 20px;
    bottom: 20px;
}

.main-button-right {
    right: 20px;
    bottom: 20px;
}

.main-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.6);
    color: white;
}


.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
}

/* Блоки детальной информации о продуктах */
.product-details-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    pointer-events: none;
}

.product-detail {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    border-radius: 20px 20px 0 0;
    transition: all 0.4s ease-in-out;
    transform: translateY(100%);
    opacity: 0;
    max-height: 90vh;
    overflow-y: auto;
    pointer-events: all;
}

.product-detail.active {
    transform: translateY(-100%);
    opacity: 1;
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.product-detail-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.product-detail-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.product-detail-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.product-detail-content {
    padding: 30px;
}

.product-detail-content h5 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-detail-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.product-detail-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Таблица характеристик */
.specs-table {
    background: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-name {
    color: var(--gray-dark);
    font-weight: 500;
}

.spec-value {
    color: var(--dark-blue);
    font-weight: 600;
}

/* Оверлей */
.product-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.product-detail-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .news-carousel-item {
        padding: 25px;
    }

    .news-carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    /* Центрирование карточек продукции на мобильных */
    .product-card {
        margin: 0 auto;
        max-width: 300px;
    }
    
    /* Уменьшение отступов для карусели на мобильных */
    .products-carousel {
        padding: 30px 0;
    }
    
    /* Скрываем кнопки навигации на мобильных */
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    /* Показываем индикаторы на мобильных */
    .carousel-indicators-mobile {
        display: flex;
    }

    /* Адаптивность для детальной информации */
    .product-detail-header {
        padding: 20px;
    }
    
    .product-detail-header h3 {
        font-size: 1.3rem;
    }
    
    .product-detail-content {
        padding: 20px;
    }
    
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* Улучшаем видимость индикаторов на мобильных */
    .news-carousel-indicators {
        gap: 15px;
    }
    
    .news-carousel-indicator {
        width: 14px;
        height: 14px;
        background-color: #e0e0e0;
        transition: all 0.3s ease;
    }
    
    .news-carousel-indicator.active {
        background-color: var(--primary-blue);
        transform: scale(1.3);
        box-shadow: 0 2px 5px rgba(26, 115, 232, 0.3);
    }
    
    /* Показываем кнопки навигации на мобильных, но меньшего размера */
    .news-carousel-nav {
        display: flex !important;
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .news-carousel-prev {
        left: 10px;
    }
    
    .news-carousel-next {
        right: 10px;
    }
}

/* Для десктопной версии */
@media (min-width: 768px) {
    /* Скрываем индикаторы на десктопе */
    .carousel-indicators-mobile {
        display: none;
    }
    
    /* Показываем кнопки навигации на десктопе */
    .carousel-control-prev,
    .carousel-control-next {
        display: flex !important;
    }
    
    /* Убираем ограничение ширины карточек на десктопе */
    .product-card {
        max-width: none;
        margin: 0 10px;
    }
    
    /* Позиционируем кнопки по бокам */
    .carousel-control-prev {
        left: -80px;
    }
    
    .carousel-control-next {
        right: -80px;
    }

    /* Скрываем кнопки навигации новостей на десктопе */
    .news-carousel-nav {
        display: flex !important;
    }
}

/* Для больших экранов */
@media (min-width: 1200px) {
    .carousel-control-prev {
        left: -100px;
    }
    
    .carousel-control-next {
        right: -100px;
    }
}

/* Анимация перехода для более плавного эффекта */
.news-carousel-item {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* Эффект при свайпе */
.news-carousel.swiping .news-carousel-item {
    transition: none;
}

.img_product {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 100% 0%;
}

/* === Модальное окно заявки === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

/* Фиксированная кнопка заявки в левом нижнем углу */
.btn-fixed-request {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-fixed-request:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.6);
    color: white;
}


/* Текст кнопки - скрыт на очень маленьких экранах */
.btn-fixed-text {
    display: inline;
    white-space: nowrap;
}


/* Адаптивность */
@media (max-width: 576px) {
    .btn-fixed-request {
        left: 15px;
        bottom: 15px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-fixed-text {
        display: none; /* Показываем только иконку на мобильных */
    }
    
    .btn-fixed-request {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .btn-fixed-request i {
        margin: 0;
    }
}

/* Чтобы кнопка не перекрывала контент на мобильных */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
}