@font-face {
    font-family: 'Bebas Neue';
    src: url('../assets/fonts/BebasNeue-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../assets/fonts/Rajdhani-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../assets/fonts/Rajdhani-SemiBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --bg: #e8edf4;
    --surface: #f9fbfe;
    --surface-2: #ffffff;
    --text: #102235;
    --muted: #4d5e73;
    --accent: #ff6a00;
    --accent-strong: #d24f00;
    --dark: #0d1c2b;
    --line: #c1ccda;
    --shadow: rgba(12, 24, 40, 0.18);
    --ok: #1b7f35;
    --error: #b12a2a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(125deg, #eef2f7 0%, #dbe4ef 100%);
    color: var(--text);
}

a {
    color: inherit;
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 10px 14px;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(239, 244, 250, 0.9), rgba(239, 244, 250, 0.7));
    border-bottom: 1px solid rgba(163, 177, 196, 0.34);
}

.header--compact {
    padding-bottom: 10px;
}

.header__inner {
    max-width: 1180px;
    margin: 0 auto;
    border: 1px solid #c4cfdb;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(14, 28, 45, 0.12);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
}

.header__brand {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.header__tag {
    font-size: 10px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: #5b6d82;
    font-weight: 600;
}

.header__name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    line-height: 0.88;
    letter-spacing: 0.06em;
}

.header__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.header__nav a {
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    color: #1a2d43;
    position: relative;
}

.header__nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.header__nav a:hover::after,
.header__nav a:focus-visible::after,
.header__nav a.is-active::after {
    transform: scaleX(1);
}

.header__nav a.is-active {
    color: var(--accent-strong);
}

.header__cta {
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: linear-gradient(95deg, #ff9247 0%, var(--accent) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

main {
    display: block;
}

.hero {
    max-width: 1180px;
    margin: 16px auto 0;
    min-height: 620px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 42px var(--shadow);
    padding: 30px;
    display: flex;
    align-items: flex-end;
}

.hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(106deg, rgba(8, 19, 31, 0.88) 0%, rgba(8, 19, 31, 0.7) 46%, rgba(8, 19, 31, 0.35) 100%),
        linear-gradient(0deg, rgba(8, 19, 31, 0.25), rgba(8, 19, 31, 0.25));
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    color: #f2f7fd;
}

.hero__kicker {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b4c6da;
    font-weight: 600;
}

.hero h1 {
    margin: 8px 0 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 0.93;
    letter-spacing: 0.03em;
}

.hero__text {
    margin: 16px 0 0;
    font-size: clamp(21px, 3vw, 29px);
    line-height: 1.05;
    max-width: 680px;
}

.hero__actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__metrics {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero__metrics div {
    border-radius: 12px;
    background: rgba(245, 249, 253, 0.14);
    border: 1px solid rgba(195, 209, 224, 0.3);
    padding: 11px 12px;
}

.hero__metrics strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 35px;
    letter-spacing: 0.04em;
}

.hero__metrics span {
    font-size: 16px;
    color: #d0ddea;
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 18px;
    text-decoration: none;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--primary {
    background: linear-gradient(95deg, #ff9247 0%, var(--accent) 100%);
    color: #fff;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--muted {
    background: #edf2f8;
    color: #1b2f46;
    border: 1px solid #bfcbda;
}

.section-head {
    max-width: 1180px;
    margin: 0 auto 14px;
    padding: 0 4px;
}

.section-head p {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5c6f85;
    font-weight: 600;
}

.section-head h2 {
    margin: 8px 0 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 0.93;
    letter-spacing: 0.03em;
}

.lead-quiz {
    max-width: 1180px;
    margin: 22px auto 0;
    padding: 0 2px;
}

.quiz-form {
    border-radius: 20px;
    border: 1px solid #c0cad6;
    background: var(--surface-2);
    box-shadow: 0 16px 30px rgba(13, 25, 40, 0.12);
    padding: 18px;
}

.quiz-form__progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #dce5ef;
    overflow: hidden;
}

.quiz-form__progress span {
    display: block;
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, #ff9953 0%, var(--accent) 100%);
    transition: width 0.25s ease;
}

.quiz-form__progress-text {
    margin: 8px 0 0;
    color: #5b7087;
    font-size: 15px;
    font-weight: 600;
}

.quiz-step {
    margin-top: 14px;
    border-radius: 14px;
    border: 1px solid #d2dbe6;
    background: #f7fafe;
    padding: 14px;
    display: none;
}

.quiz-step.is-active {
    display: block;
}

.quiz-step h3 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 0.95;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.03em;
}

.quiz-step label:not(.field-label):not(.consent) {
    display: block;
    margin-top: 8px;
    cursor: pointer;
}

.quiz-step input[type='radio'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-step label span {
    display: block;
    border: 1px solid #c3cfdd;
    border-radius: 11px;
    background: #ffffff;
    padding: 10px 12px;
    font-size: 18px;
    color: #20344b;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.quiz-step input[type='radio']:checked + span {
    border-color: #ff9d59;
    background: #fff4eb;
}

.field-label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 18px;
    font-weight: 600;
    color: #1d3248;
}

.field-label input,
.field-label select {
    border: 1px solid #bcc9d8;
    border-radius: 11px;
    padding: 11px 12px;
    background: #ffffff;
    font-size: 18px;
    font-family: inherit;
}

.field-label input:focus,
.field-label select:focus {
    outline: 2px solid #ff9d59;
    border-color: #ff9d59;
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 10px;
}

.consent {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 16px;
    color: #2c425a;
}

.consent input {
    margin-top: 4px;
    accent-color: var(--accent);
}

.consent a {
    color: var(--accent-strong);
}

.quiz-form__actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.form-error {
    margin: 10px 0 0;
    color: var(--error);
    font-size: 17px;
    font-weight: 600;
    min-height: 20px;
}

.form-success {
    margin: 6px 0 0;
    color: var(--ok);
    font-size: 17px;
    font-weight: 600;
    min-height: 20px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.delivery {
    max-width: 1180px;
    margin: 30px auto 0;
}

.delivery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.delivery__grid article {
    border-radius: 16px;
    border: 1px solid #c0ccd9;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(12, 24, 40, 0.1);
    padding: 16px;
}

.delivery__grid h3 {
    margin: 0;
    font-size: 25px;
    line-height: 0.95;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.03em;
}

.delivery__grid p {
    margin: 10px 0 0;
    font-size: 19px;
    line-height: 1.15;
    color: #30465e;
}

.contacts {
    max-width: 1180px;
    margin: 26px auto 0;
    border-radius: 18px;
    border: 1px solid #2d4c6b;
    background: linear-gradient(135deg, #102336 0%, #1f4365 100%);
    padding: 18px;
    color: #ebf2fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.contacts p {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a8bed5;
}

.contacts h2 {
    margin: 8px 0 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(33px, 5vw, 50px);
    line-height: 0.94;
    letter-spacing: 0.03em;
}

.contacts__actions {
    display: grid;
    gap: 8px;
    min-width: 240px;
}

.contacts__actions a {
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(191, 210, 229, 0.35);
    background: rgba(231, 240, 248, 0.12);
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    padding: 10px 14px;
    text-align: center;
}

.contacts .contacts__meta {
    margin: 0;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: #c8d9ea;
}

.credit-hero {
    max-width: 1180px;
    margin: 16px auto 0;
    border-radius: 22px;
    border: 1px solid #2f4d6e;
    background: linear-gradient(130deg, #0f2236 0%, #1d3c5a 60%, #2a5378 100%);
    color: #f1f6fc;
    padding: 20px;
    box-shadow: 0 18px 32px rgba(10, 22, 36, 0.28);
}

.credit-hero p {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #afc4d8;
}

.credit-hero h1 {
    margin: 8px 0 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 7vw, 62px);
    line-height: 0.93;
    letter-spacing: 0.03em;
    max-width: 920px;
}

.credit-calc {
    max-width: 1180px;
    margin: 18px auto 0;
}

.credit-calc__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 14px;
}

.credit-calc__intro {
    border-radius: 18px;
    border: 1px solid #2f4b69;
    background: linear-gradient(145deg, #102235 0%, #1e4163 100%);
    color: #e5eef8;
    padding: 18px;
}

.credit-calc__tag {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9cb4cb;
    font-weight: 600;
}

.credit-calc__intro h2 {
    margin: 8px 0 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(35px, 5vw, 52px);
    line-height: 0.94;
    letter-spacing: 0.03em;
}

.credit-calc__intro p {
    margin: 12px 0 0;
    font-size: 20px;
    line-height: 1.15;
    color: #cfe0f0;
}

.credit-popular {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.credit-popular__item {
    border-radius: 12px;
    border: 1px solid rgba(184, 203, 222, 0.35);
    background: rgba(238, 246, 253, 0.1);
    padding: 11px;
    text-align: left;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}

.credit-popular__item span {
    display: block;
    font-size: 14px;
    color: #b9cde1;
    margin-bottom: 4px;
}

.credit-popular__item strong {
    font-size: 21px;
    line-height: 1;
}

.credit-popular__item.is-active {
    border-color: #ffab6f;
    background: rgba(255, 171, 111, 0.2);
}

.credit-calc__panel {
    display: grid;
    gap: 12px;
}

.credit-form,
.credit-result {
    border-radius: 16px;
    border: 1px solid #c0cbd8;
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(13, 26, 42, 0.12);
    padding: 14px;
}

.credit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credit-form__button {
    border: 0;
    border-radius: 11px;
    padding: 12px 14px;
    background: linear-gradient(95deg, #ff9247 0%, var(--accent) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
}

.credit-form__hint {
    margin: 0;
    color: #5d7288;
    font-size: 15px;
}

.credit-result {
    border-color: #2e4d70;
    background: linear-gradient(150deg, #102438 0%, #1d4263 100%);
    color: #e8f1fa;
}

.credit-result__label {
    margin: 0;
    color: #abc0d6;
    font-size: 15px;
    font-weight: 600;
}

.credit-result__rate {
    margin: 3px 0 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    line-height: 0.88;
}

.credit-result__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.credit-result__grid div {
    border-radius: 10px;
    border: 1px solid rgba(185, 206, 226, 0.3);
    background: rgba(236, 245, 253, 0.13);
    padding: 10px;
}

.credit-result__grid p {
    margin: 0;
    color: #bbd1e5;
    font-size: 15px;
}

.credit-result__grid strong {
    display: block;
    margin-top: 3px;
    font-size: 20px;
}

.credit-result__note {
    margin: 10px 0 0;
    font-size: 17px;
    color: #deebf8;
    font-weight: 600;
}

.footer {
    margin-top: 26px;
    background: #0f1c2b;
    color: #c8d4e1;
}

.footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer__inner p {
    margin: 0;
    font-size: 17px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__links a {
    color: #f1f6fc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    font-size: 17px;
}

.footer__links a:hover,
.footer__links a:focus-visible {
    border-color: #f1f6fc;
}

.policy-page {
    min-height: 100vh;
    background: linear-gradient(120deg, #edf2f8 0%, #dde6f0 100%);
}

.policy {
    max-width: 960px;
    margin: 26px auto;
    border-radius: 20px;
    border: 1px solid #bdc9d7;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(13, 26, 42, 0.14);
    padding: 22px;
}

.policy h1 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 7vw, 56px);
    line-height: 0.9;
    letter-spacing: 0.03em;
}

.policy__updated {
    margin: 8px 0 0;
    color: #60758a;
    font-size: 16px;
}

.policy h2 {
    margin: 18px 0 0;
    font-size: 27px;
    line-height: 1;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.02em;
}

.policy p,
.policy li {
    margin: 8px 0 0;
    font-size: 19px;
    line-height: 1.18;
    color: #273b52;
}

.policy ul {
    margin: 0;
    padding-left: 20px;
}

.policy__back {
    display: inline-flex;
    margin-top: 20px;
    border-radius: 999px;
    border: 1px solid #bfccd9;
    background: #f4f8fc;
    text-decoration: none;
    color: #183149;
    font-size: 17px;
    font-weight: 600;
    padding: 9px 14px;
}

.admin-page {
    min-height: 100vh;
    background: linear-gradient(125deg, #e9eff6 0%, #dbe5f0 100%);
    color: var(--text);
}

.admin-shell {
    max-width: 1240px;
    margin: 18px auto 30px;
    padding: 0 10px;
}

.admin-top {
    border-radius: 16px;
    border: 1px solid #c2cedb;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(13, 26, 42, 0.12);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-top h1 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(35px, 6vw, 52px);
    line-height: 0.9;
    letter-spacing: 0.03em;
}

.admin-top p {
    margin: 7px 0 0;
    color: #5b7085;
    font-size: 18px;
}

.admin-top__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-stats {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.admin-stats article {
    border-radius: 12px;
    border: 1px solid #c0ccda;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(13, 26, 42, 0.08);
    padding: 11px;
}

.admin-stats span {
    display: block;
    color: #607488;
    font-size: 15px;
    font-weight: 600;
}

.admin-stats strong {
    display: block;
    margin-top: 2px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    line-height: 0.9;
}

.admin-panel {
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid #becad8;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(13, 26, 42, 0.08);
    padding: 12px;
}

.admin-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.admin-filters__actions {
    display: flex;
    gap: 8px;
}

.admin-filters__actions .btn {
    width: 100%;
}

.admin-table-wrap {
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid #bdcada;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(13, 26, 42, 0.08);
    padding: 10px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #d7e0ea;
    padding: 9px 8px;
    text-align: left;
    vertical-align: top;
    font-size: 16px;
}

.admin-table th {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5c7084;
    font-weight: 600;
}

.admin-table tbody tr:hover {
    background: #f6faff;
}

.admin-table tbody tr.is-selected {
    background: #fff4eb;
}

.admin-table a {
    color: #0f3e68;
    font-weight: 600;
    text-decoration: none;
}

.admin-status-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-status-form select,
.admin-status-form button {
    font-family: inherit;
    font-size: 14px;
    border-radius: 9px;
    border: 1px solid #b8c6d6;
    background: #ffffff;
    padding: 7px 8px;
}

.admin-status-form button {
    cursor: pointer;
    background: #f1f6fc;
    font-weight: 600;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-chip--new {
    color: #1b4f8a;
    background: #e8f2ff;
    border-color: #afd0f7;
}

.status-chip--in_progress {
    color: #845508;
    background: #fff3de;
    border-color: #f0c987;
}

.status-chip--won {
    color: #176c2d;
    background: #e7f8ec;
    border-color: #a8dcb5;
}

.status-chip--lost {
    color: #8a2430;
    background: #fdebef;
    border-color: #efb0b8;
}

.admin-lead-card {
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid #bcc8d7;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(13, 26, 42, 0.08);
    padding: 12px;
}

.admin-lead-card h2 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 34px;
    line-height: 0.9;
    letter-spacing: 0.03em;
}

.admin-lead-card p {
    margin: 10px 0 0;
    color: #5f7286;
    font-size: 17px;
}

.admin-lead-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-lead-grid div {
    border-radius: 10px;
    border: 1px solid #ccd7e4;
    background: #f7fafe;
    padding: 9px;
    min-height: 74px;
}

.admin-lead-grid span {
    display: block;
    color: #63788f;
    font-size: 14px;
    font-weight: 600;
}

.admin-lead-grid strong {
    display: block;
    margin-top: 3px;
    color: #17324b;
    font-size: 17px;
    line-height: 1.1;
    word-break: break-word;
}

.admin-login {
    max-width: 520px;
    margin: 28px auto;
    border-radius: 16px;
    border: 1px solid #bcc8d7;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(13, 26, 42, 0.1);
    padding: 18px;
}

.admin-login h1 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 8vw, 48px);
    line-height: 0.9;
    letter-spacing: 0.03em;
}

.admin-login__hint {
    margin: 8px 0 0;
    color: #5e7388;
    font-size: 17px;
}

.admin-login__form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-login__submit {
    width: 100%;
}

@media (max-width: 980px) {
    .header__inner {
        grid-template-columns: 1fr auto;
        justify-items: stretch;
        align-items: center;
        text-align: left;
    }

    .header__nav {
        grid-column: 1 / -1;
        width: 100%;
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .header__nav::-webkit-scrollbar {
        display: none;
    }

    .header__nav a {
        white-space: nowrap;
        border: 1px solid #c6d3e1;
        border-radius: 999px;
        background: #f7faff;
        padding: 8px 12px;
        font-size: 15px;
    }

    .header__nav a::after {
        display: none;
    }

    .header__nav a.is-active {
        border-color: #ffb687;
        background: #fff2e9;
    }

    .header__cta {
        width: auto;
        justify-self: end;
        padding: 9px 14px;
    }

    .hero {
        min-height: 500px;
        padding: 18px;
    }

    .hero__metrics {
        grid-template-columns: 1fr;
    }

    .quiz-form__actions {
        flex-direction: column;
    }

    .delivery__grid {
        grid-template-columns: 1fr;
    }

    .contacts {
        flex-direction: column;
        align-items: flex-start;
    }

    .contacts__actions {
        width: 100%;
    }

    .credit-calc__inner {
        grid-template-columns: 1fr;
    }

    .admin-top {
        flex-direction: column;
    }

    .admin-top__actions {
        width: 100%;
    }

    .admin-top__actions .btn {
        flex: 1 1 0;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filters__actions {
        grid-column: span 2;
    }

    .admin-lead-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    main {
        padding-left: 6px;
        padding-right: 6px;
    }

    .header {
        padding: 6px 6px;
    }

    .header__inner {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
        border-radius: 12px;
    }

    .header__tag {
        font-size: 9px;
    }

    .header__name {
        font-size: 27px;
    }

    .header__nav {
        order: 3;
        gap: 6px;
    }

    .header__cta {
        width: 100%;
        justify-self: stretch;
        text-align: center;
        padding: 9px 12px;
    }

    .header__nav a {
        font-size: 14px;
        padding: 7px 10px;
    }

    .header__cta,
    .btn,
    .field-label,
    .consent,
    .footer__inner p,
    .footer__links a {
        font-size: 15px;
    }

    .hero {
        margin-top: 10px;
        min-height: 390px;
        border-radius: 16px;
        padding: 12px;
    }

    .hero h1 {
        font-size: clamp(29px, 9vw, 34px);
        line-height: 0.98;
    }

    .hero__text {
        margin-top: 10px;
        font-size: 16px;
        line-height: 1.2;
        max-width: 100%;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__metrics strong {
        font-size: 31px;
    }

    .btn {
        width: 100%;
    }

    .section-head {
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .section-head p {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .section-head h2,
    .contacts h2,
    .credit-hero h1 {
        font-size: clamp(25px, 8.2vw, 31px);
        line-height: 1.02;
        letter-spacing: 0.01em;
    }

    .delivery {
        margin-top: 24px;
    }

    .lead-quiz {
        margin-top: 18px;
    }

    .delivery__grid {
        gap: 12px;
    }

    .delivery__grid article {
        padding: 11px;
        border-radius: 12px;
    }

    .delivery__grid h3 {
        font-size: 22px;
        line-height: 1.02;
        letter-spacing: 0.015em;
    }

    .delivery__grid p {
        margin-top: 6px;
        font-size: 15px;
        line-height: 1.26;
    }

    .quiz-form,
    .delivery__grid article,
    .contacts,
    .credit-form,
    .credit-result,
    .credit-calc__intro,
    .policy {
        border-radius: 14px;
        padding: 12px;
    }

    .credit-popular {
        grid-template-columns: 1fr;
    }

    .credit-result__grid {
        grid-template-columns: 1fr;
    }

    .quiz-step h3 {
        font-size: 24px;
    }

    .quiz-step label span {
        font-size: 16px;
        padding: 12px;
    }

    .field-label input,
    .field-label select {
        font-size: 16px;
        min-height: 46px;
    }

    .phone-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .consent {
        font-size: 14px;
        line-height: 1.3;
    }

    .contacts__actions a {
        width: 100%;
        font-size: 16px;
        padding: 9px 12px;
    }

    .contacts__actions {
        margin-top: 6px;
        gap: 10px;
    }

    .contacts .contacts__meta {
        font-size: 12px;
        line-height: 1.3;
    }

    .contacts p {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .footer {
        margin-top: 24px;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__links {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 8px;
    }

    .admin-stats,
    .admin-filters,
    .admin-lead-grid {
        grid-template-columns: 1fr;
    }

    .admin-filters__actions {
        grid-column: auto;
        flex-direction: column;
    }

    .admin-table th,
    .admin-table td {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .section-head h2,
    .contacts h2,
    .credit-hero h1 {
        font-size: clamp(23px, 7.8vw, 28px);
    }

    .delivery__grid h3 {
        font-size: 20px;
    }

    .delivery__grid p {
        font-size: 14px;
    }
}
