/* Rates bar — виджет курсов ЦБ */
.rates-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-6);
    padding: var(--s-3) var(--s-5);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: var(--s-6);
    font-size: var(--fz-sm);
    min-height: 44px;
}

.rates-bar__loading {
    color: var(--text-3);
    font-size: var(--fz-xs);
}

.rates-bar__label {
    color: var(--text-3);
    font-size: var(--fz-xs);
    flex-shrink: 0;
}

.rates-bar__item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-2);
    white-space: nowrap;
}

.rates-bar__item strong {
    color: var(--text-1);
    font-weight: 700;
}

.rates-bar__flag {
    font-size: 14px;
    line-height: 1;
}

.rates-bar--loaded {
    animation: fade-in-bar 0.4s ease;
}

@keyframes fade-in-bar {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (max-width: 560px) {
    .rates-bar {
        gap: var(--s-2) var(--s-4);
    }
    .rates-bar__label {
        width: 100%;
    }
}

/* Stats bar */
.stats-bar {
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-bar__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stats-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--s-8) var(--s-6);
    text-align: center;
    position: relative;
}

.stats-bar__item + .stats-bar__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border);
}

.stats-bar__value {
    font-size: var(--fz-3xl);
    font-weight: 800;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stats-bar__label {
    font-size: var(--fz-sm);
    color: var(--text-2);
}

/* How it works */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.steps::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.step {
    display: flex;
    gap: var(--s-6);
    align-items: flex-start;
    padding: var(--s-6) 0;
    position: relative;
}

.step__num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fz-lg);
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: border-color var(--t-normal), background var(--t-normal);
}

.step:hover .step__num {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.1);
}

.step__body {
    padding-top: var(--s-3);
    flex: 1;
}

.step__title {
    font-size: var(--fz-lg);
    font-weight: 700;
    margin-bottom: var(--s-2);
}

.step__desc {
    font-size: var(--fz-base);
    color: var(--text-2);
    line-height: 1.7;
}

/* FAQ styles → /css/components/faq.css */

/* CTA section */
.cta-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    background: var(--bg-card);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: var(--s-16) var(--s-10);
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-bg);
    pointer-events: none;
}

.cta-section__title {
    font-size: clamp(var(--fz-2xl), 3vw, var(--fz-4xl));
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--s-4);
    position: relative;
    z-index: 1;
}

.cta-section__sub {
    font-size: var(--fz-md);
    color: var(--text-2);
    margin-bottom: var(--s-8);
    max-width: 480px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.cta-section__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s-4);
    position: relative;
    z-index: 1;
}

/* Reviews */
.review-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    height: 100%;
}

.review-card__stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--s-4);
    color: var(--gold);
    font-size: var(--fz-sm);
}

.review-card__text {
    font-size: var(--fz-base);
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: var(--s-5);
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fz-base);
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.review-card__name {
    font-size: var(--fz-sm);
    font-weight: 700;
}

.review-card__meta {
    font-size: var(--fz-xs);
    color: var(--text-3);
    margin-top: 2px;
}

/* Calc + Contact two-column layout */
.calc-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: stretch;
}

/* Калькулятор — flex-column чтобы тянулся по высоте */
.calculator {
    display: flex;
    flex-direction: column;
}

.calculator__spacer {
    flex: 1;
}

.calc-contact__sub {
    font-size: var(--fz-xl);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: var(--s-2);
}

.calc-contact__hint {
    font-size: var(--fz-sm);
    color: var(--text-2);
    margin-bottom: var(--s-6);
}

.calc-contact__form {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--r-lg);
    padding: var(--s-8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}

.calc-contact__form .form {
    flex: 1;
}

/* Предупреждение про порог 151 л.с. */
.calc-power-warn {
    font-size: 12px;
    color: var(--gold);
    margin-top: var(--s-2);
    line-height: 1.4;
}

/* Ошибка калькулятора */
.calc-error {
    font-size: var(--fz-sm);
    color: var(--accent);
    margin-top: var(--s-3);
    text-align: center;
}

.form__success-actions {
    display: flex;
    gap: var(--s-3);
    margin-top: var(--s-5);
    justify-content: center;
}

@media (max-width: 900px) {
    .calc-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-bar__item + .stats-bar__item::before { display: none; }
    .cta-section { padding: var(--s-10) var(--s-6); }
}
