/* ===================================
   KREDIT DENGI PROSTO 2026 — Design System
   Aurora Blue-Purple Theme
   =================================== */

/* Variables */
:root {
    /* Colors */
    --bg-main: #0c0e1a;
    --bg-card: #141729;
    --bg-card-alt: #1a1e35;
    --bg-section: #0f1222;
    --bg-section-alt: #111428;

    --primary: #00d4ff;
    --primary-dark: #00b8e0;
    --primary-light: rgba(0, 212, 255, 0.12);
    --secondary: #7c3aed;
    --secondary-light: rgba(124, 58, 237, 0.15);
    --accent: #06d6a0;
    --accent-light: rgba(6, 214, 160, 0.12);

    --gradient-main: linear-gradient(135deg, #00d4ff, #7c3aed);
    --gradient-hero: linear-gradient(160deg, #0c0e1a 0%, #1a1040 50%, #0c0e1a 100%);
    --gradient-card: linear-gradient(145deg, rgba(20, 23, 41, 0.9), rgba(26, 30, 53, 0.6));
    --gradient-cta: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);

    --text-white: #f0f2ff;
    --text-body: #b0b8d6;
    --text-muted: #6b7394;
    --text-dim: #4a5173;

    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(0, 212, 255, 0.4);

    /* Typography */
    --font: 'Inter', sans-serif;
    --fs-hero: clamp(2rem, 5vw, 3.25rem);
    --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-xs: 0.75rem;

    /* Spacing */
    --section-gap: 100px;
    --container-max: 1140px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-btn: 0 4px 20px rgba(0, 212, 255, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 999px;
    --transition: 0.3s ease;
    --glass: rgba(20, 23, 41, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: var(--fs-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.45);
    filter: brightness(1.1);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: var(--bg-main);
}

.btn--full { width: 100%; }

.btn--lg {
    padding: 16px 40px;
    font-size: 1.0625rem;
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 14, 26, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
}

.logo__icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav__link {
    color: var(--text-body);
    font-size: var(--fs-small);
    font-weight: 500;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}

.nav__link:hover { color: var(--primary); }
.nav__link:hover::after { width: 100%; }

.header__cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__phone {
    color: var(--text-white);
    font-weight: 600;
    font-size: var(--fs-small);
}

/* ===================================
   HERO
   =================================== */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero__title span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hero__stat { text-align: left; }

.hero__stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 4px;
}

.hero__stat-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   FORM CARD
   =================================== */
.form-card {
    background: var(--glass);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    backdrop-filter: blur(20px);
}

.form-card__header {
    text-align: center;
    margin-bottom: 28px;
}

.form-card__title {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.form-card__desc {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.form-step { display: none; }
.form-step.active { display: block; }

.form__group { margin-bottom: 16px; }

.form__label {
    display: block;
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 6px;
}

.form__input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: var(--fs-body);
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    outline: none;
}

.form__input:focus {
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.form__input::placeholder { color: var(--text-dim); }

/* Progress bar */
.form-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.form-progress__step {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--border);
    transition: var(--transition);
}

.form-progress__step.done {
    background: var(--gradient-main);
}

/* Contact methods in step 2 */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--text-white);
}

.contact-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.contact-btn__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-btn--telegram .contact-btn__icon {
    background: rgba(0, 136, 204, 0.15);
    color: #0ea5e9;
}

.contact-btn--callback .contact-btn__icon {
    background: var(--primary-light);
    color: var(--primary);
}

.contact-btn__text { text-align: left; }

.contact-btn__title {
    font-weight: 600;
    display: block;
}

.contact-btn__desc {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    display: block;
}

/* Checkbox */
.form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
}

.form__check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.form__check label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.4;
}

.form__check label a {
    color: var(--primary);
    text-decoration: underline;
}

/* ===================================
   SECTION COMMON
   =================================== */
.section {
    padding: var(--section-gap) 0;
}

.section--alt {
    background: var(--bg-section-alt);
}

.section__header {
    text-align: center;
    margin-bottom: 56px;
}

.section__tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section__title {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section__subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   TRUST BAR
   =================================== */
.trust-bar {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-section);
}

.trust-bar__inner {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.trust-item__icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ===================================
   ADVANTAGES
   =================================== */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.adv-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition);
}

.adv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.15);
}

.adv-card:hover::before { opacity: 1; }

.adv-card__icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin-bottom: 20px;
}

.adv-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.adv-card__text {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===================================
   HOW IT WORKS (Timeline)
   =================================== */
.timeline {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0.3;
}

.timeline__item {
    display: flex;
    gap: 24px;
    padding-bottom: 40px;
    position: relative;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__number {
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.timeline__content { padding-top: 12px; }

.timeline__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.timeline__text {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===================================
   FAQ
   =================================== */
.faq__list {
    max-width: 720px;
    margin: 0 auto;
}

.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition);
}

.faq__item.active {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.15);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--text-white);
    transition: var(--transition);
}

.faq__question:hover { color: var(--primary); }

.faq__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq__item.active .faq__icon {
    background: var(--primary);
    color: var(--bg-main);
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq__answer-inner {
    padding: 0 24px 20px;
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.7;
}

.faq__item.active .faq__answer { max-height: 300px; }

/* ===================================
   CONDITIONS
   =================================== */
.conditions__card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.conditions__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cond-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cond-item__icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.cond-item__title {
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2px;
}

.cond-item__text {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* ===================================
   CTA BANNER
   =================================== */
.cta-banner {
    background: var(--gradient-cta);
    border-radius: var(--radius);
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
    pointer-events: none;
}

.cta-banner__title {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.cta-banner__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

.cta-banner .btn {
    background: #fff;
    color: var(--secondary);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-section);
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.footer__copy {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__link {
    font-size: var(--fs-small);
    color: var(--text-muted);
    transition: var(--transition);
}

.footer__link:hover { color: var(--primary); }

.footer__contact { text-align: right; }

.footer__phone {
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.footer__company {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* Legal */
.footer__legal {
    margin-top: 32px;
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.6;
}

.footer__legal-section {
    margin-bottom: 10px;
}

.footer__legal-highlight {
    margin-bottom: 10px;
    color: var(--primary);
}

.footer__legal-notice {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.footer__banks {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 6px;
}

.footer__banks li { margin-bottom: 2px; }

/* ===================================
   LOADER
   =================================== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   NOTIFICATION
   =================================== */
#notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    box-shadow: var(--shadow-glow);
    max-width: 500px;
}

.notif-icon {
    color: var(--primary);
    font-size: 1.25rem;
}

#notification p {
    color: var(--text-body);
    font-size: var(--fs-small);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
    }

    .conditions__grid {
        grid-template-columns: 1fr;
    }

    .nav__list { display: none; }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__contact { text-align: center; }
    .footer__links { justify-content: center; }
}

@media (max-width: 600px) {
    .hero__stats {
        flex-direction: column;
        gap: 16px;
    }

    .trust-bar__inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cta-banner {
        padding: 40px 24px;
    }
}
