/* Global Styles */
:root {
    --primary: #000000;
    --secondary: #fabf00;
    --light: #f5f5f5;
    --dark: #1a1a1a;
    --accent: #fabf00;
    --text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: all 0.3s ease;
}

a:hover {
    color: #de8404;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #000;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 15px auto;
}

/* Header Styles */
header {
    background-color: white;
    color: var(--primary);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--secondary);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-img {
    height: 50px;
    margin-right: 10px;
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover:after {
    width: 100%;
}

/* красный разделитель в меню */
@media (min-width: 992px) {
    #nav-menu li {
        margin-left: 30px;
        position: relative; /* Для позиционирования псевдоэлемента */
    }

    /* Вертикальный разделитель перед каждым пунктом, кроме первого */
    #nav-menu li:not(:first-child)::before {
        content: '';
        position: absolute;
        left: -15px; /* Половина от margin-left (30px / 2) */
        top: 55%;
        transform: translateY(-50%);
        width: 2px;
        height: 18px; /* Высота черты */
        background-color: var(--accent); /* Цвет черты */
        opacity: 0.7; /* Можно настроить прозрачность */
    }
}
/* end красный разделитель в меню */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 0;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Equipment Section */
.equipment {
    background-color: var(--light);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.equipment-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    min-width: 0;
}

.equipment-card:hover {
    transform: translateY(-10px);
}

.equipment-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.equipment-image {
    height: 200px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.1);
}

.equipment-content {
    padding: 20px;
}

.equipment-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.equipment-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.equipment-price {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.2rem;
    margin: 10px 0;
}

/* Kits Section */
.kits {
    background-color: white;
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.kit-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.kit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.kit-image {
    height: 200px;
    overflow: hidden;
}

.kit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kit-card:hover .kit-image img {
    transform: scale(1.05);
}

.kit-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kit-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.kit-content .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 10px 0 15px;
}

.kit-content ul {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

.kit-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.kit-content ul li:before {
    content: '✓';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.kit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cases Section */
.cases {
    background-color: var(--light);
    position: relative;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.case-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.case-card:nth-child(-n+3) {
    display: block;
}

.case-image {
    height: 250px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.case-content .date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.show-more-container {
    text-align: center;
    margin-top: 30px;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details div {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-details i {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-form {
    flex: 1;
    background-color: var(--light);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bdc3c7;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
}


/* Article Page Styles */
.article {
    padding: 100px 0 60px;
    background-color: white;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-image {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
}

.article-text {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-text img {
    max-width: 100%;
}

.article-text h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary);
}

.article-text p {
    margin-bottom: 20px;
}

.article-text ul {
    margin-bottom: 30px;
    padding-left: 30px;
}

.article-text li {
    margin-bottom: 10px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags a {
    color: var(--secondary);
    font-size: 0.9rem;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary);
    color: white;
}

/* Equipment Item Page Styles */
.equipment-item {
    padding: 100px 0 60px;
    background-color: white;
}

.equipment-item-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.equipment-item-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--secondary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-item-info {
    position: relative;
}

.equipment-item-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.equipment-item-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 30px;
}

.equipment-item-specs {
    margin-bottom: 30px;
}

.equipment-item-specs h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.equipment-item-specs ul {
    list-style: none;
}

.equipment-item-specs li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.equipment-item-specs li:before {
    content: '•';
    color: var(--secondary);
    position: absolute;
    left: 0;
}

.equipment-item-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.equipment-item-description {
    margin-bottom: 30px;
}

.equipment-item-description h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.equipment-item-description p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: var(--secondary);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: var(--light);
    font-weight: 600;
}

.review {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-author {
    font-weight: 600;
}

.review-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.review-rating {
    color: var(--secondary);
}

.review-form {
    margin-top: 50px;
    background-color: var(--light);
    padding: 30px;
    border-radius: 8px;
}

.review-form h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.related-equipment {
    margin-top: 60px;
}

.related-equipment h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
}

/* Responsive Styles for New Pages */
@media (max-width: 992px) {
    .equipment-item-content {
        grid-template-columns: 1fr;
    }
    
    .equipment-item-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .article {
        padding: 80px 0 40px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-text h2 {
        font-size: 1.5rem;
    }
    
    .equipment-item-actions {
        flex-direction: column;
    }
}

/* secondary-nav */
.secondary-nav-container {
    background-color: #2a2a2a;
    width: 100%;
    position: sticky;
    top: 82px; 
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.secondary-nav {
    width: 100%;
}

.secondary-menu {
    display: flex;
    list-style: none;
    justify-content: space-between;
    padding: 12px 0;
    margin: 0;
}

.secondary-menu li {
    margin: 0;
}

.secondary-menu a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 10px;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.secondary-menu a:hover {
    color: #fabf00; /* Красный при наведении */
}

.secondary-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #fabf00;
    bottom: -3px;
    left: 0;
    transition: width 0.3s;
}

.secondary-menu a:hover:after {
    width: 100%;
}

/* Полностью скрываем на мобильных */
@media (max-width: 768px) {
    .secondary-nav-container {
        display: none;
    }
    .hero-content h1{
        font-size: 20px;
    }
}


.mobile-only {
    display: none;
}

/* Показываем на мобильных (например, при ширине экрана ≤ 768px) */
@media (max-width: 768px) {
    .mobile-only {
        display: list-item;
    }
}


.brands-block {
    margin: 20px 0;
    font-family: inherit;
    text-transform: uppercase;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.brand-item {
    text-align: center;
}

.brand-link {
    text-decoration: none;
    color: inherit; /* Наследует стиль ссылок сайта */
    display: block;
    transition: opacity 0.3s ease;
}

.brand-link:hover {
    opacity: 0.8;
}

.brand-image-container {
    height: 80px; /* Фиксированная высота для всех изображений */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.brand-image {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.brand-name {
    display: block;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .brand-image-container {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.productCategoryLink {
    border-radius: 8px;
    padding: 6px;
    background: none;
    font-size: 0.8rem;
    border: var(--secondary) 1px solid;
}

.productCategoryLink:hover {
    background: var(--dark);
    color: #fff;
    border: var(--dark) 1px solid;
}