@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary:    #FDB913;
    --primary-d:  #e5a710;
    --primary-lt: #fff8e1;
    --primary-pale:#fffdf5;
    --dark:       #1F1D0B;
    --dark-2:     #3a3720;
    --white:      #ffffff;
    --bg:         #f5f5f2;
    --g100:       #f0f0ec;
    --g200:       #e2e2dc;
    --g300:       #c8c8be;
    --g400:       #9a9a8e;
    --g500:       #6e6e62;
    --g700:       #3a3a2e;
    --g900:       #1a1a0e;
    --err:        #d92d20;
    --r8:         8px;
    --r12:        12px;
    --r16:        16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--g900);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* HEADER */
.hdr {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    padding: 0 16px;
    height: 60px;
    box-shadow: 0 1px 8px rgba(0,0,0,.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky; top: 0; z-index: 100; width: 100%;
}
.hdr-logo img { height: 20px; display: block; }
.hdr-right { display: flex; align-items: center; gap: 12px; }
.hdr-ssl { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--g500); }
.hdr-ssl svg { width: 12px; height: 12px; color: var(--primary); }
.hdr-tel { display: none; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--dark); text-decoration: none; background: var(--g100); padding: 7px 14px; border-radius: 6px; border: 1.5px solid var(--g200); }
.hdr-tel svg { width: 13px; height: 13px; }
@media(min-width:600px) { .hdr-tel { display: flex; } }

/* PROGRESS */
.prog-bar { background: var(--white); border-bottom: 1px solid var(--g200); padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.prog-bar::-webkit-scrollbar { display: none; }
.prog-inner { display: flex; align-items: center; height: 50px; min-width: max-content; max-width: 680px; margin: 0 auto; }
.ps { display: flex; align-items: center; gap: 7px; flex-shrink: 0; padding-right: 8px; }
.ps:not(:last-child)::after { content: ''; display: block; width: 18px; height: 1px; background: var(--g200); margin: 0 3px; }
.ps.done:not(:last-child)::after { background: var(--primary); }
.ps-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; border: 2px solid var(--g300); color: var(--g400); background: white; flex-shrink: 0; transition: all .2s; }
.ps-name { font-size: 11.5px; font-weight: 500; color: var(--g400); white-space: nowrap; }
.ps.done .ps-dot  { background: var(--primary); border-color: var(--primary); color: var(--dark); }
.ps.done .ps-name { color: var(--g500); }
.ps.active .ps-dot { background: var(--primary); border-color: var(--primary-d); color: var(--dark); font-weight: 800; box-shadow: 0 0 0 3px rgba(253,185,19,.2); }
.ps.active .ps-name { color: var(--g900); font-weight: 700; }

/* MAIN */
.main { max-width: 680px; margin: 0 auto; padding: 16px 16px 48px; width: 100%; }

/* STEP CARD */
.step-card { background: var(--white); border-radius: var(--r16); overflow: hidden; box-shadow: 0 1px 8px rgba(0,0,0,.07), 0 2px 16px rgba(0,0,0,.04); border: 1px solid var(--g200); width: 100%; }
.step-card-top { background: var(--white); padding: 20px 16px 0; border-bottom: none; }
.step-card-top h2 { font-size: 20px; font-weight: 800; color: var(--g900); letter-spacing: -.3px; margin-bottom: 3px; }
.step-card-top p { font-size: 13px; color: var(--g400); }
.step-card-body { padding: 16px 16px 20px; }

/* RATE STRIP */
.rate-strip {
    display: flex; align-items: center;
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    border-radius: var(--r12);
    padding: 14px 16px; margin-bottom: 20px;
}
.rate-strip-val { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -1px; line-height: 1; margin-right: 14px; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.rate-strip-val span { font-size: 14px; }
.rate-strip-info { flex: 1; min-width: 0; }
.rate-strip-info .ri-title { font-size: 13px; font-weight: 700; color: white; }
.rate-strip-info .ri-sub   { font-size: 12px; color: var(--g500); margin-top: 2px; }
.rate-strip-feats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rate-feat { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--dark); background: var(--primary); padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.rate-feat svg { width: 10px; height: 10px; }

/* FORM */
.field { margin-bottom: 18px; width: 100%; }
.field:last-of-type { margin-bottom: 0; }
.fl { display: block; font-size: 12px; font-weight: 600; color: var(--g500); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 7px; }
.fl .req { color: var(--dark); }

.fi {
    width: 100%; height: 50px; padding: 0 14px;
    background: var(--white);
    border: 1.5px solid var(--g200);
    border-radius: var(--r8);
    font-family: 'Inter', sans-serif;
    font-size: 15px; font-weight: 500; color: var(--g900);
    outline: none; transition: border-color .15s, box-shadow .15s;
    appearance: none; -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    display: block; box-sizing: border-box;
}
.fi::placeholder { color: var(--g300); font-weight: 400; }
.fi:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(253,185,19,.18); }
.fi.err { border-color: var(--err); }

.fs {
    width: 100%; height: 50px; padding: 0 40px 0 14px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9a8e' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1.5px solid var(--g200); border-radius: var(--r8);
    font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: var(--g900);
    outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    display: block; box-sizing: border-box;
}
.fs:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(253,185,19,.18); }

/* Tel */
.tel-wrap { display: flex; background: var(--white); border: 1.5px solid var(--g200); border-radius: var(--r8); overflow: hidden; transition: border-color .15s, box-shadow .15s; width: 100%; }
.tel-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(253,185,19,.18); }
.tel-wrap.err { border-color: var(--err); }
.tel-pre { display: flex; align-items: center; padding: 0 12px 0 14px; font-size: 15px; font-weight: 700; color: var(--g500); white-space: nowrap; flex-shrink: 0; border-right: 1px solid var(--g200); user-select: none; }
.tel-wrap .fi { border: none; border-radius: 0; box-shadow: none; padding-left: 12px; }
.tel-wrap .fi:focus { border: none; box-shadow: none; }

.ferr { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--err); margin-top: 5px; }
.ferr svg { width: 12px; height: 12px; flex-shrink: 0; }
.fhint { font-size: 12px; color: var(--g400); margin-top: 5px; }

/* RADIO */
.radio-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; width: 100%; }
.rc {
    display: block; position: relative;
    border: 1.5px solid var(--g200); border-radius: var(--r12);
    padding: 14px 12px 12px;
    cursor: pointer; transition: border-color .15s, background .15s;
    -webkit-tap-highlight-color: transparent; user-select: none;
    width: 100%; box-sizing: border-box;
}
.rc input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.rc:active { transform: scale(.97); }
.rc:hover  { border-color: var(--primary); }
.rc.on     { border-color: var(--primary); background: var(--primary-lt); }
.rc-ring { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--g300); background: white; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.rc-ring svg { width: 9px; height: 9px; color: var(--dark); opacity: 0; transition: opacity .15s; }
.rc.on .rc-ring { background: var(--primary); border-color: var(--primary-d); }
.rc.on .rc-ring svg { opacity: 1; }
.rc-icon { width: 36px; height: 36px; border-radius: var(--r8); background: var(--g100); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.rc-icon svg { width: 18px; height: 18px; color: var(--g400); transition: color .15s; }
.rc.on .rc-icon { background: var(--primary); }
.rc.on .rc-icon svg { color: var(--dark); }
.rc-title { font-size: 14px; font-weight: 700; color: var(--g900); }
.rc-sub   { font-size: 11.5px; color: var(--g400); margin-top: 2px; line-height: 1.3; }

/* CHECKBOX */
.cb-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 6px; width: 100%; }
@media(min-width:400px) { .cb-wrap { grid-template-columns: repeat(3,1fr); } }
.cc {
    display: block; position: relative;
    padding: 10px 10px 10px 32px;
    border: 1.5px solid var(--g200); border-radius: var(--r8);
    cursor: pointer; transition: border-color .12s, background .12s;
    -webkit-tap-highlight-color: transparent; user-select: none;
    min-height: 40px; width: 100%; box-sizing: border-box;
}
.cc input[type=checkbox] { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; margin: 0; }
.cc span { font-size: 12.5px; font-weight: 500; color: var(--g700); display: block; line-height: 1.3; }
.cc:hover { border-color: var(--primary); background: var(--primary-pale); }
.cc.on    { border-color: var(--primary); background: var(--primary-lt); }
.cc.on span { color: var(--g900); font-weight: 600; }

/* BUTTONS */
.btn-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--g100); width: 100%; }
.btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    height: 52px; padding: 0 20px; border-radius: var(--r8);
    font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
    cursor: pointer; border: none;
    transition: background .15s, transform .1s, box-shadow .15s;
    text-decoration: none; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; box-sizing: border-box; flex-shrink: 0;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: var(--dark); box-shadow: 0 3px 12px rgba(253,185,19,.3); flex: 1; font-weight: 800; }
.btn-primary:active { transform: scale(.97); }
.btn-primary:hover  { background: var(--primary-d); }
.btn-back { background: var(--g100); color: var(--g500); flex-shrink: 0; min-width: 88px; }
.btn-back:hover { background: var(--g200); color: var(--g700); }
.btn-back:active { transform: scale(.97); }

.ssl-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 14px; font-size: 11.5px; color: var(--g400); font-weight: 500; text-align: center; width: 100%; }
.ssl-note svg { width: 12px; height: 12px; color: var(--g500); flex-shrink: 0; }

/* CALCULATOR */
.calc-box { background: var(--g100); border-radius: var(--r12); padding: 16px; margin-bottom: 16px; width: 100%; box-sizing: border-box; }
.amount-field { position: relative; width: 100%; }
.amount-field .fi { padding-left: 28px; font-size: 22px; font-weight: 800; color: var(--g900); letter-spacing: -.5px; height: 56px; border: 1.5px solid var(--g300); }
.amount-field .fi::placeholder { color: var(--g300); font-weight: 400; font-size: 16px; }
.amount-field .fi:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(253,185,19,.18); }
.amount-sym { position: absolute; left: 10px; bottom: 15px; font-size: 17px; font-weight: 800; color: var(--g500); pointer-events: none; }
.amount-range { display: flex; justify-content: space-between; font-size: 11px; color: var(--g400); margin-top: 5px; }

.vade-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 8px; width: 100%; }
@media(min-width:400px) { .vade-grid { grid-template-columns: repeat(4,1fr); } }
.vb { padding: 13px 4px; border: 1.5px solid var(--g200); border-radius: var(--r8); background: white; text-align: center; cursor: pointer; transition: all .12s; user-select: none; -webkit-tap-highlight-color: transparent; width: 100%; box-sizing: border-box; }
.vb:active { transform: scale(.95); }
.vb .vn { font-size: 19px; font-weight: 800; color: var(--g700); line-height: 1; }
.vb .vl { font-size: 10.5px; color: var(--g400); margin-top: 3px; }
.vb.on  { border-color: var(--primary); background: var(--primary); }
.vb.on .vn, .vb.on .vl { color: var(--dark); }

.calc-result { display: flex; flex-direction: column; background: white; border-radius: var(--r8); border: 1px solid var(--g200); overflow: hidden; margin-top: 14px; width: 100%; }
.cr { padding: 13px 16px; border-bottom: 1px solid var(--g200); display: flex; align-items: center; justify-content: space-between; }
.cr:last-child { border-bottom: none; }
.cr-l { font-size: 13px; color: var(--g500); font-weight: 500; }
.cr-v { font-size: 17px; font-weight: 800; color: var(--g900); letter-spacing: -.3px; }
.cr-v.big { font-size: 20px; color: var(--dark); }
.cr-u { font-size: 11px; color: var(--g400); margin-left: 4px; }

/* SUCCESS */
.success-wrap { text-align: center; padding-top: 4px; }
.success-icon { width: 64px; height: 64px; background: var(--primary); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(253,185,19,.3); animation: pop .45s cubic-bezier(.175,.885,.32,1.275) both; }
@keyframes pop { from{transform:scale(0);opacity:0;}to{transform:scale(1);opacity:1;} }
.success-icon svg { width: 30px; height: 30px; color: var(--dark); }
.success-no { background: var(--primary-lt); border: 1.5px dashed #fde89a; border-radius: var(--r12); padding: 16px; margin: 16px 0; text-align: center; width: 100%; }
.success-no .nl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--g400); margin-bottom: 6px; }
.success-no .nv { font-size: 22px; font-weight: 800; color: var(--g900); letter-spacing: 3px; font-family: 'Courier New', monospace; word-break: break-all; }
.success-rows { text-align: left; border: 1px solid var(--g200); border-radius: var(--r12); overflow: hidden; margin-bottom: 16px; width: 100%; }
.sr { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--g100); font-size: 13px; line-height: 1.5; background: white; }
.sr:last-child { border-bottom: none; }
.sr-ic { width: 28px; height: 28px; background: var(--primary-lt); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sr-ic svg { width: 13px; height: 13px; color: var(--dark); }
.sr span { color: var(--g700); }
.sr b { color: var(--g900); }

/* FOOTER */
.ftr { background: var(--dark); padding: 18px 16px; margin-top: 20px; width: 100%; }
.ftr-inner { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
@media(min-width:560px) { .ftr-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.ftr-logo img { height: 16px; display: block; opacity: .65; }
.ftr-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.ftr-links a { font-size: 11.5px; color: rgba(255,255,255,.3); text-decoration: none; font-weight: 500; transition: color .12s; }
.ftr-links a:hover { color: var(--primary); }
.ftr-copy { font-size: 11px; color: rgba(255,255,255,.2); }

@keyframes fadeUp { from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);} }
.fade-up { animation: fadeUp .25s ease both; }

@media(min-width:640px) {
    .main { padding: 24px 24px 56px; }
    .step-card-top { padding: 24px 24px 0; }
    .step-card-body { padding: 20px 24px 24px; }
    .step-card-top h2 { font-size: 22px; }
    .calc-result { flex-direction: row; }
    .cr { border-bottom: none; border-right: 1px solid var(--g200); flex-direction: column; align-items: center; justify-content: center; padding: 14px 8px; flex: 1; }
    .cr:last-child { border-right: none; }
    .cr-l { font-size: 10.5px; margin-bottom: 5px; }
    .cr-v { font-size: 15px; }
    .cr-v.big { font-size: 18px; }
    .cr-u { margin-left: 0; margin-top: 3px; }
    .vade-grid { grid-template-columns: repeat(4,1fr); }
}
