.home-hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--color-brand);
    background-image: url('/images/hero-fitness-musculation-combat.jpg');
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(30, 2, 38, 0.72);
}

.home-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    width: 90%;
    padding: 60px 24px;
}

.home-hero__pretitle {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-cta);
    margin-bottom: 20px;
    line-height: 1.6;
}

.home-hero__title {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
    margin: 0 0 20px;
}

.home-hero__title span {
    color: var(--color-cta);
}

.home-hero__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    margin: 0 0 36px;
    font-weight: 400;
}

.home-hero__cta {
    display: inline-block;
    background-color: var(--color-cta);
    color: var(--color-brand);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 15px 38px;
    border-radius: 6px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.home-hero__cta:hover,
.home-hero__cta:focus {
    background-color: #f5d020;
    box-shadow: 0 6px 20px rgba(240,196,20,0.4);
    color: var(--color-brand);
    outline: none;
}

.home-hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.home-hero__scroll-bar {
    width: 1px;
    height: 36px;
    background-color: rgba(240,196,20,0.6);
}

.home-topics {
    background-color: var(--color-brand);
    padding: 0;
}

.home-topics__inner {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
}

.home-topic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s, background-color 0.2s;
    gap: 8px;
}

.home-topic-item:last-child {
    border-right: none;
}

.home-topic-item svg {
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
    flex-shrink: 0;
}

.home-topic-item span {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.home-topic-item:hover,
.home-topic-item:focus {
    color: #fff;
    border-bottom-color: var(--color-cta);
    background-color: rgba(255,255,255,0.06);
    outline: none;
}

.home-topic-item:hover svg,
.home-topic-item:focus svg {
    color: var(--color-cta);
}

.home-intro {
    background-color: var(--bg-light);
    padding: 72px 0;
}

.home-intro__inner {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.home-intro__visual {
    position: relative;
}

.home-intro__img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.home-intro__accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 80px;
    height: 80px;
    background-color: var(--color-cta);
    border-radius: 4px;
    z-index: -1;
}

.home-intro__text .section-title {
    font-size: 32px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.home-intro__text p {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.home-intro__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0 32px;
}

.home-intro__stat {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 12px;
    text-align: center;
}

.home-intro__stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brand);
    line-height: 1.6;
}

.home-intro__stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
    margin-top: 2px;
}

.home-articles {
    background-color: #fff;
    padding: 80px 0;
}

.home-articles__header {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 16px;
    flex-wrap: wrap;
}

.home-articles__header .section-title {
    margin-bottom: 4px;
}

.home-articles__header .section-subtitle {
    margin-bottom: 0;
}

.home-articles__header-text {
    flex: 1;
    min-width: 200px;
}

.home-articles__link {
    color: var(--color-brand);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    white-space: nowrap;
}

.home-articles__link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.home-articles__link:hover,
.home-articles__link:focus {
    color: #6a1080;
    outline: none;
}

.home-articles__link:hover svg {
    transform: translateX(3px);
}

.home-articles__grid {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.article-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.article-card:hover {
    box-shadow: 0 6px 24px rgba(62,8,76,0.12);
    border-color: #cbb8d3;
}

.article-card--featured {
    grid-column: span 2;
    flex-direction: row;
}

.article-card__img-wrap {
    overflow: hidden;
    flex-shrink: 0;
}

.article-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.article-card--featured .article-card__img-wrap {
    width: 50%;
}

.article-card--featured .article-card__img {
    height: 100%;
    min-height: 260px;
}

.article-card:hover .article-card__img {
    transform: scale(1.03);
}

.article-card__body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-card__date {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.article-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    color: var(--text-dark);
}

.article-card--featured .article-card__title {
    font-size: 22px;
}

.article-card__title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.article-card__title a:hover,
.article-card__title a:focus {
    color: var(--color-brand);
    outline: none;
}

.article-card__excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.home-progress {
    background-color: var(--color-brand);
    padding: 80px 0;
}

.home-progress__inner {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-progress__header {
    text-align: center;
    margin-bottom: 52px;
}

.home-progress__header .section-title {
    color: #fff;
    font-size: 30px;
}

.home-progress__header .section-subtitle {
    color: rgba(255,255,255,0.65);
    margin-bottom: 0;
}

.home-progress__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.progress-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.progress-circle-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.progress-circle-svg {
    width: 110px;
    height: 110px;
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(255,255,255,0.12);
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke: var(--color-cta);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.2s ease;
}

.progress-circle-fill.animated {
    stroke-dashoffset: var(--offset);
}

.progress-circle-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.progress-circle-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.progress-circle-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    line-height: 1.6;
    font-weight: 400;
}

.home-timeline {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.home-timeline__inner {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-timeline__header {
    text-align: center;
    margin-bottom: 52px;
}

.home-timeline__header .section-title {
    color: var(--color-brand);
}

.home-timeline__header .section-subtitle {
    margin-bottom: 0;
}

.timeline-track {
    position: relative;
    padding-left: 40px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #d4b8e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    cursor: default;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -31px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-brand);
    border: 3px solid var(--color-cta);
    transition: background-color 0.2s, transform 0.2s;
    z-index: 2;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--color-cta);
    transform: scale(1.25);
}

.timeline-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 22px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.timeline-item:hover .timeline-card {
    box-shadow: 0 4px 16px rgba(62,8,76,0.1);
    border-color: #c9a8d8;
}

.timeline-card__period {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: block;
    margin-bottom: 6px;
    line-height: 1.6;
}

.timeline-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.6;
}

.timeline-card__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.timeline-tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    background-color: var(--color-brand);
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    padding: 10px 14px;
    border-radius: 6px;
    width: 260px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    font-weight: 400;
}

.timeline-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--color-brand);
}

.timeline-item:hover .timeline-tooltip {
    display: block;
}

.home-gallery {
    background-color: #fff;
    padding: 80px 0;
}

.home-gallery__inner {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.home-gallery__header {
    text-align: center;
    margin-bottom: 40px;
}

.home-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: #eee;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-thumb__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(62,8,76,0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s;
}

.gallery-thumb__overlay svg {
    color: #fff;
    width: 32px;
    height: 32px;
    transform: scale(0.7);
    transition: transform 0.2s;
}

.gallery-thumb:hover img {
    transform: scale(1.06);
}

.gallery-thumb:hover .gallery-thumb__overlay {
    background-color: rgba(62,8,76,0.55);
}

.gallery-thumb:hover .gallery-thumb__overlay svg {
    transform: scale(1);
}

.gallery-thumb__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(30,0,38,0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    transform: translateY(100%);
    transition: transform 0.25s;
    line-height: 1.6;
}

.gallery-thumb:hover .gallery-thumb__caption {
    transform: translateY(0);
}

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.88);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal.is-open {
    display: flex;
}

.gallery-modal__content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background-color: #1a001f;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-modal__img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background-color: #000;
}

.gallery-modal__info {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gallery-modal__title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.gallery-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.2s;
    padding: 0;
}

.gallery-modal__close:hover {
    background-color: rgba(240,196,20,0.8);
    color: var(--color-brand);
}

.gallery-modal__close svg {
    width: 18px;
    height: 18px;
}

.gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.2s;
    padding: 0;
}

.gallery-modal__nav:hover {
    background-color: rgba(240,196,20,0.7);
    color: var(--color-brand);
}

.gallery-modal__nav svg {
    width: 20px;
    height: 20px;
}

.gallery-modal__prev { left: 8px; }
.gallery-modal__next { right: 8px; }

.home-newsletter {
    background-color: var(--color-brand);
    padding: 72px 0;
}

.home-newsletter__inner {
    width: 90%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.home-newsletter__icon {
    width: 52px;
    height: 52px;
    color: var(--color-cta);
    margin: 0 auto 20px;
    display: block;
}

.home-newsletter__title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.6;
}

.home-newsletter__desc {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 32px;
    line-height: 1.6;
    font-weight: 400;
}

.home-newsletter__form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.home-newsletter__input {
    flex: 1;
    min-width: 200px;
    padding: 13px 18px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    transition: border-color 0.2s;
}

.home-newsletter__input::placeholder {
    color: rgba(255,255,255,0.45);
}

.home-newsletter__input:focus {
    outline: none;
    border-color: var(--color-cta);
    background-color: rgba(255,255,255,0.14);
}

.home-newsletter__btn {
    background-color: var(--color-cta);
    color: var(--color-brand);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.home-newsletter__btn:hover,
.home-newsletter__btn:focus {
    background-color: #f5d020;
    box-shadow: 0 4px 16px rgba(240,196,20,0.35);
    outline: none;
}

.home-newsletter__note {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    font-weight: 400;
}

.home-newsletter__success {
    display: none;
    color: var(--color-cta);
    font-weight: 700;
    font-size: 16px;
    padding: 14px;
    border: 1px solid var(--color-cta);
    border-radius: 6px;
    margin-top: 8px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .home-hero__title {
        font-size: 30px;
    }

    .home-hero__subtitle {
        font-size: 16px;
    }

    .home-hero__content {
        padding: 40px 16px;
    }

    .home-topics__inner {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .home-topic-item {
        padding: 18px 10px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .home-intro__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-intro__img {
        height: 280px;
    }

    .home-intro__accent {
        display: none;
    }

    .home-intro__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .home-intro__stat-num {
        font-size: 22px;
    }

    .home-articles__grid {
        grid-template-columns: 1fr;
    }

    .article-card--featured {
        grid-column: span 1;
        flex-direction: column;
    }

    .article-card--featured .article-card__img-wrap {
        width: 100%;
    }

    .article-card--featured .article-card__img {
        height: 220px;
        min-height: unset;
    }

    .home-articles__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .home-progress__grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 16px;
    }

    .timeline-tooltip {
        width: 200px;
    }

    .home-newsletter__form {
        flex-direction: column;
    }

    .home-newsletter__input,
    .home-newsletter__btn {
        width: 100%;
    }

    .home-gallery__grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .home-hero__title {
        font-size: 24px;
    }

    .home-intro__stats {
        grid-template-columns: 1fr 1fr;
    }

    .home-topics__inner {
        grid-template-columns: 1fr 1fr;
    }

    .progress-circle-item {
        gap: 10px;
    }
}