:root {
    /* Цвета: #380606, #FFC909, #000000, #FFFFFF */
    /* --deep-red: #380606; */
    /* --deep-red: #440000; */
    --beige: #EDDED2;
    --gold-light: #FDE885;
    --gold-bright: #FFC909;
    --deep-red: #210202;
    --deepest-red: #110205;
    --black: #000000;
    --white: #FFFFFF;
    --extra-background: #0000006a;

    --ff-headings: 'Lora', Georgia, serif;
    --ff-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --faq-line: rgba(240, 220, 210, 0.85);
    --faq-text: #e7d1c8;
    --faq-accent: #f2e2d7;
    --fs-section-title: clamp(2rem, 1.4rem + 2vw, 2.8125rem);
    /* 32px → 45px */
    --fs-main-text: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
    /* 16px → 20px */
    --fs-little-text: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
    /* 14px → 16px */
    --fs-btn-text: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
    /* 14px → 16px */
    --fs-card-text: clamp(1.25rem, 1rem + 1.2vw, 1.875rem);
    /* 20px → 30px */
    --fs-36-text: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    /* 24px → 36px */
    --fs-20-text: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
    /* 16px → 20px */
    --fs-14-text: clamp(0.875rem, 0.8rem + 0.15vw, 0.875rem);
    /* 14px fixed */
    --card-border: 1px solid #edded2cf;
    --card-border-red: 1px solid rgba(75, 0, 8, 0.7);
}

/* Hero */
.diag-hero {
    background-color: var(--deepest-red);
    width: 100%;
}

.diag-hero-grid {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
    align-items: center;
}

.diag-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
}

.diag-hero-badge {
    font-size: var(--fs-20-text);
}

.diag-hero-subtitle {
    font-size: var(--fs-20-text);
    max-width: 530px;
    opacity: 0.8;
    padding: 1em 0 1.875em 0;
    text-align: center;
}

.diag-hero-photo-wrap {
    display: flex;
    justify-content: center;
    width: 50%;
}

.diag-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.diag-section {
    background-color: var(--deep-red);
    padding: 2em 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: var(--beige);
    opacity: 0.8;
}

.diag-section-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.diag-section-intro {
    font-size: var(--fs-20-text);
    max-width: 600px;
    text-align: center;
    padding-bottom: 2em;
}

.diag-container-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;

}

.diag-card {
    display: grid;
    grid-template-columns: 424px 1fr;
    gap: 2em;
    padding: 1.8em;
    background-color: var(--deepest-red);
    align-items: stretch;
    border: var(--card-border-red);
    margin: 0.625em 0;
}

.diag-card-img-wrap {
    position: relative;
}

.diag-card-figure {
    margin: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.diag-card-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
}

.diag-card-tag {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 2;
    margin: 0;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--beige);
    background: rgba(42, 9, 14, 0.55);
    backdrop-filter: blur(2px);
    color: #f0e1d6;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.diag-card-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 20px;
    row-gap: 10px;
    color: var(--beige);
    min-width: 0;
}

.diag-card-title {
    grid-column: 1 / -1;
    margin: 0;
    font-size: var(--fs-card-text);
    line-height: 1.15;
    font-weight: 400;
    color: var(--gold-light);
}

.diag-card-text {
    grid-column: 1 / -1;
    margin: 0;
    max-width: 100%;
    font-size: var(--fs-20-text);
    line-height: 1.35;
}

.diag-points {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1em;

    line-height: 1.45;
}

.diag-points li+li {
    margin-top: 4px;
}

.diag-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.diag-price {
    display: flex;
    align-items: center;
    margin: 0;
    align-self: end;
    font-size: var(--fs-card-text);
    line-height: 1;
    color: var(--gold-light);
    font-family: var(--ff-headings);
}

@media (max-width: 1100px) {
    .diag-card-content {
        column-gap: 1px;
    }

    .diag-card-footer {
        flex-direction: column;
    }

    .diag-price {
        margin-bottom: 1em;
    }
}

@media (max-width: 900px) {
    .diag-hero-grid {
        gap: 20px;
    }

    .diag-hero-subtitle {
        padding: 0.2em 0 1em 0;
    }

    .diag-card {
        grid-template-columns: 1fr;
    }

    .diag-card-image {
        min-height: 260px;
    }

    .diag-card-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .diag-link {
        justify-self: start;
        min-width: 100%;
    }

    .diag-price {
        margin-top: 8px;
    }
}

@media (max-width: 800px) {
    .diag-hero-grid {
        flex-direction: column;
        gap: 40px;
    }

    .diag-hero-content {
        width: 100%;
    }

    .diag-hero-subtitle {
        width: 100%;
        max-width: unset;
    }

    .diag-hero-photo-wrap {
        width: 100%;
        max-width: 400px;
    }

    .diag-card-title {
        text-align: center;
    }

}