.guides-page,
.guide-single {
    padding: 16px 0 36px;
    background: transparent;
}

.guides-page__container,
.guide-single__container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== BUTTONS FALLBACK ===== */
.guides-page .btn,
.guide-single .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.guides-page .btn-primary,
.guide-single .btn-primary {
    background: linear-gradient(180deg, #df2027 0%, #bd111b 100%);
    color: #ffffff;
    border: 1px solid #c91a23;
    box-shadow: 0 10px 22px rgba(189, 17, 27, 0.18);
}

.guides-page .btn-primary:hover,
.guide-single .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(189, 17, 27, 0.22);
}

.guides-page .btn-secondary,
.guide-single .btn-secondary {
    background: #ffffff;
    color: #b9151f;
    border: 1px solid #efc5c9;
}

.guides-page .btn-secondary:hover,
.guide-single .btn-secondary:hover {
    background: #fff8f8;
}

/* ===== HERO ARCHIVE ===== */
.guides-hero {
    margin-bottom: 18px;
}

.guides-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 320px;
    gap: 18px;
    align-items: stretch;
    padding: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
    border: 1px solid #e6eaf0;
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(31, 31, 36, 0.06);
}

.guides-hero__badge,
.guide-article__badge,
.guide-download-box__badge,
.guide-cta-box__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff3f4;
    color: #be1821;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.guides-hero__title {
    margin: 14px 0 12px;
    font-size: 44px;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #141923;
}

.guides-hero__text {
    max-width: 760px;
    color: #5d6778;
    font-size: 15px;
    line-height: 1.7;
}

.guides-hero__text p {
    margin: 0;
}

.guides-hero-card,
.guide-side-card {
    height: 100%;
    padding: 20px;
    background: linear-gradient(180deg, #fff8f8 0%, #fffefe 100%);
    border: 1px solid #f0d9db;
    border-radius: 20px;
}

.guides-hero-card__label,
.guide-side-card__label {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #141923;
}

.guides-hero-card__list,
.guide-side-card__list {
    margin: 0;
    padding-left: 18px;
    color: #5d6778;
    font-size: 14px;
    line-height: 1.65;
}

.guides-hero-card__list li + li,
.guide-side-card__list li + li {
    margin-top: 8px;
}

/* ===== TOOLBAR ===== */
.guides-toolbar {
    margin-bottom: 18px;
}

.guides-toolbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(31, 31, 36, 0.05);
}

.guides-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 520px;
}

.guides-search input[type="search"] {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid #dfe4ec;
    background: #ffffff;
    font-size: 14px;
    color: #141923;
    box-shadow: inset 0 1px 2px rgba(31, 31, 36, 0.03);
}

.guides-search input[type="search"]:focus {
    outline: none;
    border-color: rgba(195, 25, 31, 0.35);
    box-shadow: 0 0 0 4px rgba(195, 25, 31, 0.08);
}

.guides-search button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #d31c28 0%, #b5121d 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(179, 18, 29, 0.18);
}

.guides-toolbar__meta {
    color: #5d6778;
    font-size: 14px;
    line-height: 1.5;
}

.guides-toolbar__meta strong {
    color: #141923;
}

/* ===== GRID ===== */
.guides-grid-section {
    display: grid;
    gap: 18px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.guide-archive-card {
    min-width: 0;
}

.guide-archive-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(31, 31, 36, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-archive-card__inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(31, 31, 36, 0.08);
    border-color: #d9dfe9;
}

.guide-archive-card__meta,
.guide-related-card__meta,
.guide-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    color: #6b7280;
    font-size: 12.5px;
    line-height: 1.4;
}

.guide-archive-card__title {
    margin: 12px 0 10px;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.guide-archive-card__title a,
.guide-related-card__title a {
    color: #141923;
    text-decoration: none;
}

.guide-archive-card__title a:hover,
.guide-related-card__title a:hover {
    color: #be1821;
}

.guide-archive-card__excerpt {
    margin-bottom: 18px;
    color: #5d6778;
    font-size: 14px;
    line-height: 1.65;
}

.guide-archive-card__excerpt p {
    margin: 0;
}

.guide-archive-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* ===== PAGINATION ===== */
.guides-pagination {
    display: flex;
    justify-content: center;
}

.guides-pagination__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.guides-pagination__item a,
.guides-pagination__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #e6eaf0;
    background: #ffffff;
    color: #141923;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.guides-pagination__item .current {
    background: #be1821;
    border-color: #be1821;
    color: #ffffff;
}

/* ===== EMPTY ===== */
.guides-empty__card {
    padding: 34px 28px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(31, 31, 36, 0.05);
    text-align: center;
}

.guides-empty__card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #141923;
}

.guides-empty__card p {
    margin: 0;
    color: #5d6778;
    font-size: 15px;
    line-height: 1.7;
}

/* ===== SINGLE ===== */
.guide-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.guide-breadcrumbs a {
    color: #be1821;
    text-decoration: none;
}

.guide-article {
    display: grid;
    gap: 18px;
}

.guide-article__hero {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(31, 31, 36, 0.06);
}

.guide-article__hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 320px;
    gap: 18px;
}

.guide-article__title {
    margin: 14px 0 12px;
    font-size: 46px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #141923;
}

.guide-article__lead {
    max-width: 760px;
    margin-top: 14px;
    color: #5d6778;
    font-size: 16px;
    line-height: 1.7;
}

.guide-article__lead p {
    margin: 0;
}

.guide-article__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.guide-article__body-wrap {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(31, 31, 36, 0.05);
}

.guide-article__body {
    max-width: 860px;
    color: #2a2e37;
    font-size: 16px;
    line-height: 1.8;
}

.guide-article__body > *:first-child {
    margin-top: 0;
}

.guide-article__body > *:last-child {
    margin-bottom: 0;
}

.guide-article__body h2,
.guide-article__body h3,
.guide-article__body h4 {
    margin: 1.7em 0 0.7em;
    color: #141923;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.guide-article__body h2 {
    font-size: 32px;
}

.guide-article__body h3 {
    font-size: 24px;
}

.guide-article__body p,
.guide-article__body ul,
.guide-article__body ol,
.guide-article__body blockquote {
    margin: 0 0 1em;
}

.guide-article__body ul,
.guide-article__body ol {
    padding-left: 1.3em;
}

.guide-article__body li + li {
    margin-top: 0.45em;
}

.guide-article__body blockquote {
    padding: 18px 20px;
    border-left: 4px solid #be1821;
    background: #fff6f6;
    border-radius: 0 16px 16px 0;
    color: #433d42;
}

.guide-article__body a {
    color: #be1821;
}

.guide-article__body img {
    border-radius: 18px;
    max-width: 100%;
    height: auto;
}

/* ===== DOWNLOAD + CTA ===== */
.guide-download-box,
.guide-cta-box,
.guide-related {
    margin-top: 18px;
}

.guide-download-box__inner,
.guide-cta-box__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(31, 31, 36, 0.05);
}

.guide-download-box__content h2,
.guide-cta-box__content h2,
.guide-related__head h2 {
    margin: 12px 0 10px;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #141923;
}

.guide-download-box__content p,
.guide-cta-box__content p {
    margin: 0;
    max-width: 760px;
    color: #5d6778;
    font-size: 15px;
    line-height: 1.65;
}

.guide-download-box__actions,
.guide-cta-box__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.guide-download-box__filename {
    width: 100%;
    color: #6b7280;
    font-size: 13px;
}

/* ===== RELATED ===== */
.guide-related__head {
    margin-bottom: 14px;
}

.guide-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.guide-related-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(31, 31, 36, 0.05);
}

.guide-related-card__title {
    margin: 12px 0 10px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.guide-related-card__text {
    margin: 0 0 14px;
    color: #5d6778;
    font-size: 14px;
    line-height: 1.6;
}

.guide-related-card__link {
    color: #be1821;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .guides-hero__inner,
    .guide-article__hero-inner {
        grid-template-columns: 1fr;
    }

    .guides-grid,
    .guide-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .guides-page,
    .guide-single {
        padding: 12px 0 24px;
    }

    .guides-page__container,
    .guide-single__container {
        padding: 0 12px;
    }

    .guides-hero__inner,
    .guides-toolbar__inner,
    .guide-article__hero,
    .guide-article__body-wrap,
    .guide-download-box__inner,
    .guide-cta-box__inner,
    .guide-related-card,
    .guide-archive-card__inner {
        padding: 18px;
        border-radius: 18px;
    }

    .guides-hero__title,
    .guide-article__title {
        font-size: 32px;
    }

    .guides-grid,
    .guide-related__grid {
        grid-template-columns: 1fr;
    }

    .guide-article__body {
        font-size: 15px;
        line-height: 1.75;
    }

    .guide-article__body h2 {
        font-size: 26px;
    }

    .guide-article__body h3 {
        font-size: 21px;
    }

    .guides-search {
        flex-direction: column;
        align-items: stretch;
    }

    .guides-search button {
        width: 100%;
    }
}