/* ============================================
   TEMPLATE STYLES - ШАБЛОН САЙТУ
   Шапка, мобільне меню, футер
   Для Dreamweaver шаблону
   ============================================ */

  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --red: var(--c-brand, #DA1A32);
            --yellow: var(--c-gold, #FFC857);
            --navy: var(--c-navy, #1E3A5F);
            --cyan: var(--c-accent, #3AAFD9);
            --white: var(--g-0, #FFFFFF);
            --gray-light: var(--g-100, #F0F0F0);
            --gray-dark: var(--g-900, #333333);
        }
html {
    scroll-behavior: smooth;
}

        body {
            font-family: 'Inter', 'Arial', sans-serif;
            background: var(--white);
            color: var(--gray-dark);
            line-height: 1.6;
        }
	

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
    background: linear-gradient(135deg, var(--white) 0%, var(--g-50, #f8f9fa) 100%);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo svg {
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.header-logo:hover svg {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 12px rgba(218, 26, 50, 0.4));
}

/* Contact Info - INLINE DESIGN */
.header-contact {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red) 0%, #c41528 100%);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(218, 26, 50, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(218, 26, 50, 0.4);
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-label {
    font-size: 0.7rem;
    color: var(--g-400, #999);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    transition: color 0.3s ease;
    line-height: 1.2;
	margin-top: 7px;
}

.contact-item:hover .contact-value {
    color: var(--red);
}
	
.red {
    color: var(--red);
}	

.contact-subvalue {
    font-size: 0.75rem;
    color: var(--gray-dark);
    font-weight: 400;
    line-height: 1.2;
}

/* ============================================
   CONTACT HOURS - Графік роботи у шапці
   ============================================ */

.contact-hours {
    font-size: 0.83rem;
    color: var(--g-400, #999);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

/* ============================================
   ORDER / AI BUTTON - Кнопка ШІ-консультант
   ============================================ */

.order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--yellow) 0%, #e6b34d 100%);
    color: var(--navy);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 200, 87, 0.4);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.order-btn:hover::before {
    left: 100%;
}

.order-btn:hover {
    background: linear-gradient(135deg, var(--red) 0%, #c41528 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(218, 26, 50, 0.4);
}

.order-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.order-btn:hover svg {
    transform: scale(1.15);
}

/* ============================================
   HEADER MOBILE PHONE BTN — тільки мобільні
   ============================================ */



.header-mobile-phone {
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 12px;
    background: linear-gradient(145deg, var(--g-0, #ffffff), #f0f0f0);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.header-mobile-phone:hover {
    box-shadow: 0 7px 22px rgba(218, 26, 50, 0.22);
    transform: scale(1.05);
}

.header-mobile-phone-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red) 0%, #c41528 100%);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(218,26,50,0.3);
}

.header-mobile-phone-icon svg {
    width: 15px;
    height: 15px;
    fill: var(--white);
}

.header-mobile-phone-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.header-mobile-phone-number {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.header-mobile-phone-hours {
    font-size: 0.62rem;
    color: var(--g-400, #999);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* ============================================
   BURGER MENU
   ============================================ */

.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(145deg, var(--g-0, #ffffff), #f0f0f0);
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.burger-menu:hover {
    box-shadow: 0 6px 20px rgba(218, 26, 50, 0.2);
    transform: scale(1.05);
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.burger-menu:hover span {
    background: linear-gradient(90deg, var(--yellow), var(--red));
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: linear-gradient(180deg, var(--white) 0%, var(--g-50, #f8f9fa) 100%);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    left: 0;
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 998;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--navy) 0%, #152a45 100%);
    color: var(--white);
}

.mobile-menu-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.close-menu:hover {
    background: var(--red);
    border-color: var(--red);
    transform: rotate(90deg) scale(1.1);
}

.close-menu::before,
.close-menu::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.close-menu::before {
    transform: rotate(45deg);
}

.close-menu::after {
    transform: rotate(-45deg);
}

.mobile-menu-nav {
    padding: 20px 0;
    flex-grow: 1;
}

.mobile-menu-nav > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav > ul > li {
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 25px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    background: linear-gradient(90deg, rgba(218, 26, 50, 0.08), transparent);
    color: var(--red);
    padding-left: 30px;
}

.menu-item:hover::before {
    transform: scaleY(1);
}

.has-submenu > .menu-item::after {
    content: '';
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.has-submenu.active > .menu-item::after {
    transform: rotate(-135deg);
    border-color: var(--red);
}

.mobile_submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: linear-gradient(180deg, #f5f5f5, #ebebeb);
}

.has-submenu.active .mobile_submenu {
    max-height: 1000px;
}

.mobile_submenu li {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.mobile_submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 25px 14px 50px;
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.mobile_submenu li a::before {
    content: '→';
    color: var(--cyan);
    font-weight: bold;
    transition: all 0.3s ease;
}

.mobile_submenu li a:hover {
    background: var(--white);
    color: var(--red);
    padding-left: 55px;
}

.mobile_submenu li a:hover::before {
    color: var(--red);
    transform: translateX(5px);
}

/* Menu Contact Info - BOTTOM, MOBILE ONLY */
.menu-contact-info {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--navy) 0%, #152a45 100%);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 901px) {
    .menu-contact-info {
        display: none;
    }
}

.menu-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-contact-item:last-child {
    border-bottom: none;
}

.menu-contact-item:hover {
    padding-left: 8px;
}

.menu-contact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-contact-item:hover .menu-contact-icon {
    background: var(--red);
    transform: scale(1.1);
}

.menu-contact-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.menu-contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-contact-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
}

.menu-contact-item:hover .menu-contact-value {
    color: var(--yellow);
}

.menu-contact-subvalue {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.menu-contact-item:hover .menu-contact-subvalue {
    color: var(--yellow);
}

.svg-red {
    fill: var(--red);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (min-width: 1200px) {
    .header-container {
        padding: 18px 30px;
    }
    
    .contact-item {
        padding: 14px 22px;
    }
}

@media (max-width: 1024px) {
    .header-contact {
        gap: 15px;
    }
    
    .contact-item {
        padding: 10px 14px;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .contact-subvalue {
        display: none;
    }
    
    .order-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Tablet — ховаємо десктопні контакти та кнопку ШІ,
   показуємо мобільну кнопку телефону */
@media (max-width: 900px) {
    .header-contact {
        display: none;
    }
    
    .order-btn {
        display: none;
    }
    
    .header-mobile-phone {
        display: flex;
    }
    
    .header-container {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        padding: 10px;
    }
    
    .burger-menu span {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .header-logo svg {
        height: 52px;
        width: 120px;
    }
    
    .header-container {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .mobile-menu-overlay {
        max-width: 100%;
    }

    .header-mobile-phone {
        padding: 6px 10px;
    }

    .header-mobile-phone-number {
        font-size: 0.72rem;
		margin-top: 4px;
    }
}

/* ============================================
   FOOTER STYLES - ФУТЕР
   ============================================ */

        .site-footer {
            background: var(--gray-light);
            padding: 0;
        }

        .footer-top {
            background: var(--gray-light);
            padding: 50px 20px;
        }

        .footer-columns {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }

        .address-text {
            font-size: 0.95rem;
            line-height: 1.6;
            padding-top: 15px;
            color: var(--gray-dark);
        }

        .footer-title {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--navy);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
            padding-bottom: 15px;
        }

        .footer-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--red);
            border-radius: 2px;
        }

        .phone-link,
        .email-link {
            font-size: 0.95rem;
        }

        .phone-link a,
        .email-link a {
            color: var(--gray-dark);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .phone-link a:hover,
        .email-link a:hover {
            color: var(--red);
        }

        .catalog-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 35px;
            padding: 12px 30px;
            background: var(--yellow);
            color: var(--navy);
            text-decoration: none;
            border-radius: 25px;
            font-weight: 700;
            font-size: 1rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 200, 87, 0.4);
        }

        .catalog-btn:hover {
            background: var(--red);
            color: var(--white);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(218, 26, 50, 0.5);
        }

        .footer-hours p {
            font-size: 0.95rem;
            color: var(--gray-dark);
        }

        .footer-hours .note {
            margin-top: 15px;
            font-size: 0.85rem;
            color: var(--g-700, #666);
            font-style: italic;
        }

.quick-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quick-links li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 5px 4px;
    border-radius: 0;
    border: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.quick-links li a:hover {
    color: var(--red);
    background: none;
    padding-left: 4px;
    text-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.quick-links li a i {
    font-size: 15px;
    color: var(--red);
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.quick-links li a:hover i {
    opacity: 1;
    transform: translateX(3px);
}
.footer-bottom {
    background: linear-gradient(135deg, #12243d 0%, var(--navy) 100%);
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 2px solid var(--red);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.3px;
}

.footer-bottom > a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.25s ease;
}

.footer-bottom > a:hover {
    color: var(--yellow);
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--white);
    transform: translateY(-2px);
}

        .mt-20 {
            margin-top: 20px;
        }

.ai-consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--red) 0%, #b8111f 100%);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 26, 50, 0.4);
    text-decoration: none;
    letter-spacing: 0;
}
.ai-consult-btn:hover {
    background: linear-gradient(135deg, #b8111f 0%, #8a0d17 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(218, 26, 50, 0.5);
}
.ai-consult-btn i {
    font-size: 15px;
}

.footer-online-note {
    background: var(--navy);
    border-left: 3px solid var(--red);
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 12px;
    line-height: 1.6;
}
.footer-online-note strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    margin-bottom: 3px;
    font-size: 13.5px;
}

/* ============================================
   CHATBOT RAZ STYLES
   ============================================ */

#razChatBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-brand, #DA1A32), #b8111f);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(218,26,50,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: transform .25s, box-shadow .25s;
}
#razChatBtn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(218,26,50,.55); }

#razChatWindow {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 370px;
    max-height: 580px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 50px rgba(30,58,95,.18);
    display: flex;
    flex-direction: column;
    z-index: 9997;
    overflow: hidden;
    transform: scale(.92) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s;
}
#razChatWindow.raz-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

#razChatHeader {
    background: linear-gradient(135deg, var(--c-navy, #1E3A5F), #2a5080);
    padding: 16px 18px;
    color: #fff;
    flex-shrink: 0;
}
#razChatHeaderInfo { display: flex; align-items: center; gap: 12px; }
#razChatAvatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--c-brand, #DA1A32);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; letter-spacing: .5px;
    flex-shrink: 0;
}
#razChatTitle { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 7px; }
/* Застереження в першій репліці: листування нікуди не передається */
.raz-hint {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(30, 58, 95, .10);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--g-700, #667085);
}
.raz-hint a {
    color: var(--c-brand, #DA1A32);
    font-weight: 600;
    white-space: nowrap;
}
#razChatStatus { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; opacity: .85; }
#razStatusDot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-accent, #3AAFD9);
    animation: razPulse 2s infinite;
}
@keyframes razPulse {
    0%,100% { opacity:1; } 50% { opacity:.4; }
}

#razChatMessages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}
#razChatMessages::-webkit-scrollbar { width: 4px; }
#razChatMessages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.raz-msg { display: flex; }
.raz-msg-bot { justify-content: flex-start; }
.raz-msg-user { justify-content: flex-end; }

.raz-bubble {
    max-width: 84%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
}
.raz-msg-bot .raz-bubble {
    background: #f0f4f9;
    color: var(--g-900, #222);
    border-bottom-left-radius: 4px;
}
.raz-msg-user .raz-bubble {
    background: linear-gradient(135deg, var(--c-brand, #DA1A32), #b8111f);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.raz-typing { display: flex; align-items: center; gap: 5px; padding: 12px 14px; }
.raz-typing span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c-accent, #3AAFD9);
    animation: razBounce .9s infinite;
}
.raz-typing span:nth-child(2) { animation-delay: .15s; }
.raz-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes razBounce {
    0%,80%,100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
}

#razImagePreview {
    padding: 6px 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
#razImageThumb {
    height: 52px;
    border-radius: 8px;
    border: 2px solid #eee;
    object-fit: cover;
}
#razImageRemove {
    background: var(--c-brand, #DA1A32);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#razChatInputArea {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px 14px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

#razUploadBtn {
    color: var(--g-400, #999);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: color .2s;
    flex-shrink: 0;
}
#razUploadBtn:hover { color: var(--c-brand, #DA1A32); }

#razChatInput {
    flex: 1;
    border: 1.5px solid var(--g-200, #e0e0e0);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 110px;
    overflow-y: auto;
    line-height: 1.4;
    transition: border-color .2s;
}
#razChatInput:focus { border-color: var(--c-accent, #3AAFD9); }

#razSendBtn {
    background: var(--c-brand, #DA1A32);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, transform .15s;
}
#razSendBtn:hover { background: #b8111f; }
#razSendBtn:active { transform: scale(.93); }
#razSendBtn:disabled { background: var(--g-300, #ccc); cursor: not-allowed; }

.raz-link {
    color: var(--c-navy, #1E3A5F);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
}
.raz-link:hover { color: var(--c-brand, #DA1A32); }

@media (max-width: 420px) {
    #razChatWindow { width: calc(100vw - 20px); right: 10px; bottom: 90px; max-height: 70vh; }
    #razChatBtn { bottom: 20px; right: 16px; width: 54px; height: 54px; }
}

/* === SHORTS VIDEO SECTION === */
.shorts-section {
  background: var(--gray-light);
  padding: 64px 20px;
  border-top: 1px solid rgba(28, 59, 111, 0.07);
}
.shorts-section-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* Header */
.shorts-section-header {
  text-align: center;
  margin-bottom: 44px;
}
.shorts-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.shorts-section-title span { color: var(--cyan); }
.shorts-section-sub {
  font-size: 0.95rem;
  color: #7a8a9c;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.55;
}
.shorts-section-header::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  border-radius: 2px;
  margin: 18px auto 0;
}

/* Row — flex centers 1, 2 or 3 cards automatically */
.shorts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

/* Card */
.shorts-item {
  flex: 0 0 272px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(28, 59, 111, 0.09);
  border: 1.5px solid rgba(28, 59, 111, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.shorts-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 52px rgba(58, 175, 217, 0.2);
  border-color: var(--cyan);
}

/* 9:16 embed wrapper */
.shorts-embed {
  position: relative;
  padding-top: 177.78%;
  background: #0b1a2e;
  flex-shrink: 0;
}
.shorts-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Caption below video */
.shorts-item-caption {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.shorts-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--cyan);
}
.shorts-item-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.shorts-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}
.shorts-item-desc {
  font-size: 0.78rem;
  color: #8a99ae;
  line-height: 1.45;
  margin: 0;
}

/* Mobile */
@media (max-width: 640px) {
  .shorts-section { padding: 44px 16px; }
  .shorts-section-title { font-size: 1.25rem; }
  .shorts-item { flex: 0 0 100%; max-width: 380px; }
}

/* ============================================================
   ПЕРЕДАЧА МЕНЕДЖЕРУ (assets/chat-handoff.js)
   Смуга над полем вводу: тиха, поки не потрібна, і завжди на місці —
   людина не має вгадувати, як вийти на живого співрозмовника.
   ============================================================ */
.raz-handoff {
    flex-shrink: 0;
    padding: 8px 12px;
    border-top: 1px solid #eee;
    background: var(--g-50, #F7F9FB);
}

.raz-handoff__call {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid var(--g-200, #E3E8EF);
    border-radius: 10px;
    color: var(--c-navy, #1E3A5F);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s, color .18s;
}
.raz-handoff__call:hover {
    border-color: var(--c-brand, #DA1A32);
    color: var(--c-brand, #DA1A32);
}

.raz-handoff__form { display: flex; flex-direction: column; gap: 8px; }

.raz-handoff__lead {
    font-size: 12px;
    line-height: 1.45;
    color: var(--g-700, #667085);
}

.raz-handoff__contact,
.raz-handoff__note {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--g-200, #E3E8EF);
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    color: var(--g-900, #202939);
    background: #fff;
    resize: none;
}
.raz-handoff__contact:focus,
.raz-handoff__note:focus {
    outline: none;
    border-color: var(--c-accent, #3AAFD9);
    box-shadow: 0 0 0 3px rgba(58, 175, 217, .16);
}

.raz-handoff__row { display: flex; gap: 8px; }

.raz-handoff__send,
.raz-handoff__cancel {
    padding: 9px 14px;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}
.raz-handoff__send {
    flex: 1;
    background: var(--c-brand, #DA1A32);
    color: #fff;
}
.raz-handoff__send:hover:not(:disabled) { background: var(--c-brand-dark, #B81528); }
.raz-handoff__send:disabled { opacity: .6; cursor: default; }
.raz-handoff__cancel {
    background: #fff;
    border-color: var(--g-200, #E3E8EF);
    color: var(--g-700, #667085);
}
.raz-handoff__cancel:hover { border-color: var(--g-400, #9AA4B2); }

.raz-handoff__err {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--c-danger, #C0392B);
    background: var(--c-danger-bg, #FFF0EF);
    border: 1px solid var(--c-danger-line, #F5C6C2);
    border-radius: 8px;
    padding: 8px 10px;
}
.raz-handoff__err[hidden],
.raz-handoff__form[hidden],
.raz-handoff__call[hidden] { display: none; }

/* Підтвердження про передачу — не слова ШІ, а факт системи,
   тож і виглядає інакше: зелена смуга замість звичайної репліки. */
.raz-bubble--system {
    background: var(--c-ok-bg, #F2F9F4) !important;
    border: 1px solid var(--c-ok-line, #CFE8D6);
    border-left: 3px solid var(--c-ok, #2C6B41);
    color: var(--c-ok, #2C6B41) !important;
}
