body {
    background-color: #333;
    color: #fff;
    text-align: center;
}

a {
    color: #fff;
}


.baner {
    display: flex;
    width: 100%;
    height: 100vh;
    text-align: center;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.baner h1 {
    font-size: 90px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px #000;
}

.baner h2 {
    font-size: 36px;
    font-weight: 300;
    text-shadow: 1px 1px 4px #000;
}

.app-links {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.web-app-link {
    display: block;
    width: 100%;
    max-width: 200px;
    height: 60px;
    padding: 10px;
    padding-left: 60px;
    background-color: #3296c8;
    border: 2px solid #fff;
    background-image: url('../img/logo-fisher-btn.png');
    background-position: left center;
    background-size: contain;
    background-repeat: no-repeat;
    box-shadow: 1px 1px 4px #00000088;
    border-radius: 5px;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    margin: 15px;
}

.google-play-logo {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 15px;
}

.google-play-logo img {
    display: block;
    width: 100%;
}


.block-2 {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: left;
}

footer {
    background-color: #222;
    padding: 20px;
    font-size: 14px;
    color: #aaa;
}

footer a {
    color: #f9c74f;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ── Language Switcher ── */
.lang-switcher {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    gap: 4px;
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-left-radius: 12px;
}

.lang-link {
    color: #ccc;
    text-decoration: none;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background 0.2s, color 0.2s;
}

.lang-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.lang-link.active {
    background: rgba(249, 199, 79, 0.25);
    color: #f9c74f;
}

@media (min-width: 992px) {
    .baner {
        background: url('../img/baner_pc.webp');
        background-position: center bottom;
        background-size: cover;
    }
}

@media (max-width: 992px) {
    .baner {
        background: url('../img/baner_mob.webp');
        background-position: center bottom;
        background-size: cover;

    }

    .app-links {
        flex-direction: column;
    }

    .baner h1 {
        font-size: 60px;
        text-shadow: 0.5px 0.5px 2px #00000099;
    }

    .baner h2 {
        font-size: 24px;
        text-shadow: 0.5px 0.5px 2px #00000099;
    }

    .block-2 {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .baner h1 {
        font-size: 60px;
    }

    .baner h2 {
        font-size: 20px;
    }

    .block-2 {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .description-text {
        margin-top: 30px;
    }
}

.block-3 {
    margin-top: 0px;
    margin-bottom: 50px;
    padding: 30px 0;
    background-color: #333;
    color: #fff;
}

.block-3 .row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Это обеспечит равную высоту для всех элементов в строке */
}

.block-3 .col-md-4 {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.block-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Это позволяет тексту внутри элемента корректно распределяться */
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.block-info-text:hover {
    transform: translateY(-10px);
}

.block-3 h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #f9c74f;
}

.block-3 p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

/* ═══════════════════════════════════════════
   BLOCK HOW — How the Forecast is Calculated
   ═══════════════════════════════════════════ */

.block-how {
    background-color: #2a2a2a;
    padding: 60px 0;
    text-align: left;
}

.block-how h2 {
    font-size: 2rem;
    color: #f9c74f;
    margin-bottom: 12px;
    text-align: center;
}

.how-subtitle {
    font-size: 1.3rem;
    color: #f9c74f;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

/* ── Formula box ── */
.how-intro {
    text-align: center;
    margin-bottom: 10px;
}

.how-intro>p {
    color: #ccc;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.formula-box {
    display: inline-block;
    background: #1e1e1e;
    border: 1px solid #f9c74f44;
    border-radius: 14px;
    padding: 20px 30px;
    margin: 0 auto;
}

.formula-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.05rem;
}

.formula-label {
    color: #aaa;
    font-weight: 600;
}

.formula-factor {
    background: #3a3a3a;
    color: #f9c74f;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.formula-op {
    color: #666;
    font-size: 1.1rem;
}

.formula-score {
    margin-top: 14px;
    font-size: 0.95rem;
    color: #aaa;
    text-align: center;
}

.formula-score strong {
    color: #f9c74f;
    font-size: 1.1rem;
}

/* ── Accordion (details/summary) ── */
.factors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}

.factor-item {
    background: #383838;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.factor-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.factor-item[open] {
    background: #3f3f3f;
}

.factor-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    font-size: 1rem;
    font-weight: 500;
    color: #eee;
}

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

.factor-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.factor-name {
    flex: 1;
}

.factor-name em {
    color: #f9c74f;
    font-style: normal;
    font-size: 0.85rem;
}

.factor-arrow {
    color: #888;
    font-size: 1.3rem;
    transition: transform 0.25s;
}

.factor-item[open] .factor-arrow {
    transform: rotate(90deg);
}

.factor-body {
    padding: 4px 18px 16px 50px;
}

.factor-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.factor-body li {
    padding: 5px 0;
    font-size: 0.95rem;
    color: #ccc;
    border-bottom: 1px solid #4a4a4a;
}

.factor-body li:last-child {
    border-bottom: none;
}

/* ── Chart cards ── */
.chart-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.chart-card {
    background: #383838;
    border-radius: 12px;
    padding: 22px 20px;
    text-align: center;
    border-top: 3px solid transparent;
    transition: transform 0.2s;
}

.chart-card:hover {
    transform: translateY(-6px);
}

.chart-card--blue {
    border-top-color: #5aadff;
}

.chart-card--green {
    border-top-color: #5cbf7a;
}

.chart-card--yellow {
    border-top-color: #f9c74f;
}

.chart-card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.chart-card h4 {
    font-size: 1rem;
    color: #f9c74f;
    margin-bottom: 8px;
}

.chart-card p,
.chart-card ul {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.5;
}

.score-tiers {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    text-align: left;
    display: inline-block;
}

.score-tiers li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.88rem;
    color: #ccc;
}

.tier {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 52px;
    text-align: center;
}

.tier--great {
    background: #2e6b3e;
    color: #7ee89e;
}

.tier--good {
    background: #2b5c30;
    color: #a3d9ae;
}

.tier--avg {
    background: #5a4a1a;
    color: #f9c74f;
}

.tier--low {
    background: #5a2020;
    color: #f98a8a;
}

/* ── Disclaimer ── */
.disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #1e1e1e;
    border: 1px solid #f9c74f66;
    border-left: 4px solid #f9c74f;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 40px;
}

.disclaimer-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.disclaimer-content strong {
    display: block;
    color: #f9c74f;
    font-size: 1rem;
    margin-bottom: 6px;
}

.disclaimer-content p {
    color: #bbb;
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .block-how {
        padding: 40px 0;
    }

    .block-how h2 {
        font-size: 1.5rem;
    }

    .formula-box {
        padding: 16px 18px;
    }

    .chart-cards {
        grid-template-columns: 1fr;
    }

    .factors-list {
        max-width: 100%;
    }

    .factor-body {
        padding-left: 18px;
    }
}