:root {
    --cw-faq-blue: #1688B9;
    --cw-faq-blue-dark: #071A33;
    --cw-faq-blue-soft: #e7f3f8;
    --cw-faq-coral: #ff6268;
    --cw-faq-muted: #5f7082;
    --cw-faq-card-shadow: 0 18px 52px rgba(24, 67, 97, 0.10);
    --cw-faq-card-shadow-sm: 0 10px 28px rgba(24, 67, 97, 0.08);
}

.faq-standalone-page {
    background: #f5fbfd;
}

.faq-standalone-main {
    padding: 80px 0 0;
    min-height: 72vh;
}

.faq-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 42%, rgba(231, 247, 252, 0.78) 100%),
        url("/assets/faq-hero/backgrounds/faq-hero-watercolor-bg.webp") center / cover no-repeat;
    border-bottom: 1px solid rgba(23, 143, 189, 0.12);
}

.faq-hero__inner {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 44px 20px 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
    grid-template-areas:
        "content visual"
        "topics visual";
    gap: 30px 48px;
    align-items: start;
}

.faq-hero__content {
    grid-area: content;
    min-width: 0;
}

.faq-hero h1 {
    margin: 0 0 18px;
    max-width: 720px;
    color: var(--cw-faq-blue-dark);
    font-weight: 800;
    font-size: clamp(44px, 3.72vw, 56px);
    line-height: 1.08;
    letter-spacing: 0;
}

.faq-hero h1 span {
    display: block;
}

.faq-hero h1 .accent {
    color: var(--cw-faq-blue);
}

.faq-hero__lead {
    max-width: 680px;
    margin: 0;
    color: var(--cw-faq-muted);
    font-size: 19px;
    line-height: 1.55;
}

.faq-hero__lead-mobile {
    display: none;
}

.faq-hero__topics {
    grid-area: topics;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: start;
}

.faq-topic-card {
    min-height: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 11px;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
}

.faq-topic-card img {
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 9px;
    display: block;
    border: 1px solid rgba(23, 143, 189, 0.16);
    border-radius: 50%;
    background: rgba(231, 247, 252, 0.78);
}

.faq-topic-card strong {
    display: block;
    color: var(--cw-faq-blue-dark);
    font-size: 15px;
    line-height: 1.22;
    font-weight: 800;
}

.faq-topic-card span {
    display: block;
    margin-top: 5px;
    color: var(--cw-faq-muted);
    font-size: 13px;
    line-height: 1.3;
}

.faq-hero__visual {
    position: relative;
    grid-area: visual;
    min-height: 460px;
}

.faq-hero__photo-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 40px 40px 112px 40px;
    box-shadow: var(--cw-faq-card-shadow);
    background: #dff3f8;
}

.faq-hero__photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.10), rgba(23, 143, 189, 0.12));
    pointer-events: none;
}

.faq-hero__photo-wrap picture {
    width: 100%;
    height: 100%;
    display: block;
}

.faq-hero__photo-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: right center;
}

.faq-standalone-main #faq-safety-style.faq-section {
    width: 100%;
    max-width: var(--container-width);
    margin: 24px auto 40px !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.faq-standalone-main #faq-safety-style.faq-section .card-header {
    min-height: auto;
    padding: 0 20px 12px;
    border-radius: 0;
    background: transparent;
}

.faq-standalone-main #faq-safety-style.faq-section .card-header h2 {
    color: var(--cw-faq-blue-dark);
    font-size: 28px;
    line-height: 1.18;
}

.faq-standalone-main #faq-safety-style.faq-section .card-body {
    padding: 0 20px 38px !important;
    border-radius: 0;
    background: transparent;
}

.faq-standalone-main #faq-safety-style .faq-intro {
    display: none !important;
}

.faq-standalone-main #faq-safety-style .faq-item[id] {
    scroll-margin-top: 106px;
}

@media (max-width: 1180px) {
    .faq-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
        gap: 28px;
        padding: 44px 0 40px;
    }

    .faq-hero h1 {
        font-size: clamp(44px, 3.72vw, 56px);
    }

    .faq-hero__lead {
        font-size: 17px;
    }

    .faq-hero__visual {
        min-height: 400px;
    }
}

@media (max-width: 1100px) {
    .faq-standalone-main {
        padding-top: 82px;
    }

    .faq-hero__inner {
        width: 95%;
        max-width: 960px;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
        grid-template-areas:
            "content visual"
            "topics topics";
        gap: 22px 24px;
        padding: 40px 0 30px;
        align-items: center;
    }

    .faq-hero h1 {
        max-width: 620px;
        margin: 0 0 14px;
        font-size: 40px;
        line-height: 1.08;
    }

    .faq-hero__lead {
        max-width: 620px;
        font-size: 16px;
        line-height: 1.48;
    }

    .faq-hero__topics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px 18px;
    }

    .faq-topic-card {
        min-height: 0;
        padding: 0;
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 10px;
    }

    .faq-topic-card img {
        width: 38px;
        height: 38px;
        padding: 8px;
    }

    .faq-topic-card span {
        display: none;
    }

    .faq-hero__visual {
        min-height: 320px;
        align-self: center;
    }

    .faq-hero__photo-wrap {
        border-radius: 28px 28px 68px 28px;
    }

    .faq-hero__photo-wrap img {
        object-position: center center;
    }
}

@media (max-width: 640px) {
    .faq-standalone-main {
        padding-top: 68px;
    }

    .faq-hero__inner {
        width: 100%;
        max-width: none;
        grid-template-columns: minmax(0, 1fr) 150px;
        grid-template-areas:
            "content visual"
            "topics topics";
        gap: 16px 12px;
        padding: 26px 24px 24px;
        align-items: center;
    }

    .faq-hero h1 {
        margin: 0 0 10px;
        font-size: 32px;
        line-height: 1.08;
    }

    .faq-hero__lead {
        font-size: 15px;
        line-height: 1.42;
    }

    .faq-hero__lead-desktop {
        display: none;
    }

    .faq-hero__lead-mobile {
        display: inline;
    }

    .faq-hero__topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
    }

    .faq-topic-card {
        min-height: 0;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 10px;
        align-items: center;
        padding: 0;
    }

    .faq-topic-card img {
        width: 36px;
        height: 36px;
        padding: 8px;
        margin: 0;
    }

    .faq-topic-card strong {
        font-size: 14px;
    }

    .faq-hero__visual {
        min-height: 194px;
        align-self: start;
    }

    .faq-hero__photo-wrap {
        border-radius: 22px 22px 46px 22px;
    }

    .faq-standalone-main #faq-safety-style.faq-section {
        margin-top: 18px !important;
    }

    .faq-standalone-main #faq-safety-style.faq-section .card-header {
        padding: 0 24px 10px;
    }

    .faq-standalone-main #faq-safety-style.faq-section .card-header h2 {
        font-size: 22px;
    }

    .faq-standalone-main #faq-safety-style.faq-section .card-body {
        padding: 0 24px 24px !important;
    }
}

@media (max-width: 420px) {
    .faq-hero__inner {
        grid-template-columns: minmax(0, 1fr) 136px;
        padding-right: 22px;
        padding-left: 22px;
    }

    .faq-hero h1 {
        font-size: 29px;
    }

    .faq-hero__lead {
        font-size: 14px;
    }

    .faq-hero__visual {
        min-height: 178px;
    }

    .faq-topic-card {
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 0;
    }

    .faq-topic-card img {
        width: 34px;
        height: 34px;
        padding: 7px;
    }
}
