/* ============================================
  /css/style.css - Comfort Heating (тепла тема)
  Оптимізована версія
============================================ */

/* ============================================
  1. ЗМІННІ (VARIABLES)
============================================ */
:root {
    /* Фон */
    --bg-primary: #ffffff;
    --bg-secondary: #faf7f2;
    --bg-tertiary: #f3eee6;
    /* Текст */
    --text-primary: #2b2b2b;
    --text-secondary: #5f5f5f;
    --text-muted: #8a8a8a;
    /* Основний теплий колір */
    --accent: #e67e22;
    --accent-hover: #d46f17;
    --accent-light: #fff2e6;
    /* Додатковий теплий колір */
    --accent-secondary: #f39c12;
    /* Границі */
    --border-color: #e6dfd6;
    /* Тіні */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    /* Статуси */
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    /* Розміри */
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius: 8px;
    --radius-lg: 16px;
}

/* ============================================
  2. СКИДАННЯ ТА БАЗА (RESET & BASE)
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Apple Color Emoji', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
}

/* ============================================
  3. ЛОГОТИПИ (GLOBAL LOGOS)
============================================ */
/* Логотип у сайдбарі (ПК) */
.logo-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-sidebar .logo-desktop {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.logo-sidebar .logo-text {
    display: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Логотип у мобільному хедері (Загальний) */
.logo-mobile {
    display: none;
    text-decoration: none;
    line-height: 1;
    align-items: center;
}

.logo-mobile img,
.logo-mobile .logo-mobile-img,
.logo-mobile .logo-img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    line-height: 1;
}

/* Логотип у футері */
.footer-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-brand-text {
    display: none;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* ============================================
  4. LAYOUT (SIDEBAR, HEADER, MAIN, FOOTER)
============================================ */
/* --- SIDEBAR --- */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    min-height: var(--header-height);
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 5px;
}

.sidebar-menu {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: var(--accent-light);
    border-left-color: var(--accent);
    color: var(--accent);
}

/* Розділювач у меню */
.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 14px;
    list-style: none;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    font-size: 0.9rem;
}

.sidebar-footer a {
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-footer a:hover {
    color: var(--accent);
}

/* Компактні контакти в сайдбарі */
.sidebar-contacts-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.contact-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.contact-compact:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.contact-compact span:first-child {
    font-size: 1rem;
}

.sidebar-footer .social-links {
    margin-top: 12px;
}

.sidebar-footer .social-link {
    width: 32px;
    height: 32px;
}

.sidebar-footer .social-link svg {
    width: 16px;
    height: 16px;
}

/* --- MAIN WRAPPER --- */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- HEADER --- */
.site-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 90;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* Іконки в хедері */
.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.header-icon-btn:hover {
    background: var(--bg-secondary);
    color: var(--accent);
}

.header-icon-btn svg {
    width: 22px;
    height: 22px;
}

.cart-icon-wrapper .cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Перемикач мови */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding-right: 10px;
    border-right: 1px solid var(--border-color);
}

.lang-btn {
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.lang-separator {
    color: var(--border-color);
    font-weight: 400;
}

/* --- MAIN CONTENT --- */
.site-main {
    flex: 1;
    padding: 24px;
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Секції */
.section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title a {
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.section-title a:hover {
    text-decoration: underline;
}

/* ============================================
   SNOW MELTING PROMO BLOCK
   ============================================ */
.snow-melting-promo {
    margin-bottom: 24px;
}

.snow-melting-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.snow-melting-image {
    position: relative;
    
    /* 🔑 Висота як у вашого зображення */
    height: 280px;
    
    background-size: cover;
    background-position: center;
    /* background-color: var(--bg-tertiary); */
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.snow-melting-link:hover .snow-melting-image {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.snow-melting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    ;
    z-index: 1;
}

.snow-melting-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 600px;
}

/* Адаптив */

@media (max-width: 768px) {
    .snow-melting-image {
        height: 200px;  /* пропорційно зменшено */
        border-radius: var(--radius);
    }

   
    .snow-melting-content h2 {
        font-size: 1.4rem;
    }
    
    .snow-melting-content p {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .snow-melting-content .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
.snow-melting-image {
        height: 150px;  /* ще менше на малих екранах */
    }
    
    .snow-melting-content h2 {
        font-size: 1.2rem;
    }
    
    .snow-melting-content p {
        font-size: 0.9rem;
    }
}

/* --- FOOTER --- */
.site-footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border-color);
    padding: 30px 24px;
    margin-left: var(--sidebar-width);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
  5. КОМПОНЕНТИ (BUTTONS, CARDS, SLIDERS)
============================================ */
/* --- BUTTONS --- */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.btn-white {
    background: white;
    color: var(--accent);
    font-weight: 600;
}

.btn-white:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* --- HERO SLIDER --- */
.hero-slider {
    margin-bottom: 24px;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 48px);
}

.heroSwiper {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.heroSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 60px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #262626;
}

.heroSwiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: white;
}

.slide-content h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.5;
}

.heroSwiper .swiper-pagination {
    bottom: 20px !important;
}

.heroSwiper .swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    width: 10px;
    height: 10px;
}

.heroSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent);
    width: 12px;
}

.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.heroSwiper .swiper-button-prev:hover,
.heroSwiper .swiper-button-next:hover {
    opacity: 1;
}

/* --- WORKS GRID --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.work-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.work-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.work-image-placeholder {
    font-size: 3rem;
    opacity: 0.5;
}

.work-info {
    padding: 16px;
}

.work-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.work-city {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- PARTNERS GRID --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: all 0.3s;
    text-decoration: none;
    min-height: 120px;
}

.partner-logo:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

.partner-name {
    display: none;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.partner-logo img:not([src])+.partner-name,
.partner-logo img[src=""]+.partner-name {
    display: block;
}

/* --- REVIEWS SLIDER --- */
.reviews-slider {
    position: relative;
}

.reviewsSwiper {
    padding-bottom: 40px !important;
}

.review-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    height: auto;
    margin: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.review-city {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 1.2rem;
}

.star.active {
    color: #ffc107;
}

.review-comment {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.reviewsSwiper .swiper-pagination {
    bottom: 0 !important;
}

.reviewsSwiper .swiper-pagination-bullet {
    background: var(--border-color);
    opacity: 1;
}

.reviewsSwiper .swiper-pagination-bullet-active {
    background: var(--accent);
}

.reviewsSwiper .swiper-button-prev,
.reviewsSwiper .swiper-button-next {
    color: var(--accent);
    opacity: 0.7;
}

.reviewsSwiper .swiper-button-prev:hover,
.reviewsSwiper .swiper-button-next:hover {
    opacity: 1;
}

/* --- ADDRESS & SOCIAL --- */
address {
    font-style: normal;
    font-weight: normal;
    line-height: 1.6;
}

address p {
    margin-bottom: 8px;
}

address a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

address a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.social-link.viber {
    background: #665CAC;
    color: white;
}

.social-link.viber:hover {
    background: #554A9C;
    transform: translateY(-2px);
}

.social-link.telegram {
    background: #229ED9;
    color: white;
}

.social-link.telegram:hover {
    background: #1B8AC0;
    transform: translateY(-2px);
}

.sidebar-footer address p {
    font-size: 0.9rem;
}

.sidebar-footer .social-links {
    margin-top: 16px;
}

.footer-col address p {
    margin-bottom: 10px;
}

.footer-col .social-links {
    margin-top: 16px;
}

/* ============================================
  6. СТОРІНКИ (PAGES SPECIFIC)
============================================ */
/* --- BRANDS PAGE --- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.brand-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.brand-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.brand-website {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.brand-website:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.brand-categories {
    list-style: none;
    margin-bottom: 20px;
}

.brand-categories li {
    margin-bottom: 10px;
}

.brand-categories li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.brand-categories li a:hover {
    background: var(--accent-light);
    color: var(--accent);
    padding-left: 16px;
}

.brand-categories li a::before {
    content: '▸';
    color: var(--accent);
    font-size: 1rem;
}

.brand-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* --- ABOUT PAGE --- */
.about-hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 30px 24px;
    margin: -24px -24px 24px -24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.about-hero-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.about-intro {
    margin-bottom: 32px;
}

.about-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 900px;
}

.about-lead strong {
    color: var(--accent);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-services {
    display: grid;
    gap: 20px;
}

.service-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.service-item:hover {
    border-left-color: var(--accent);
    background: var(--accent-light);
}

.service-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.service-content h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-light);
    position: absolute;
    top: -10px;
    right: 10px;
    opacity: 0.5;
}

.step-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
}

.about-cta {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 24px;
}

.about-cta h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.about-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.about-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Hero секція (компактна) === */
.contacts-hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    
    /* 🔑 Зменшено padding: було 60px → стало 30px (удвічі менше) */
    padding: 30px 24px;
    
    margin: -24px -24px 24px -24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-align: center;
}

/* 🔑 Зменшено заголовки для компактності */
.contacts-hero h1 {
    font-size: 1.8rem;  /* було 2.5rem */
    margin-bottom: 8px; /* було 16px */
    font-weight: 700;
    line-height: 1.3;
}

.contacts-hero-subtitle {
    font-size: 1rem;    /* було 1.2rem */
    opacity: 0.95;
    margin: 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
}

.form-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: -10px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.contact-card:hover {
    border-left-color: var(--accent);
    background: var(--accent-light);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-content a:hover {
    color: var(--accent-hover);
}

.contact-phone {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-messenger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius);
    margin-bottom: 6px;
}

.contact-messenger.viber {
    background: #665CAC;
    color: white;
}

.contact-messenger.telegram {
    background: #229ED9;
    color: white;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.work-hours {
    list-style: none;
    margin-top: 8px;
}

.work-hours li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.work-hours li:last-child {
    border-bottom: none;
}

.work-hours strong {
    color: var(--text-primary);
}

.work-hours .closed {
    color: var(--error);
}

.map-container {
    position: relative;
}

.map-note {
    margin-top: 12px;
    text-align: center;
}

/* --- ARTICLES PAGE --- */
.articles-hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 30px 24px;
    margin: -24px -24px 24px -24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-align: center;
}

.articles-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.articles-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.articles-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0 24px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image {
    position: relative;
    height: 200px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.5;
}

.article-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-author,
.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- SINGLE ARTICLE PAGE --- */
.article-back {
    margin: 24px 0;
}

.article-back .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-full {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.article-full-header {
    margin-bottom: 32px;
}

.article-full-category {
    margin-bottom: 16px;
}

.article-category-link {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.article-category-link:hover {
    background: var(--accent);
    color: white;
}

.article-full-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.article-full-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.article-full-image {
    margin: 0 -32px 32px -32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-full-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.article-full-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.article-full-content p {
    margin-bottom: 20px;
}

.article-full-content h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 32px 0 16px 0;
    font-weight: 600;
}

.article-full-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 24px 0 12px 0;
    font-weight: 600;
}

.article-full-content ul,
.article-full-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-full-content li {
    margin-bottom: 8px;
}

.article-full-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.tags-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.tag-link {
    display: inline-block;
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.tag-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.article-full-share {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.share-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.viber {
    background: #665CAC;
}

.share-btn.telegram {
    background: #229ED9;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.related-articles {
    margin-top: 40px;
}

/* ============================================
  7. ІНТЕРАктивні ЕЛЕМЕНТИ (MODALS, BUTTONS)
============================================ */
/* --- CALLBACK BUTTON --- */
.callback-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
    transition: all 0.3s;
    animation: pulse 2s infinite;
    border: none;
    text-decoration: none;
}

.callback-btn:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
    animation: none;
}

.callback-btn svg {
    width: 28px;
    height: 28px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(230, 126, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}

/* Modal для зворотного дзвінка */
.callback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.callback-modal.active {
    display: flex;
    opacity: 1;
}

.callback-modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.callback-modal.active .callback-modal-content {
    transform: translateY(0);
}

.callback-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.callback-modal-close:hover {
    color: var(--text-primary);
}

.callback-modal h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.callback-modal p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.callback-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.callback-modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.callback-modal-form .form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.callback-modal-form .form-group input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.callback-modal-form .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.callback-modal-form .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
}

.callback-modal-message {
    display: none;
    padding: 16px;
    border-radius: var(--radius);
    margin-top: 16px;
    font-weight: 500;
    text-align: center;
}

.callback-modal-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.callback-modal-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- SCROLL TO TOP --- */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    border: 2px solid var(--border-color);
    text-decoration: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* ============================================
  8. АДАПТИВНІСТЬ (RESPONSIVE)
============================================ */
/* --- 1024px --- */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }

    .heroSwiper {
        height: 400px;
    }

    .heroSwiper .swiper-slide {
        padding: 30px 40px;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    /* Contacts Page */
    .contacts-grid {
        display: flex;
        flex-direction: column;
    }

    /* Спочатку контактна інформація (карти, телефони) */
    .contacts-details {
        order: 1;
    }

    /* Потім форма зворотного зв'язку */
    .contacts-info {
        order: 2;
    }
}

/* --- 768px --- */
@media (max-width: 768px) {

    /* Layout */
    body {
        flex-direction: column;
    }

    .sidebar-nav {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar-nav.active {
        transform: translateX(0);
    }

    .close-sidebar {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .site-footer {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Logos */
    .logo-sidebar {
        display: none;
    }

    .logo-mobile {
        display: flex;
    }

    /* Header */
    .header-right {
        gap: 12px;
    }

    .lang-switcher {
        font-size: 0.8rem;
        padding-right: 8px;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
    }

    /* Main */
    .site-main {
        padding: 16px;
    }

    .section {
        padding: 20px;
    }

    /* Hero Slider */
    .hero-slider {
        margin-bottom: 16px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .heroSwiper {
        height: 320px;
        border-radius: var(--radius);
    }

    .heroSwiper .swiper-slide {
        padding: 20px 24px;
        justify-content: flex-start;
        text-align: center;
        align-items: center;
    }

    .heroSwiper .swiper-button-prev,
    .heroSwiper .swiper-button-next {
        display: none;
    }

    .slide-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .heroSwiper .swiper-pagination {
        bottom: 15px !important;
    }

    /* Grids */
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .work-image {
        height: 140px;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px;
    }

    .partner-logo {
        min-height: 100px;
        padding: 16px;
    }

    /* Reviews */
    .review-card {
        padding: 20px;
    }

    .review-header {
        flex-direction: column;
        gap: 12px;
    }

    .reviewsSwiper .swiper-button-prev,
    .reviewsSwiper .swiper-button-next {
        display: none;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }

    .footer-logo {
        height: 40px;
    }

    /* Brands Page */
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .brand-card {
        padding: 20px;
    }

    .brand-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .brand-website {
        align-self: flex-end;
    }

    /* About Page */
    .about-hero {
        padding: 20px 16px;
        margin: -16px -16px 16px -16px;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .about-hero h1 {
        font-size: 1.4rem;
    }

    .about-hero-subtitle {
        font-size: 0.9rem;
    }

    .about-features {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .service-item {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .about-steps {
        grid-template-columns: 1fr;
    }

    .about-cta {
        padding: 32px 20px;
    }

    .about-cta h2 {
        font-size: 1.4rem;
    }

    .about-cta-buttons {
        flex-direction: column;
    }

    .about-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Contacts Page */
    .contacts-hero {
        padding: 20px 16px;
        margin: -16px -16px 16px -16px;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .contacts-hero h1 {
        font-size: 1.4rem;
    }

    .contacts-hero-subtitle {
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        gap: 12px;
    }

    .contact-icon {
        font-size: 1.5rem;
    }

    /* Articles Page */
    .articles-hero {
        padding: 20px 16px;
        margin: -16px -16px 16px -16px;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .articles-hero h1 {
        font-size: 1.4rem;
    }

    .articles-hero-subtitle {
        font-size: 0.9rem;
    }

    .articles-filters {
        padding: 0 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-image {
        height: 180px;
    }

    /* Single Article */
    .article-full {
        padding: 20px;
    }

    .article-full-title {
        font-size: 1.5rem;
    }

    .article-full-image {
        margin: 0 -20px 24px -20px;
        border-radius: var(--radius);
    }

    .article-full-content {
        font-size: 1rem;
    }

    .article-full-meta {
        flex-direction: column;
        gap: 12px;
    }

    .article-full-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-articles .articles-grid {
        grid-template-columns: 1fr;
    }

    /* Callback & Scroll Top */
    .callback-btn {
        bottom: 80px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .callback-btn svg {
        width: 24px;
        height: 24px;
    }

    .callback-modal-content {
        padding: 24px;
        width: 95%;
    }

    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* --- 480px --- */
@media (max-width: 480px) {
    .heroSwiper {
        height: 280px;
    }

    .slide-content h2 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .section {
        padding: 20px;
    }

    .brands-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .article-full {
        padding: 16px;
    }

    .article-full-image {
        margin: 0 -16px 20px -16px;
    }
}

/* --- 430px (Sidebar Footer Fix) --- */
@media (max-width: 430px) {
    .sidebar-nav {
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .sidebar-menu {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 10px;
    }

    .sidebar-footer {
        flex-shrink: 0;
        padding: 12px;
        border-top: 1px solid var(--border-color);
        background: var(--bg-secondary);
    }

    .sidebar-contacts-compact {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin-bottom: 10px;
    }

    .contact-compact {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .sidebar-footer .social-links {
        justify-content: center;
        margin-top: 8px;
    }

    .sidebar-footer .social-link {
        width: 30px;
        height: 30px;
    }
}

/* --- 375px (Extra Small) --- */
@media (max-width: 375px) {
    .sidebar-footer {
        padding: 12px;
    }

    .sidebar-contacts-compact {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-compact {
        font-size: 0.8rem;
    }
}

/* ============================================
10. КОРЗИНА (CART PAGE)
============================================ */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: opacity 0.3s, transform 0.3s;
}

.cart-item.removing {
    opacity: 0;
    transform: translateX(-20px);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-brand {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 4px 0 0 0;
}

.cart-item-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.cart-item-price {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--accent-light);
}

.qty-input {
    width: 50px;
    text-align: center;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.cart-item-subtotal {
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--error);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-summary {
    background: var(--bg-primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 400px;
    margin-left: auto;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row.total {
    font-size: 1.2rem;
    border-bottom: none;
    padding-top: 16px;
    margin-top: 8px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    animation: toastIn 0.3s ease;
}

.toast-notification.removing {
    animation: toastOut 0.3s ease;
}

@keyframes toastIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100px);
        opacity: 0;
    }
}

/* ============================================
📱 МОБІЛЬНА АДАПТАЦІЯ КОРЗИНИ
============================================ */
@media (max-width: 768px) {
    .cart-items {
        gap: 12px;
        margin-bottom: 24px;
    }

    .cart-item {
        grid-template-columns: 70px 1fr;
        grid-template-areas:
            "img info"
            "img price"
            "img qty"
            "img subtotal"
            "img remove";
        gap: 10px;
        padding: 12px;
    }

    .cart-item-image {
        grid-area: img;
        width: 70px;
        height: 70px;
    }

    .cart-item-info {
        grid-area: info;
        min-width: 0;
    }

    .cart-item-brand {
        font-size: 0.7rem;
    }

    .cart-item-title {
        font-size: 0.9rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cart-item-price {
        grid-area: price;
        justify-self: start;
        font-size: 0.95rem;
    }

    .cart-item-quantity {
        grid-area: qty;
        justify-self: start;
    }

    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .qty-input {
        width: 45px;
        font-size: 0.9rem;
    }

    .cart-item-subtotal {
        grid-area: subtotal;
        justify-self: start;
        font-size: 1rem;
    }

    .cart-item-remove {
        grid-area: remove;
        justify-self: end;
        align-self: center;
        padding: 12px;
    }

    .cart-summary {
        max-width: 100%;
        padding: 16px;
    }

    .toast-notification {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .toast-notification>div {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 8px;
        padding: 10px;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-title {
        font-size: 0.85rem;
    }

    .qty-btn {
        width: 34px;
        height: 34px;
    }

    .qty-input {
        width: 40px;
    }
}

/* ============================================
10. КАТАЛОГ: КАРТКИ КАТЕГОРІЙ (компактний стиль)
============================================ */
.catalog-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    /* ✅ Компактніше */
    gap: 20px;
}

.catalog-category-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border-color);
    /* ✅ Як у брендів */
    padding: 20px;
    /* ✅ Компактний паддінг */
}

.catalog-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card-image {
    position: relative;
    height: 120px;
    /* ✅ Менша висота (було 140px) */
    background: var(--bg-tertiary);
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.catalog-category-card:hover .category-card-image img {
    transform: scale(1.08);
}

.category-card-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.category-card-info h3 {
    font-size: 1rem;
    /* ✅ Компактніший шрифт */
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.category-card-arrow {
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 8px;
}

.catalog-category-card:hover .category-card-arrow {
    transform: translateX(4px);
}

.category-card-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.brand-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 10px;
    transition: all 0.2s;
}

.catalog-category-card:hover .brand-tag {
    background: var(--accent-light);
    color: var(--accent);
}

/* Адаптив для категорій */
@media (max-width: 768px) {
    .catalog-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .category-card-image {
        height: 100px;
    }

    .category-card-info h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .catalog-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        /* ✅ 2 колонки на мобільних */
        gap: 12px;
    }

    .category-card-image {
        height: 90px;
    }

    .category-card-info h3 {
        font-size: 0.85rem;
    }

    .brand-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* ============================================
11. КАРТКИ ТОВАРІВ (продукти в каталозі/сніготаненні/брендах)
============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;

    /* ✅ Flexbox для вирівнювання кнопки внизу */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* ✅ Карта на всю висоту комірки сітки */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 200px;
    background: var(--bg-tertiary);
    overflow: hidden;
    flex-shrink: 0;
    /* ✅ Фото не стискається */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-placeholder {
    font-size: 3rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;

    /* ✅ Розтягується на всю доступну висоту */
    flex: 1;
}

.product-brand,
.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;

    /* ✅ Обрізаємо довгі назви до 2 рядків */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
    /* ✅ Фіксована висота для 2 рядків */
}

.product-sku {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);

    /* ✅ Штовхає кнопку вниз */
    margin-top: auto;
}

.add-to-cart {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    /* ✅ Фіксований відступ від ціни */

    /* ✅ Кнопка не стискається */
    flex-shrink: 0;
}

.catalog-empty {
    text-align: center;
    padding: 40px 20px;
}

.catalog-empty h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Адаптив для карток товарів */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .product-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 160px;
    }

    .product-title {
        font-size: 0.95rem;
        min-height: 2.6rem;
    }

    .product-price {
        font-size: 1.1rem;
    }
}
/* ============================================
🔔 СПОВІЩЕННЯ В ХЕДЕРІ
============================================ */
.site-notification-bar {
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 95;
}

.site-notification-bar button:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптив для сповіщень */
@media (max-width: 768px) {
    .site-notification-bar {
        font-size: 0.8rem;
        padding: 8px 12px;
        flex-wrap: wrap;
    }
    
    .site-notification-bar button {
        margin-left: 8px;
    }
}

/* ============================================
🔔 БЕГУЩАЯ СТРОКА В СПОВІЩЕННЯХ
============================================ */
.notification-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0; /* ✅ Важливо для flex */
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; /* ✅ Починаємо за межами екрану */
    animation: marquee-scroll 25s linear infinite;
}

/* ✅ Зупинка анімації при наведенні */
.notification-marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ✅ Адаптив для мобільних */
@media (max-width: 768px) {
    .marquee-content {
        animation-duration: 20s; /* ✅ Швидше на мобільних */
    }
}

@media (max-width: 480px) {
    .marquee-content {
        animation-duration: 15s; /* ✅ Ще швидше на дуже малих екранах */
    }
}
/* ============================================
📂 КАТАЛОГ: БАТЬКІВСЬКІ КАТЕГОРІЇ
============================================ */
.catalog-parent-category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}
.catalog-parent-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
📄 КАТАЛОГ: ДІТСЬКІ КАТЕГОРІЇ
============================================ */
.catalog-child-category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.catalog-child-category-card:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

/* ============================================
🔘 ФІЛЬТР ЗА БРЕНДАМИ
============================================ */
.filter-btn {
    padding: 8px 16px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    display: inline-block;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ============================================
🍞 ХЛІБНІ КРИХТИ
============================================ */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 16px 0;
}
.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span:not(a) {
    color: var(--text-secondary);
}

/* ============================================
📱 АДАПТИВ ДЛЯ КАТАЛОГУ
============================================ */
@media (max-width: 768px) {
    .catalog-parent-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    .catalog-child-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .catalog-parent-categories-grid {
        grid-template-columns: 1fr;
    }
    .catalog-child-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ============================================
🔔 БЕГУЩАЯ СТРОКА В СПОВІЩЕННЯХ
============================================ */
.notification-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee-scroll 30s linear infinite;
}

/* Зупинка при наведенні */
.notification-marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Адаптив */
@media (max-width: 768px) {
    .marquee-content { animation-duration: 20s; }
}
@media (max-width: 480px) {
    .marquee-content { animation-duration: 15s; }
}
/* ============================================
📱 МОБІЛЬНІ: приховати кількість товарів
============================================ */
@media (max-width: 768px) {
    .category-product-count {
        display: none !important;
    }
    
    /* ✅ Також приховати підменю каталогу на мобільних (якщо використовується Варіант А) */
    .menu-submenu.desktop-only {
        display: none !important;
    }
}
@media (max-width: 768px) {
    /* Зменшити відступи в картках категорій */
    .catalog-child-category-card {
        padding: 16px !important;
    }
    
    /* Збільшити розмір шрифту назв */
    .catalog-child-category-card h4 {
        font-size: 1.05rem !important;
    }
    
    /* Приховати декоративні елементи */
    .category-product-count,
    .filter-btn:not(.active) {
        display: none !important;
    }
}
/* ============================================
  9. УТИЛІТИ (UTILITIES)
============================================ */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}

.text-muted {
    color: var(--text-muted);
}