.fit-tool {
    padding: 48px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
}

.fit-tool__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px 40px;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%);
    padding: 36px 48px;
    border-radius: 28px;
    margin-bottom: 44px;
}

.hero__content h1 {
    font-size: 2.7rem;
    margin-bottom: 12px;
    color: #0f172a;
}

.hero__subtitle {
    color: #475569;
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: #6366f1;
    margin-bottom: 10px;
}

.hero__badges span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #eef2ff;
    color: #4c51bf;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 8px;
}

.rating-snippet {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    align-items: baseline;
    color: #334155;
}

.rating-snippet strong {
    font-size: 1.4rem;
    color: #0f172a;
}

.hero__blurb {
    margin-top: 18px;
    color: #475569;
    max-width: 600px;
    line-height: 1.6;
}

.hero__art img {
    max-width: 300px;
    width: 100%;
}

.layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
}

.layout__filters {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    max-height: 80vh;
    overflow-y: auto;
}

.layout__filters form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.filter-section {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
}

.filter-section h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1f2937;
    margin-bottom: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    gap: 6px;
}

.field label {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.45;
}

.field span {
    color: #dc2626;
    margin-left: 4px;
}

.field input,
.field select {
    border: 1px solid #cbd5f5;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 1.05rem;
    line-height: 1.5;
    transition: border 0.2s ease;
}

.field input::placeholder {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.45;
}

.field input:focus,
.field select:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.field small {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
}

.field--toggle {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.field--toggle label {
    margin-bottom: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cta-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #fff;
}

.btn-default {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

.btn.btn-xs {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

.layout__results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.results-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.results-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #0f172a;
}

#results-count {
    color: #475569;
    font-size: 0.9rem;
}

.results-intro p {
    color: #475569;
    margin: 0 0 4px;
}

.results-list {
    display: grid;
    gap: 18px;
}

.results-empty {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.fit-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 14px;
}

.fit-card__header {
    display: flex;
    gap: 14px;
    align-items: center;
}

.fit-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #4338ca;
    overflow: hidden;
}

.fit-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fit-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.fit-card__score {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
}

.fit-card__score[data-label="High"] {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.fit-card__score[data-label="Medium"] {
    background: rgba(251, 191, 36, 0.18);
    color: #d97706;
}

.fit-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fit-card__tag {
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.fit-card__body p {
    margin: 0 0 10px;
    color: #334155;
    line-height: 1.6;
}

.fit-card__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: #475569;
}

.fit-card__contacts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.fit-card__cta {
    flex: 0 0 auto;
}

.unlock-banner {
    position: sticky;
    bottom: 16px;
    background: rgb(217 229 255);
    border: 1px dashed rgba(37, 99, 235, 0.4);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.unlock-banner span {
    color: #1e293b;
    font-weight: 600;
}

.fit-tool-faq {
    margin-top: 72px;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(56, 189, 248, 0.04) 100%);
    border-radius: 28px;
    padding: 40px 48px;
}

.fit-tool-faq h2 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.faq-intro {
    color: #475569;
    margin-bottom: 24px;
    max-width: 720px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.faq-item summary {
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    position: relative;
    padding-right: 24px;
    list-style: none;
}

.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: #6366f1;
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: '–';
}

.faq-item p {
    margin: 12px 0 0;
    color: #475569;
}

@media (max-width: 1200px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .layout__filters {
        max-height: none;
        overflow: visible;
        padding: 24px;
    }

    .layout__filters form {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .layout__filters {
        max-height: none;
    }

    .unlock-banner {
        position: sticky;
        bottom: 12px;
    }

    .fit-card {
        padding: 24px;
    }

    .fit-tool-faq {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .layout__filters {
        padding: 20px;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-group .btn {
        width: 100%;
    }
}
