body {
    font-size: 14px;
}

h1 {
    font-size: 20px;
}

h2{
    font-size: 18px;
    text-align: center;
    font-weight: 500;
}

h3{
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: 0;
    text-transform: capitalize;
}

.logo{
    font-size: 20px;
}

.container {
    max-width: 700px;
    margin: 0;
    padding: 0;
}

.ff-app-header {
    height: 56px;
}

.ff-app-logo {
    font-size: 18px;
}
/* -------------------- BLOCK 1 -------------------- */
.hero {
    background: url(/img/m-hero.jpg) center / cover no-repeat;
}

.hero-content {
    padding-top: 10px;
    padding-left: 0;
    gap: 20px;
}

.hero-text{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 24px;
}

.hero-mobile-sub-rows{
    margin: 8px 0;
    display: block;
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: 17px;
    text-align: center;
    line-height: 1.5;
}

.hero-sub {
    font-size: 20px;
}

.hero-buttons{
    padding: 0 24px;
}
.input{
    border-radius: 0;
    max-width: none;
}
.form-inline{
    width: 100%;
    flex-direction: column;
    gap: 5px;
}

.footer-small{
    font-size: 14px;
    text-align: center;
}

/* -------------------- BLOCK 2 -------------------- */
.block-2-img{
    display: none;
}
.two-col{
    padding: 0 24px;
    flex-direction: column;
}
.block-2-mobile-footer{
    display: flex;
    flex-direction: column;
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    color: #95FF8D;
    gap: 20px;
}

/* -------------------- BLOCK 3 -------------------- */
.features{
    display: flex;
    flex-direction: column;
}
.block-green{
    padding: 30px 24px;
}

/* -------------------- BLOCK 4 -------------------- */
.block-4{
    padding: 30px 24px;
    margin: 0;
}

.checklist{
    gap: 20px;
}

.checklist-col{
    width: 100%;
}

/* -------------------- BLOCK 5 -------------------- */
.features-block{
    padding: 30px 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
}

.mid{
    padding: 0 24px;
}

.block-betting{
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #404040;
    padding: 30px 24px;
    color: black;
}

.mid-line{
    gap: 10px;
}

.mid-line-container{
    margin-left: 0;
}

.block-betting h2{
    text-transform: uppercase;
}

/* -------------------- BLOCK 6 -------------------- */
.block-6{
    margin-top: 0;
    gap: 30px;

}
.b6-checklist{
    gap: 20px;
}
.block-6 h2{
    display: flex;
    background: url(/img/ff-b6.png) center / cover no-repeat;
    height: 195px;
    align-items: center;
    justify-content: center;
}

.b6-checklist div::before {
    width: 24px;
    margin-right: 12px;
    color: #95FF8D;
}

.b6-img{
    display: none;
}
.b6-footer{
    padding: 0 24px;
}
/* -------------------- BLOCK 7 -------------------- */
.block-7{
    background: url(/img/ff-b7.jpg) 75% center / cover no-repeat;
}

.block-7 h2{
    text-transform: uppercase;
}

.block-7-content-inner{
    padding: 0 24px;
    gap: 20px;
}

/* -------------------- BLOCK FAQ -------------------- */

.block-faq h2{
    font-size: 20px;
    font-weight: 700;
    font-family: 'Unbounded', sans-serif;
}

.block-faq{
    gap: 40px;
    padding: 30px 24px;
}

/* -------------------- BLOCK 8 -------------------- */
.block-8{
    height: 100%;
    padding: 30px 24px;
}
.block-8-content{
    padding:0;
    gap: 40px;
}

.block-8-content h1{
    text-transform: uppercase;
}

.block-8-content-inner{
    gap: 20px;
}

/*------ my goal ------*/
.mg-container{
    padding-top: 0px;
}

.ff-heatmap-legend-label {
    font-size: 10px;
}

.mg-avg-stat-container{
    display: none;
}

/* Floating menu mobile overrides — TASK-047 */
.ff-floating-menu {
    height: 60px;
    padding: 10px 12px env(safe-area-inset-bottom, 12px);
}

.ff-fm-slot {
    font-size: 11px;
}

.ff-fm-slot svg {
    width: 22px;
    height: 22px;
}

.mg-card{
    flex-direction: column;
    gap: 10px;
}

.mg-progress-text{
    left: 45%;
}

/* Dashboard mobile layout — добавлено TASK-004 */
.mg-image-block {
    display: none;
}

.mg-content-block {
    max-width: 100%;
    width: 100%;
}

.mg-workout-card {
    padding: 12px 16px;
}

.mg-workout-card:hover {
    transform: none;
}

.mg-workout-title {
    font-size: 16px;
}

.mg-plan-summary,
.mg-plan-container {
    padding: 16px;
}

.mg-workout-tags {
    gap: 8px;
}

.mg-metrics-grid {
    grid-template-columns: 1fr !important;
}

/* --- MOBILE OVERRIDES FOR NEW LANDING BLOCKS --- */
.ff-section {
    padding: 40px 24px !important;
}
.ff-hero-section {
    padding: 60px 24px !important;
}
.ff-hero-title {
    font-size: 30px !important;
}
.ff-logic-blocks {
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
}
.ff-live-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 15px !important;
}
.ff-live-cta {
    margin-left: 0 !important;
    font-size: 14px !important;
}
.ff-proofs-grid {
    grid-template-columns: 1fr !important; /* Карточки атлетов друг под другом */
    gap: 20px !important;
}
.ff-proof-stats {
    grid-template-columns: 1fr !important; /* Хаос/Организация друг под другом */
    gap: 15px !important;
}
.ff-proofs-title {
    font-size: 28px !important;
}
.ff-b8-title {
    font-size: 30px !important;
}
/* Перестраиваем блок "How it works" и "Why it works" в колонку на мобилке */
.features {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

/* --- MOBILE HOW IT WORKS --- */
@media (max-width: 780px) {
    .ff-how-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }

    .ff-how-card::after {
        content: '';
        position: absolute;
        bottom: -35px;
        left: 50%;
        width: 2px;
        height: 20px;
        background: linear-gradient(to bottom, #95FF8D, transparent);
        transform: translateX(-50%);
    }

    .ff-how-card:last-child::after {
        display: none;
    }

    .ff-how-grid h2 {
        font-size: 32px !important;
    }
}

/* --- MOBILE SOCIAL BLOCK --- */
@media (max-width: 780px) {
    .ff-social-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .ff-social-card {
        padding: 20px 10px !important;
    }

    .ff-social-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .ff-social-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .ff-social-card h3 {
        font-size: 16px !important;
    }
}

/* TASK-055 — info-icon mobile fix */
@media (max-width: 780px) {
    .ff-info-icon {
        font-size: 11px;
        vertical-align: middle;
        flex-shrink: 0;
    }

    .multisport-section-title {
        flex-wrap: wrap;
        gap: 2px;
    }
}

/* TASK-059 — PMC legend description mobile */
@media (max-width: 780px) {
    .ff-pmc-legend-description {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 12px;
    }
}

/* TASK-147 BUG-066 — Landing auth block, mobile */
@media (max-width: 780px) {
    .ff-landing-auth {
        padding: 20px;
        max-width: 100%;
        border-radius: 10px;
    }
}

@media (max-width: 390px) {
    .ff-landing-auth {
        padding: 16px;
    }
    .ff-landing-login-form {
        flex-direction: column;
        gap: 10px;
    }
    .ff-landing-email,
    .ff-landing-login-btn {
        width: 100%;
        flex: 1 1 auto;
    }
    .ff-landing-signup-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .ff-landing-auth-divider {
        margin: 14px 0;
    }
}
