.quality-header {
    margin-top: 10px;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #ffffff, var(--pink-light));
    position: relative;
    overflow: hidden;
}

@media (max-width: 576px) {
    .quality-intro {
        padding: 44px 0 58px;
    }

    .intro-content h2 {
        font-size: 1.7rem;
        line-height: 1.18;
    }

    .intro-content p {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .intro-features {
        display: grid;
        gap: 12px;
        margin-bottom: 24px;
    }

    .intro-features li {
        margin: 0;
        align-items: flex-start;
    }

    .intro-image {
        height: auto;
        border-radius: 18px;
    }

    .intro-image img {
        aspect-ratio: 4 / 3;
        height: auto;
        object-fit: cover;
    }
}

.quality-header .header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.quality-header .header-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--crimson);
    margin-bottom: 15px;
    position: relative;
    padding: 0 15px;
}

.quality-header .header-subtitle::before,
.quality-header .header-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--crimson);
    opacity: 0.3;
}

.quality-header .header-subtitle::before {
    left: -30px;
}

.quality-header .header-subtitle::after {
    right: -30px;
}

.quality-header .header-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark-main);
}

.quality-header .header-title .highlight {
    background: linear-gradient(135deg, var(--crimson), var(--orchid));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quality-header .header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.quality-header .header-divider span {
    height: 2px;
    background: var(--crimson);
}

.quality-header .header-divider span:nth-child(1),
.quality-header .header-divider span:nth-child(3) {
    width: 60px;
    opacity: 0.2;
}

.quality-header .header-divider span:nth-child(2) {
    width: 30px;
    opacity: 0.5;
}

.quality-header .header-description {
    font-size: 1.1rem;
    color: var(--dark-soft);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Quality Intro */
.quality-intro {
    padding: 60px 0;
    background: white;
}

.intro-content {
    padding-right: 30px;
}

.intro-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-main);
    margin-bottom: 20px;
}

.intro-content p {
    color: var(--dark-soft);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.intro-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intro-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-soft);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.intro-features li i {
    color: var(--crimson);
    font-size: 1.1rem;
}

.intro-image {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Parameters Section */
.parameters-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--pink-light), #ffffff);
}

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.parameter-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(223, 34, 41, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.parameter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--crimson), var(--orchid));
    transition: height 0.3s ease;
}

.parameter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(223, 34, 41, 0.1);
    border-color: var(--crimson);
}

.parameter-card:hover::before {
    height: 100%;
}

.parameter-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--pink-light), white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid rgba(223, 34, 41, 0.1);
    transition: all 0.3s ease;
}

.parameter-card:hover .parameter-icon {
    border-color: var(--crimson);
    transform: scale(1.1);
}

.parameter-icon i {
    font-size: 2rem;
    color: var(--crimson);
}

.parameter-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-main);
    margin-bottom: 10px;
}

.parameter-card p {
    color: var(--dark-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.parameter-standard {
    background: var(--pink-light);
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-block;
}

.parameter-standard span {
    font-size: 0.8rem;
    color: var(--crimson);
    font-weight: 600;
}

/* Equipment Section */
.equipment-section {
    padding: 80px 0;
    background: white;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.equipment-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(223, 34, 41, 0.1);
    transition: all 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
    border-color: var(--crimson);
    box-shadow: 0 20px 40px rgba(223, 34, 41, 0.1);
}

.equipment-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.equipment-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-main);
    margin: 0;
}

/* Certifications Section */
.certifications-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--pink-light), #ffffff);
}

.certifications-card {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(223, 34, 41, 0.1);
}

.certifications-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-main);
    margin-bottom: 10px;
}

.certifications-card p {
    color: var(--dark-soft);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.certification-badges {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pink-light);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(223, 34, 41, 0.1);
}

.cert-badge img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.cert-badge span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-main);
}

/* Promise Section
   A closing seal rather than a big empty gradient box: the copy sits beside
   the mark instead of floating in the middle of it, and the heading colour is
   set explicitly — design-system.css colours every h2 with --ink, which is
   what turned this heading near-black on the red panel. */
.promise-section {
    padding: 60px 0 80px;
    background: white;
}

.promise-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    /* rows are spaced by the elements' own margins; only the columns need a gutter */
    gap: 0 34px;
    max-width: 940px;
    margin: 0 auto;
    padding: 54px 56px;
    border-radius: 24px;
    text-align: left;
    color: #fff;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.14), transparent 55%),
        linear-gradient(135deg, #c8181f 0%, var(--crimson, #df2229) 55%, #b8151c 100%);
    box-shadow: 0 30px 60px -28px rgba(200, 24, 31, .55);
    overflow: hidden;
}

/* knit-course texture: fine diagonal lines, barely there */
.promise-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 9px);
    pointer-events: none;
}

.promise-card > * { position: relative; }

/* The card's children are flat markup (icon, h2, p, link), so the icon is
   pinned to its own full-height column and the copy stacks in the second. */
.promise-card i { grid-row: 1 / -1; }
.promise-card h2,
.promise-card p { grid-column: 2; }

.promise-card .promise-btn {
    grid-column: 2;
    justify-self: start;
}

.promise-card i {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: 1.7rem;
    color: #fff;
    opacity: 1;
}

.promise-card h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.promise-card p {
    max-width: 62ch;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .92);
    font-size: 1.06rem;
    line-height: 1.75;
    opacity: 1;
}

.promise-btn {
    display: inline-block;
    padding: 15px 34px;
    border: 2px solid #fff;
    border-radius: 50px;
    background: #fff;
    color: var(--crimson, #df2229);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.promise-btn:hover,
.promise-btn:focus-visible {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45);
}


/* Responsive Design */
@media (max-width: 992px) {
    .parameters-grid,
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .certification-badges {
        justify-content: flex-start;
        margin-top: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .quality-header {
        padding: 60px 0 40px;
    }
    
    .intro-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .intro-image {
        height: 300px;
    }
    
    .parameters-grid,
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-card {
        padding: 30px;
    }
    
    .cert-badge {
        width: 100%;
        justify-content: center;
    }
    
    .promise-card {
        grid-template-columns: 1fr;
        gap: 22px 0;
        padding: 40px 32px;
    }

    .promise-card i { grid-row: auto; }

    .promise-card h2,
    .promise-card p,
    .promise-card .promise-btn { grid-column: 1; }
}

@media (max-width: 576px) {
    .quality-header {
        margin-top: 65px;
    }
    
    .quality-header .header-subtitle::before,
    .quality-header .header-subtitle::after {
        display: none;
    }
    
    .quality-header .header-title {
        font-size: 2rem;
    }
    
    .intro-image {
        height: 250px;
    }
    
    .promise-card {
        padding: 32px 22px;
    }
    
    .promise-card p {
        font-size: 1rem;
    }
    
    .promise-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .quality-intro {
        padding: 44px 0 58px;
    }

    .intro-content h2 {
        font-size: 1.7rem;
        line-height: 1.18;
    }

    .intro-content p {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .intro-features {
        display: grid;
        gap: 12px;
        margin-bottom: 24px;
    }

    .intro-features li {
        margin: 0;
        align-items: flex-start;
    }

    .intro-image {
        height: auto;
        border-radius: 18px;
    }

    .intro-image img {
        aspect-ratio: 4 / 3;
        height: auto;
        object-fit: cover;
    }
}
