/* ===== CSS Variables ===== */
:root {
    /* Цветовая палитра на основе #333 */
    --primary: #146517; /*Основной красный цвет (как в оригинале) */
    --primary-dark: #19501e;   /* Более тёмный красный */
    --secondary: #2a9d8f;      /* Вторичный цвет */

    /* Основная цветовая схема с #333 */
    --dark: #333333;           /* Цвет фона шапки, подвала и CTA секций */
    --dark-light: #444444;     /* Более светлый вариант тёмного цвета */
    --dark-lighter: #555555;   /* Ещё светлее для границ и эффектов */

    /* Остальные цвета для контраста */
    --light: #f8f9fa;          /* Светлый фон */
    --gray: #666666;           /* Серый для текста */
    --gray-light: #e9ecef;     /* Светло-серый фон */
    --gray-border: #dee2e6;    /* Цвет границ */
    --white: #ffffff;          /* Белый */
    --black: #212529;          /* Чёрный текст */

    /* Остальные переменные остаются без изменений */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    --font-base: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
}

body {
    font-family: var(--font-base);
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-sm);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: var(--space-sm) auto;
    border-radius: 2px;
}

/* ===== Header ===== */
.header {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-md);
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

@media (min-width: 768px) {
    .header-top {
        flex-direction: row;
        text-align: left;
        gap: var(--space-xl);
    }
}

.logo img {
    width: 300px;
    height: auto;
}

@media (min-width: 768px) {
    .logo img {
        width: 400px;
    }
}

.header-content {
    flex: 1;
}

.header-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: var(--light);
}

@media (min-width: 768px) {
    .header-title {
        font-size: 1.75rem;
    }
}

.header-subtitle {
    color: var(--gray-light);
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* ===== Navigation ===== */
.nav {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) 0;
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    position: absolute;
    top: 50%;
    right: var(--space-md);
    transform: translateY(-50%);
    z-index: 1001;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: none;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: var(--space-lg);
    }
}

.nav-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--dark);
    padding: var(--space-lg);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: var(--space-sm);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    z-index: 1000;
    padding: var(--space-sm) 0;
}

@media (min-width: 768px) {
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--dark);
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--gray-light);
    color: var(--primary);
}

/* ===== Main Content ===== */
.main {
    flex: 1;
    padding: var(--space-xl) 0;
}

.section {
    padding: var(--space-xl) 0;
}

.section-light {
    background-color: var(--gray-light);
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-link {
    display: block;
    height: 100%;
}

.product-image {
    padding: var(--space-lg);
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
    background-color: var(--gray-light);
}

.product-image img {
    max-width: 400px;
    height: 300px;
    object-fit: contain;
    margin: 0 auto;
}

.product-content {
    padding: var(--space-lg);
}

.product-title {
    color: var(--dark);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.product-features {
    margin-bottom: var(--space-lg);
}

.product-features li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    color: var(--gray);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.product-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.product-card:hover .product-button {
    background-color: var(--primary-dark);
}

/* ===== Accessories Grid ===== */
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .accessories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1024px) {
    .accessories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

.accessory-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.accessory-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.accessory-link {
    display: block;
    height: 100%;
}

.accessory-image {
    margin-bottom: var(--space-md);
}

.accessory-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto;
}

.accessory-title {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--dark);
}

.accessory-content p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
}

/* ===== CTA Section ===== */
.cta-section {
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white);
}

.cta-text {
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-xl);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--space-lg) 0;
    text-align: center;
    margin-top: auto;
}

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===== Scroll Top Button ===== */
.scroll-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.scroll-top.visible {
    display: flex;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.mt-sm {
    margin-top: var(--space-sm);
}
.mt-md {
    margin-top: var(--space-md);
}
.mt-lg {
    margin-top: var(--space-lg);
}
.mt-xl {
    margin-top: var(--space-xl);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}
.mb-md {
    margin-bottom: var(--space-md);
}
.mb-lg {
    margin-bottom: var(--space-lg);
}
.mb-xl {
    margin-bottom: var(--space-xl);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Новые стили для страниц продукта ===== */

/* Хлебные крошки */
.breadcrumbs {
    padding: 1rem 0;
    background-color: var(--gray-light);
    font-size: 0.9rem;
}

.breadcrumbs .container {
    display: flex;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: var(--gray);
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--dark);
    font-weight: 500;
}

/* Заголовок страницы */
.page-title {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
}

/* Hero секция продукта */
.product-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .product-hero {
        grid-template-columns: 1fr 1fr;
    }
}

.product-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

@media (min-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.product-description {
    margin-bottom: var(--space-xl);
}

.product-description p {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.6;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}

.product-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Спецификации */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.specs-category {
    background-color: var(--white);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.specs-category-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--dark);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
}

.specs-list {
    list-style: none;
}

.spec-item {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-light);
}

.spec-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.spec-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.spec-value {
    color: var(--gray);
    font-size: 1.05rem;
}

.spec-note {
    display: block; /* Чтобы было на новой строке */
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
    margin-top: 0.25rem;
    line-height: 1.4;
    opacity: 0.85;
}

/* Комплект поставки */
.kit-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .kit-container {
        grid-template-columns: 1fr 1fr;
    }
}

.kit-list {
    list-style: none;
}

.kit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kit-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.kit-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.kit-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.kit-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.kit-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius)
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== Стили для страницы контактов ===== */

/* Интро текст */
.intro-text {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    text-align: left;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* Карточки дилеров */
.dealers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .dealers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dealer-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dealer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dealer-logo {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.dealer-logo img {
    max-height: 150px;
    width: auto;
    margin: 0 auto;
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius);
    background-color: var(--white);
    transition: all 0.2s ease;
}

.dealer-logo img:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dealer-name {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--dark);
    text-align: center;
}

.dealer-info {
    margin-bottom: var(--space-lg);
}

.dealer-info h4 {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dealer-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--space-xs);
}

.dealer-contacts {
    border-top: 1px solid var(--gray-light);
    padding-top: var(--space-lg);
}

.dealer-contacts h4 {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--primary);
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Контакты компании */
.company-contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .company-contacts {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-channel {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    flex: 1;
}

.contact-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.contact-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--space-md);
    color: var(--gray);
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.telegram-link:hover {
    text-decoration: underline;
}

/* Изображения Telegram */
.telegram-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .telegram-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

.telegram-image {
    text-align: center;
}

.telegram-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.telegram-image img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: var(--gray);
}

/* ДЛЯ ТЕЛЕФОНОВ - уменьшаем на 30% */
@media (max-width: 768px) {
    .telegram-image img {
        max-width: 210px;
    }
}

/* Для очень маленьких экранов можно уменьшить ещё */
@media (max-width: 480px) {
    .telegram-image img {
        max-width: 180px;
    }
}

/* Форма обратной связи */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-description {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: 1.1rem;
    color: var(--gray);
}

.contact-form {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-base);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.checkbox-group input {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== Стили для страницы загрузок ===== */

/* Секция загрузки */
.download-section {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
}

.download-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--gray-light);
}

.download-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.version {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.date {
    color: var(--gray);
    font-size: 0.9rem;
}

.download-instructions {
    margin-bottom: var(--space-xl);
}

.download-instructions h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    color: var(--dark);
}

.instructions-list {
    list-style: decimal;
    padding-left: 1.5rem;
}

.instructions-list li {
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.download-files h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    color: var(--dark);
}

.file-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .file-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.file-card {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-lg);
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.file-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.file-content {
    flex: 1;
}

.file-name {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--dark);
}

.file-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Сетка загрузок */
.download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .download-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.download-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.download-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-light);
}

.download-card-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0;
}

.download-card-status {
    background-color: var(--gray-light);
    color: var(--gray);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.download-card-content {
    margin-bottom: var(--space-md);
}

.download-card-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray);
    margin-bottom: var(--space-md);
}

.download-card-files {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.file-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.file-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.file-link.disabled {
    color: var(--gray);
    pointer-events: none;
    opacity: 0.6;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background-color: var(--white);
    border: none;
    font-family: var(--font-base);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--gray-light);
}

.faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--white);
}

.faq-answer-content {
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer p,
.faq-answer ol,
.faq-answer ul {
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-answer ol,
.faq-answer ul {
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: var(--space-xs);
}

/* Баннер поддержки */
.support-banner {
    background-color: var(--dark);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.support-content h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.support-content p {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* Утилиты */
.btn-secondary {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
    background-color: var(--gray-light);
    border-color: var(--gray);
}

.cta-section .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Дополнительные кнопки */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Состояния */
.success {
    color: #10b981;
}

.warning {
    color: #f59e0b;
}

.error {
    color: #ef4444;
}

/* Адаптивность изображений */
.responsive-image {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Печать */
@media print {
    .nav,
    .footer,
    .scroll-top,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* Стили для страницы новостей */
.news-hero {
    text-align: center;
    padding: var(--space-xl) 0;
}

.news-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.news-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background-color: var(--primary);
    color: var(--white);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 60px;
}

.news-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.news-month, .news-year {
    display: block;
    font-size: 0.8rem;
    line-height: 1;
}

.news-card-content {
    padding: var(--space-lg);
}

.news-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--dark);
    line-height: 1.3;
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-category {
    background-color: var(--gray-light);
    color: var(--gray);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.news-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-read-more:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-item:hover,
.pagination-item.active {
    background-color: var(--primary);
    color: var(--white);
}

.pagination-dots {
    color: var(--gray);
}

.pagination-next {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background-color: transparent;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.pagination-next:hover {
    background-color: var(--gray-light);
    border-color: var(--gray);
}

.newsletter {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.newsletter-text {
    margin-bottom: var(--space-xl);
    color: var(--gray);
}

.newsletter-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .newsletter-form .form-group {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-base);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form .btn {
    white-space: nowrap;
}

.archive {
    max-width: 800px;
    margin: 0 auto;
}

.archive-year {
    margin-bottom: var(--space-xl);
}

.archive-year-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--dark);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
}

.archive-list {
    list-style: none;
}

.archive-list li {
    margin-bottom: var(--space-sm);
    padding: var(--space-sm);
    background-color: var(--white);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.archive-list li:hover {
    transform: translateX(5px);
}

.archive-list a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: var(--dark);
}

.archive-date {
    min-width: 60px;
    font-weight: 600;
    color: var(--primary);
}

.archive-list a:hover .archive-date {
    color: var(--primary-dark);
}

.primary-link {
    color: var(--primary) !important; /* #146517 */
    text-decoration: underline;
    font-weight: 500;
}

.primary-link:hover {
    color: var(--primary-dark) !important; /* Немного темнее для hover */
    text-decoration: none;
}

/* Простой маркированный список с зелёными точками */
ul.dot-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

ul.dot-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

ul.dot-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #146517; /* Ваш primary цвет */
    font-size: 20px;
    line-height: 1.4;
}

/* ===== Dropdown for touch devices (phones + tablets) ===== */
@media (hover: none), (pointer: coarse) {
  .nav-item.dropdown .dropdown-menu {
    display: none;
    position: static;
    margin: 6px 0 0;
    padding: 6px 0;
    background: rgba(255,255,255,0.06); /* чтобы было видно на тёмном фоне */
    border-radius: 10px;
    box-shadow: none;
  }

  .nav-item.dropdown.active .dropdown-menu {
    display: block;
  }

  .nav-item.dropdown .dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--white);
    opacity: 0.95;
  }

  .nav-item.dropdown .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  /* на всякий случай: если где-то меню режется */
  .nav-menu {
    overflow: visible;
  }
}