/* Контейнер статті */
article {
    width: 100%;
    padding: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

/* Заголовки з фірмовим акцентом */
article h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 30px;
    color: #1d1d1f;
    text-align: center;
}

article h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0d53a9;
    padding-bottom: 10px;
}

article h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #1d1d1f;
}

/* Текст та посилання у фірмовому кольорі */
article p {
    margin-bottom: 20px;
    color: #333336;
}

article a {
    color: #0d53a9;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

article a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Блок навігації */
article nav {
    background-color: #f5f5f7;
    border-radius: 18px;
    padding: 30px;
    margin: 40px 0;
}

article nav h2 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 22px;
}

/* Цитати з фірмовою лінією */
article blockquote {
    background-color: #f5f5f7;
    border-left: 4px solid #0d53a9;
    margin: 35px 0;
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

/* Таблиці та підсвітка на десктопі */
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 15px;
    text-align: left;
}

article thead th {
    background-color: #f5f5f7;
    color: #1d1d1f;
    font-weight: 600;
    padding: 16px;
    border-bottom: 1px solid #d2d2d7;
}

article tbody td {
    padding: 16px;
    border-bottom: 1px solid #e5e5ea;
    color: #333336;
    vertical-align: top;
    transition: background-color 0.2s ease;
}

/* Ефект підсвічування для ПК */
@media (min-width: 1024px) {
    article tbody tr:hover td {
        background-color: rgba(13, 83, 169, 0.05);
        cursor: default;
    }
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    article {
        padding: 20px 15px;
        font-size: 16px;
    }

    article h1 {
        font-size: 32px;
    }

    article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    article thead th, article tbody td {
        min-width: 140px;
    }
}
/* Банер контактів */
.contact-banner {
    display: flex;
    align-items: center;
    background-color: #f5f5f7;
    border-radius: 18px;
    padding: 30px;
    margin: 40px 0;
    gap: 25px;
}

.contact-banner-icon {
    flex-shrink: 0;
}

.contact-banner-icon img {
    width: 80px;
    height: auto;
    display: block;
}

.contact-banner-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-banner-content h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
}

.contact-banner-content p {
    margin: 0;
    color: #333336;
    font-size: 17px;
    line-height: 1.5;
}

.contact-banner-link {
    margin-top: 5px;
}

.contact-banner-link a {
    color: #0d53a9;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.contact-banner-link a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Адаптивність банера для мобільних пристроїв */
@media (max-width: 768px) {
    .contact-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 15px;
    }

    .contact-banner-icon img {
        width: 70px;
        margin: 0 auto;
    }
}

/* tt_home_grid: головна. Відкрите меню стоїть зліва, сітка категорій іде рівним блоком праворуч від нього, а не ховається під ним і не заходить під меню */
@media (min-width: 1200px) { /* той самий поріг, з якого тема тримає меню відкритим */
	.mm_open_hp ~ main .categorywall-0 > .title-module { display: none; }
	.mm_open_hp ~ main .categorywall-0 { padding-top: 10px; }
	.mm_open_hp ~ main .categorywall-0 .wall-category-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-left: calc(25% - 5px); }
	.mm_open_hp ~ main .categorywall-0 .wall-category-box::before, .mm_open_hp ~ main .categorywall-0 .wall-category-box::after { display: none; } /* clearfix теми зайняв би клітинку сітки */
	.mm_open_hp ~ main .categorywall-0 .wall-category-box > div { width: auto; float: none; min-width: 0; }
	.menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical-list { display: flex; flex-direction: column; min-height: 676px; }
	.menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical-list > li { flex: 1 1 auto; }
	.menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical-list > li > a { width: 100%; }
}
/* Меню за кнопкою «Каталог»: у теми висота 60vh, тому на великих екранах під списком порожньо, а на малих список обрізається. Висота тепер за списком, але не більша за екран */
@media (min-width: 992px) {
	.menu-header-box.type-menu-h-1.m-sticky .m_type_header_1 { height: auto; min-height: 0; }
	.menu-header-box.type-menu-h-1.m-sticky #menu-vertical-list { height: auto; max-height: calc(100vh - 140px); }
}
/* Характеристики товару при наведенні: тема обрізає main по обох осях, тож при одному ряді товарів блок ховався за футер. Обрізаємо лише по горизонталі */
main { overflow-x: clip; overflow-y: visible; }
/* Таблиці в описі товару (порівняння моделей): у стилі блоку «Характеристики» теми */
#tab-description table { width: 100%; border-collapse: separate; border-spacing: 0 4px; margin: 8px 0 16px; font-size: 14px; }
#tab-description table th { text-align: left; font-weight: 600; padding: 10px 16px; color: var(--up-text-color, inherit); }
#tab-description table td { padding: 12px 16px; background: var(--up-gray-color-1, #f2f2f2); vertical-align: top; line-height: 1.45; }
#tab-description table td:first-child { border-radius: 10px 0 0 10px; font-weight: 600; white-space: nowrap; }
#tab-description table td:last-child { border-radius: 0 10px 10px 0; }
#tab-description table td a { font-weight: 600; }
@media (max-width: 767px) {
	#tab-description table, #tab-description table tbody, #tab-description table tr, #tab-description table td { display: block; width: 100%; }
	#tab-description table thead { display: none; }
	#tab-description table tr { margin-bottom: 8px; border-radius: 10px; overflow: hidden; background: var(--up-gray-color-1, #f2f2f2); }
	#tab-description table td { padding: 6px 14px; border-radius: 0 !important; white-space: normal; }
	#tab-description table td:first-child { padding-top: 12px; }
	#tab-description table td:last-child { padding-bottom: 12px; }
}
/* /tt_home_grid */
