/* ==============================================================================
   PRAVA-DOET.SBS — DESIGN SYSTEM & STYLES
   Концепция: «Права — это твой капитал»
   Светлый необанк-интерфейс, смелый красный акцент, крупные цифры, скорость.
   Zero emojis. Pure high-performance system typography and vector iconography.
   ============================================================================== */

/* ---------- 1. DESIGN TOKENS & RESET ---------- */
:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-accent-soft: #fff1f2;
    --bg-dark: #0f172a;
    --bg-dark-surface: #1e293b;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    --text-red: #e11d48;

    --brand-red: #e11d48;
    --brand-red-hover: #be123c;
    --brand-red-active: #9f1239;
    --brand-red-border: #fecdd3;

    --brand-blue: #0284c7;
    --brand-green: #10b981;
    --brand-green-soft: #ecfdf5;

    --border-color: #e2e8f0;
    --border-dark: #334155;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-red: 0 8px 24px rgba(225, 29, 72, 0.28);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-main);
    background-color: var(--bg-page);
    overflow-x: hidden;
    overflow-wrap: break-word;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    overflow-wrap: break-word;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-page);
    color: var(--text-main);
}

img, svg, picture {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

/* Base Container Rules */
.wrap {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.wrap:not(.site-header__inner):not(.top-bar__inner) {
    overflow-x: hidden;
}

/* Grid Children Constraint (Critical Rule) */
.grid > *,
.site-footer__grid > *,
.cards-grid > *,
.calc-grid > *,
.articles-grid > *,
.layout__main,
.layout__side {
    min-width: 0 !important;
}

/* Rich-text Containers (Critical Rule) */
.rt, article, .article-content, .content-p, .content-quote {
    overflow-x: hidden;
    overflow-wrap: break-word;
}

/* ---------- 2. TYPOGRAPHY & UTILITIES ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.text-num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background-color: var(--bg-accent-soft);
    color: var(--brand-red);
    border: 1px solid var(--brand-red-border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ---------- 3. BUTTONS & UI CONTROLS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background-color: var(--brand-red);
    color: var(--text-white);
    box-shadow: var(--shadow-red);
}

.btn--primary:hover {
    background-color: var(--brand-red-hover);
    box-shadow: 0 10px 28px rgba(225, 29, 72, 0.36);
    color: var(--text-white);
}

.btn--white {
    background-color: #ffffff;
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

.btn--white:hover {
    background-color: #f8fafc;
    color: var(--brand-red);
}

.btn--outline {
    background-color: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn--outline:hover {
    background-color: var(--bg-subtle);
    border-color: var(--text-muted);
}

.btn--outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--outline-white:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.btn--lg {
    padding: 0.95rem 2rem;
    font-size: 1.0625rem;
}

.btn--block {
    width: 100%;
}

/* ---------- 4. TOP BAR & HEADER ---------- */
.top-bar {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-size: 0.8125rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-dark);
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-bar__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-green);
    box-shadow: 0 0 8px var(--brand-green);
}

.top-bar__trust {
    color: #cbd5e1;
}

.top-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #38bdf8;
    font-weight: 600;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
    overflow: visible !important;
}

.site-header .wrap,
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 1.5rem;
    overflow: visible !important;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo__symbol {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-red), #9f1239);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-red);
}

.site-logo__text {
    display: flex;
    flex-direction: column;
}

.site-logo__name {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-main);
}

.site-logo__accent {
    color: var(--brand-red);
}

.site-logo__tagline {
    font-size: 0.6875rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Desktop Nav */
.desktop-nav {
    overflow: visible !important;
}

.desktop-nav__list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    overflow: visible !important;
    flex-wrap: nowrap;
}

.desktop-nav__item {
    position: relative;
    overflow: visible !important;
}

.desktop-nav__link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.desktop-nav__link:hover {
    color: var(--text-main);
    background-color: var(--bg-subtle);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    padding: 0.75rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.desktop-nav__item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-subtle);
}

.dropdown-item__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
}

.dropdown-item__desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-item__price {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-red);
    white-space: nowrap;
    background-color: var(--bg-accent-soft);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    background-color: var(--bg-subtle);
    color: var(--text-main);
    transition: all 0.15s ease;
}

.action-btn:hover {
    background-color: #e2e8f0;
}

.action-btn--tg {
    color: #0284c7;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-subtle);
    cursor: pointer;
}

.burger-line {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.2s ease;
}

/* ---------- 5. HERO SECTION & CALCULATOR AS HERO ---------- */
.hero {
    position: relative;
    padding: 3.5rem 0 4.5rem;
    background: radial-gradient(circle at 10% 10%, #fff1f2 0%, #ffffff 50%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero__headline {
    font-size: 3.25rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.035em;
}

.hero__headline-accent {
    color: var(--brand-red);
    position: relative;
    display: inline-block;
}

.hero__lead {
    font-size: 1.1875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    padding: 1.25rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-val--red {
    color: var(--brand-red);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* SIGNATURE COMPONENT: HERO FINE & LOSS CALCULATOR */
.calc-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.calc-card__badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--brand-red), #be123c);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-red);
}

.calc-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.calc-card__subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

/* Tabs / Scenario switches */
.calc-scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background-color: var(--bg-subtle);
    padding: 0.35rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
}

.scenario-btn {
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.scenario-btn.is-active {
    background-color: #ffffff;
    color: var(--brand-red);
    box-shadow: var(--shadow-sm);
}

/* Sliders */
.calc-control-group {
    margin-bottom: 1.75rem;
}

.calc-control-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.calc-control-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
}

.calc-control-val {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brand-red);
}

.calc-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-red);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

/* Comparison Display Cards */
.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.calc-res-box {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.calc-res-box--loss {
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
}

.calc-res-box--asset {
    background-color: #f8fafc;
    border: 2px solid var(--brand-red);
    position: relative;
}

.calc-res-tag {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.calc-res-box--loss .calc-res-tag {
    color: #e11d48;
}

.calc-res-box--asset .calc-res-tag {
    color: #0f172a;
}

.calc-res-num {
    font-size: 1.625rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.calc-res-box--loss .calc-res-num {
    color: #be123c;
}

.calc-res-box--asset .calc-res-num {
    color: var(--brand-red);
}

.calc-res-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.4;
}

.calc-footer-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.85rem;
}

/* ---------- 6. NEO-BANK SERVICE CARDS ---------- */
.section-services {
    padding: 5rem 0;
    background-color: #ffffff;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--brand-red-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.product-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--bg-accent-soft);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    border: 1px solid var(--brand-red-border);
}

.product-term {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background-color: var(--bg-subtle);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-meta {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.product-price-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.product-price {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.product-price-cur {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-left: 0.2rem;
}

/* ---------- 7. HOW IT WORKS: 4 STEPS ---------- */
.section-process {
    padding: 5rem 0;
    background-color: var(--bg-page);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.step-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.step-num {
    font-size: 2.25rem;
    font-weight: 900;
    color: #e2e8f0;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- 8. ARTICLE & CONTENT LAYOUT ---------- */
.article-header {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
    border-bottom: 1px solid var(--border-color);
}

.article-header__inner {
    max-width: 860px;
}

.article-h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
    padding: 3.5rem 0;
}

.article-body {
    max-width: 820px;
}

.content-p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1.35rem;
}

.h2-heading {
    font-size: 1.875rem;
    margin-top: 2.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.h2-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--brand-red);
}

.h3-heading {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}

.content-list, .content-list-ordered {
    margin: 1.25rem 0 1.75rem 1.5rem;
    color: #334155;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.content-list li, .content-list-ordered li {
    margin-bottom: 0.5rem;
}

.content-quote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.75rem;
    background-color: var(--bg-accent-soft);
    border-left: 4px solid var(--brand-red);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: #1e293b;
}

.content-link {
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-link:hover {
    color: var(--brand-red-hover);
}

/* Tables (Critical Rule: wrapped with overflow-x: auto) */
.table-container {
    overflow-x: hidden;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    text-align: left;
    white-space: normal;
}

.data-table th {
    background-color: var(--bg-subtle);
    color: var(--text-main);
    font-weight: 800;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: #334155;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Sidebar Widget */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-sticky {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.widget-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.45rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.widget-nav-link:hover {
    color: var(--brand-red);
    background-color: var(--bg-accent-soft);
}

/* ---------- 9. FAQ ACCORDION COMPONENT ---------- */
.faq-accordion {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    background: none;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--text-main);
    transition: color 0.15s ease;
}

.faq-trigger[aria-expanded="true"] {
    color: var(--brand-red);
}

.faq-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: var(--brand-red);
}

.faq-panel {
    padding: 0 1.5rem 1.5rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---------- 10. FORMS & INPUTS ---------- */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field__label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-main);
}

.field__input, .field__select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-main);
    transition: all 0.18s ease;
}

.field__input:focus, .field__select:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.field.is-invalid .field__input {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.field__err {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
}

.form-trust-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background-color: var(--bg-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.form-trust-banner svg {
    color: var(--brand-red);
    flex-shrink: 0;
}

.form-policy {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.4;
}

.form-policy a {
    color: var(--text-muted);
    text-decoration: underline;
}

.form-success {
    padding: 1rem;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    color: #065f46;
    font-size: 0.875rem;
    text-align: center;
}

/* ---------- 11. MODAL DIALOG ---------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.is-open .modal__dialog {
    transform: scale(1) translateY(0);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 800;
}

.modal__subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.modal__close {
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.modal__close:hover {
    color: var(--text-main);
    background-color: var(--bg-subtle);
}

/* ---------- 12. MOBILE DRAWER ---------- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
}

.mobile-drawer__dialog {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.is-open .mobile-drawer__dialog {
    transform: translateX(0);
}

.mobile-drawer__header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer__content {
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.mobile-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav__link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-main);
}

.mobile-drawer__footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.mobile-messengers {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ---------- 13. PRE-FOOTER CTA STRIP & FOOTER ---------- */
.cta-strip {
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    color: #ffffff;
    padding: 4.5rem 0;
}

.cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.cta-strip__eyebrow {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #fda4af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.5rem;
}

.cta-strip__title {
    color: #ffffff;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.cta-strip__desc {
    color: #cbd5e1;
    font-size: 1.0625rem;
    max-width: 680px;
    line-height: 1.6;
}

.cta-strip__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid var(--border-dark);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 1.1fr 1.1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.site-logo--footer .site-logo__name {
    color: #ffffff;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1.25rem 0;
    color: #cbd5e1;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background-color: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: var(--radius-sm);
    color: #fda4af;
    font-size: 0.8125rem;
    font-weight: 700;
}

.footer-title {
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact-block {
    margin-bottom: 0.85rem;
}

.footer-contact-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer-phone {
    font-size: 1.125rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-contact-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #38bdf8;
}

.footer-contact-text {
    font-size: 0.875rem;
    color: #cbd5e1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: #64748b;
}

/* ---------- 14. MOBILE ACTION BAR (THUMB ZONE) ---------- */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 90;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    gap: 0.5rem;
}

.mobile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 60px;
}

.mobile-action-btn--wa {
    color: #10b981;
}

.mobile-action-btn--tg {
    color: #0284c7;
}

.mobile-action-btn--cta {
    flex-grow: 1;
    background-color: var(--brand-red);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-red);
    padding: 0.75rem 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs__link {
    color: var(--text-muted);
}

.breadcrumbs__link:hover {
    color: var(--brand-red);
}

.breadcrumbs__sep {
    color: var(--text-light);
}

.breadcrumbs__current {
    font-weight: 700;
    color: var(--text-main);
}

/* ---------- 15. RESPONSIVE BREAKPOINTS ---------- */
/* 1025px - 1220px (Compact Desktop) */
@media (min-width: 1025px) and (max-width: 1220px) {
    .site-header__inner {
        gap: 0.75rem;
    }
    .desktop-nav__link {
        padding: 0.5rem 0.55rem;
        font-size: 0.875rem;
    }
    .action-btn--tg .action-btn__text {
        display: none;
    }
}

/* ≤ 1024px (Tablet & Below: Enable Drawer, Eliminate Nav Overflow) */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    .burger-btn {
        display: flex;
    }
    .header-cta {
        display: none;
    }
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero__headline {
        font-size: 2.75rem;
    }
}

/* ≤ 768px (Mobile rule: horizontal flex containers to column where needed) */
@media (max-width: 768px) {
    .mobile-action-bar {
        display: flex;
    }
    body {
        padding-bottom: 74px; /* offset for thumb bar */
    }
    .top-bar {
        display: none;
    }
    .hero {
        padding: 2rem 0 3rem;
    }
    .hero__headline {
        font-size: 2.125rem;
    }
    .hero__lead {
        font-size: 1rem;
    }
    .hero__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .calc-card {
        padding: 1.5rem;
    }
    .calc-results {
        grid-template-columns: 1fr;
    }
    .cta-strip__inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-strip__actions {
        width: 100%;
    }
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom__inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    .article-h1 {
        font-size: 1.875rem;
    }
    .article-layout {
        padding: 2rem 0;
    }
}

/* ≤ 425px */
@media (max-width: 425px) {
    .calc-scenarios {
        grid-template-columns: 1fr;
    }
    .stat-val {
        font-size: 1.5rem;
    }
}
