/* ============================================
   Quality Shielding Cage — Knowledge Base CSS
   Same design system as landing page
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:       #1a2332;
    --navy-light: #39465d;
    --red:        #cc2028;
    --red-dark:   #a51a20;
    --red-light:  #ff3b42;
    --white:      #ffffff;
    --gray-50:    #f9fafb;
    --gray-100:   #f3f4f6;
    --gray-200:   #e5e7eb;
    --gray-300:   #d1d5db;
    --gray-400:   #9ca3af;
    --gray-500:   #6b7280;
    --gray-600:   #4b5563;
    --gray-700:   #374151;
    --gray-800:   #1f2937;
    --gray-900:   #111827;
    --green:      #16a34a;
    --green-bg:   #f0fdf4;
    --error:      #dc2626;
    --error-bg:   #fef2f2;
    --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius:     8px;
    --radius-lg:  12px;
    --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
    --shadow:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-bottom: 12px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    padding: 11px 26px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}
.btn--sm   { padding: 8px 20px; font-size: .875rem; }
.btn--lg   { padding: 14px 32px; font-size: 1.05rem; }
.btn--full { width: 100%; }
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--white:hover { background: var(--gray-100); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo img { height: auto; width: 280px; max-width: 280px; }
.header__nav { display: flex; align-items: center; gap: 4px; }
.header__nav-link {
    padding: 6px 14px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-600);
    border-radius: 999px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.header__nav-link:hover,
.header__nav-link.active { color: var(--navy); background: var(--gray-100); }
.header__cta { display: flex; align-items: center; gap: 16px; }
.header__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--navy);
    transition: color var(--transition);
}
.header__phone:hover { color: var(--red); }

/* Language dropdown */
.lang-dropdown {
    position: relative;
}
.lang-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font);
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray-700);
    letter-spacing: .5px;
    transition: all var(--transition);
    white-space: nowrap;
}
.lang-dropdown__trigger:hover {
    background: var(--white);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}
.lang-dropdown__arrow {
    transition: transform var(--transition);
    opacity: .45;
}
.lang-dropdown.is-open .lang-dropdown__arrow {
    transform: rotate(180deg);
}
.lang-dropdown__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 64px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    z-index: 1100;
}
.lang-dropdown.is-open .lang-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown__item {
    display: block;
    padding: 6px 12px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-600);
    border-radius: 5px;
    letter-spacing: .5px;
    text-align: center;
    transition: background var(--transition), color var(--transition);
}
.lang-dropdown__item:hover {
    background: var(--gray-100);
    color: var(--navy);
}
.lang-dropdown__item.active {
    font-weight: 700;
    color: var(--navy);
    background: var(--gray-50);
}

/* ---------- TOPBAR STRIP ---------- */
.topbar {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--navy);
    padding: 9px 0;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.topbar__text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    letter-spacing: .2px;
}
.topbar__icon {
    flex-shrink: 0;
    opacity: .7;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
    padding: 16px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    margin-top: 112px;
}
.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: .85rem;
    color: var(--gray-500);
}
.breadcrumb__list li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--gray-400);
}
.breadcrumb__list a {
    color: var(--gray-500);
    transition: color var(--transition);
}
.breadcrumb__list a:hover { color: var(--red); }
.breadcrumb__list li[aria-current="page"] {
    color: var(--navy);
    font-weight: 600;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- ARTICLE HERO ---------- */
.article-hero {
    padding: 48px 0 40px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}
.article-hero__category {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(204,32,40,.08);
    color: var(--red);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.article-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 800px;
}
.article-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray-500);
    font-size: .9rem;
}
.article-hero__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-hero__image {
    margin-top: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
}
.article-hero__image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    object-fit: contain;
}

/* ---------- ARTICLE LAYOUT (sidebar + content) ---------- */
.article-main { padding: 48px 0 64px; }
.article-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: start;
}

/* --- Table of Contents (sticky sidebar) --- */
.article-toc__inner {
    position: sticky;
    top: 100px;
}
.article-toc__title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-400);
    margin-bottom: 16px;
}
.article-toc__list {
    list-style: none;
    counter-reset: toc;
    padding: 0;
}
.article-toc__list li {
    counter-increment: toc;
    margin-bottom: 4px;
}
.article-toc__link {
    display: block;
    padding: 6px 12px;
    font-size: .85rem;
    color: var(--gray-600);
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: all var(--transition);
    line-height: 1.4;
}
.article-toc__link:hover {
    color: var(--navy);
    background: var(--gray-50);
    border-left-color: var(--gray-300);
}
.article-toc__link.active {
    color: var(--red);
    background: rgba(204,32,40,.04);
    border-left-color: var(--red);
    font-weight: 600;
}

/* TOC sidebar CTA */
.article-toc__cta {
    margin-top: 32px;
    padding: 20px;
    background: var(--navy);
    border-radius: var(--radius-lg);
}
.article-toc__cta-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}
.article-toc__cta-text {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ---------- ARTICLE CONTENT ---------- */
.article-content {
    max-width: 780px;
}
.article-content section {
    margin-bottom: 40px;
}
.article-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    padding-top: 8px;
}
.article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 24px;
    margin-bottom: 10px;
}
.article-content p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.02rem;
}
.article-content ul,
.article-content ol {
    margin: 12px 0 20px 24px;
    color: var(--gray-700);
}
.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.article-content strong { color: var(--gray-900); }
.article-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--red-dark); }

/* Formula/code block */
.article__formula {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--red);
    padding: 16px 24px;
    margin: 16px 0 20px;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    color: var(--navy);
    border-radius: 0 var(--radius) var(--radius) 0;
    overflow-x: auto;
}

/* ---------- TABLES ---------- */
.article__table-wrap {
    overflow-x: auto;
    margin: 16px 0 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.article__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.article__table th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
}
.article__table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    vertical-align: top;
}
.article__table tbody tr:last-child td { border-bottom: none; }
.article__table tbody tr:nth-child(even) { background: var(--gray-50); }

/* ---------- FAQ ---------- */
.article-faq { margin-top: 48px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--red); }

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    list-style: none;
    background: var(--white);
    transition: background var(--transition);
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question:hover { background: var(--gray-50); }

.faq-item__chevron {
    flex-shrink: 0;
    transition: transform .2s ease;
    color: var(--gray-400);
}
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); color: var(--red); }

.faq-item__answer {
    padding: 0 20px 18px;
    color: var(--gray-600);
    line-height: 1.75;
    font-size: .95rem;
}
.faq-item__answer p { margin: 0; }

/* ---------- ARTICLE TAGS ---------- */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
    margin-top: 40px;
}
.article-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

/* ---------- RELATED ARTICLES ---------- */
.related-articles {
    padding: 64px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}
.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.related-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    text-decoration: none;
}
.related-card:hover { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.related-card__category {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    margin-bottom: 8px;
}
.related-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.35;
}
.related-card__desc {
    font-size: .88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}
.related-card__read {
    font-size: .85rem;
    font-weight: 600;
    color: var(--red);
}

/* ---------- KB HERO (index page) ---------- */
.kb-hero {
    padding: 56px 0 48px;
    background: var(--navy);
    margin-top: 112px;
    text-align: center;
}
.kb-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}
.kb-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.65);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- KB LISTING (index page) ---------- */
.kb-listing { padding: 56px 0 64px; }
.kb-listing__empty {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    padding: 48px 0;
}

/* 3-column card grid */
.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.kb-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
}
.kb-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* Card image */
.kb-card__image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: var(--gray-100);
}
.kb-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.kb-card:hover .kb-card__image img { transform: scale(1.04); }

/* Card body */
.kb-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}
.kb-card__category {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    margin-bottom: 10px;
}
.kb-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.35;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kb-card__desc {
    font-size: .88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kb-card__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .78rem;
    color: var(--gray-400);
    font-weight: 500;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
}
.kb-card__author { color: var(--gray-600); font-weight: 600; }
.kb-card__dot { color: var(--gray-300); }

/* ---------- KB CTA BANNER ---------- */
.kb-cta {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.kb-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.kb-cta__text h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}
.kb-cta__text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.65);
    max-width: 520px;
}
.kb-cta__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ---------- CONTACT (same as landing page) ---------- */
.contact { padding: 80px 0; background: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__title { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.contact__subtitle { color: var(--gray-600); font-size: 1.05rem; line-height: 1.7; margin-bottom: 32px; }
.contact__benefits { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.contact__benefit { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 500; color: var(--gray-700); }
.contact__direct { border-top: 1px solid var(--gray-200); padding-top: 24px; }
.contact__direct p { margin-bottom: 8px; color: var(--gray-700); }
.contact__phone, .contact__email {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.35rem; font-weight: 700; color: var(--red); margin-bottom: 12px;
    transition: color var(--transition); text-decoration: none;
}
.contact__phone:hover, .contact__email:hover { color: var(--red-dark); }
.contact__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(204,32,40,.08); flex-shrink: 0;
    transition: background var(--transition);
}
.contact__phone:hover .contact__icon, .contact__email:hover .contact__icon { background: rgba(204,32,40,.15); }

/* ---------- FORM ---------- */
.contact__form-wrapper {
    background: var(--gray-50);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { margin-bottom: 20px; }
.form__group label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.required { color: var(--red); }
.form__group input, .form__group select, .form__group textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--gray-300); border-radius: var(--radius);
    font-family: var(--font); font-size: .95rem; color: var(--gray-800);
    background: var(--white); transition: all var(--transition); outline: none;
}
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
    border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,32,40,.1);
}
.form__group input.error, .form__group select.error, .form__group textarea.error {
    border-color: var(--error); box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.form__group textarea { resize: vertical; min-height: 80px; }
.form__group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.form__error { display: none; font-size: .8rem; color: var(--error); margin-top: 4px; }
.form__error.visible { display: block; }
.form__privacy { margin-top: 8px; }
.checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; font-size: .875rem; color: var(--gray-600); line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex-shrink: 0; }
.checkbox-label a { color: var(--red); text-decoration: underline; }
.form__note { text-align: center; font-size: .8rem; color: var(--gray-400); margin-top: 12px; }

/* Alerts */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: .95rem; line-height: 1.5; }
.alert strong { display: block; margin-bottom: 4px; }
.alert p { margin: 0; }
.alert--success { background: var(--green-bg); border: 1px solid #bbf7d0; color: var(--green); }
.alert--error { background: var(--error-bg); border: 1px solid #fecaca; color: var(--error); }

/* ---------- FOOTER ---------- */
.footer { padding: 32px 0; background: var(--gray-900); border-top: 1px solid var(--gray-800); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; }
.footer__left img { height: 24px; width: auto; margin-bottom: 8px; filter: brightness(0) invert(1); }
.footer__left p { font-size: .8rem; color: var(--gray-500); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: .85rem; color: var(--gray-400); transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }

/* ---------- BUTTON LOADING ---------- */
.btn__loading svg { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ========== FLOATING HELP WIDGET ========== */
.help-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; font-family: var(--font); }
.help-widget__trigger {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--red); color: var(--white); border: none; border-radius: 999px;
    padding: 14px 22px 14px 18px; font-size: .95rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 24px rgba(204,32,40,.35), 0 4px 8px rgba(0,0,0,.1);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease; position: relative; z-index: 2;
}
.help-widget__trigger:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(204,32,40,.42), 0 6px 12px rgba(0,0,0,.12); }
.help-widget__trigger-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; position: relative; }
.help-widget__icon-chat, .help-widget__icon-x { position: absolute; inset: 0; transition: opacity .2s ease, transform .2s ease; }
.help-widget__icon-x { opacity: 0; transform: rotate(-45deg); }
.help-widget.is-open .help-widget__icon-chat { opacity: 0; transform: rotate(45deg); }
.help-widget.is-open .help-widget__icon-x { opacity: 1; transform: rotate(0); }
.help-widget__panel {
    position: absolute; bottom: calc(100% + 14px); right: 0; width: 340px;
    background: var(--white); border-radius: 14px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(26,35,50,.25), 0 8px 20px rgba(0,0,0,.08);
    transform-origin: bottom right; transform: scale(.92) translateY(10px);
    opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
}
.help-widget.is-open .help-widget__panel { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.help-widget__header { display: flex; align-items: flex-start; justify-content: space-between; background: var(--navy); color: var(--white); padding: 20px 22px; }
.help-widget__title { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--white); }
.help-widget__subtitle { margin: 4px 0 0; font-size: .82rem; color: rgba(255,255,255,.6); font-weight: 500; }
.help-widget__close { background: rgba(255,255,255,.1); border: none; color: var(--white); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s ease; }
.help-widget__close:hover { background: rgba(255,255,255,.2); }
.help-widget__item { display: flex; align-items: center; gap: 14px; padding: 16px 22px; color: var(--gray-800); text-decoration: none; border-bottom: 1px solid var(--gray-100); transition: background .15s ease; }
.help-widget__item:last-child { border-bottom: none; }
.help-widget__item:hover { background: var(--gray-50); }
.help-widget__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); }
.help-widget__icon--call  { background: var(--red); }
.help-widget__icon--email { background: var(--navy); }
.help-widget__icon--quote { background: #16a34a; }
.help-widget__text { display: flex; flex-direction: column; min-width: 0; }
.help-widget__text strong { font-size: .94rem; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.help-widget__text span { font-size: .78rem; color: var(--gray-500); margin-top: 2px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; gap: 0; }
    .article-toc { display: none; }
    .related-articles__grid { grid-template-columns: 1fr 1fr; }
    .kb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
    .header__nav { display: none; }
}
@media (max-width: 768px) {
    .article-hero__title { font-size: 1.8rem; }
    .kb-hero__title { font-size: 1.8rem; }
    .kb-hero { padding: 40px 0 32px; }
    .contact__grid { grid-template-columns: 1fr; gap: 40px; }
    .contact__form-wrapper { padding: 24px; }
    .form__row { grid-template-columns: 1fr; }
    .kb-cta__inner { flex-direction: column; text-align: center; }
    .kb-cta__actions { flex-direction: column; align-items: center; }
    .related-articles__grid { grid-template-columns: 1fr; }
    .kb-grid { grid-template-columns: 1fr; gap: 20px; }
    .topbar__text { font-size: .75rem; }
    .header__phone { display: none; }
    .header__logo img { width: 200px; max-width: 200px; }
    .lang-dropdown__trigger { padding: 5px 8px; }
    .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
    .section-title { font-size: 1.65rem; }
}
@media (max-width: 600px) {
    .help-widget { bottom: 16px; right: 16px; }
    .help-widget__trigger { padding: 13px 18px 13px 14px; font-size: .88rem; }
    .help-widget__panel { width: calc(100vw - 32px); max-width: 340px; }
}
@media (max-width: 480px) {
    .article-hero__title { font-size: 1.5rem; }
    .article-hero__meta { flex-direction: column; gap: 8px; }
    .container { padding: 0 16px; }
    .kb-cta__text h2 { font-size: 1.4rem; }
}
