﻿:root {
    --bg-main: #edf3fa;
    --bg-soft: #f7fafe;
    --card-bg: #f8fbff;
    --line: #d7e1ef;
    --title: #1b3d76;
    --text: #2f4467;
    --muted: #667d9f;
    --accent: #2b66c5;
    --accent-strong: #1f57ad;
    --white: #ffffff;
    --radius-lg: 24px;
    --radius-md: 22px;
    --radius-btn: 16px;
    --shadow-soft: 0 20px 46px rgba(28, 66, 121, 0.08);
    --shadow-card: 0 12px 26px rgba(36, 76, 138, 0.08);
    --focus-ring: 0 0 0 3px rgba(43, 102, 197, 0.28);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Inter", "Arial", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg-main) 100%);
    line-height: 1.5;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container,
.layout-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.site-main {
    padding-bottom: 36px;
}

.site-header {
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--title);
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 44px;
    max-width: 220px;
    object-fit: contain;
}

.header-contact {
    font-weight: 600;
    white-space: nowrap;
}

.hero,
.hero-section {
    padding: 56px 0 26px;
}

.hero__content,
.hero-copy {
    max-width: none;
}

h1 {
    margin: 0;
    color: var(--title);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    margin: 0;
    color: var(--title);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.2;
}

.hero-subtitle {
    margin: 16px 0 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 900px;
}

.hero-theses {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.hero-theses li {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 0.98rem;
}

.trust-section {
    padding: 12px 0 8px;
}

.trust-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.trust-card ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.trust-card li {
    position: relative;
    padding-left: 20px;
}

.trust-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.quiz-section {
    padding: 24px 0 74px;
}

.quiz-shell {
    border-radius: var(--radius-lg);
}

.quiz-card {
    background: linear-gradient(180deg, var(--bg-soft), #f2f6fc);
    border: 1px solid #dbe4f0;
    border-radius: var(--radius-lg);
    padding: clamp(24px, 2.8vw, 38px);
    box-shadow: var(--shadow-soft);
}

.quiz-progress {
    margin-bottom: 22px;
}

.quiz-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #dce7f4;
    overflow: hidden;
}

.progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3e7ae1 0%, #2a63c2 100%);
    transition: width 0.28s ease;
}

.quiz-step-container {
    border-top: 1px solid var(--line);
    padding-top: 28px;
    min-height: 460px;
}

.step-enter {
    animation: stepIn 0.25s ease;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    margin: 0;
    color: var(--title);
    font-size: clamp(1.35rem, 2.4vw, 2.15rem);
    line-height: 1.25;
}

.step-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1rem;
    max-width: 860px;
}

.step-hint {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.option-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.option-card {
    width: 100%;
    border: 2px solid #b7cae3;
    border-radius: 22px;
    background: #ffffff;
    color: var(--title);
    padding: 16px 16px 18px;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}

@media (min-width: 1280px) {
    .option-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.option-card__icon {
    width: min(232px, 95%);
    height: 84px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    display: block;
}

.option-card__label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: #8fb0db;
    box-shadow: 0 10px 18px rgba(55, 97, 167, 0.15);
}

.option-card:hover .option-card__icon {
    transform: scale(1.02);
}

.option-card:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.option-card.is-selected {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(150deg, #3b79df, #225cb8);
    box-shadow: 0 14px 28px rgba(33, 79, 150, 0.28);
}

.option-card.is-selected .option-card__icon {
    filter: brightness(1.05);
}

.option-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.is-full {
    grid-column: 1 / -1;
}

.field-label {
    color: var(--title);
    font-weight: 600;
    font-size: 0.95rem;
}

.field-control {
    width: 100%;
    border: 1px solid #b7cae3;
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--text);
    background: #fbfdff;
    min-height: 48px;
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-control::placeholder {
    color: #8fa3bf;
}

textarea.field-control {
    min-height: 132px;
    resize: vertical;
}

.field-control.is-invalid {
    border-color: #c0392b;
}

.checkbox-row {
    margin-top: 6px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.checkbox-row input {
    margin-top: 3px;
}

.contact-layout {
    margin-top: 8px;
}

.contact-fields {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.contact-fields .form-field,
.contact-fields .form-field.is-full {
    grid-column: 1 / -1;
}

.contact-consent {
    max-width: 560px;
    margin: 14px auto 0;
}

.quiz-actions {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quiz-form.is-contact-step .quiz-actions {
    border-top: 0;
    padding-top: 8px;
    justify-content: center;
}

.quiz-form.is-contact-step .quiz-actions .btn-secondary {
    display: none;
}

.btn {
    border: 0;
    border-radius: var(--radius-btn);
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    min-height: 48px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, #3c79df 0%, #215cb8 100%);
    box-shadow: 0 10px 20px rgba(34, 80, 153, 0.25);
}

.btn-secondary {
    color: var(--title);
    background: #e5edf9;
}

.btn-submit {
    display: none;
}

.btn-submit {
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: btnSpin 0.8s linear infinite;
}

.btn-submit.is-loading .btn-spinner {
    display: inline-block;
}

.btn-submit.is-loading {
    opacity: 0.95;
    cursor: wait;
}

.submit-loading-note {
    margin-top: 10px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.form-status {
    margin-top: 12px;
    color: #c0392b;
    font-size: 0.92rem;
    min-height: 20px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #f3f7fd;
}

.footer-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-link {
    font-weight: 600;
}

.thank-you-section {
    padding: 60px 0;
}

.thank-you-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.thank-you-card p {
    margin: 14px 0 0;
}

.thank-you-card .btn {
    display: inline-flex;
    margin-top: 22px;
}

.policy-text {
    margin-top: 16px;
    line-height: 1.6;
    color: var(--text);
    white-space: normal;
}

@media (max-width: 900px) {
    .option-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .quiz-step-container {
        min-height: 380px;
    }

    .option-card {
        min-height: 160px;
    }
}

@media (max-width: 640px) {
    .container,
    .layout-container {
        width: min(1200px, calc(100% - 24px));
    }

    .header-inner,
    .footer-inner {
        flex-wrap: wrap;
    }

    .header-contact {
        font-size: 0.95rem;
    }

    .brand-logo {
        height: 36px;
        max-width: 180px;
    }

    .hero,
    .hero-section {
        padding-top: 30px;
    }

    .quiz-card {
        border-radius: 18px;
        padding: 18px 16px;
    }

    .quiz-step-container {
        min-height: 340px;
        padding-top: 18px;
    }

    .option-card {
        min-height: 142px;
        padding: 16px 12px;
        border-radius: 16px;
    }

    .option-card__icon {
        height: 66px;
        width: min(220px, 96%);
    }

    .option-card__label {
        font-size: 16px;
    }

    .quiz-actions {
        flex-wrap: wrap;
    }

    .quiz-actions .btn {
        width: 100%;
    }
}
