* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Georgia', serif;
    background: #f9f6f0;
    color: #111;
}

/* ── Global layout container ──
   Full-bleed section backgrounds stay full-bleed; this wraps their
   content so running text/composition doesn't stretch edge to edge
   on large monitors. Sections keep vertical padding of their own;
   .container only ever carries horizontal padding + max-width. */
.container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 4rem;
}

@media (max-width: 1024px) {
    .container {
        padding-inline: 2.5rem;
    }
}

@media (max-width: 680px) {
    .container {
        padding-inline: 1.25rem;
    }
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4rem;
    background: rgba(249, 246, 240, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.logo {
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #111;
}

.logo-c1 {
    color: #c0392b;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Sub-pages wrap the logo + tagline in a link back to the homepage. */
.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-tagline {
    font-size: 0.78rem;
    font-weight: 300;
    color: #707070;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.85rem;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #c0392b;
}

/* Current section in the top-level navigation (e.g. /cases) */
.nav-links > a[aria-current="page"] {
    color: #c0392b;
}

/* Give the nav breathing room before the burger takes over at 768px —
   this was the exact width where nav labels used to wrap (see audit). */
@media (max-width: 1024px) {
    nav {
        padding: 1.2rem 1.25rem;
    }

    .nav-tagline {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .nav-right {
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .nav-btn {
        padding: 0.55rem 1rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }
}

/* Anchor targets offset for the fixed nav (measured exactly 75px tall
   down to the 768px burger breakpoint, 69px below it) so
   scrollIntoView() and native #fragment navigation both land with the
   target's top edge flush against the header's bottom edge, not
   hidden behind it and not leaving a gap that exposes whatever
   section sits above. #services/#why/#how-it-works/#contact are
   Homepage sections (reachable from any page via "/#id"); #check-form
   is the Supplier Check hero section itself (see check-form-card
   below), targeted by that page's own "Check a supplier" CTA. */
#services,
#why,
#how-it-works,
#process,
#formats,
#factory,
#inspect,
#scope,
#contact,
#check-form {
    scroll-margin-top: 75px;
}

@media (max-width: 768px) {
    #services,
    #why,
    #how-it-works,
    #process,
    #formats,
    #factory,
    #inspect,
    #scope,
    #contact,
    #check-form {
        scroll-margin-top: 69px;
    }
}

.nav-btn {
    background: #c0392b;
    color: white;
    border: none;
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
    display: inline-block;
    text-decoration: none;
    font-family: 'Georgia', serif;
}

.nav-btn:hover {
    opacity: 0.85;
}

/* EN/FR switcher — only present on the localized page pair
   (/china-sourcing-agent ↔ /fr/sourcing-chine), not a global nav
   element. Sits inline with .nav-links on desktop/tablet; the mobile
   burger-menu equivalent (.nav-mobile-lang) is styled separately
   below, near the other mobile nav rules. */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.lang-switch a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.lang-switch a:hover {
    color: #c0392b;
}

.lang-switch-sep {
    color: #999;
}

.lang-current {
    color: #e0574a;
    font-weight: 700;
}

.hero {
    padding: 9.5rem 0 5rem;
    background: #f9f6f0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h1 em {
    font-style: normal;
    color: #c0392b;
}

.hero-sub {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.75;
    max-width: 440px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: #c0392b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
}

.btn-secondary {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #111;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.btn-secondary:hover {
    border-color: #111;
}

a.btn-primary,
a.btn-secondary {
    display: inline-block;
    text-decoration: none;
}

.hero-media {
    position: relative;
    overflow: hidden;
}

.hero-photo {
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: 63% 22%;
    display: block;
}

/* Hero — tablet tier: stack before the image column gets narrow.
   Foreground photo, full width, moderate fixed height. True mobile
   (≤768px, below) keeps the same grid slot but swaps in the mobile
   source via <picture> and re-tunes height/object-position for it. */
@media (max-width: 1024px) {
    .hero {
        padding: 8rem 0 3rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        max-width: 68%;
    }

    .hero-sub {
        max-width: 620px;
    }

    .hero-photo {
        height: 400px;
    }
}

#services {
    background: #0F172A;
    color: white;
    padding: 6rem 0;
    --muted: rgba(255, 255, 255, 0.65);
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 1rem;
}

#services h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

#services h2 em {
    font-style: normal;
    color: #c0392b;
}

#services .section-header p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
    max-width: 620px;
}

/* Five services on six tracks: three across, then services 4–5 at the
   same width, centred underneath (tracks 2–3 and 4–5). */
.services-tiles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem 2rem;
}

.services-tile {
    grid-column: span 2;
    border-top: 2px solid #c0392b;
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
}

.services-tile:nth-child(4) {
    grid-column: 2 / span 2;
}

.services-tile:nth-child(5) {
    grid-column: 4 / span 2;
}

.services-tile h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.services-tile p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0.8rem;
}

.services-tile a {
    font-size: 0.78rem;
    color: #e0574a;
    text-decoration: none;
    letter-spacing: 0.02em;
    margin-top: auto;
}

.services-tile a:hover {
    text-decoration: underline;
}

.services-tile span.services-tile-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
}

#why {
    padding: 6rem 0;
    background: #f9f6f0;
}

.section-label-dark {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #999;
    display: block;
    margin-bottom: 1.5rem;
}

#why h2 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

/* "CCG" in the heading, tracked to echo the header logo (.logo uses
   0.1em at a much smaller size). */
.ccg-mark {
    letter-spacing: 0.07em;
}

/* Three benefits side by side under the heading, each with its own
   top rule (unlike the continuous .flow-steps band in #how-it-works). */
.why-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}

.diff-item {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.diff-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: #c0392b;
    line-height: 1;
    margin-bottom: 1.2rem;
}

.diff-item h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.diff-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
}

/* Same points on a navy section (service pages). */
.section-dark .diff-item {
    border-top-color: var(--divider);
}

.section-dark .diff-item p {
    color: var(--muted);
}

/* ── How We Work ── */
#how-it-works {
    padding: 6rem 0;
    background: #f9f6f0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    --divider: rgba(0, 0, 0, 0.08);
    --muted: #555;
}

/* ── What You Receive ── */
#what-you-receive {
    padding: 6rem 0;
    background: #0F172A;
    color: white;
    --divider: rgba(255, 255, 255, 0.1);
    --muted: rgba(255, 255, 255, 0.65);
}

#what-you-receive .content-body p {
    max-width: 620px;
}

.output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 2.5rem;
}

.output-card {
    background: #0F172A;
    padding: 1.8rem 2rem;
}

.output-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.output-card p {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.65;
}

/* Service pages use their larger description size in these homepage
   components too (as with .flow-step). */
.service-page .diff-item p,
.service-page .output-card p {
    font-size: 0.92rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    #how-it-works,
    #what-you-receive {
        padding: 3rem 0;
    }

    .output-grid {
        grid-template-columns: 1fr;
    }
}

/* ── FAQ ── */
#faq {
    background: #0F172A;
    color: white;
    padding: 6rem 0;
    --muted: rgba(255, 255, 255, 0.65);
}

.faq-header {
    margin-bottom: 3rem;
}

#faq h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0.75rem;
}

.faq-list {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq-arrow {
    font-size: 1.2rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    line-height: 1;
    color: rgba(255, 255, 255, 0.5);
}

.faq-item.open .faq-arrow,
.faq-arrow.open-rotate {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
    /* Collapsed answers stay out of the tab order (they contain links);
       visibility switches only after the 0.3s closing animation. */
    visibility: hidden;
    transition: visibility 0s linear 0.3s;
}

.faq-item.open .faq-answer-inner {
    visibility: visible;
    transition: visibility 0s;
}

.faq-answer p {
    padding-top: 0.8rem;
    padding-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 680px;
}

.faq-answer p a {
    color: #e0574a;
    text-decoration: underline;
    text-decoration-color: rgba(224, 87, 74, 0.45);
}

.faq-answer p a:hover {
    text-decoration-color: #e0574a;
}

#contact {
    background: #c0392b;
    color: white;
    padding: 6rem 0;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

#contact .section-label {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    display: block;
}

#contact h2 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
}

#contact h2 em {
    font-style: normal;
    opacity: 0.55;
}

.contact-lede {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-detail strong {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    opacity: 0.6;
}

.contact-detail span {
    font-size: 0.95rem;
}

.contact-phone {
    display: block;
}

#contact a,
.contact-phone {
    color: white;
    text-decoration: none;
}

#contact a:hover,
.contact-phone:hover {
    text-decoration: underline;
}

.footer-email {
    color: #999;
    text-decoration: none;
}

.footer-email:hover {
    color: #111;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

/* align-items:end keeps the paired inputs level when one label wraps
   to two lines (narrow tablet columns). */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
    align-items: end;
}

.form-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.form-note a {
    color: rgba(255, 255, 255, 0.85);
}

.form-group label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-family: 'Georgia', serif;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group select option {
    background: #c0392b;
    color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    border-color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.form-group textarea {
    resize: vertical;
}

#form-success {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
}

#contact .contact-right button {
    background: white;
    color: #c0392b;
    border: none;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s;
    font-family: 'Georgia', serif;
}

#contact .contact-right button:hover:not(:disabled) {
    opacity: 0.9;
}

#contact .contact-right button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-consent {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-top: 0.8rem;
}

.form-consent a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}


/* ── WhatsApp button ── */
.whatsapp-btn {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: waBtnFadeIn 0.5s ease 1s both;
}

.whatsapp-btn--hidden {
    visibility: hidden;
    pointer-events: none;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    background: #0F172A;
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    pointer-events: none;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes waBtnFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* While the mobile menu is open the button would sit on top of its
   lower items on short (landscape) screens, so hide it until it closes. */
.nav-mobile.active ~ .whatsapp-btn {
    visibility: hidden;
}

/* ── Privacy modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #f9f6f0;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #111;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    opacity: 0.5;
}

.modal-title {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.modal-updated {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 1rem;
}

.modal-section-heading {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.modal-text {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.8;
}

/* ── Burger button (hidden on desktop) ── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav dropdown (hidden on desktop) ── */
.nav-mobile {
    display: none;
}

/* ── Mobile ── */
@media (max-width: 768px) {

    /* Nav */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 200;
        padding: 1rem 1.2rem;
        gap: 1.2rem;
        overflow: visible;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-tagline {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
        white-space: nowrap;
        order: 3;
    }

    .burger {
        display: flex;
        order: 4;
    }

    /* Mobile dropdown menu */
    .nav-mobile {
        display: flex;
        position: fixed;
        top: 60px;
        right: 0;
        z-index: 999;
        width: 200px;
        background: #0F172A;
        flex-direction: column;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.35s ease;
        box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.2);
    }

    .burger-menu.active {
        max-height: min(500px, calc(100vh - 80px));
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-mobile a {
        padding: 0.9rem 1.2rem;
        font-size: 0.88rem;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transition: background 0.15s;
    }

    .nav-mobile > a[aria-current="page"] {
        color: #e0574a;
    }

    .nav-mobile a:hover {
        background: rgba(255, 255, 255, 0.07);
    }

    /* EN/FR switcher row inside the mobile burger menu — only present
       on the localized page pair, see .lang-switch above for the
       desktop/tablet equivalent. */
    .nav-mobile-lang {
        display: flex;
        gap: 1rem;
        padding: 0.9rem 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-mobile-lang a {
        padding: 0;
        border-bottom: none;
        font-size: 0.88rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .nav-mobile-lang a.lang-current {
        color: #e0574a;
        font-weight: 700;
    }

    /* Hero — true mobile: normal off-white background behind the copy;
       the photograph appears as its own landscape block below the
       copy/CTAs rather than as a faded full-bleed background. */
    .hero {
        padding: 6.5rem 0 3rem;
    }

    .hero-media {
        margin-top: 0.5rem;
    }

    .hero-content {
        max-width: none;
    }

    .hero-photo {
        height: 240px;
        object-position: 54% 18%;
    }

    h1 {
        font-size: 3.2rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 75%;
        text-align: center;
    }

    .btn-secondary {
        background: rgba(249,246,240,0.92);
        border: 1px solid rgba(0,0,0,0.15);
        color: #111;
    }

    /* Services */
    #services {
        padding: 3rem 0;
    }

    #services h2 {
        font-size: 2rem;
    }

    #services .section-header p {
        font-size: 0.9rem;
    }

    .services-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.2rem;
    }

    .services-tile:nth-child(n) {
        grid-column: auto;
    }

    .services-tile:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .services-tile h3 {
        font-size: 0.9rem;
    }

    .services-tile p {
        font-size: 0.8rem;
    }

    #why {
        padding: 3rem 0;
    }

    .why-points {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #why h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .diff-item {
        padding: 1.25rem 0;
    }

    .diff-num {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .diff-item h3 {
        font-size: 0.88rem;
    }

    .diff-item p {
        font-size: 0.8rem;
    }

    #faq {
        padding: 3rem 0;
    }

    #faq h2 {
        font-size: 2rem;
    }

    #contact {
        padding: 3rem 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    #contact h2 {
        font-size: 2.8rem;
        line-height: 1.05;
        margin-bottom: 1.1rem;
    }

    .service-page #contact h2 {
        font-size: min(2rem, 9vw);
    }

    .contact-lede {
        font-size: 0.86rem;
        line-height: 1.6;
        margin-bottom: 1.3rem;
    }

    .contact-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .contact-detail strong {
        font-size: 0.68rem;
    }

    .contact-detail span {
        font-size: 0.72rem;
    }

    a[href^="mailto"] {
        font-size: 0.78rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group textarea {
        min-height: 80px;
    }

    .contact-right {
        width: 100%;
        margin-top: -0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        font-size: 0.9rem;
    }

    #contact-form button {
        width: 100%;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 0.5rem;
    }

    .footer-logo {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }

    .footer-copyright {
        font-size: 0;
    }

    .footer-copyright::before {
        content: "© 2026 China Control Group";
        font-size: 0.72rem;
        text-align: center;
        display: block;
    }

    footer span {
        font-size: 0.72rem;
        line-height: 1.5;
    }

}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Hero loads immediately without scroll trigger */
.hero h1    { animation: fadeUp 0.7s ease 0.25s both; }
.hero-sub   { animation: fadeUp 0.7s ease 0.4s both; }
.hero-actions { animation: fadeUp 0.7s ease 0.55s both; }
.hero-right { animation: fadeUp 0.7s ease 0.35s both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

footer {
    padding: 2rem 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #707070;
    background: #f9f6f0;
}

.footer-logo {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #111;
}

/* ── Expanded footer (homepage only — service pages keep the simple
   single-row footer above via the bare `footer` selector) ── */
footer.footer-expanded {
    display: block;
    padding: 4rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-expanded .footer-logo {
    margin-bottom: 0.6rem;
}

.footer-brand p {
    font-size: 0.82rem;
    color: #707070;
    margin-bottom: 0.3rem;
}

.footer-col h4 {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #707070;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
}

.footer-col a:hover {
    color: #c0392b;
}

/* Footer messenger icons (Telegram, WhatsApp): same muted colour as the
   footer text links, 44px tap areas; the negative margin lines the first
   icon's glyph up with the text links above it. */
.footer-social {
    display: flex;
    gap: 0.25rem;
    margin: -0.3rem 0 0 -11px;
}

.footer-col .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    color: #555;
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.footer-col .footer-social a:hover {
    color: #c0392b;
    background-color: rgba(0, 0, 0, 0.04);
}

.footer-col .footer-social a:focus-visible {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
    color: #c0392b;
}

/* The glyphs fill their 24x24 viewBox edge to edge; with the default
   overflow:hidden the anti-aliased bottom/right edge was clipped whenever
   the icon landed on a fractional pixel position. */
.footer-social svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
    overflow: visible;
}

@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
        margin: -0.3rem 0 0;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.2rem 0;
}

/* Copyright | international site | privacy: equal side columns keep the
   middle link exactly centred whatever the length of the side texts. */
.footer-bottom-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    font-size: 0.78rem;
    color: #707070;
    gap: 0.5rem 1.5rem;
}

.footer-bottom-inner > :first-child {
    justify-self: start;
}

.footer-bottom-inner > :last-child {
    justify-self: end;
}

.footer-bottom-inner a {
    color: #707070;
    text-decoration: none;
}

.footer-bottom-inner a:hover {
    color: #111;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1rem;
        text-align: center;
    }

    .footer-bottom-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #c0392b;
  z-index: 201;
  transition: width 0.1s linear;
}

/* ── FAQ two-column layout ──
   Bug fix (see project notes): .faq-decoration was a fixed 40rem
   glyph with no scaling between the 1024px tier and the 768px
   cutover, so between ~769–889px its rendered width exceeded the
   shrinking 40% column and bled left into the question text and
   right past the viewport edge (silently clipped by the global
   overflow-x:hidden, not a scrollbar — but visually broken). The
   fix: minmax(0, ...) tracks + min-width:0 so the grid columns are
   never blocked from shrinking by content's intrinsic size, a
   tablet-tier font-size step for the decoration so it never
   outgrows its column in the first place, and overflow:hidden on
   .faq-right as a hard backstop regardless of exact sizing. */
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
}

.faq-left {
  min-width: 0;
  padding-right: 2rem;
}

.faq-item {
  width: 100%;
  max-width: none;
  padding: 0.4rem 0;
}

.faq-question {
  width: 100%;
  max-width: none;
  padding-right: 3rem;
}

/* The question text itself — flex items default to min-width:auto,
   which would stop long questions from wrapping and could push the
   +/× control past the edge at narrow widths or high browser zoom. */
.faq-question span:first-child {
  min-width: 0;
}

.faq-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 8rem;
  height: 600px;
  min-width: 0;
  overflow: hidden;
}

.faq-decoration {
  font-family: Georgia, serif;
  font-size: 40rem;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  line-height: 0.9;
  display: block;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

/* Tablet tier: shrink the decoration well before the 768px cutover
   so it never outgrows the narrowing 40% column (confirmed safe at
   769–1024px on both the raw-viewport service-page FAQ and the
   .container-constrained homepage FAQ). */
@media (max-width: 1024px) {
  .faq-decoration {
    font-size: 16rem;
  }
}

@media (max-width: 768px) {
  /* All five pages now wrap their FAQ content in .container (see the
     "FAQ two-column layout" block above), which already supplies
     horizontal padding at every tier — so #faq itself stays at zero
     side padding here to avoid doubling up, the same way it already
     does at the desktop/tablet tiers. */
  #faq {
    padding: 3rem 0;
  }

  .faq-inner {
    grid-template-columns: 1fr;
  }

  .faq-right {
    display: none;
  }

  .faq-item {
    width: 100%;
    max-width: none;
  }

  .faq-question {
    width: 100%;
    padding-right: 1rem;
  }
}


@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 1.5rem;
    right: 1.2rem;
  }
}

/* ── Nav: Services dropdown (desktop) ── */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-caret {
    font-size: 0.6rem;
    position: relative;
    top: 1px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    padding-top: 0.9rem;
    min-width: 230px;
    z-index: 250;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown.is-dismissed .nav-caret {
    transform: none;
}

.nav-dropdown.is-dismissed .nav-dropdown-menu {
    display: none;
}

.nav-dropdown-menu-inner {
    background: #0F172A;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.2rem;
    color: white;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-dropdown-menu a.current {
    color: #e0574a;
}

/* ── Nav: Services group (mobile burger menu) ── */
.nav-mobile-parent {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-family: 'Georgia', serif;
    font-size: 0.88rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.nav-mobile-sub {
    display: grid;
    grid-template-rows: 0fr;
    background: rgba(255, 255, 255, 0.04);
    transition: grid-template-rows 0.3s ease;
}

.nav-mobile-sub.open {
    grid-template-rows: 1fr;
}

.nav-mobile-sub-inner {
    overflow: hidden;
}

.nav-mobile-sub a {
    display: block;
    padding: 0.8rem 1.2rem 0.8rem 2.2rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile-sub a:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ══════════════════════════════════════════════
   Service sub-page components
   (china-sourcing-agent.html, quality-control-china.html,
    supplier-verification-china.html)
   ══════════════════════════════════════════════ */

/* Vertical rhythm only — horizontal spacing comes from the .container
   every service-page section now wraps its content in (matching the
   hero/FAQ container system). */
.section-dark {
    background: #0F172A;
    color: white;
    padding: 4.5rem 0;
    --divider: rgba(255, 255, 255, 0.1);
    --muted: rgba(255, 255, 255, 0.65);
}

.section-light {
    background: #f9f6f0;
    color: #111;
    padding: 6rem 0;
    --divider: rgba(0, 0, 0, 0.08);
    --muted: #555;
}

.section-light + .section-light {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Light section directly under the (also light) page hero: the two
   paddings would otherwise stack into an empty band. */
/* Service pages run denser than the homepage: tighter vertical rhythm
   for the section types they share with it (.section-light, FAQ,
   contact). Tablet/desktop only — the <=768px tier keeps its own
   3rem padding. The service CTA heading also steps down below the
   page H1 (and stays narrow enough for "производителей"). */
@media (min-width: 769px) {
    .service-page .section-light,
    .service-page #faq,
    .service-page #contact {
        padding: 4.5rem 0;
    }

    .service-page .faq-right {
        height: 420px;
    }

    .service-page #contact h2 {
        font-size: min(2.3rem, 3.6vw);
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .service-page .faq-decoration {
        font-size: 30rem;
    }
}

/* Page hero — horizontal spacing comes from the .container each
   page now wraps .page-hero-inner in; .page-hero itself only ever
   carries vertical padding. */
.page-hero {
    padding: 8rem 0 3.5rem;
    background: #f9f6f0;
}

/* Reduced hero-to-Project-Overview gap, shared across all Case detail
   pages via these two scoped classes — the base .page-hero/.section-
   light padding used by /cases, the six service pages and everywhere
   else stays untouched. Compound selectors keep this correct
   regardless of stylesheet order. */
.page-hero.case-detail-hero {
    padding-bottom: 1.5rem;
}

.section-light.case-detail-overview-section {
    padding-top: 2rem;
}

/* Insights index only: the shared .page-hero bottom padding and
   .section-light top padding stacked into a ~200px+ gap between the
   hero lede and the featured article (worsened by .insight-featured's
   own now-removed margin-top, which duplicated the section's padding).
   Scoped here so every other .page-hero/.section-light page is
   untouched. Combined with the lede's own 2rem margin-bottom, these
   land the total lede-to-featured gap at 64px (desktop/1024) and 48px
   (tablet/mobile), tightened down from a still-too-generous 96px. */
.page-hero.insights-hero {
    padding-bottom: 1rem;
}

.section-light.insights-featured-section {
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .page-hero.insights-hero {
        padding-bottom: 0.5rem;
    }

    .section-light.insights-featured-section {
        padding-top: 0.5rem;
    }
}

/* Insights ARTICLE pages only: the same shared .page-hero/.section-
   light stacking (80px + 96px) plus .insight-body's own top padding
   and .insight-quick-answer's top margin were compounding into a
   ~260px gap between the hero image and Quick Answer. Scoped here so
   /insights index, cases, service pages etc. keep their own geometry. */
.page-hero.insight-article-hero {
    padding-bottom: 1rem;
}

.section-light.insight-article-section {
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .page-hero.case-detail-hero {
        padding-bottom: 1.25rem;
    }

    .section-light.case-detail-overview-section {
        padding-top: 1.5rem;
    }
}

.page-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.page-breadcrumb {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: #707070;
    margin-bottom: 1.5rem;
    display: block;
}

.page-breadcrumb a {
    color: #707070;
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: #c0392b;
}

.page-hero h1 {
    font-size: 3rem;
}

.page-hero-lede {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2rem;
}

.page-hero-lede a {
    color: #c0392b;
    text-decoration: underline;
    text-decoration-color: rgba(192, 57, 43, 0.4);
}

.page-hero-lede a:hover {
    text-decoration-color: #c0392b;
}

.page-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-hero-photo-wrap {
    position: relative;
}

.page-hero-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Content headings shared across sub-pages */
.content-h2 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.content-h2 em {
    font-style: normal;
    color: #c0392b;
}

.content-lede {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 1rem;
}

.content-lede a {
    color: #c0392b;
    text-decoration: underline;
    text-decoration-color: rgba(192, 57, 43, 0.4);
}

.content-lede a:hover {
    text-decoration-color: #c0392b;
}

.content-body p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.content-body p:last-child {
    margin-bottom: 0;
}

.content-body p a {
    color: #c0392b;
    text-decoration: underline;
    text-decoration-color: rgba(192, 57, 43, 0.4);
}

.content-body p a:hover {
    text-decoration-color: #c0392b;
}

.section-header-sub {
    margin-bottom: 3rem;
}

/* Numbered step / feature list (reusable) */
.step-list {
    border-top: 1px solid var(--divider);
}

.step-item {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--divider);
}

.step-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: #c0392b;
    line-height: 1;
    flex-shrink: 0;
    width: 2.4rem;
}

.step-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.step-item p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
}

.inline-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.inline-photo--tall {
    height: 400px;
}

/* Capability grid — four short, equal-weight capabilities */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.capability-item {
    border-top: 2px solid #c0392b;
    padding-top: 1rem;
}

.capability-item h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.capability-item p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
}

.capability-item p a {
    color: #c0392b;
    text-decoration: underline;
    text-decoration-color: rgba(192, 57, 43, 0.4);
}

.capability-item p a:hover {
    text-decoration-color: #c0392b;
}

.capability-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Plain checklist — deliverables / findings, no card chrome */
.plain-list {
    list-style: none;
    border-top: 1px solid var(--divider);
}

.plain-list li {
    display: flex;
    gap: 0.7rem;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--divider);
    font-size: 0.9rem;
}

.plain-list li::before {
    content: "\2713";
    color: #c0392b;
    font-weight: 900;
    flex-shrink: 0;
}

/* Defect severity grid (Critical / Major / Minor) */
.defect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.defect-card {
    padding: 1.5rem;
    border: 1px solid var(--divider);
}

.defect-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.defect-card p {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.6;
}

.defect-card--critical {
    background: #c0392b;
    border-color: #c0392b;
}

.defect-card--critical h4,
.defect-card--critical p {
    color: #fff;
}

.defect-card--major {
    border-color: #c0392b;
}

.defect-card--major h4 {
    color: #c0392b;
}

/* Horizontal process flow (used where a vertical step-list would repeat
   the layout already used elsewhere on the same page) */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

/* Three-step variant (homepage "Как мы работаем"); declared before the
   <=768px .flow-steps rule so the mobile single column still wins. */
.flow-steps--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Four-step variant (service-page process): four across on wide
   desktop, 2x2 below 1200px so the columns never get too narrow. */
@media (max-width: 1199px) {
    .flow-steps--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-steps--4 .flow-step:nth-child(2n) {
        border-right: none;
    }

    .flow-steps--4 .flow-step:nth-child(-n+2) {
        border-bottom: 1px solid var(--divider);
    }
}

/* Process steps under an intro row (heading/intro + note). */
.split-grid + .flow-steps {
    margin-top: 3rem;
}

.flow-step {
    padding: 1.6rem 1.4rem;
    border-right: 1px solid var(--divider);
}

.flow-step:last-child {
    border-right: none;
}

/* Red numerals as visual markers (smaller than the 2.2rem .diff-num in
   the homepage #why, so the two layouts stay distinct). */
.flow-step-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: #c0392b;
    line-height: 1;
    margin-bottom: 0.9rem;
}

.flow-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.flow-step p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Service pages use their larger description size here too. */
.service-page .flow-step h3 {
    font-size: 1.05rem;
}

.service-page .flow-step p {
    font-size: 0.92rem;
    line-height: 1.7;
}

.flow-step p a {
    color: #c0392b;
    text-decoration: underline;
    text-decoration-color: rgba(192, 57, 43, 0.4);
}

.flow-step p a:hover {
    text-decoration-color: #c0392b;
}

/* Editorial note / factual callout — red rule only, no box */
.callout {
    border-left: 2px solid #c0392b;
    padding: 0.15rem 0 0.15rem 1.25rem;
    font-size: 0.92rem;
    line-height: 1.7;
}

.callout strong {
    color: #c0392b;
}

.callout h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.callout p {
    font-size: 0.88rem;
    color: var(--muted);
}

.content-body + .callout {
    margin-top: 2rem;
}

/* Secondary block inside the same section, separated by a rule —
   compact, with a sub-heading rather than a section-size heading. */
.section-subblock {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--divider);
}

.section-subblock h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Verification formats — two editorial columns. Subgrid keeps the
   head / details / result rows aligned across both columns even when
   only one has a sub-heading. */
.format-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4rem;
}

/* Stable in-page anchor for the second format (#factory). The format
   columns animate in with a transform, so an id on the column itself
   lands 32px too high once the reveal finishes. This empty marker sits
   in the (non-animated) grid at the start of column 2 and is taken out
   of auto-placement by position:absolute. */
.format-anchor {
    position: absolute;
    grid-column: 2;
    grid-row: 1;
    top: 0;
    left: 0;
}

.format-item {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    border-top: 1px solid var(--divider);
    padding-top: 1.75rem;
}

/* Natural-flow variant: each column follows its own content instead of
   aligning rows across columns (tops, numbers and headings still line
   up). Used where only one column has a sub-heading line. */
.format-grid--flow .format-item {
    display: block;
}

.format-head {
    padding-bottom: 1.5rem;
}

.format-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: #c0392b;
    line-height: 1;
    margin-bottom: 1rem;
}

.format-head h3,
.report-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.report-title {
    margin-bottom: 1rem;
}

/* Optional descriptive row between a format's head and its details. */
.format-item .content-body {
    padding-bottom: 1.25rem;
}

/* Note under the two formats (e.g. sampling / AQL). */
.format-grid + .callout {
    margin-top: 3rem;
}

.format-subtitle {
    margin-top: 0.4rem;
    font-size: 1rem;
    color: var(--muted);
}

.format-details dt {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
}

.format-details dd {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.format-result {
    border-top: 1px solid var(--divider);
    padding-top: 1.1rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.format-result strong {
    color: #fff;
}

/* Consolidation flow diagram (warehouse page): three suppliers converge
   into the warehouse, then one shipment goes to the carrier. The joining
   lines are drawn by each supplier row's own pseudo-elements, so they
   follow the real content height (no fixed heights or coordinates). */
.cflow {
    --join: 2rem;
    --line: #c0392b;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 2.5rem minmax(0, 1fr) 2.5rem minmax(0, 1fr) 2.5rem minmax(0, 1fr);
    align-items: center;
    margin: 0;
}

.cflow-sources {
    list-style: none;
}

.cflow-sources li {
    position: relative;
    padding: 0.5rem var(--join) 0.5rem 0;
}

/* stub from each supplier to the joining bar */
.cflow-sources li::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: var(--join);
    border-top: 1px solid var(--line);
}

/* joining bar: lower half of the first row, full middle row, upper half
   of the last row */
.cflow-sources li::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    border-right: 1px solid var(--line);
}

.cflow-sources li:first-child::before {
    top: 50%;
}

.cflow-sources li:last-child::before {
    bottom: 50%;
}

.cflow-node {
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.cflow-node--hub {
    background: #0F172A;
    border-color: #0F172A;
    color: #fff;
    font-weight: 700;
    padding-block: 1.6rem;
}

.cflow-node--batch {
    border: 2px solid #c0392b;
    font-weight: 700;
}

.cflow-arrow {
    position: relative;
    height: 0;
    border-top: 1px solid var(--line);
}

.cflow-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -5px;
    border-left: 7px solid var(--line);
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
}

/* Two-column split: list/text beside a supporting image */
.split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

/* Top-aligned variant (text starts level with the image rather than
   centred against it). */
.split-grid--top {
    align-items: start;
}

/* Rule under the whole two-column block (same spacing/colour as
   .section-subblock), so it always sits below the taller column. */
.split-grid--ruled {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--divider);
}

/* Related services links */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
    margin-top: 1.5rem;
}

.related-links a {
    color: #c0392b;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(192, 57, 43, 0.35);
    padding-bottom: 2px;
}

.related-links a:hover {
    border-color: #c0392b;
}

.section-dark .related-links a {
    color: #e0574a;
    border-bottom-color: rgba(224, 87, 74, 0.45);
}

.section-dark .related-links a:hover {
    border-color: #e0574a;
}

/* Final CTA band */
.cta-band {
    background: #c0392b;
    color: white;
    padding: 5rem 4rem;
    text-align: center;
}

.cta-band h2 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-band p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Used only on the French sourcing page: that .cta-band has no trailing
   .btn-white (the contact form follows immediately below), so the shared
   bottom padding/paragraph margin sized for a button's clearance leaves
   dead space before #contact. */
.cta-band--compact {
    padding-bottom: 0.75rem;
}

.cta-band--compact p {
    margin-bottom: 0;
}

.btn-white {
    background: white;
    color: #c0392b;
    border: none;
    padding: 1rem 2.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-white:hover {
    opacity: 0.88;
}

/* Hero — stack at 1024px (not 768px) so the photo column never gets
   squeezed into a narrow vertical sliver on tablet widths. Shared
   across all four service pages; horizontal padding stays at 0
   throughout since .container supplies it. */
@media (max-width: 1024px) {
    .page-hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .page-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero-photo {
        height: 380px;
    }

    /* Narrower diagram nodes on tablets: keep labels on one line. */
    .cflow-node {
        padding-inline: 0.6rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 7rem 0 3rem;
    }

    .page-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero-photo {
        height: 260px;
    }

    .inline-photo {
        height: 220px;
    }

    .section-dark,
    .section-light {
        padding: 3rem 0;
    }

    .content-h2 {
        font-size: 1.6rem;
    }

    .capability-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

    .capability-grid--3 {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .section-subblock {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .defect-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }

    .format-grid {
        grid-template-columns: 1fr;
        row-gap: 2.5rem;
    }

    /* stacked: format 02 starts at row 4 (each format spans 3 rows) */
    .format-anchor {
        grid-column: 1;
        grid-row: 4;
    }

    /* Consolidation diagram becomes a vertical flow: suppliers side by
       side, converging downward into one chain. */
    .cflow {
        --join: 1.5rem;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .cflow-sources {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .cflow-sources li {
        padding: 0 0.25rem var(--join);
    }

    .cflow-sources li::after {
        top: auto;
        bottom: 0;
        right: auto;
        left: 50%;
        width: 0;
        height: var(--join);
        border-top: none;
        border-left: 1px solid var(--line);
    }

    .cflow-sources li::before {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .cflow-sources li:first-child::before {
        top: auto;
        left: 50%;
    }

    .cflow-sources li:last-child::before {
        bottom: 0;
        right: 50%;
    }

    .cflow-sources .cflow-node {
        font-size: 0.82rem;
        padding: 0.7rem 0.25rem;
    }

    .cflow > .cflow-node {
        width: 100%;
        max-width: 18rem;
    }

    .cflow-arrow {
        width: 0;
        height: 2rem;
        border-top: none;
        border-left: 1px solid var(--line);
    }

    .cflow-arrow::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: -5px;
        border-top: 7px solid var(--line);
        border-left: 4.5px solid transparent;
        border-right: 4.5px solid transparent;
        border-bottom: none;
    }

    .split-grid + .flow-steps {
        margin-top: 2rem;
    }

    .flow-step {
        border-right: none;
        border-bottom: 1px solid var(--divider);
    }

    .flow-step:last-child {
        border-bottom: none;
    }

    .split-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-band {
        padding: 3.5rem 1.5rem;
    }

    .cta-band h2 {
        font-size: 1.8rem;
    }
}

/* Reading-width caps — shared across all four service pages so long-form
   text (paragraphs, step lists, plain checklists) keeps a comfortable
   line length now that every section is .container-wrapped instead of
   being naturally bounded by a narrower ad hoc layout. Originally
   introduced for Factory Audit's longer text sections; promoted to a
   shared rule since the same reading-length need applies equally once
   the other three pages' sections are also .container-wrapped. */
.content-body p {
    max-width: 640px;
}

.step-list {
    max-width: 760px;
}

.plain-list {
    max-width: 700px;
}

/* Hero photo framing — tuned per source image. The <picture> element
   swaps the underlying file at the same 768px breakpoint, so the
   object-position swaps here in lockstep: desktop crops the
   1586x992 source horizontally at the narrow 1440/1280 hero box and
   vertically at the wide 1024/900/769 box (independent axes, one
   value serves both); the 1860x845 mobile source does the same in
   reverse (vertical crop at 768, horizontal at 390). */
.audit-hero-photo {
    object-position: 70% 25%;
}

.verification-hero-photo {
    object-position: 50% 40%;
}

.quality-hero-photo {
    object-position: 38% 30%;
}

.quality-inspection-photo {
    object-position: 55% 42%;
}

@media (max-width: 768px) {
    .audit-hero-photo {
        object-position: 75% 18%;
    }
}

/* Scope photo — horizontal crop at every width except the 768px
   tier (where the split-grid stacks to full width and the crop
   direction flips to vertical); x and y are tuned independently so
   one value covers both. */
.audit-scope-photo {
    object-position: 53% 68%;
}

/* Production Support hero photo — the >1024 tier crops the 1536x1024
   source horizontally (full height always shown), so only x matters
   there; the 769-1024 tier stacks to full width and crops vertically
   (full width always shown), so only y matters; 768 and below swap in
   the 1086x1448 mobile source, still cropped vertically, with its own
   y tuned separately since it's a different photo. */
.production-support-hero-photo {
    object-position: 48% 50%;
}

@media (max-width: 1024px) {
    .production-support-hero-photo {
        object-position: 50% 32%;
    }
}

@media (max-width: 768px) {
    .production-support-hero-photo {
        object-position: 50% 20%;
    }
}

/* Logistics hero photo — same three-tier framing rationale as the
   Production Support photo above: >1024 crops the 1536x1024 source
   horizontally (full height shown, x matters); 769-1024 stacks to
   full width and crops vertically (y matters); 768 and below swap in
   the 1086x1448 mobile source, still cropped vertically, y tuned
   separately for that photo. */
.logistics-hero-photo {
    object-position: 52% 50%;
}

@media (max-width: 1024px) {
    .logistics-hero-photo {
        object-position: 50% 38%;
    }
}

@media (max-width: 768px) {
    .logistics-hero-photo {
        object-position: 50% 20%;
    }
}

/* Checklist grid — compact editorial pairs (label + description),
   used for "What we check" (6, light) and "What you receive"
   (5, dark). Border-accent only, no card fill, so it reads
   correctly on either background via var(--muted). */
.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    margin-top: 2rem;
}

.audit-grid-item {
    border-top: 2px solid #c0392b;
    padding-top: 1.1rem;
}

.audit-grid-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c0392b;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* On the dark band the brand red is too dark for small text (3.3:1); lighter red, 4.7:1. */
.section-dark .audit-grid-label {
    color: #e74c3c;
}

.audit-grid-item p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
}

.audit-grid--five .audit-grid-item:last-child {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .audit-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .audit-grid--five .audit-grid-item:last-child {
        grid-column: auto;
    }
}

/* Compact tag row — a concrete example list, deliberately not
   styled as another set of feature cards. */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.tag-chip {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--divider);
    color: var(--muted);
    white-space: nowrap;
}

/* Related-services mini grid — three short editorial blocks,
   not a comparison table. */
.related-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
    margin-top: 2.5rem;
}

.related-service-item {
    border-top: 2px solid #c0392b;
    padding-top: 1.1rem;
}

.related-service-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}

.related-service-item p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.related-service-item a {
    font-size: 0.82rem;
    color: #c0392b;
    text-decoration: none;
    border-bottom: 1px solid rgba(192, 57, 43, 0.35);
    padding-bottom: 2px;
}

.related-service-item a:hover {
    border-color: #c0392b;
}

.related-service-current {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--divider);
    padding: 0.3rem 0.7rem;
}

@media (max-width: 768px) {
    .related-services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Case grid — compact editorial index cards (/cases). Each card is
   just a fixed 16:10 preview + eyebrow + title + link — the
   descriptive paragraph lives on the Case detail page, not here, so
   the library scans quickly instead of reading like a photo feed.
   Square corners and a plain border match the rest of the site,
   which never uses border-radius on card-like elements.
   Desktop default is 4 columns (10 cards -> 4+4+2); narrower tiers
   step down to 3, then 2; at <=768px the grid becomes a swipeable
   single-card carousel instead of a long vertical list. */
.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* position:relative makes the card the containing block for the
   .case-card-link::after "stretched link" below, so the whole card
   is clickable through a single anchor with no nested <a>. Only
   border-color changes on hover/focus — same border-width in both
   states, so nothing shifts. */
.case-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: border-color 0.15s ease;
}

.case-card:hover,
.case-card:has(.case-card-link:focus-visible) {
    border-color: #c0392b;
}

/* Fixed-ratio preview frame regardless of source orientation. The
   explicit height:auto is required for this to render correctly even
   though "auto" is height's own initial value: some engines otherwise
   let the <img>'s width/height HTML attributes (i.e. the source
   file's native, non-16:10 pixel dimensions, needed for CLS
   prevention) force a fixed pixel height once object-fit is also
   present, ignoring the CSS aspect-ratio entirely and producing the
   old giant unclipped portrait tiles this replaces. Declaring
   height:auto explicitly (rather than leaving it implicit) restores
   aspect-ratio's control of sizing in that situation. */
.case-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #efece4;
}

.case-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.25rem 1.25rem;
}

.case-card-meta {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c0392b;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.case-card-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #111;
    margin-bottom: 0.9rem;
}

.case-card-link {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.82rem;
    color: #c0392b;
    text-decoration: none;
    border-bottom: 1px solid rgba(192, 57, 43, 0.35);
    padding-bottom: 2px;
}

.case-card-link:hover {
    border-color: #c0392b;
}

/* Stretches this one anchor's hit area over the entire card (image,
   title, whitespace included) so the whole card is clickable without
   wrapping it in a second <a>. */
.case-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.case-card-link:focus-visible {
    outline: none;
}

.case-card-link:focus-visible::after {
    outline: 2px solid #c0392b;
    outline-offset: -2px;
}

@media (max-width: 1199px) {
    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Reduced hero-to-grid gap, scoped to the /cases index only — the
   shared .page-hero/.section-light padding used everywhere else
   (including every Case detail page) is untouched. Compound
   selectors keep this correct regardless of stylesheet order. */
.page-hero.cases-hero {
    padding-bottom: 0.75rem;
}

.section-light.cases-grid-section {
    padding-top: 1.5rem;
}

/* ── Russian cases catalog (/cases) ── */
.page-hero.cases-hero .page-hero-lede {
    max-width: 640px;
}

/* Filter bar — shown by JS only, so without JS every card stays visible */
.case-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.25rem;
}

.case-filter {
    font-family: 'Georgia', serif;
    font-size: 0.85rem;
    color: #111;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.55rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.case-filter:hover {
    border-color: #c0392b;
}

.case-filter:focus-visible {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}

.case-filter[aria-pressed="true"] {
    background: #0F172A;
    border-color: #0F172A;
    color: #fff;
}

.case-filter-count {
    color: #999;
    font-size: 0.78rem;
}

.case-filter[aria-pressed="true"] .case-filter-count {
    color: rgba(255, 255, 255, 0.6);
}

/* Catalog grid: 3 / 2 / 1 columns, uniform 4:3 photos (less cropping of
   the many portrait sources than the homepage's 16:10). Overrides the
   generic .case-grid tiers and its <=768px carousel. */
.case-grid.case-grid--catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid--catalog .case-card-image {
    aspect-ratio: 4 / 3;
}

.case-grid--catalog .case-card[hidden] {
    display: none;
}

/* Multi-column tiers: reserve two lines for the category so titles in a
   row start at the same height (as on the homepage case cards). */
@media (min-width: 769px) {
    .case-grid--catalog .case-card-meta {
        line-height: 1.4;
        min-height: 2.8em;
    }
}

@media (max-width: 1024px) {
    .case-grid.case-grid--catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .case-grid.case-grid--catalog {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
        gap: 1.5rem;
    }

    .case-grid--catalog .case-card {
        flex: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* /cases H1 accent — only the word "China" in the CCG brand red used
   for this page; scoped to this one class so it never affects other
   H1s on the site. */
.cases-h1-accent {
    color: #c0392b;
}

@media (max-width: 680px) {
    .page-hero.cases-hero {
        padding-bottom: 1rem;
    }

    .section-light.cases-grid-section {
        padding-top: 0.5rem;
    }
}

.case-carousel-controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.case-carousel-position {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: #666;
    min-width: 4.5rem;
    text-align: center;
}

.case-carousel-arrow {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    color: #111;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-carousel-arrow:hover {
    border-color: #c0392b;
    color: #c0392b;
}

/* <=768px: swipeable single-card carousel instead of a vertical
   list. Native overflow-x + scroll-snap drives the touch/swipe
   behavior; each card takes ~86% of the row so the next card peeks
   in at the edge as a scroll affordance. The position indicator and
   prev/next buttons are supplementary (see the inline script) and
   stay hidden above this breakpoint since the grid layout takes
   over there. */
@media (max-width: 768px) {
    .case-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .case-card {
        flex: 0 0 86%;
        scroll-snap-align: start;
    }

    .case-carousel-controls {
        display: flex;
    }
}

/* Case 01 hero photo — single source, no separate mobile crop supplied,
   so one object-position serves every tier (unlike the service-page
   heroes, which tune per breakpoint because they swap source images). */
.case-01-hero-photo {
    object-position: 50% 25%;
}

/* Case 02 hero photo — portrait source, single crop for every tier
   (no separate mobile source, same rationale as the Case 01 hero). */
.case-02-hero-photo {
    object-position: 50% 35%;
}

/* Case 03 hero photo — portrait source, single crop for every tier
   (same rationale as the Case 01/02 heroes). */
.case-03-hero-photo {
    object-position: 50% 30%;
}

/* Case 04 hero photo — portrait source. At the >1024 tier the box is
   taller than wide relative to the image, so the full height shows
   regardless of Y. At the tablet/mobile tiers the box becomes very
   wide/short (as little as ~26% of the source height visible), so Y
   was tuned by rendering candidates at the tightest widths (768,
   1024): 42% keeps the ceiling/receding equipment aisle in frame for
   a sense of depth while still keeping workers clearly visible in
   the foreground, rather than cropping down to machinery alone. */
.case-04-hero-photo {
    object-position: 50% 42%;
}

/* Case 05 hero photo — landscape source (1536x1024), unlike the
   portrait heroes above. Candidates were rendered at the tightest
   breakpoints (768/1024) from 30-70%; 30% keeps both people's faces
   and the hands actively examining the fabric in frame, while higher
   values start cropping into their heads. */
.case-05-hero-photo {
    object-position: 50% 30%;
}

/* Case 06 hero photo — landscape source (1576x998). Candidates were
   rendered at the tightest breakpoints (768/1024) from 20-60%; 30%
   keeps both robots fully in frame with enough ceiling and floor
   depth to read as the wider production line, while higher values
   crop into the robots' upper joints and lose the sense of scale. */
.case-06-hero-photo {
    object-position: 50% 30%;
}

/* Cases 07 / 09 / 10 (Russian case pages): keep the robots on the
   assembly line with the worker, the panel stacks and the embroidery
   heads with thread cones in frame. */
.case-07-hero-photo {
    object-position: 50% 55%;
}

.case-09-hero-photo {
    object-position: 50% 65%;
}

.case-10-hero-photo {
    object-position: 50% 40%;
}

/* Case 08 hero photo — portrait source (1086x1448). Candidates were
   rendered at the tightest breakpoints (768/1024) from 15-55%; 25%
   keeps the workers' faces/upper bodies and the full spread of sorting
   containers in frame, while higher values crop into the workers at
   the top and lower values start losing the bottom containers. */
.case-08-hero-photo {
    object-position: 50% 25%;
}

/* Case detail pages — documentary photography between text sections,
   natural aspect ratio (no forced crop, no object-fit). Two variants:
   landscape shots stay wide but contained (not full-bleed), portrait
   shots render narrower — both centered so they read as editorial
   evidence inset within the page rather than full-screen background
   imagery. At <=1024px/680px the max-width is additionally capped to
   match .container's own responsive side margins (2.5rem / 1.25rem)
   so photography keeps the same left/right page margins as the
   surrounding text; min() keeps a photo from ever exceeding its
   desktop cap even where the margin-based width would allow more. */
.case-photo-wide {
    width: 100%;
    max-width: 1120px;
    height: auto;
    display: block;
    margin-inline: auto;
}

.case-photo-portrait {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin-inline: auto;
}

@media (max-width: 1024px) {
    .case-photo-wide {
        max-width: min(1120px, calc(100% - 5rem));
    }
    .case-photo-portrait {
        max-width: min(800px, calc(100% - 5rem));
    }
}

@media (max-width: 680px) {
    .case-photo-wide {
        max-width: min(1120px, calc(100% - 2.5rem));
    }
    .case-photo-portrait {
        max-width: min(800px, calc(100% - 2.5rem));
    }
}

/* Two-item variant of the related-services grid, for case pages that
   link to fewer than three services (mirrors the .audit-grid--five
   five-item modifier pattern already used elsewhere). */
.related-services-grid--two {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .related-services-grid--two {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════
   CHECK A SUPPLIER — /check-chinese-supplier
   Lead-gen tool page. Hero puts a light-themed form
   card where other page-heroes put a photo, reusing
   the existing .page-hero-inner grid. Form controls
   are a light-background variant of the .form-group
   styling already used on the red #contact section.
   ══════════════════════════════════════════════ */

.page-hero.supplier-check-hero .page-hero-inner {
    align-items: start;
}

/* Compact 3-step explainer filling the left column's unused space
   below the lede, next to the taller form card. Reuses the existing
   .step-list/.step-item/.step-num component (already used on the
   service pages) rather than a new one; this override only scopes
   --divider/--muted (undefined inside .page-hero) and trims the
   sizing down for a hero-column context instead of a full section. */
.supplier-check-hero .step-list {
    --divider: rgba(0, 0, 0, 0.08);
    --muted: #555;
    margin-top: 2rem;
}

.supplier-check-hero .step-item {
    padding: 0.9rem 0;
    gap: 1rem;
}

.supplier-check-hero .step-num {
    font-size: 1.05rem;
    width: 1.8rem;
}

.supplier-check-hero .step-item h4 {
    font-size: 0.86rem;
    margin-bottom: 0.3rem;
}

.supplier-check-hero .step-item p {
    font-size: 0.8rem;
    line-height: 1.6;
}

.check-form-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2.25rem;
}

.check-form-card .form-group label {
    color: #555;
    opacity: 1;
}

.check-form-card .form-group input {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #111;
}

.check-form-card .form-group input::placeholder {
    color: #999;
}

.check-form-card .form-group input:focus {
    border-color: #c0392b;
}

.check-form-card .form-note {
    color: #777;
}

.check-form-card .form-consent {
    color: #999;
}

.check-form-card .form-consent a {
    color: #777;
}

.check-form-card button[type="submit"] {
    background: #c0392b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-family: 'Georgia', serif;
    transition: opacity 0.2s;
}

.check-form-card button[type="submit"]:hover:not(:disabled) {
    opacity: 0.9;
}

.check-form-card button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.check-form-success {
    display: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 1.5rem 1.75rem;
}

.check-form-success p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.6rem;
}

.check-form-success p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .check-form-card {
        padding: 1.75rem;
    }
}

/* "What we can check first" — restrained two-column comparison.
   Reuses .plain-list (red checkmark) for confirmable items; the
   unconfirmed column swaps in a muted dash via this modifier so the
   distinction reads as fact, not a red/green traffic light. */
.check-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 3rem;
    margin-top: 2.5rem;
}

.check-compare-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

.check-compare-heading--muted {
    color: var(--muted);
}

.plain-list--muted li {
    color: var(--muted);
}

.plain-list--muted li::before {
    content: "\2013";
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 768px) {
    .check-compare-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Related Case — a single existing .case-card, capped to card width
   instead of stretching full-bleed like the /cases 4-up grid. */
.related-case-wrap {
    max-width: 380px;
}

/* ── Russian case detail pages (/cases/<slug>) ── */
/* Keeps hyphenated compounds ("CNC-компонентов") from breaking at the hyphen. */
.nobr {
    white-space: nowrap;
}

.case-eyebrow {
    font-size: 0.72rem;
    margin-bottom: 1rem;
}

/* Project facts row (service / industry / scope / location) */
.case-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    margin-bottom: 3.5rem;
}

.case-facts--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-facts dt {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #707070;
    margin-bottom: 0.4rem;
}

.case-facts dd {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Photo gallery — images at their natural proportions, no cropping */
.case-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.case-gallery figure {
    margin: 0;
}

.case-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.case-gallery--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Uniform frame for a gallery whose photos differ in proportion
   (textile: three ~0.6 portraits + one 0.75): a shared 2:3 crop costs
   each photo only ~10% of one dimension and keeps captions level. */
.case-gallery--even img {
    aspect-ratio: var(--gallery-ratio, 2 / 3);
    object-fit: cover;
}

/* Shared frame for photo sets whose proportions differ only slightly */
.case-gallery--r3x2 { --gallery-ratio: 3 / 2; }
.case-gallery--r3x4 { --gallery-ratio: 3 / 4; }
.case-gallery--r6x7 { --gallery-ratio: 6 / 7; }
.case-gallery--r9x11 { --gallery-ratio: 9 / 11; }

/* Two per row (landscape photo sets) */
.case-gallery--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Mixed portrait + landscape in one row without cropping: each figure's
   width is proportional to its photo's aspect ratio (flex-grow = w/h,
   basis 0), so all photos end up the same height. */
.case-gallery--justified {
    display: flex;
}

.case-gallery--justified figure {
    flex: 0.75 1 0;
    min-width: 0;
}

.case-gallery--justified figure.is-landscape {
    flex-grow: 1.3333;
}

/* keep the bobbins / the fabric roll at the bottom of these frames */
.case-gallery--even .case-05-yarn-crop {
    object-position: 50% 60%;
}

.case-gallery--even .case-05-fabric-crop {
    object-position: 50% 70%;
}

/* Note under a case's "what we looked at" grid (limits of the visit). */
.case-note {
    margin-top: 2.5rem;
    max-width: 760px;
}

.case-gallery figcaption {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
}

/* Related service block */
.case-service {
    max-width: 640px;
}

.case-service h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

@media (max-width: 1024px) {
    .case-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-facts--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* Smallest phones: the unbreakable "CNC-компонентов" must fit the
   320px column at 2.2rem, so step the case H1 down slightly. */
@media (max-width: 374px) {
    .page-hero.case-detail-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .case-facts {
        margin-bottom: 2.5rem;
    }

    .case-facts--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2.5rem;
    }

    /* portrait photos stacked one per row would fill the whole tablet
       width (~690x920px each); keep them at a readable size instead */
    .case-gallery--portrait figure {
        max-width: 420px;
    }

    .case-gallery--justified {
        display: grid;
    }

    /* four tall portraits: keep two per row on phones */
    .case-gallery--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }
}

/* ══════════════════════════════════════════════
   INSIGHTS — /insights index + article pages
   ══════════════════════════════════════════════ */

/* Featured article reuses the existing .split-grid (image + text,
   1.1fr/0.9fr) so the larger card needs no new layout primitive. Same
   white background/border as .insight-card so this reads as one card,
   not a bordered frame around floating content — the image sits flush
   against the card edge exactly like .insight-card-image does, and
   only the text column carries its own padding. */
.insight-featured {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.15s ease;
}

.insight-featured .split-grid > div {
    padding: 2rem 2rem 2rem 0;
}

@media (max-width: 680px) {
    .insight-featured .split-grid > div {
        padding: 1.5rem;
    }
}

/* Two-column featured layout only (>768px, before .split-grid stacks):
   stretch the row so the image fills the exact row height set by the
   text column, instead of sitting center-aligned at its own aspect-
   ratio height with white space above/below. min-height: 0 removes
   the grid item's automatic min-height-from-content floor (normally
   equal to the image's intrinsic aspect ratio), which is what let the
   image dictate/shorten the row instead of being stretched to fill it. */
@media (min-width: 769px) {
    .insight-featured .split-grid {
        align-items: stretch;
    }

    .insight-featured-image {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }
}

/* Same hover/focus convention as .case-card and .insight-card
   (:has(link:focus-visible), 0.15s ease) — applied to both the card
   border and the title text together. */
.insight-featured:hover,
.insight-featured:has(.case-card-link:focus-visible) {
    border-color: #c0392b;
}

.insight-featured .content-h2 {
    transition: color 0.15s ease;
}

.insight-featured:hover .content-h2,
.insight-featured:has(.case-card-link:focus-visible) .content-h2 {
    color: #c0392b;
}

.insight-featured-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #efece4;
}

/* Card grid for the remaining articles — same stretched-link,
   hover-border and focus treatment as .case-card on /cases, with an
   added deck line since Insight cards carry a short description
   that Case cards don't. */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.insight-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: border-color 0.15s ease;
}

.insight-card:hover,
.insight-card:has(.insight-card-link:focus-visible) {
    border-color: #c0392b;
}

.insight-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #efece4;
}

.insight-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.4rem 1.4rem;
}

.insight-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #111;
    margin-bottom: 0.6rem;
}

.insight-card-deck {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.insight-card-link {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.82rem;
    color: #c0392b;
    text-decoration: none;
    border-bottom: 1px solid rgba(192, 57, 43, 0.35);
    padding-bottom: 2px;
}

.insight-card-link:hover {
    border-color: #c0392b;
}

.insight-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.insight-card-link:focus-visible {
    outline: none;
}

.insight-card-link:focus-visible::after {
    outline: 2px solid #c0392b;
    outline-offset: -2px;
}

@media (max-width: 1199px) {
    .insight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .insight-featured .split-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Article page — header and hero image sit in the normal .container;
   the body copy gets its own narrower measure (~780px) so long
   paragraphs don't span the full 1280px site container. */
.insight-article-header {
    max-width: 780px;
    margin-inline: auto;
}

.insight-article-lede {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.75;
    margin-top: 1rem;
}

/* 404 page: button under the article-style lede */
.insight-article-header .page-hero-actions {
    margin-top: 2rem;
}

.insight-hero-image-wrap {
    max-width: 1000px;
    margin: 2.5rem auto 0;
}

.insight-hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #efece4;
}

.insight-body {
    max-width: 780px;
    margin-inline: auto;
    padding: 1.5rem 0 4rem;
}

.insight-body h2 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.28;
    color: #111;
    margin: 2.75rem 0 1.1rem;
}

.insight-body h2:first-child {
    margin-top: 0;
}

.insight-body h2 em {
    font-style: normal;
    color: #c0392b;
}

.insight-body p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #333;
    margin-bottom: 1.3rem;
}

.insight-body ul,
.insight-body ol {
    margin: 0 0 1.3rem 1.35rem;
}

.insight-body li {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.55rem;
}

.insight-body a {
    color: #c0392b;
    text-decoration: underline;
    text-decoration-color: rgba(192, 57, 43, 0.4);
}

.insight-body a:hover {
    text-decoration-color: #c0392b;
}

.insight-body img {
    width: 100%;
    height: auto;
    display: block;
    margin: 2.5rem 0;
    background: #efece4;
}

/* Quick Answer — restrained warm-tinted callout with a small red
   accent, styled as an uppercase label rather than a full heading so
   it reads as "the answer up front", not an AI-generated callout. */
.insight-quick-answer {
    background: #f3ede0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 3px solid #c0392b;
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0 2rem;
}

.insight-quick-answer:first-child {
    margin-top: 0;
}

.insight-quick-answer h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c0392b;
    margin: 0 0 0.7rem;
}

.insight-quick-answer p {
    margin-bottom: 0;
}

/* Practitioner commentary ("From the China side") — thin left border
   and a barely-different background, deliberately not styled as a
   testimonial/quote card. */
.insight-practitioner {
    background: #faf8f4;
    border-left: 2px solid #999;
    padding: 1.1rem 1.5rem;
    margin: 1.75rem 0 2rem;
}

.insight-practitioner h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.insight-practitioner p {
    margin-bottom: 0;
    color: #444;
}

/* Tables — real <table> markup, horizontally scrollable on narrow
   viewports instead of crushing columns unreadable. */
.insight-table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
}

.insight-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.insight-table th,
.insight-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
    vertical-align: top;
}

.insight-table thead th {
    background: #f9f6f0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    font-weight: 700;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

.insight-table tbody tr:last-child td {
    border-bottom: none;
}

.insight-sources {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.insight-sources h2 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #707070;
    margin: 0 0 1rem;
}

.insight-sources ul {
    margin: 0 0 0 1.1rem;
}

.insight-sources li {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .insight-hero-image-wrap {
        margin-top: 2rem;
    }

    .insight-body h2 {
        font-size: 1.4rem;
    }
}

/* Russian /insights: replaces the inline margin on the featured deck. */
.insight-featured-deck {
    margin-bottom: 1.5rem;
}

/* ── Russian homepage (/) ── */

/* Homepage cases: a short description sits between the title and the
   link (the /cases index cards had none). */
.case-card-text {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 0.9rem;
}

/* Four homepage cases: avoid the 3+1 split of the generic 3-column
   tier; 2x2 until the 4-column desktop layout takes over. */
@media (max-width: 1199px) and (min-width: 769px) {
    #cases .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Grid layouts only: reserve two lines for the category label so all
   case titles in a row start at the same height. Not needed in the
   one-card-at-a-time mobile carousel. */
@media (min-width: 769px) {
    #cases .case-card-meta {
        line-height: 1.4;
        min-height: 2.8em;
    }
}

/* Contact form status / notice box (sending, success, error, "sending is off"). */
.form-status {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.2rem;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.form-status[hidden] {
    display: none;
}

.form-status--notice {
    margin: 0 0 1.5rem;
}

.form-status--error {
    border-color: rgba(255, 255, 255, 0.7);
}

#contact .form-status a,
#contact .form-consent-group a {
    text-decoration: underline;
}

/* The fields ship inside a disabled fieldset; /contact-form.js enables it
   only when the server reports that sending is on. */
.form-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.form-fieldset:disabled .form-group,
.form-fieldset:disabled .form-consent-group {
    opacity: 0.55;
}

.form-fieldset:disabled input,
.form-fieldset:disabled textarea {
    cursor: not-allowed;
}

.form-consent-group {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.2rem 0 1.4rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.form-consent-group input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0.1rem 0 0;
    accent-color: #fff;
    cursor: pointer;
}

.form-consent-group input:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Honeypot: off-screen, not focusable, hidden from assistive tech. */
.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Russian nav labels need ~940px; between the burger breakpoint and
   that width, drop the tagline and the "Связаться" text link (same
   /contact destination as the always-visible CTA button). */
@media (min-width: 769px) and (max-width: 940px) {
    .nav-tagline,
    .nav-links .nav-link-contact {
        display: none;
    }
}
