:root {
    --truvor-navy: #0f172a;
    --truvor-blue: #0284c7;
    --truvor-light-bg: #f8fafc;
    --truvor-border: #e2e8f0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #334155;
    background-color: var(--truvor-light-bg);
    line-height: 1.7;
}

.navbar-truvor {
    background-color: var(--truvor-navy);
    border-bottom: 3px solid var(--truvor-blue);
}
/* ==========================================
   НАВИГАЦИОННОЕ МЕНЮ И ИКОНКА СВЯЗИ
   ========================================== */

/* Если навигация внутри navbar построена на <ul> */
.navbar-truvor ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

/* Выравнивание отдельного элемента <li> с иконкой */
.navbar-truvor li {
    display: flex;
    align-items: center;
}

/* Стилизация иконки-конверта */
.navbar-truvor .nav-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--truvor-blue, #0284c7);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.navbar-truvor .nav-icon-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 4rem 0 3rem 0;
    border-bottom: 1px solid #334155;
}

.badge-tech {
    background-color: rgba(2, 132, 199, 0.15);
    color: #0284c7;
    font-weight: 600;
    border: 1px solid rgba(2, 132, 199, 0.3);
}

.card-custom {
    border: 1px solid var(--truvor-border);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background-color: var(--truvor-navy);
    color: white;
    font-weight: 600;
}

.accent-border-left {
    border-left: 4px solid var(--truvor-blue);
    padding-left: 1.25rem;
}
/* Основной контейнер футера */
footer, .site-footer {
    background-color: var(--truvor-navy, #0f172a);
    color: #94a3b8;
    border-top: 1px solid #334155;
    width: 100%;
    padding: 40px 0 20px;
    box-sizing: border-box;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Верхняя сетка колонок */
.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
}

/* ==========================================
   ПОДВАЛ ПОДВАЛА (Sub-footer)
   ========================================== */
.footer-bottom {
    border-top: 1px solid #1e293b; /* Тонкая разделительная линия */
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    
    /* Единый стиль текста как у копирайта 
    font-size: 13px;
    color: #64748b; */
}

/* Ссылки правовой информации и разработчика в стиле копирайта */
.footer-bottom a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #94a3b8;
    text-decoration: underline;
}

/* Строчный список правовых ссылок */
.footer-legal-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legal-inline .sep {
    color: #334155;
    user-select: none;
}

/* ==========================================
   Стили для главной страницы
   Квадратные адаптивные изображения в карточках товаров
   ========================================== */
.home-page .product-card .card-img-top,
.home-page .card-product .card-img-top {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
}

/* Статьи в карусели - обычные адаптивные изображения */
.home-page .article-card .card-img-top,
.home-page .card-article .card-img-top {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
}

/* ==========================================
   Стили для страницы статей
   Высота карточек унифицирована, изображения адаптивные
   ========================================== */
.articles-page .card {
    height: 280px;
    overflow: hidden;
}

.articles-page .card-img-top {
    height: 140px;
    width: 100%;
    object-fit: cover;
}

.articles-page .card-body {
    padding: 0.75rem;
}

.articles-page .card-title.h6,
.articles-page .card-title.h7 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.articles-page .card-text {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.articles-page .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
}

.articles-page .stretched-link {
    padding-top: 0.25rem;
}

.articles-page .hero-section {
    padding: 2.5rem 0 2rem;
}

.articles-page .hero-section h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.articles-page .hero-section p.lead {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.articles-page main {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.articles-page .display-4 {
    font-size: 1.75rem;
}

.articles-page .display-5 {
    font-size: 1.5rem;
}

/* Специальный стиль для главного тизера AMD vs Mac */
.articles-page .card-featured {
    height: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.articles-page .card-featured .card-img-top {
    height: 75%;
    width: 100%;
    object-fit: cover;
}

.articles-page .card-featured .card-body {
    height: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Адаптивность для мобильных экранов */
@media (max-width: 900px) {
    .footer-grid {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-legal-inline {
        justify-content: center;
    }
}

/* ==========================================
   Стили для страницы каталога товаров
   ========================================== */
.catalog-page .home-page .product-card .card-img-top,
.catalog-page .card-product .card-img-top {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
}

.catalog-page .home-page .article-card .card-img-top,
.catalog-page .card-article .card-img-top {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
}

/* Адаптивные изображения в карточках товаров */
.catalog-page .product-card .card-img-top {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
}

/* ==========================================
   Стили для табов продукта
   ========================================== */
.nav-tabs {
    border-bottom: 1px solid var(--truvor-border);
}

.nav-tabs .nav-link {
    color: #334155;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
}

.nav-tabs .nav-link.active {
    color: var(--truvor-navy);
    background-color: #f8fafc;
    border-color: var(--truvor-border);
    border-bottom: 1px solid #f8fafc;
}

.tab-content {
    padding-top: 1.5rem;
}

/* ==========================================
   BREADCRUMB STYLES
   ========================================== */
.hero-section .breadcrumb {
    color: #94a3b8;
}
.hero-section .breadcrumb-item a {
    color: #94a3b8 !important;
}
.hero-section .breadcrumb-item.active {
    color: #cbd5e1 !important;
}

/* Square images for product cards on all pages */
.product-card .card-img-top,
.home-page .product-card .card-img-top {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
}

/* Card titles use dark-blue color matching nav menu style */
.products-page .card-title,
.card-title {
    color: #1e293b !important;
}
.card-title a {
    color: inherit !important;
    text-decoration: none;
}

/* ==========================================
   Стили для карусели на главной странице
   ========================================== */
.carousel-item img {
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

/* Carousel controls positioned at the very edges */
#carousel-example-generic .carousel-control-prev {
    left: 0;
    width: 44px;
    padding: 0;
    background: none;
}
#carousel-example-generic .carousel-control-next {
    right: 0;
    width: 44px;
    padding: 0;
    background: none;
}
#carousel-example-generic .carousel-control-prev-icon,
#carousel-example-generic .carousel-control-next-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================
   Card hover effect (shared between Truvor and Leo-impeqru)
   ========================================== */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Category cards for products page — matches Leo-impeqru style */
.category-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 165, 238, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(148, 165, 238, 0.4);
}
.category-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid rgba(148, 165, 238, 0.1);
}

/* ==========================================
   Стили для страницы таймлайна (milestones.html)
   ========================================== */
.timeline-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
    overflow-x: auto;
    padding-bottom: 2rem;
}
.horizontal-timeline {
    display: flex;
    align-items: flex-start;
    min-height: 320px;
    padding-top: 40px;
    position: relative;
    gap: 2rem;
}
.horizontal-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(148,165,238,0.2) 0%, rgba(148,165,238,0.4) 50%, rgba(148,165,238,0.2) 100%);
}
.timeline-node {
    flex: 0 0 auto;
    min-width: 280px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.timeline-node::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #94a3b8;
    border: 2px solid #0f172a;
    box-shadow: 0 0 0 2px rgba(148, 165, 238, 0.2);
    z-index: 3;
}
.timeline-caption {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-style: italic;
    padding: 0.5rem 0.8rem;
}
.timeline-title {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    padding: 0 0.8rem;
}
.timeline-desc {
    font-size: 0.8rem;
    color: #cbd5e1;
    padding: 0 0.8rem 0.5rem;
    line-height: 1.5;
}
.timeline-content {
    margin-top: 60px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 165, 238, 0.3);
    border-radius: 8px;
    overflow: hidden;
    width: 280px;
}
.timeline-img img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(148, 165, 238, 0.1);
}
@media (max-width: 576px) {
    .timeline-node {
        min-width: 220px;
    }
    .timeline-content {
        width: 220px;
    }
    .timeline-title {
        font-size: 0.8rem;
    }
    .timeline-desc {
        font-size: 0.7rem;
    }
}