:root {
    --primary-color: #ed1c24;
    --primary-dark: #8e0000;
    --accent-color: #d32f2f;
    --bg-light: #f8f9fa;
    --text-main: #333;
    --text-muted: #666;
    --text-info: #444444; /* Темно-сірий колір для інформації */
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* ========================================= */
/* СТИЛІ ГОЛОВНОЇ СТОРІНКИ (index.html)      */
/* ========================================= */

.ins-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.ins-hero {
    padding: 80px 0 130px; /* Збільшено відступ знизу, щоб картки були над банером */
    color: #333333; /* Змінено на темний, щоб текст добре читався на білому тлі */
    background-color: #ffffff; /* Залишаємо лише біле тло */
    /* Видалено background-image, background-size та background-position */
    position: relative;
    overflow: hidden;
}

.ins-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Змінено колір відблиску на темний, щоб його було видно на білому */
    background: linear-gradient(45deg, transparent 30%, rgba(0, 0, 0, 0.01) 50%, transparent 70%);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ins-hero-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.ins-hero-logo {
    flex-shrink: 0;
    width: 290px;
    background: #fffff;
    padding: 0px;
    border-radius: 0px;
    box-shadow: 0 0px 0px rgba(0,0,0,0.01);
    transition: transform 0.3s ease;
    animation: fadeInLeft 0.6s ease-out;
}

.ins-hero-logo:hover { transform: translateY(-5px); }

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.ins-hero-logo img { width: 100%; height: auto; display: block; }

.ins-hero-content { animation: fadeInRight 0.6s ease-out; }

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.ins-hero-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.ins-hero-descr {
    font-size: 16px;
    opacity: 0.95;
    max-width: 800px;
}

/* КАРТКИ НАД БАНЕРОМ */
.ins-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: -65px; /* Переміщує картки вгору, на банер */
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.ins-feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid rgba(198, 40, 40, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.ins-feature-card:nth-child(1) { animation-delay: 0.1s; }
.ins-feature-card:nth-child(2) { animation-delay: 0.2s; }
.ins-feature-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.ins-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 2px 4px rgba(198, 40, 40, 0.15);
    border-color: var(--primary-color);
}

.ins-feature-card i {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.ins-feature-card:hover i { transform: scale(1.1); }
.ins-feature-val { font-size: 26px; font-weight: 800; display: block; color: var(--primary-color); }
.ins-feature-label { font-size: 12px; text-transform: uppercase; font-weight: 700; color: #888; letter-spacing: 1px; }

/* МАКЕТ З САЙДБАРОМ */
.ins-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    padding-bottom: 80px;
    align-items: start;
}

.ins-section {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    border: 1px solid #f0f0f4;
    transition: box-shadow 0.3s ease;
}

.ins-section:hover { box-shadow: 0 3px 5px rgba(0,0,0,0.08); }

.ins-section-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f5;
    transition: background 0.2s ease;
}

.info-row:hover { background: #fafafa; }
.info-row:last-child { border-bottom: none; }
.info-row strong { color: #888; font-weight: 600; font-size: 14px; }
.info-row span { font-weight: 700; color: #1a1a1a; text-align: right; }

.ins-descr-box {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f4;
    font-size: 14px;
    color: var(--text-muted);
}

.ins-nbu-link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: underline;
    display: inline-block;
    margin-top: 10px;
}

.ins-nbu-link:hover { text-decoration: none; color: var(--primary-dark); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-item {
    padding: 25px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fef5f5 100%);
    border-radius: 8px;
    border: 2px solid #f0f0f4;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 40, 40, 0.1), transparent);
    transition: left 0.5s ease;
}

.product-item:hover::before { left: 100%; }

.product-item:hover {
    border-color: var(--primary-color);
    background: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 2px 3px rgba(198, 40, 40, 0.15);
}

.product-item i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.product-item:hover i { transform: scale(1.15) rotate(5deg); }
.product-item h4 { margin: 0; font-size: 15px; font-weight: 700; position: relative; }

/* САЙДБАР */
.ins-sidebar-widget {
    position: sticky;
    top: 30px;
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 3px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f4;
}

.status-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 25px;
}

.status-badge.open { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #2e7d32; }
.status-badge.closed { background: linear-gradient(135deg, #ffebee, #ffcdd2); color: #c62828; }

.widget-phone {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    display: block;
    margin: 10px 0;
}

.widget-phone:hover { color: var(--primary-dark); transform: scale(1.05); }
.widget-note { font-size: 13px; color: var(--text-muted); margin-bottom: 25px; }

.widget-links {
    border-top: 1px solid #f0f0f4;
    padding-top: 25px;
    text-align: left;
}

.widget-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;

    padding: 8px;
    border-radius: 8px;
}

.widget-link:hover { background: rgba(198, 40, 40, 0.05); transform: translateX(5px); }
.widget-link i { transition: transform 0.3s ease; }
.widget-link:hover i { transform: scale(1.2); }

/* ========================================= */
/* СТИЛІ СТОРІНКИ ПРОДУКТУ (o-autotsyvilka)  */
/* ========================================= */

/* Контейнер на 90% (без сайдбару) */
.product-container {
    width: 90%;
    max-width: 1140px;
    margin: 40px auto;
    color: var(--text-info); /* Робить весь загальний текст темно-сірим */
}

/* Назва червоним і з анімацією */
.product-title {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.05), rgba(198, 40, 40, 0.1));
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

details {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.05);
    border: 2px solid #f0f0f4;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

details:hover {
    box-shadow: 0 2px 5px rgba(198, 40, 40, 0.1);
    border-color: rgba(198, 40, 40, 0.2);
}

details[open] { border-color: var(--primary-color); }

summary {
    cursor: pointer;
    list-style: none;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fef5f5 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

summary::-webkit-details-marker { display: none; }

summary::before {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

details[open] summary::before { transform: translateY(-50%) rotate(180deg); }
summary:hover { background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%); transform: translateX(5px); }

/* Заголовок розкривного списку - червоний */
summary h5 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 3px rgba(0,0,0,0.05);
}

thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

th {
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f4;
    color: var(--text-info); /* Текст в таблиці темно-сірий */
}

tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.2s ease; }
tbody tr:hover { background: rgba(198, 40, 40, 0.03); }
tbody tr:nth-child(even) { background: #fafafa; }
tbody tr:nth-child(even):hover { background: rgba(198, 40, 40, 0.05); }

/* Оригінальний клас для блоку з PDF */
.frame {
    width: 100%; /* Займає 100% від контейнера, який вже 90% */
    margin: 30px auto;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f4;
    transition: box-shadow 0.3s ease;
}

.frame:hover { box-shadow: 0 2px 3px rgba(0,0,0,0.08); }

/* СІТКА ДЛЯ ДОКУМЕНТІВ (2 В РЯД) */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* Якщо в сітці лише один документ, він займає весь рядок */
.download-link:only-child {
    grid-column: 1 / -1; /* Розтягується на обидві колонки сітки */
}

/* ВАШІ КРАСИВІ СТИЛІ ДЛЯ КАРТОК (Збережено всі ефекти) */
.download-link {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fef5f5 100%);
    border-radius: 8px;
    border: 2px solid #f0f0f4;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* margin-bottom прибрали, бо тепер відступи робить gap у сітці */
}

.download-link::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 40, 40, 0.1), transparent);
    transition: left 0.5s ease;
}

.download-link:hover::before { left: 100%; }

.download-link:hover {
    border-color: var(--primary-color);
    /* Змінив рух вбік на рух вгору (translateY), у сітці це виглядає набагато краще і рівніше */
    transform: translateY(-5px); 
    box-shadow: 0 2px 2px rgba(198, 40, 40, 0.15);
}

.download-link img { width: 48px; height: 48px; flex-shrink: 0; transition: transform 0.3s ease; }
.download-link:hover img { transform: scale(1.1) rotate(5deg); }
.download-link__wrapper { flex: 1; }

.download-link__name {
    color: var(--text-info); /* Темно-сірий колір, як ви просили */
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.download-link__name:hover { color: var(--primary-dark); text-decoration: underline; }

.download-link__text {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* Адаптивність */
@media (max-width: 900px) {
    .ins-hero-flex { flex-direction: column; text-align: center; }
    .ins-main-grid { grid-template-columns: 1fr; }
    .ins-features { grid-template-columns: 1fr; margin-top: 20px; }
    .ins-sidebar-widget { position: static; margin-bottom: 40px; }
    .product-container { width: 100%; padding: 0 15px; }
}

@media (max-width: 768px) {
    /* На телефонах робимо документи по одному в ряд */
    .download-grid { grid-template-columns: 1fr; } 
}

/* Стилізація двоколірного заголовка */
.product-page-title {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.4;
    font-weight: 800;
}

.title-red {
    color: #c62828; /* Ваш основний червоний */
    display: block; /* Виводить на окремий рядок */
    font-size: 28px;
    margin-bottom: 5px;
}

.title-gray {
    color: #444444; /* Темно-сірий */
    display: block;
    font-size: 22px; /* Трохи менший розмір для назви компанії */
    font-weight: 700;
}

/* Стиль для інформації в summary */
summary h5 {
    color: #444444 !important; /* Назва блоку інформації темно-сірим */
    margin: 0;
    font-weight: 700;
}

/* КНОПКА ПОВЕРНЕННЯ НА ГОЛОВНУ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666; /* Або var(--text-muted) */
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #ffffff; /* Або var(--white) */
    border: 1px solid #f0f0f4;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #c62828; /* Або var(--primary-color) */
    border-color: rgba(198, 40, 40, 0.2);
    box-shadow: 0 2px 3px rgba(198, 40, 40, 0.08);
    transform: translateX(-5px);
}

/* Картки: центрування по вертикалі, вирівнювання ліворуч */
.product-item, 
.download-link {
    display: flex;
    flex-direction: row; /* Розташовує іконку зліва, а текст справа */
    align-items: center; /* Рівномірне центрування елементів по вертикалі (по висоті картки) */
    justify-content: flex-start; /* Притискає весь контент до лівого краю */
    text-align: left; /* Вирівнювання тексту ліворуч */
    height: 100%; /* Картки в одному ряду будуть однакової висоти */
    min-height: 100px;
    padding: 20px 15px;
    box-sizing: border-box;
    gap: 15px; /* Задає чіткий і однаковий відступ між іконкою та текстом у всіх картках */
}

/* Обгортка тексту в секції "Офіційна інформація та документи" */
.download-link__wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Текст всередині обгортки також по лівому краю */
    justify-content: center;
}

/* Скидання стандартних відступів, щоб центрування працювало ідеально */
.product-item h4 {
    margin: 0;
}

/* Вимикаємо старі марджини для іконок, оскільки тепер за відступи відповідає gap: 15px */
.product-item i, 
.download-link i {
    margin: 0 !important;
    flex-shrink: 0; /* Забороняє іконці стискатися, якщо текст дуже довгий */
}

/* Універсальна картка продукту (з іконкою або без неї) */
.product-item {
    display: flex;
    flex-direction: column; /* Елементи один під одним (іконка зверху, текст знизу) */
    align-items: center;    /* Горизонтальне центрування */
    justify-content: center;/* Вертикальне центрування */
    text-align: center;     /* Вирівнювання самого тексту */
    height: 100%;
    min-height: 120px;      /* Рекомендую трохи збільшити висоту, якщо будуть іконки */
    padding: 20px 15px;
    box-sizing: border-box;
    gap: 12px;              /* Відстань між іконкою та текстом. Працює ТІЛЬКИ якщо є обидва елементи! */
}

/* Скидаємо стандартні відступи, щоб центрування було математично точним */
.product-item h4 {
    margin: 0;
}

.product-item i {
    margin: 0 !important; /* Марджин більше не потрібен, за відступ відповідає gap */
}