/* === ШРИФТЫ === */
@font-face {
    font-family: Inter; font-style: normal; font-weight: 400;
    src: url(../fonts/Inter/Inter-Regular.woff2);
}
@font-face {
    font-family: Inter; font-style: normal; font-weight: 500;
    src: url(../fonts/Inter/Inter-Medium.woff2);
}
@font-face {
    font-family: Inter; font-style: normal; font-weight: 600;
    src: url(../fonts/Inter/Inter-SemiBold.woff2);
}
@font-face {
    font-family: Inter; font-style: normal; font-weight: 700;
    src: url(../fonts/Inter/Inter-Bold.woff2);
}
@font-face {
    font-family: Inter; font-style: normal; font-weight: 800;
    src: url(../fonts/Inter/Inter-Extrabold.woff2);
}
@font-face {
    font-family: Inter; font-style: normal; font-weight: 900;
    src: url(../fonts/Inter/Inter-Black.woff2);
}
@font-face {
    font-family: Rubik; font-style: normal; font-weight: 400;
    src: url(../fonts/Rubik/Rubik-Regular.woff2);
}
@font-face {
    font-family: Rubik; font-style: normal; font-weight: 500;
    src: url(../fonts/Rubik/Rubik-Medium.woff2);
}
@font-face {
    font-family: Rubik; font-style: normal; font-weight: 600;
    src: url(../fonts/Rubik/Rubik-SemiBold.woff2);
}
@font-face {
    font-family: Rubik; font-style: normal; font-weight: 700;
    src: url(../fonts/Rubik/Rubik-Bold.woff2);
}
@font-face {
    font-family: Rubik; font-style: normal; font-weight: 800;
    src: url(../fonts/Rubik/Rubik-ExtraBold.woff2);
}
@font-face {
    font-family: Rubik; font-style: normal; font-weight: 900;
    src: url(../fonts/Rubik/Rubik-Black.woff2);
}
@font-face {
    font-family: Roboto; font-style: normal; font-weight: 100;
    src: url(../fonts/Roboto/Robotothin.woff2);
}
@font-face {
    font-family: Roboto; font-style: normal; font-weight: 300;
    src: url(../fonts/Roboto/Robotolight.woff2);
}
@font-face {
    font-family: Roboto; font-style: normal; font-weight: 400;
    src: url(../fonts/Roboto/Roboto.woff2);
}
@font-face {
    font-family: Roboto; font-style: normal; font-weight: 500;
    src: url(../fonts/Roboto/Robotomedium.woff2);
}
@font-face {
    font-family: Roboto; font-style: normal; font-weight: 700;
    src: url(../fonts/Roboto/Robotobold.woff2);
}
@font-face {
    font-family: Roboto; font-style: normal; font-weight: 900;
    src: url(../fonts/Roboto/Robotoblack.woff2);
}

/* === СБРОС === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; }
li { list-style: none; }
a { text-decoration: none; }
button, input, textarea { outline: 0; }
button { border: none; }
ul li:last-child { margin-bottom: 0; margin-right: 0; }
ul li:first-child { margin-left: 0; margin-top: 0; }
a, button { cursor: pointer; display: inline-block; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
section { overflow: hidden; }
span { font-family: inherit; font-weight: inherit; }

/* === ОСНОВА === */
* { font-family: Inter, system-ui, sans-serif; }
body {
    background: #f6f6f6;
    color: #111;
    line-height: 1.5;
    min-height: 100vh;
}
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4399ff;
    text-align: center;
    margin-bottom: 0.5rem;
}
.subtitle {
    color: #515151;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 2rem;
    text-align: center;
}
.form-group { margin-bottom: 1.5rem; }
label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: #161616; font-size: 1rem; }
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    background: #f7f9fd;
    border: none;
    border-radius: 10px;
    height: 56px;
    padding-left: 14px;
    font-size: 1rem;
    width: 100%;
    transition: box-shadow 0.15s ease;
}
input:focus { box-shadow: 0 0 0 3px rgba(67,153,255,0.25); }

.btn {
    align-items: center;
    background: #e12a2a;
    border-radius: 60px;
    box-shadow: 0 4px 20px rgba(67,153,255,0.3);
    color: #fff;
    display: inline-flex;
    font-family: Rubik, sans-serif;
    font-size: 18px;
    font-weight: 500;
    justify-content: center;
    min-width: 130px;
    padding: 14px 28px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    #width: 100%;
}
.btn:hover { background: #006bcf; box-shadow: 0 4px 25px rgba(0,107,207,0.4); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }


.btn2 {
    align-items: center;
    background: #e12a2a;
    border-radius: 60px;
    box-shadow: 0 4px 20px rgba(67,153,255,0.3);
    color: #fff;
    display: inline-flex;
    font-family: Rubik, sans-serif;
    font-size: 18px;
    font-weight: 500;
    justify-content: center;
    min-width: 130px;
    padding: 14px 28px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    width: 100%;
}
.btn2:hover {
   
    background: #10b981;
   
}

.spinner {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.score-box {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.score-value { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.score-label { font-size: 0.9rem; color: #475569; margin-top: 0.5rem; }
.good { color: #10b981; }
.warning { color: #f59e0b; }
.bad { color: #ef4444; }

.loss-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ef4444;
    text-align: center;
    margin: 1.5rem 0;
    background: #fff5f5;
    padding: 1rem;
    border-radius: 16px;
}
.report-details { margin-top: 2rem; }
.report-details h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; color: #111; }
.detail-item {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fef9e7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    font-size: 0.95rem;
}
.error { color: #ef4444; padding: 1rem; background: #fee2e2; border-radius: 12px; text-align: center; }

.lead-form { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.lead-form h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1.5rem; color: #111; }

@media screen and (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    .subtitle { font-size: 1rem; }
    .btn { font-size: 16px; padding: 12px 20px; }
    .card { padding: 1.5rem; }
    .loss-amount { font-size: 1.5rem; }
    .score-value { font-size: 2rem; }
}