:root {
    --primary: #c91016;
    --primary-dark: #9f0d12;
    --text: #181818;
    --muted: #7a7a7a;
    --bg: #f7f7f7;
    --border: #ebebeb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: #efefef;
    font-size: var(--text-base);
    line-height: var(--leading-normal);
}

.site-frame {
    width: 100%;
    margin: 0;
    background: var(--bg);
    box-shadow: none;
    position: relative;
}

.site-watermark {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("../images/jdih-watermark-tile.png") repeat;
    opacity: 0.11;
    filter: grayscale(1);
}

.site-frame > main,
.site-frame > .site-footer {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1320px, 96vw);
    margin-inline: auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #efefef;
    position: sticky;
    top: 0;
    z-index: 50;
    overflow: visible;
}

.nav-shell {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    overflow: visible;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-logos img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.brand img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
}

.brand p {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
}

.brand span {
    display: block;
    color: #068b3d;
    font-size: 10px;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.brand-copy {
    min-width: 0;
}

.nav-menu {
    display: flex;
    gap: 14px;
    font-size: 14px;
    margin-left: auto;
    justify-content: flex-end;
    align-items: center;
    overflow: visible;
}

.nav-menu a {
    color: #474747;
    position: relative;
    white-space: nowrap;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    color: #474747;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-toggle i {
    font-size: 10px;
    color: #7b7b7b;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    display: none;
    z-index: 60;
}

.dropdown-menu a {
    display: block;
    font-size: 12px;
    color: #444;
    padding: 8px 10px;
    border-radius: 7px;
    white-space: normal;
}

.dropdown-menu a:hover {
    background: #fff3f4;
    color: #a81117;
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

.nav-menu a.active {
    color: var(--primary);
    font-weight: 700;
}

.dropdown-toggle.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-menu a.active::after {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 20px;
    background: var(--primary);
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: -10px;
}

.btn-login {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(130deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 12px;
}

.language-switcher {
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e7e7e7;
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    background: #fff;
    color: #555;
}

.hero {
    margin-top: 10px;
    min-height: 460px;
    border-radius: 0 0 0 28px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 27%, rgba(255, 255, 255, 0.62) 49%, rgba(255, 255, 255, 0) 72%);
    position: relative;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.97) 12%,
        rgba(255, 255, 255, 0.84) 32%,
        rgba(255, 255, 255, 0.45) 52%,
        rgba(255, 255, 255, 0.08) 76%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 2.2s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -140px;
    width: 340px;
    height: 340px;
    border-radius: 40px;
    background: var(--primary);
    transform: rotate(34deg);
}

.hero::before {
    content: "";
    position: absolute;
    left: -88px;
    bottom: -128px;
    width: 230px;
    height: 230px;
    border-radius: 36px;
    background: var(--primary);
    transform: rotate(24deg);
}

.hero-wrap {
    padding: 58px 0 48px;
    position: relative;
    z-index: 3;
}

.hero-copy {
    max-width: 600px;
}

.hero-copy .eyebrow {
    margin: 0;
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.4px;
}

.hero-copy h1 {
    margin: 8px 0 10px;
    line-height: 0.95;
    font-size: 54px;
    font-weight: 800;
}

.hero-copy h1 span {
    color: var(--primary);
}

.hero-copy p {
    margin: 0;
    color: #3f3f3f;
    font-size: 15px;
    line-height: 1.6;
}

.hero-btn {
    margin-top: 20px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #fff;
    background: linear-gradient(140deg, var(--primary), var(--primary-dark));
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
}

.search-area {
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.search-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 18px;
}

.search-title {
    font-size: 21px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-title i {
    color: var(--primary);
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 8px;
    margin-top: 14px;
}

.search-form input,
.search-form select,
.search-form button {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    font: inherit;
}

.search-form input,
.search-form select {
    background: #fff;
    padding: 0 12px;
    color: #505050;
}

.search-form input::placeholder {
    font-size: 12px;
    color: #9a9a9a;
}

.search-form button {
    background: linear-gradient(130deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 0 22px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

.tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tags a {
    border: 1px solid #e8d2d3;
    color: #8e4a4d;
    background: #fff8f8;
    border-radius: 5px;
    font-size: 12px;
    padding: 5px 9px;
}

.section {
    margin-top: 20px;
}

/* ── Landing page rhythm ── */
.home-page {
    padding-bottom: 56px;
}

.home-page > .search-area {
    margin-top: -36px;
    margin-bottom: 4px;
}

.home-page > .section {
    margin-top: 0;
    padding-top: 40px;
}

.home-page > .section + .section {
    padding-top: 36px;
}

.home-page .section-head {
    margin-bottom: 22px;
}

.home-page .row-head {
    margin-bottom: 18px;
}

.home-page .section-stats {
    padding-top: 40px;
}

.home-page .section-stats .stats-info {
    margin-top: 0;
}

.home-page .home-chart-section {
    margin-top: 0;
}

.home-page .info-grid,
.home-page .consult-visitor-grid {
    margin-top: 0;
}

.home-page .doc-actions {
    margin-top: 20px;
}

.home-page .product-grid,
.home-page .product-grid--urusan {
    gap: 12px;
}

.home-page .doc-grid--latest {
    gap: 16px;
}

.section-head {
    text-align: center;
}

.section-head h2,
.row-head h2,
.popular-card .row-head h2,
.help-wide-copy h2 {
    margin: 0;
    font-size: clamp(22px, 1.2vw + 16px, 28px);
    line-height: 1.1;
}

.section-head p,
.help-wide-copy > p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.quick-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.product-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    padding: 14px 10px;
}

.product-card .icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #fff2f3;
}

.product-card h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.product-card p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.quick-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    padding: 14px 10px;
}

.quick-card .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #fff2f3;
}

.quick-card h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.quick-card p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.stats-info {
    display: grid;
    grid-template-columns: 2.15fr 1fr;
    gap: 12px;
}

.stats-bar {
    background: linear-gradient(160deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
}

.stats-bar article {
    color: #fff;
    text-align: center;
    padding: 13px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stats-bar article:last-child {
    border-right: 0;
}

.stats-bar i {
    font-size: 14px;
}

.stats-bar h3 {
    margin: 6px 0 0;
    font-size: 24px;
}

.stats-bar p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.95;
}

.integrity-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}

.integrity-box h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}

.integrity-box p {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

.row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.row-head a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.doc-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.doc-grid--latest .doc-card {
    align-items: stretch;
}

.doc-grid--latest .doc-card h3 {
    font-size: 18px;
}

.product-grid--categories,
.product-grid--urusan {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.doc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 78px 1fr auto;
    gap: 12px;
    align-items: start;
}

.doc-thumb {
    width: 78px;
    height: 104px;
    border-radius: 8px;
    border: 1px solid #ececec;
    background: linear-gradient(150deg, #f6f6f6, #ececec);
    display: grid;
    place-items: center;
    color: #9a9a9a;
    font-size: 24px;
    flex-shrink: 0;
}

.doc-thumb-mockup {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
    border: 1px solid #e3e6eb;
    box-shadow:
        0 1px 0 #fff inset,
        0 6px 16px rgba(15, 24, 44, 0.08);
    overflow: hidden;
    cursor: default;
}

.doc-thumb-mockup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

.doc-thumb-mockup::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 10px;
    right: 10px;
    height: 3px;
    border-radius: 999px;
    background: #eceff3;
    box-shadow: 0 6px 0 #eceff3, 0 12px 0 #eceff3;
    opacity: 0.85;
}

.doc-thumb-mockup .doc-thumb-icon {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: 30px;
    color: #c62828;
    line-height: 1;
}

.doc-thumb-mockup .doc-thumb-label {
    position: relative;
    z-index: 1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #8a929e;
}

.doc-body {
    min-width: 0;
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #2d9f55;
    background: #ecf9f0;
    border: 1px solid #ccefd8;
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 600;
}

.doc-card h3 {
    margin: 8px 0 6px;
    font-size: 22px;
    line-height: 1.22;
    font-weight: 800;
}

.doc-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.doc-card h3 a:hover {
    color: var(--primary);
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #777;
    font-size: 12px;
}

.doc-meta i {
    margin-right: 4px;
}

.doc-summary {
    margin: 8px 0;
    color: #666;
    line-height: 1.5;
    font-size: 13px;
}

.doc-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
}

.doc-bottom strong {
    color: #2f8f4f;
}

.doc-bookmark {
    width: 30px;
    height: 30px;
    border: 1px solid #eed5d7;
    border-radius: 8px;
    color: #b21a20;
    background: #fff9f9;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    font: inherit;
    transition: background .2s ease, border-color .2s ease;
}

.doc-bookmark:hover {
    background: #fff2f3;
    border-color: #e8b8bc;
}

.doc-hidden {
    display: none;
}

.doc-actions {
    margin-top: 12px;
    text-align: center;
}

.doc-load-more {
    border: 1px solid #e8c5c7;
    background: #fff7f7;
    color: #a1141a;
    border-radius: 9px;
    padding: 9px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.news-card,
.popular-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 4px 18px rgba(20, 24, 36, .04);
}

.popular-card {
    background: linear-gradient(180deg, #fff 0%, #fffcfc 100%);
}

.news-card {
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.news-card .row-head h2::before,
.popular-card .row-head h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1em;
    margin-right: 8px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    vertical-align: -0.1em;
}

.news-card .row-head,
.popular-card .row-head {
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef0f3;
}

.news-list,
.popular-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.news-item {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-item:hover {
    border-color: #f0c8cb;
    background: linear-gradient(180deg, #fffafa 0%, #fff5f6 100%);
    box-shadow: 0 8px 20px rgba(201, 16, 22, .07);
    transform: translateY(-1px);
}

.news-thumb {
    width: 88px;
    height: 66px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef0f3;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-content {
    min-width: 0;
}

.news-chip {
    display: inline-block;
    margin-bottom: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(201, 16, 22, .08);
    border: 1px solid rgba(201, 16, 22, .1);
    color: #9b2a30;
    font-size: var(--fe-xs);
    font-weight: 700;
    line-height: 1.4;
}

.news-title {
    margin: 0;
    font-weight: 600;
    color: #1a1f2b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: var(--fe-xs);
    font-weight: 600;
    color: #7a8294;
}

.news-meta i {
    color: #9aa3b5;
    font-size: 0.6875rem;
}

.news-arrow {
    color: #c5ccd6;
    font-size: 0.6875rem;
    transition: color .2s ease, transform .2s ease;
}

.news-item:hover .news-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.news-item:hover .news-title {
    color: var(--primary-dark);
}

.popular-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.popular-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.popular-item:hover {
    border-color: #f0c8cb;
    background: linear-gradient(180deg, #fffafa 0%, #fff5f6 100%);
    box-shadow: 0 8px 20px rgba(201, 16, 22, .07);
    transform: translateY(-1px);
}

.popular-rank {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: var(--fe-sm);
    font-weight: 800;
    line-height: 1;
    background: #f3f4f6;
    color: #6b7385;
    flex-shrink: 0;
}

.popular-item:nth-child(1) .popular-rank {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(201, 16, 22, .25);
}

.popular-item:nth-child(2) .popular-rank {
    background: linear-gradient(145deg, #e8edf3, #d5dde8);
    color: #4a5568;
}

.popular-item:nth-child(3) .popular-rank {
    background: linear-gradient(145deg, #fdeee0, #f5dcc4);
    color: #9a5b2e;
}

.popular-content {
    min-width: 0;
}

.popular-title {
    margin: 0;
    font-weight: 600;
    color: #1a1f2b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    font-size: var(--fe-xs);
    font-weight: 700;
    color: #8b4044;
}

.popular-count i {
    color: var(--primary);
    font-size: 0.6875rem;
}

.popular-arrow {
    color: #c5ccd6;
    font-size: 0.6875rem;
    transition: color .2s ease, transform .2s ease;
}

.popular-item:hover .popular-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.popular-item:hover .popular-title {
    color: var(--primary-dark);
}

.help-wide {
    background: linear-gradient(120deg, #1e1112, #4a1013);
    color: #fff;
    border-radius: 14px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
    align-items: center;
}

.consult-visitor-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.eyebrow-small {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #f4b8bb;
}

.help-wide-copy h2 {
    margin-top: 8px;
    color: #fff;
}

.help-wide-copy p {
    color: rgba(255, 255, 255, 0.86);
    max-width: 560px;
}

.help-wide-copy a {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 8px;
    background: linear-gradient(130deg, #d5151c, #9f0d12);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.help-wide img {
    width: 100%;
    height: 188px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
}

.external-slider {
    margin-top: 12px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #f0e3e4;
    background: #fff;
    padding: 10px 0;
}

.external-track {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding-inline: 10px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.external-card {
    flex: 0 0 calc(16.66% - 9px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: 0.2s ease;
}

.external-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.external-card .icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(130deg, #d9161e, #9f0e13);
}

.external-card h3 {
    margin: 0;
    font-size: 13px;
}

.external-card p {
    margin: 3px 0 0;
    color: #7a7a7a;
    font-size: 12px;
}

.visitor-card {
    background: linear-gradient(145deg, #ffffff, #fff7f8);
    border: 1px solid #f2d8da;
    border-radius: 16px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 14px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(168, 31, 41, 0.08);
}

.visitor-intro h2 {
    margin: 8px 0 0;
    font-size: 28px;
    line-height: 1.1;
}

.visitor-intro p {
    margin: 8px 0 0;
    color: #666;
    font-size: 13px;
}

.visitor-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric-card {
    border: 1px solid #f1d2d4;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: inset 0 0 0 1px #fff4f5;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card span {
    display: block;
    color: #7f4f53;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.metric-card span i {
    color: #c2181f;
    margin-right: 5px;
}

.metric-card-value {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.metric-card strong {
    display: block;
    margin: 0;
    color: #a31218;
    font-size: 1.375rem;
    line-height: 1.15;
    font-weight: 800;
}

.metric-card-unit {
    display: block;
    font-style: normal;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #7f4f53;
    line-height: 1.3;
}

.visitor-chip {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: rgba(201, 16, 22, 0.1);
    color: #a71117;
    border: 1px solid #efc7ca;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
}

.visitor-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12a268;
    flex-shrink: 0;
    animation: visitorPulse 2s ease-in-out infinite;
}

@keyframes visitorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.site-footer {
    margin-top: 18px;
    background: linear-gradient(170deg, #bd0d13, #930c10);
    color: #fff;
    padding: 22px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 16px;
}

.footer-brand p {
    font-size: 20px;
}

.site-footer .footer-brand span {
    color: rgba(255, 255, 255, 0.82);
}

.footer-brand-col {
    min-width: 0;
}

.footer-desc {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 320px;
}

.socials {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.site-footer .socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-size: 16px;
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer .socials a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
    width: 1em;
    height: 1em;
    font-size: 1em;
    font-style: normal;
    vertical-align: middle;
}

.site-footer .socials a i::before {
    line-height: 1;
}

.site-footer .socials a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    color: #fff;
}

.site-footer h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.site-footer .footer-grid > div > a,
.site-footer p {
    margin: 0 0 6px;
    display: block;
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
}

.footer-bottom {
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding: 10px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-bottom div {
    display: flex;
    gap: 12px;
}

.a11y-widget {
    position: fixed;
    right: 20px;
    bottom: 128px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.a11y-toggle {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(130deg, #d11219, #960f14);
    box-shadow: 0 10px 20px rgba(157, 18, 24, 0.35);
    font-size: 20px;
    cursor: pointer;
}

.a11y-panel {
    width: 220px;
    background: #fff;
    border: 1px solid #f1d3d4;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
    display: none;
}

.a11y-panel.open {
    display: block;
}

.a11y-panel p {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #9d1218;
}

.a11y-panel button {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #f1d7d8;
    background: #fff8f8;
    color: #6b3033;
    border-radius: 8px;
    padding: 7px 10px;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.a11y-panel button i {
    margin-right: 6px;
    color: #b6151b;
}

body.a11y-high-contrast {
    filter: contrast(1.18) saturate(1.08);
}

body.a11y-grayscale {
    filter: grayscale(1);
}

body.a11y-large-text {
    font-size: clamp(17px, 0.35vw + 16px, 20px);
}

body.a11y-small-text {
    font-size: clamp(13px, 0.2vw + 12px, 15px);
}

.wa-float {
    position: fixed;
    right: 12px;
    bottom: 14px;
    width: 96px;
    height: 96px;
    border-radius: 0;
    display: block;
    color: inherit;
    background: transparent;
    box-shadow: none;
    font-size: 0;
    z-index: 41;
    transition: 0.2s ease;
    line-height: 0;
}

.wa-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(80, 12, 20, 0.38));
}

.wa-float:hover {
    transform: translateY(-3px) scale(1.04);
}

@media (max-width: 1120px) and (min-width: 993px) {
    .nav-shell {
        height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 210px;
    }

    .btn-login,
    .language-switcher {
        flex: 0 0 auto;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 14px;
        padding-top: 2px;
    }

    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-menu a.active::after {
        bottom: -6px;
    }
}

@media (max-width: 1120px) {
    .quick-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .doc-grid--latest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-info,
    .info-grid,
    .help-wide,
    .consult-visitor-grid,
    .footer-grid,
    .visitor-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom div {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 360px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .search-area {
        margin-top: 10px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .doc-card {
        grid-template-columns: 1fr;
    }

    .doc-card h3 {
        font-size: 18px;
    }

    .doc-bottom {
        flex-direction: column;
    }

    .quick-grid,
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .doc-grid--latest {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .external-card {
        flex-basis: calc(50% - 6px);
    }

    .consult-visitor-grid {
        gap: 10px;
    }

    .visitor-metrics {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom div {
        justify-content: center;
    }

    .a11y-widget {
        right: 8px;
        bottom: 118px;
    }

    .a11y-panel {
        width: 198px;
    }

    .wa-float {
        right: 8px;
        bottom: 10px;
    }
}

body.site-popup-open {
    overflow: hidden;
}

/* Popup banner (first visit) */
.site-popup-banner {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.site-popup-banner[hidden] {
    display: none !important;
}

.site-popup-banner__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 28, 0.62);
    backdrop-filter: blur(2px);
}

.site-popup-banner__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 92vw);
    max-height: min(86vh, 720px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    animation: sitePopupIn .28s ease;
}

.site-popup-banner__dialog img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(86vh, 720px);
    object-fit: contain;
    background: #f5f6f8;
}

.site-popup-banner__link {
    display: block;
    line-height: 0;
}

.site-popup-banner__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #1a1f2b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 16px;
    z-index: 2;
    transition: transform .15s ease, background .15s ease;
}

.site-popup-banner__close:hover {
    transform: scale(1.05);
    background: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes sitePopupIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    .news-item {
        grid-template-columns: 72px 1fr auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .news-thumb {
        width: 72px;
        height: 54px;
    }

    .news-arrow {
        display: none;
    }
}


