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

:root {
    --color-bg: #F7F8FA;
    --color-surface: #FFFFFF;
    --color-dark: #0F172A;
    --color-text: #1E293B;
    --color-muted: #64748B;
    --color-border: #E2E8F0;
    --color-accent: #10B981;
    --color-accent-hover: #059669;
    --color-accent-light: rgba(16, 185, 129, 0.08);
    --color-accent-glow: rgba(16, 185, 129, 0.25);
    --color-highlight: #F0FDF4;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.14);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* ========== HEADER ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 72px;
    background-color: var(--color-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: inherit;
    border-bottom: none;
    padding-bottom: 0;
}

.logo .logo-az {
    color: var(--color-accent);
}

.logo .logo-pul {
    color: #FFFFFF;
}

.logo .logo-mat {
    color: rgba(255, 255, 255, 0.5);
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    position: relative;
}

.nav a:hover {
    color: #FFFFFF;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    transition: width 0.2s;
}

.nav a:hover::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3px;
    cursor: pointer;
}

.lang-switch span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-switch span.active {
    color: var(--color-dark);
    background: var(--color-accent);
    opacity: 1;
}

.mobile-lang-switch {
    display: none;
    gap: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3px;
    cursor: pointer;
    z-index: 102;
}

.mobile-lang-switch span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.mobile-lang-switch span.active {
    color: var(--color-dark);
    background: var(--color-accent);
    opacity: 1;
}

/* ========== MAIN LAYOUT ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 60px;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: start;
}

.left-section {
    padding-top: 12px;
}

/* ========== HOTLINE BADGE ========== */
.hotline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-dark);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.01em;
}

.hotline::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: hotline-pulse 2s ease-in-out infinite;
}

@keyframes hotline-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========== STEPS ========== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.step {
    background-color: var(--color-surface);
    padding: 22px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.25s;
}

.step:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step:hover::before {
    background: var(--color-accent);
}

.step.completed {
    background-color: var(--color-highlight);
    border-color: rgba(16, 185, 129, 0.2);
}

.step.completed::before {
    background: var(--color-accent);
}

.step-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    background: var(--color-accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-number {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-dark);
    color: #FFFFFF;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}

.step-content {
    flex: 1;
}

.step-content .step-title {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.step-content .step-desc {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 400;
}

/* ========== MOBILE CTA ========== */
.mobile-cta-text {
    display: none;
    color: var(--color-dark);
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin: 24px 0;
    letter-spacing: -1px;
    line-height: 1.1;
}

/* ========== CALCULATOR ========== */
.calculator {
    background: var(--color-surface);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 92px;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calc-title {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
}

.month-label {
    color: var(--color-accent);
    font-size: 12px;
    background: var(--color-accent-light);
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.amount-display {
    color: var(--color-text);
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.period-display {
    color: var(--color-text);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.slider-container {
    margin-bottom: 32px;
}

.slider-label {
    color: var(--color-text);
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
}

.slider-wrapper {
    position: relative;
    margin-bottom: 10px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: var(--color-border);
    outline: none;
    -webkit-appearance: none;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-surface);
    cursor: pointer;
    box-shadow: 0 0 0 4px var(--color-accent), var(--shadow-md);
    border: none;
    transition: box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px var(--color-accent), 0 0 0 10px var(--color-accent-glow), var(--shadow-md);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-surface);
    cursor: pointer;
    border: 4px solid var(--color-accent);
    box-shadow: var(--shadow-md);
}

.slider-limits {
    display: flex;
    justify-content: space-between;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 0 2px;
}

/* ========== SUMMARY ========== */
.summary {
    background-color: var(--color-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--color-text);
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-size: 13px;
    color: var(--color-muted);
    font-weight: 400;
}

.summary-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

.summary-value.highlight {
    color: var(--color-accent);
}

.promo-text {
    text-align: center;
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========== BUTTONS ========== */
.submit-btn {
    width: 100%;
    background-color: var(--color-accent);
    color: #FFFFFF;
    border: none;
    padding: 16px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.submit-btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--color-accent-glow);
}

.submit-btn:hover::after {
    transform: translateX(100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.debt-check-btn {
    width: 100%;
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
    padding: 14px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 12px;
}

.debt-check-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: var(--color-accent-light);
    transform: translateY(-1px);
}

/* ========== FORM POPUP ========== */
.form-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.form-popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-popup-content {
    position: relative;
    background: var(--color-surface);
    padding: 44px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    width: 100%;
    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from {
        transform: translateY(20px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.form-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-muted);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.form-popup-close:hover {
    background: var(--color-border);
    color: var(--color-text);
    transform: rotate(90deg);
}

.form-heading {
    color: var(--color-text);
    margin-bottom: 28px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.2s;
    max-width: 100%;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group input[type="date"] {
    max-height: 400px;
    overflow-y: auto;
}

.form-group input.error {
    border-color: #EF4444;
    background: #FEF2F2;
}

.error-message {
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.form-btn {
    width: 100%;
    background-color: var(--color-accent);
    color: #FFFFFF;
    border: none;
    padding: 14px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 24px;
    font-family: var(--font-sans);
}

.form-btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--color-accent-glow);
}

/* ========== WAITING PAGE ========== */
.waiting-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 48px 24px 0;
}

.waiting-card {
    background: var(--color-surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    width: 100%;
    max-width: 540px;
}

.waiting-fields-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.waiting-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.waiting-label {
    color: var(--color-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 6px;
}

.waiting-value {
    color: var(--color-text);
    font-size: 17px;
    font-weight: 700;
}

.waiting-status {
    text-align: center;
    padding: 40px 24px;
}

.waiting-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.waiting-status h2 {
    color: var(--color-text);
    font-size: 21px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.waiting-status p {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* ========== HAMBURGER ========== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    z-index: 102;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    transition: all 0.3s;
    border-radius: 2px;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* ========== MOBILE MENU ========== */
.mobile-menu {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 280px;
    height: auto;
    max-height: calc(100vh - 90px);
    background: var(--color-dark);
    border-radius: 0 0 0 var(--radius-lg);
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px 0;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-header {
    padding: 0 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}

.mobile-menu-logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    text-align: right;
    display: block;
}

.mobile-menu-logo .logo-az,
.mobile-menu-logo .logo-pul {
    color: #FFFFFF;
}

.mobile-menu-logo .logo-mat {
    color: var(--color-accent);
}

.mobile-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
    text-align: right;
}

.mobile-menu a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.04);
}

/* ========== CHAT WIDGET ========== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--color-accent-glow);
    z-index: 9998;
    transition: all 0.25s ease;
}

.chat-widget:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px var(--color-accent-glow);
}

.chat-widget svg {
    width: 26px;
    height: 26px;
}

/* ========== CHAT WINDOW ========== */
.chat-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 360px;
    height: 520px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    z-index: 9997;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.chat-window.active {
    display: flex;
    animation: chatIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatIn {
    from {
        transform: translateY(10px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.chat-header {
    background: var(--color-dark);
    color: #FFFFFF;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.chat-status {
    font-size: 11px;
    opacity: 0.6;
    margin: 0;
    font-weight: 400;
}

.chat-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    animation: msgIn 0.3s ease;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.bot {
    background: var(--color-surface);
    padding: 12px 16px;
    border-radius: 14px 14px 14px 4px;
    border: 1px solid var(--color-border);
    align-self: flex-start;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text);
}

.chat-message.bot a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.chat-message.bot a:hover {
    text-decoration: underline;
}

.chat-message.user {
    background: var(--color-accent);
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: 14px 14px 4px 14px;
    align-self: flex-end;
    font-size: 13px;
    line-height: 1.5;
}

.chat-input-area {
    padding: 14px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: 1.5px solid var(--color-border);
    border-radius: 100px;
    padding: 10px 16px;
    font-size: 13px;
    outline: none;
    background: var(--color-bg);
    transition: all 0.2s;
    font-family: var(--font-sans);
    color: var(--color-text);
}

.chat-input:focus {
    border-color: var(--color-accent);
    background: var(--color-surface);
}

.chat-emoji-btn,
.chat-attach-btn {
    background: transparent;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--color-muted);
}

.chat-emoji-btn:hover,
.chat-attach-btn:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.chat-emoji-btn svg,
.chat-attach-btn svg {
    width: 20px;
    height: 20px;
}

.chat-send-btn {
    background: var(--color-accent);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #FFFFFF;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
}

.chat-footer {
    padding: 8px;
    text-align: center;
    font-size: 10px;
    color: var(--color-muted);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--color-dark);
    color: #FFFFFF;
    padding: 48px 60px 24px;
    margin-top: 0;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section {
    max-width: 100%;
    word-wrap: break-word;
}

.footer-section h3 {
    color: var(--color-accent);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    font-size: 13px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 13px;
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.social-links a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF;
}

.footer-section:last-child {
    display: none;
}

.footer-hotline {
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-hotline h3,
.footer-hotline ul li a {
    font-weight: 700;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
        height: 64px;
    }

    .logo {
        font-size: 22px;
    }

    .nav {
        display: none;
    }

    .lang-switch {
        display: none;
    }

    .mobile-lang-switch {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 20px;
    }

    .left-section {
        order: 1;
    }

    .calculator {
        order: 2;
        position: static;
        padding: 28px 24px;
    }

    .mobile-cta-text {
        display: block;
    }

    .steps {
        margin-bottom: 24px;
    }

    .step {
        padding: 18px 20px;
        gap: 14px;
    }

    .step-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .step-icon {
        width: 24px;
        height: 24px;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .step-content .step-title {
        font-size: 14px;
    }

    .step-content .step-desc {
        font-size: 12px;
    }

    .form-popup-content {
        padding: 32px 24px;
        margin: 16px;
        width: calc(100% - 32px);
    }

    .form-heading {
        font-size: 20px;
    }

    .chat-window {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 92px;
        height: 480px;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .footer {
        padding: 36px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-section h3 {
        font-size: 13px;
    }

    .waiting-container {
        padding: 24px 16px 0;
    }

    .waiting-card {
        padding: 24px;
    }

    .waiting-fields-row {
        flex-direction: column;
        gap: 16px;
    }

    .amount-display {
        font-size: 38px;
    }

    .mobile-menu {
        top: 64px;
    }
}

@media (max-width: 480px) {
    .mobile-cta-text {
        font-size: 32px;
    }

    .calculator {
        padding: 24px 20px;
    }

    .amount-display {
        font-size: 34px;
    }

    .period-display {
        font-size: 26px;
    }

    .submit-btn {
        padding: 15px;
        font-size: 14px;
    }

    .debt-check-btn {
        padding: 13px;
        font-size: 14px;
    }
}
