/* ===================================
   KREDIT TERMINAL 2026 — Design System
   Steel Blue & Mint Theme
   =================================== */

:root {
    /* Colors */
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-card-alt: #253349;
    --bg-section: #131c30;
    --bg-section-alt: #162036;

    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.12);
    --secondary: #34d399;
    --secondary-light: rgba(52, 211, 153, 0.12);
    --accent: #06b6d4;

    --gradient-main: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-hero: linear-gradient(160deg, #0f172a 0%, #162036 40%, #1a2744 80%, #0f172a 100%);
    --gradient-cta: linear-gradient(135deg, #3b82f6 0%, #34d399 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(37, 51, 73, 0.7));

    --text-white: #f1f5f9;
    --text-body: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;

    --border: rgba(255, 255, 255, 0.07);
    --border-focus: rgba(59, 130, 246, 0.5);

    /* Typography */
    --font: 'Plus Jakarta Sans', 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.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.2);
    --shadow-btn: 0 4px 16px rgba(59, 130, 246, 0.35);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 999px;
    --transition: 0.3s ease;
}

*, *::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-sm);
    font-family: var(--font); font-size: var(--fs-body); font-weight: 700;
    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 28px rgba(59, 130, 246, 0.45);
    filter: brightness(1.08);
}
.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(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.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: 800; color: var(--text-white); text-decoration: none;
}
.logo__icon {
    width: 42px; height: 42px;
    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: 600;
    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: 700; 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: -150px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    pointer-events: none; animation: drift 9s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, transparent 70%);
    pointer-events: none; animation: drift 11s ease-in-out infinite reverse;
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -25px) scale(1.06); }
}
.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: 700;
    padding: 6px 16px; border-radius: var(--radius-full);
    margin-bottom: 20px; letter-spacing: 0.03em; text-transform: uppercase;
    border: 1px solid rgba(59, 130, 246, 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(--gradient-card); border-radius: var(--radius);
    padding: 36px 32px; box-shadow: var(--shadow-lg);
    border: 1px solid var(--border); position: relative;
    backdrop-filter: blur(16px);
}
.form-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--gradient-main);
    border-radius: var(--radius) var(--radius) 0 0;
}
.form-card__header { text-align: center; margin-bottom: 28px; }
.form-card__title { font-size: var(--fs-h3); font-weight: 800; 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: 600; 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(59, 130, 246, 0.1);
}
.form__input::placeholder { color: var(--text-dim); }

.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-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: 600; 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(14, 165, 233, 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: 700; display: block; }
.contact-btn__desc { font-size: var(--fs-xs); color: var(--text-muted); display: block; }
.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; }

/* SECTIONS */
.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: 700; color: var(--secondary); 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; }
.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: 38px; height: 38px; background: var(--secondary-light); color: var(--secondary);
    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(-5px); box-shadow: var(--shadow-glow); border-color: rgba(59, 130, 246, 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: 800; color: var(--text-white); margin-bottom: 8px; }
.adv-card__text { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.6; }

/* 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 18px rgba(59, 130, 246, 0.15);
}
.timeline__content { padding-top: 12px; }
.timeline__title { font-size: 1.0625rem; font-weight: 800; 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(59, 130, 246, 0.35); box-shadow: var(--shadow-glow); }
.faq__question {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; cursor: pointer;
    font-size: var(--fs-body); font-weight: 700; 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(--secondary-light); color: var(--secondary);
    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 */
.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: -15%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
    pointer-events: none;
}
.cta-banner__title { font-size: var(--fs-h2); font-weight: 800; color: #fff; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-banner__text { font-size: 1.0625rem; color: rgba(255,255,255,0.9); margin-bottom: 28px; position: relative; z-index: 1; }
.cta-banner .btn {
    background: #fff; color: var(--primary); font-weight: 800;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12); position: relative; z-index: 1;
}
.cta-banner .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* FOOTER */
.footer { background: #0b1120; 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: 700; color: var(--text-white); margin-bottom: 4px; }
.footer__company { font-size: var(--fs-xs); color: var(--text-muted); }
.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(--secondary); }
.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(15, 23, 42, 0.88); 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 {
    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; }
}
