/* ==========================================================================
   Лендинг ОСНС. Цвета бренда ГАК — в переменных :root.
   ========================================================================== */
:root {
    --brand: #2363B0;
    --brand-dark: #1A4E8F;
    --brand-light: #4BC0E8;
    --brand-tint: #EAF2FB;
    --bg: #FFFFFF;
    --bg-alt: #F3F7FA;
    --surface: #FFFFFF;
    --text: #0F1B2D;
    --text-muted: #55657A;
    --border: #DCE5EF;
    --warn: #C2410C;
    --warn-tint: #FFF4EC;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .06);
    --shadow-lg: 0 20px 50px rgba(35, 99, 176, .18);
    --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --header-h: 68px;
}

/* Плавный скролл к якорям делает main.js (CSS smooth мешал бы JS-анимации) */
html { scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
b, strong { font-weight: 600; }
a { color: var(--brand); }
p { margin-bottom: 1rem; }

.skip-link { position: absolute; left: 16px; top: 8px; z-index: 2000; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 20px; letter-spacing: -0.01em; max-width: 900px; }
.section-lead { font-size: 18px; color: var(--text-muted); max-width: 860px; margin-bottom: 36px; }
.section-text { color: var(--text-muted); }
.section-text b { color: var(--text); }
.sub-title { font-size: 22px; margin-bottom: 20px; }
.footnote { display: flex; gap: 8px; align-items: flex-start; color: var(--text-muted); font-size: 15px; }
.footnote svg { flex: none; margin-top: 3px; color: var(--brand); }
.nowrap { white-space: nowrap; }

@media (max-width: 767px) {
    body { font-size: 16px; }
    .section { padding: 56px 0; }
    .section-lead { font-size: 16px; margin-bottom: 24px; }
}

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    min-height: var(--header-h);
}
.site-header .navbar-brand img { display: block; width: auto; }
.logo-full { height: 34px; }
@media (max-width: 1399px) and (min-width: 1200px) { .logo-full { height: 26px; } }
.lang { text-decoration: none; text-transform: uppercase; font-weight: 600; }

.site-header .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px !important;
    border-radius: 8px;
}
.site-header .nav-link:hover { color: var(--brand); background: var(--brand-tint); }
.site-header .nav-link.active { color: var(--brand); font-weight: 600; }
@media (max-width: 1199px) {
    .site-header .navbar-nav { padding-top: 8px; }
    .site-header .nav-link { font-size: 17px; padding: 10px 8px !important; }
}

.buttonHeader { background: transparent; border: none !important; padding: 6px; color: var(--brand); font-size: 24px; line-height: 1; }
.buttonHeader:focus, .buttonHeader:active { outline: none !important; box-shadow: none !important; }
.navbar-toggler .hamburger, .navbar-toggler .close-icon { transition: opacity .3s ease; }
.navbar-toggler:not(.collapsed) .hamburger { display: none !important; }
.navbar-toggler:not(.collapsed) .close-icon { display: block !important; width: 30px; }
.navbar-toggler.collapsed .hamburger { display: block !important; }
.navbar-toggler.collapsed .close-icon { display: none !important; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%232363B0' stroke-linecap='round' stroke-width='2.4' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn-brand, .btn-ghost, .btn-light-brand, .btn-outline-light-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 8px 20px rgba(35, 99, 176, .3); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light-brand { background: #fff; color: var(--brand); }
.btn-light-brand:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-outline-light-brand { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light-brand:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-lg-brand { padding: 15px 26px; font-size: 17px; }
.btn-sm-brand { padding: 9px 16px; font-size: 15px; }
:is(.btn-brand, .btn-ghost, .btn-light-brand, .btn-outline-light-brand):focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 88px;
    background:
        radial-gradient(800px 420px at 95% 10%, rgba(75, 192, 232, .18), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(35, 99, 176, .10), transparent 60%),
        linear-gradient(180deg, #F5F9FD 0%, #FFFFFF 100%);
}
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}
.hero-title { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.02em; margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(17px, 1.7vw, 20px); font-weight: 500; color: var(--text); }
.hero-text { color: var(--text-muted); }

.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.35;
}
.hero-facts .ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); }
@media (max-width: 575px) {
    .hero-section { padding: 40px 0 56px; }
    .hero-facts { grid-template-columns: 1fr; }
}

/* Иллюстрация «договор» */
.policy-card {
    position: relative;
    background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    max-width: 420px;
    margin-left: auto;
}
.policy-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(75, 192, 232, .35);
    filter: blur(4px);
    z-index: -1;
}
.policy-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.policy-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, .15); }
.policy-label { font-size: 22px; font-weight: 700; }
.policy-company { opacity: .75; font-size: 14px; }
.policy-rows { margin: 0; }
.policy-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.policy-rows dt { font-weight: 400; opacity: .8; }
.policy-rows dd { margin: 0; font-weight: 600; }
.policy-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(75, 192, 232, .25);
    font-weight: 600;
    font-size: 14px;
}

/* ---------- Cards ---------- */
.info-card, .pay-card, .warning-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.info-card:hover, .pay-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 27, 45, .09); }
.info-card h3, .pay-card h3, .warning-card h3 { font-size: 20px; margin: 18px 0 10px; }
.info-card p, .pay-card p, .warning-card p { color: var(--text-muted); font-size: 16px; }
.info-card p:last-child, .pay-card p:last-child { margin-bottom: 0; }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); flex: none; }
.card-icon.sm { width: 44px; height: 44px; border-radius: 11px; }
.card-icon.warn { background: var(--warn-tint); color: var(--warn); }
.pay-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge-soft {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.pay-card { border-top: 4px solid var(--brand); }

/* ---------- Callout / lists ---------- */
.callout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: #fff;
    border-left: 4px solid var(--brand-light);
    box-shadow: var(--shadow);
}
.callout-icon { color: var(--brand); flex: none; margin-top: 2px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; margin-top: 1px; }
@media (max-width: 767px) { .check-list { grid-template-columns: 1fr; } }

.factor-list { counter-reset: f; list-style: none; padding: 0; margin: 0; }
.factor-list li {
    counter-increment: f;
    position: relative;
    padding: 14px 0 14px 52px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.factor-list li::before {
    content: counter(f);
    position: absolute;
    left: 0;
    top: 11px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 700;
}

/* ---------- Price panel ---------- */
.price-panel {
    display: flex;
    flex-direction: column;
    background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.price-value { font-size: clamp(44px, 6vw, 68px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.price-label { font-size: 19px; font-weight: 500; margin: 12px 0 24px; }
.price-note { opacity: .85; font-size: 16px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); }
.price-payer { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 28px; }
.price-panel .btn-light-brand { align-self: flex-start; }
@media (max-width: 575px) { .price-panel { padding: 28px 22px; } .price-panel .btn-light-brand { align-self: stretch; } }

/* ---------- Fines table ---------- */
.fines-table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.fines-table { width: 100%; border-collapse: collapse; }
.fines-table th { background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; padding: 16px 22px; text-align: left; }
.fines-table td { padding: 18px 22px; border-top: 1px solid var(--border); vertical-align: middle; }
.fines-table tbody tr:nth-child(even) td { background: #FAFCFE; }
.fines-table .fine-sum { font-weight: 700; color: var(--warn); font-size: 18px; }
.fines-table th:nth-child(n+2), .fines-table td:nth-child(n+2) { text-align: right; white-space: nowrap; width: 1%; }
@media (max-width: 767px) {
    .fines-table thead { display: none; }
    .fines-table, .fines-table tbody, .fines-table tr, .fines-table td { display: block; width: 100%; }
    .fines-table tr { padding: 14px 18px; border-top: 1px solid var(--border); }
    .fines-table tr:first-child { border-top: none; }
    .fines-table tbody tr:nth-child(even) td { background: transparent; }
    .fines-table td { border: none; padding: 4px 0; text-align: left !important; display: flex; justify-content: space-between; gap: 16px; }
    .fines-table td:first-child { display: block; font-weight: 600; margin-bottom: 6px; }
    .fines-table td:not(:first-child)::before { content: attr(data-label); color: var(--text-muted); font-weight: 400; font-size: 15px; }
}

.warning-card { border-left: 4px solid var(--warn); }
.thesis {
    margin: 0;
    display: flex;
    align-items: center;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.4;
    position: relative;
}
.thesis::before { content: "“"; position: absolute; top: -6px; left: 20px; font-size: 90px; line-height: 1; color: var(--brand-light); opacity: .6; }

/* ---------- Steps ---------- */
.sticky-lg { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 991px) { .sticky-lg { position: static; } }
.steps { list-style: none; padding: 0; margin: 0; position: relative; }
.step { position: relative; display: flex; gap: 20px; padding-bottom: 28px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 50px; bottom: 4px; width: 2px; background: var(--border); }
.step-num {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 0 0 6px var(--brand-tint);
}
.step > div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); flex: 1; }
.step-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 600; }
.step h4 { font-size: 18px; margin: 4px 0 6px; }
.step p { color: var(--text-muted); font-size: 16px; margin: 0; }
.video-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.video-link:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { --bs-accordion-border-color: var(--border); --bs-accordion-active-bg: #fff; --bs-accordion-btn-focus-box-shadow: none; max-width: 980px; }
.faq .accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm) !important; margin-bottom: 12px; overflow: hidden; }
.faq .accordion-button { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 18px; color: var(--text); padding: 20px 24px; background: #fff; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--brand); }
.faq .accordion-button::after, .faq .accordion-button:not(.collapsed)::after { display: none; }
.faq .accordion-body { padding: 0 24px 22px; color: var(--text-muted); font-size: 16px; }
.toggle-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-size: 20px; font-weight: 600; line-height: 1; }
@media (max-width: 575px) { .faq .accordion-button { font-size: 16px; padding: 16px 18px; } .faq .accordion-body { padding: 0 18px 18px; } }

/* ---------- Law docs ---------- */
.doc-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.doc-item h4 { font-size: 17px; margin: 0 0 4px; }
.doc-item p { color: var(--text-muted); font-size: 15px; }

/* ---------- Final CTA ---------- */
.final-cta {
    padding: 80px 0 56px;
    color: #fff;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(75, 192, 232, .35), transparent 60%),
        linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.final-cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 20px; }
.final-cta p { color: rgba(255, 255, 255, .88); }
.final-cta .disclaimer { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; color: rgba(255, 255, 255, .7); }

/* ---------- Footer ---------- */
.footer { background: #0F2340; color: rgba(255, 255, 255, .8); font-size: 15px; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer-title { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 500; max-width: 360px; line-height: 1.4; }
.footer-brand img { background: #fff; border-radius: 10px; padding: 4px; }
.footer-contacts li { display: flex; align-items: center; gap: 8px; }
.social img { width: 28px; filter: brightness(0) invert(1); opacity: .85; }
.social a:hover img { opacity: 1; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(35, 99, 176, .35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .2s, visibility .3s;
    z-index: 1000;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-dark); transform: scale(1.08); }
@media (max-width: 600px) { .back-to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 42px; height: 42px; } }

@media (prefers-reduced-motion: reduce) {   /* анимации оставляем: в Windows по RDP/на ВМ этот режим часто включён по умолчанию */
    html { scroll-behavior: auto; }
}

/* Логотип ОСНС в шапке */
.osns-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header .osns-logo img { width: 40px; height: 40px; }
.osns-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.osns-logo-name { font-weight: 700; font-size: 20px; letter-spacing: .06em; color: var(--brand); line-height: 1; }
.osns-logo-sub { font-size: 10.5px; color: #5b6b82; margin-bottom: 2px; }
.footer-brand img { padding: 3px; }

/* Плашка-уведомление HR Enbek: справа поверх всех блоков */
.enbek-notice { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 1025; display: flex; align-items: center; }
.enbek-tab {
    display: flex; align-items: center; gap: 8px;
    writing-mode: vertical-rl; transform: rotate(180deg);
    padding: 16px 10px; border: 0; border-radius: 0 12px 12px 0;
    background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em;
    box-shadow: 0 6px 20px rgba(35, 99, 176, .35); cursor: pointer;
}
.enbek-tab svg { transform: rotate(90deg); }
.enbek-tab:hover { background: var(--brand-dark); }
.enbek-card {
    display: none; position: relative; width: 250px; margin-right: 16px; padding: 20px 18px 18px;
    background: #fff; border-radius: var(--radius); border-top: 4px solid var(--brand-light);
    box-shadow: 0 18px 50px rgba(16, 42, 80, .18);
}
.enbek-notice.open .enbek-card { display: block; animation: enbekIn .25s ease-out; }
.enbek-notice.open .enbek-tab { display: none; }
@keyframes enbekIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.enbek-close {
    position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: transparent; color: #7a879a; font-size: 14px; line-height: 1; cursor: pointer;
}
.enbek-close:hover { background: var(--brand-tint); color: var(--brand); }
.enbek-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.enbek-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); }
.enbek-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.enbek-title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; color: #14213d; }
.enbek-text { font-size: 13.5px; line-height: 1.5; color: #5b6b82; margin-bottom: 16px; }
.enbek-btn { width: 100%; justify-content: center; gap: 6px; }
@media (max-width: 575px) {
    .enbek-card { width: calc(100vw - 32px); margin-right: 16px; }
    .enbek-tab { padding: 12px 8px; font-size: 13px; }
}
/* 1200–1399px: меню в одну строку — подпись логотипа скрываем, остаётся щит + «ОСНС» */
@media (min-width: 1200px) and (max-width: 1399px) { .osns-logo-sub { display: none !important; } }
.site-header .nav-link { white-space: nowrap; }

/* Плашка HR Enbek — в цветах портала hr.enbek.kz (зелёный #17B67C / тёмно-зелёный #0E7F60) */
.enbek-notice { --enbek: #17B67C; --enbek-dark: #0E7F60; --enbek-tint: #E8F8F1; --enbek-ink: #111827; }
.enbek-tab { background: var(--enbek); box-shadow: 0 6px 20px rgba(23, 182, 124, .35); }
.enbek-tab:hover { background: var(--enbek-dark); }
.enbek-card { border-top-color: var(--enbek); border-radius: 8px; }
.enbek-icon { background: var(--enbek-tint); color: var(--enbek-dark); }
.enbek-label { color: var(--enbek-dark); }
.enbek-title { color: var(--enbek-ink); }
.enbek-close:hover { background: var(--enbek-tint); color: var(--enbek-dark); }
.enbek-card .enbek-btn { background: var(--enbek); border-color: var(--enbek); color: #fff; border-radius: 4px; box-shadow: none; }
.enbek-card .enbek-btn:hover, .enbek-card .enbek-btn:focus-visible { background: var(--enbek-dark); border-color: var(--enbek-dark); color: #fff; }
/* Логотип HR Enbek (белый) — на тёмной полосе в цвет портала */
.enbek-card { border-top: 0; padding-top: 0; overflow: hidden; }
.enbek-brand { margin: 0 -18px 16px; padding: 14px 18px; background: #111827; }
.enbek-brand img { display: block; width: 100px; height: auto; }
.enbek-close { color: #c7ced9; }
.enbek-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.enbek-head { margin-bottom: 8px; }
.enbek-icon { width: 30px; height: 30px; border-radius: 6px; }
.enbek-close { z-index: 1; top: 14px; right: 10px; }

/* Видео Enbek в плашке */
.enbek-videos { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5e9f0; }
.enbek-videos-title { font-size: 12.5px; font-weight: 600; color: var(--enbek-ink); margin-bottom: 8px; }
.enbek-video-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.enbek-video { display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.enbek-video-thumb { position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: #111827; }
.enbek-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.enbek-video-play {
    position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--enbek); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.enbek-video:hover .enbek-video-thumb img { transform: scale(1.06); }
.enbek-video:hover .enbek-video-play { background: var(--enbek-dark); }
.enbek-video:focus-visible { outline: 2px solid var(--enbek); outline-offset: 2px; border-radius: 6px; }
.enbek-video-lang { display: block; margin-top: 4px; font-size: 12px; color: #5b6b82; }
/* Плашка может стать выше экрана — прокрутка внутри карточки */
.enbek-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.video-modal { background: #000; border: 0; border-radius: 10px; overflow: hidden; }
.video-modal-close { position: absolute; top: -36px; right: 0; opacity: .9; }
.video-modal { overflow: visible; }

/* Переключатель языка РУС / ҚАЗ */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--brand-tint); }
.lang-switch .lang { padding: 4px 10px; border-radius: 999px; font-size: 13px; color: var(--brand); line-height: 1.3; }
.lang-switch .lang.active { background: var(--brand); color: #fff; }
.lang-switch .lang:not(.active):hover { background: #fff; }
/* Одно видео на языке страницы — на всю ширину карточки */
.enbek-video-list { grid-template-columns: 1fr; }
.enbek-video { width: 100%; }
.enbek-video-thumb { border-radius: 8px; }
.enbek-video-play { width: 48px; height: 48px; }

/* ===== Плашка HR Enbek шире ===== */
.enbek-card { width: 300px; padding-left: 20px; padding-right: 20px; }
.enbek-brand { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
.enbek-title { font-size: 18px; }
.enbek-text { font-size: 14px; }
@media (max-width: 575px) { .enbek-card { width: calc(100vw - 32px); } }

/* ===== Анимации ===== */
/* Появление блоков при прокрутке. Класс js-reveal ставит скрипт — без JS всё видно сразу. */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
.js-reveal .reveal.reveal-left { transform: translateX(-28px); }
.js-reveal .reveal.reveal-zoom { transform: scale(.96); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* Первый экран: текст выезжает по очереди, карточка договора плавно «парит» */
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-section .col-lg-7 > * { animation: heroIn .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-section .col-lg-7 > *:nth-child(2) { animation-delay: .1s; }
.hero-section .col-lg-7 > *:nth-child(3) { animation-delay: .2s; }
.hero-section .col-lg-7 > *:nth-child(4) { animation-delay: .3s; }
.hero-section .col-lg-7 > *:nth-child(5) { animation-delay: .4s; }
.hero-section .col-lg-7 > *:nth-child(6) { animation-delay: .5s; }
@keyframes floatY { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-10px); } }
@keyframes cardIn { from { opacity: 0; transform: rotate(-5deg) translateY(30px); } to { opacity: 1; transform: rotate(-2deg); } }
.policy-card { animation: cardIn .9s .3s cubic-bezier(.2, .7, .2, 1) both, floatY 6s 1.4s ease-in-out infinite; }

/* Иконки карточек оживают при наведении */
.card-icon { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background-color .3s; }
.info-card:hover .card-icon, .pay-card:hover .card-icon { transform: scale(1.12) rotate(-6deg); }
.doc-item { transition: transform .2s ease, box-shadow .2s ease; }
.doc-item:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 27, 45, .08); }
.fines-table tbody tr { transition: background-color .2s; }
.fines-table tbody tr:hover { background-color: var(--brand-tint); }

/* Вкладка HR Enbek: мягкая пульсация и покачивание колокольчика, чтобы её заметили */
@keyframes enbekPulse { 0% { box-shadow: 0 0 0 0 rgba(23, 182, 124, .55); } 70% { box-shadow: 0 0 0 14px rgba(23, 182, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 182, 124, 0); } }
@keyframes bellRing { 0%, 86%, 100% { transform: rotate(90deg); } 89% { transform: rotate(70deg); } 92% { transform: rotate(110deg); } 95% { transform: rotate(80deg); } 98% { transform: rotate(100deg); } }
.enbek-tab { animation: enbekPulse 2.4s ease-out 3s infinite; }
.enbek-tab svg { animation: bellRing 4s ease-in-out 2s infinite; }
@keyframes bellIcon { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-16deg); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(5deg); } }
.enbek-icon svg { animation: bellIcon 4s ease-in-out 1s infinite; transform-origin: 50% 10%; }
.enbek-video-play { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background-color .2s; }
.enbek-video:hover .enbek-video-play { transform: scale(1.12); }

/* Модальное окно видео — плавное увеличение */
.modal.fade .video-modal { transform: scale(.94); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.modal.show .video-modal { transform: none; }


/* ===== Lazy-load: заглушка-«мерцание», пока картинка грузится, затем плавное проявление ===== */
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.enbek-video-thumb { background: linear-gradient(90deg, #e9eef5 25%, #f6f8fb 50%, #e9eef5 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.enbek-video-thumb.done { animation: none; background: #111827; }
img.lazy-img { opacity: 0; filter: blur(10px); transform: scale(1.04); transition: opacity .8s ease, filter .8s ease, transform .8s ease; }
img.lazy-img.loaded { opacity: 1; filter: none; transform: none; }
.enbek-video:hover .enbek-video-thumb img.loaded { transform: scale(1.06); }
.enbek-brand img.lazy-img, .footer-brand img.lazy-img { transform: none; }

/* ===== Как на online.gak.kz: выделение в заголовке, бегущая строка, «путь» шагов, счётчики ===== */

/* Ключевое слово в заголовке: цвет бренда + «рисуемое» подчёркивание */
.hero-title .hl { position: relative; color: var(--brand); white-space: nowrap; }
.hero-title .hl::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em; border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-light), var(--brand));
    transform: scaleX(0); transform-origin: left; animation: hlDraw .9s .9s cubic-bezier(.6, .05, .2, 1) forwards;
}
@keyframes hlDraw { to { transform: scaleX(1); } }

/* Бегущая строка */
.ticker { overflow: hidden; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: tickerMove 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.ticker-list li { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0 28px; font-size: 15px; color: var(--text-muted); }
.ticker-list li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-light); margin-left: 50px; margin-right: -28px; }
.ticker-list b { color: var(--brand); font-weight: 700; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Шаги оформления: автопереключение, «пройденные» с галочкой, линия заполняется */
.steps-auto { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 4px 0 10px; font-size: 14px; color: var(--text-muted); }
.steps-auto-bar { position: relative; width: 70px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.steps-auto-bar i { position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.steps-auto.running .steps-auto-bar i { animation: stepTimer var(--step-ms, 3500ms) linear forwards; }
@keyframes stepTimer { to { transform: scaleX(1); } }
.steps-toggle { border: 1.5px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 13px; cursor: pointer; transition: background-color .2s, color .2s; }
.steps-toggle:hover { background: var(--brand); color: #fff; }
.steps-legend { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 13px; color: var(--text-muted); }
.steps-legend li { display: flex; align-items: center; gap: 6px; }
.steps-legend li::before { content: ""; width: 18px; height: 4px; border-radius: 4px; }
.steps-legend .lg-done::before { background: #17B67C; }
.steps-legend .lg-active::before { background: #F5A623; }
.steps-legend .lg-next::before { background: #C9D3E0; }

.steps.journey .step-num { background: #C9D3E0; box-shadow: 0 0 0 6px #EEF2F7; transition: background-color .4s, box-shadow .4s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.step-num .ok { display: none; line-height: 0; }
.steps.journey .step.done .step-num { background: #17B67C; box-shadow: 0 0 0 6px #E3F6EE; }
.steps.journey .step.done .step-num .n { display: none; }
.steps.journey .step.done .step-num .ok { display: block; animation: popIn .35s cubic-bezier(.3, 1.6, .5, 1); }
.steps.journey .step.active .step-num { background: #F5A623; box-shadow: 0 0 0 6px #FDF0D8, 0 0 0 12px rgba(245, 166, 35, .18); transform: scale(1.12); }
.steps.journey .step > div { transition: border-color .4s, box-shadow .4s, transform .4s; cursor: pointer; }
.steps.journey .step.active > div { border-color: #F5A623; box-shadow: 0 16px 40px rgba(245, 166, 35, .18); transform: translateX(6px); }
.steps.journey .step:not(.active):not(.done) > div { opacity: .75; }
/* Линия между шагами: серая основа + зелёная заливка у пройденных */
.steps.journey .step:not(:last-child)::after {
    content: ""; position: absolute; left: 23px; top: 50px; bottom: 4px; width: 2px; background: #17B67C;
    transform: scaleY(0); transform-origin: top; transition: transform .6s ease;
}
.steps.journey .step.done:not(:last-child)::after { transform: scaleY(1); }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* Числа, считающиеся от нуля */
.num { font-variant-numeric: tabular-nums; }

/* ===== Видеоинструкция в блоке «Оформить онлайн» ===== */
.online-video { width: 100%; max-width: 460px; }
.online-video .enbek-video-thumb { border-radius: 12px; box-shadow: 0 12px 28px rgba(35, 99, 176, .18); }
.online-video .enbek-video-play { width: 64px; height: 64px; background: var(--brand); }
.online-video:hover .enbek-video-play { background: var(--brand-dark); }
.online-video-caption { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; color: var(--brand); }
.online-video:hover .online-video-caption { text-decoration: underline; }

/* ===== Shorts в плашке HR Enbek + вертикальный плеер ===== */
.enbek-short { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 8px; border-radius: 8px; background: var(--enbek-tint); }
.enbek-short:hover { background: #d6f2e5; }
.enbek-short .enbek-short-thumb { flex: 0 0 64px; width: 64px; aspect-ratio: 9 / 16; border-radius: 6px; }
.enbek-short .enbek-video-play { width: 30px; height: 30px; }
.enbek-short-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.enbek-short-tag { align-self: flex-start; padding: 1px 7px; border-radius: 4px; background: #FF0033; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.enbek-short-title { color: var(--enbek-ink); font-size: 13px; font-weight: 600; line-height: 1.35; }
.enbek-short:hover .enbek-short-title { color: var(--enbek-dark); }
#videoModal.video-vertical .modal-dialog { max-width: min(380px, calc((100vh - 96px) * .5625), 92vw); margin-left: auto; margin-right: auto; }
#videoModal.video-vertical .ratio { --bs-aspect-ratio: 177.78%; }

/* ===== Hero: выше, полупрозрачная шапка, большая кнопка под карточкой ===== */
.hero-section { padding-top: 36px; }
@media (max-width: 575px) { .hero-section { padding-top: 24px; } }
.site-header {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: rgba(220, 230, 242, .7);
}
.hero-card-cta {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    max-width: 420px; margin: 36px 0 0 auto; padding: 22px 28px;
    font-size: 20px; font-weight: 700; border-radius: 16px;
    box-shadow: 0 14px 30px rgba(35, 99, 176, .28);
    animation: heroIn .8s .6s cubic-bezier(.2, .7, .2, 1) backwards;
    transition: transform .2s, box-shadow .2s, background-color .2s;
}
.hero-card-cta span { flex: 1; text-align: center; }
.hero-card-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(35, 99, 176, .34); }

/* ===== Окно выбора компании по страхованию жизни ===== */
.insurers-modal { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.insurers-modal .modal-header { align-items: flex-start; gap: 16px; padding: 24px 28px 16px; border-bottom: 1px solid var(--border); }
.insurers-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.insurers-lead { font-size: 15px; color: var(--text-muted); line-height: 1.5; }
.insurers-modal .modal-body { padding: 16px 28px 24px; }
.insurers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.insurer {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); font-size: 16px; line-height: 1.35;
}
.insurer-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 140px; height: 48px; padding: 0 8px; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.insurer-logo img { height: calc(var(--h, 26) * 1px); width: auto; max-width: 100%; object-fit: contain; }
.insurer-name { flex: 1 1 auto; min-width: 0; }
.insurer-main { border-color: var(--brand); background: var(--brand-tint); }
.insurer-main .insurer-logo { border-color: #fff; }
.insurer-main .insurer-name { font-weight: 600; }
.insurer-go { flex: none; white-space: nowrap; }
.modal.fade .insurers-modal { transform: scale(.96); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.modal.show .insurers-modal { transform: none; }
@media (max-width: 575.98px) {
    .insurer-logo { width: 104px; height: 40px; padding: 0 5px; }
    .insurer-logo img { height: calc(var(--h, 26) * .75px); }
    .insurers-modal .modal-header, .insurers-modal .modal-body { padding-left: 18px; padding-right: 18px; }
    .insurer { gap: 12px; font-size: 15px; }
    .insurer-main { flex-wrap: wrap; }
    .insurer-main .insurer-name { flex: 1 1 0; }
    .insurer-main .insurer-go { width: 100%; justify-content: center; }
}
