:root {
    --accent: #d62435;
    --text-main: #151515;
    --text-muted: #666666;
    --bg-light: #f7f7f7;
    --border-light: #e5e5e5;
    --radius-sm: 8px;
    --radius-md: 16px;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* ---------- Layout ---------- */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 72px 0;
}

.section--light {
    background-color: var(--bg-light);
}

.section__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.section__title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 16px;
}

.section__subtitle {
    max-width: 640px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ---------- Header & Nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
}

/* Header container is wider than page content so the menu does not wrap on desktop */
.site-header .container {
    max-width: 1320px;
}


.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 14px 0;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    min-width: 0;
}

.nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.nav__list > li {
    flex: 0 0 auto;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 0;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__link:hover {
    color: var(--text-main);
}

.nav__link--active {
    color: var(--text-main);
    border-color: var(--accent);
}

.nav__cta {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav__cta:hover {
    background-color: var(--accent);
    color: #ffffff;
}

/* ---------- Burger ---------- */

.burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background-color: #000000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.burger--open span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile nav state */

@media (max-width: 1100px) {
    .nav {
        position: fixed;
        inset: 60px 16px auto 16px;
        background-color: #ffffff;
        border-radius: 16px;
        box-shadow: var(--shadow-soft);
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav__list > li.nav__mobile-hidden {
        display: none;
    }

    .nav__cta {
        align-self: stretch;
        text-align: center;
        justify-content: center;
    }

    .burger {
        display: flex;
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.06s ease, box-shadow 0.1s ease;
}

.btn--primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(214, 36, 53, 0.25);
}

.btn--primary:hover {
    background-color: #bb1f2e;
}

.btn--ghost {
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn--ghost:hover {
    border-color: var(--accent);
}

.btn--full {
    width: 100%;
}

/* ---------- Hero (главная) ---------- */

.hero {
    padding: 72px 0 56px;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 40px;
    align-items: center;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero__title {
    font-size: 36px;
    line-height: 1.15;
    margin: 0 0 16px;
}

.hero__subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.hero__note {
    font-size: 13px;
    color: var(--text-muted);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: var(--bg-light);
    font-size: 12px;
    color: var(--text-muted);
}

.hero__logo-block {
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.hero__logo-text {
    font-size: 32px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero__logo-highlight {
    color: var(--accent);
}

.hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

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

    .hero {
        padding-top: 56px;
    }
}

/* ---------- Cards & grids ---------- */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

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

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

@media (max-width: 900px) {
    .cards-grid,
    .cards-grid--2,
    .cards-grid--4 {
        grid-template-columns: 1fr;
    }
}

.card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 20px 20px 18px;
    background-color: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.03);
}

.card__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

.card__title {
    font-size: 18px;
    margin: 0 0 8px;
}

.card__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- “Почему это работает”, “Метод”, текстовые секции ---------- */

.text-block {
    max-width: 760px;
}

.text-block h2 {
    font-size: 26px;
    margin-top: 0;
}

.text-block h3 {
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 8px;
}

.text-block p {
    margin-top: 0;
    margin-bottom: 12px;
}

.text-block ul {
    padding-left: 18px;
    margin: 4px 0 12px;
}

.text-block li {
    margin-bottom: 4px;
}

/* ---------- FAQ ---------- */

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background-color: #ffffff;
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item__question {
    background: none;
    border: none;
    padding: 14px 18px;
    text-align: left;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-item__icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    padding: 0 18px 14px;
    font-size: 14px;
    color: var(--text-muted);
    display: none;
}

.faq-item__answer--open {
    display: block;
}

/* ---------- Reviews ---------- */

.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 18px 20px;
    background-color: #ffffff;
}

.review__meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.review__q {
    font-weight: 600;
    margin-bottom: 4px;
}

.review__a {
    margin: 0;
}

/* ---------- Pricing (Купить) ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

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

.pricing-card {
    border-radius: 20px;
    border: 1px solid var(--border-light);
    padding: 22px 22px 20px;
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card__badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--accent);
}

.pricing-card__title {
    font-size: 20px;
    margin: 4px 0;
}

.pricing-card__subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-card__list {
    padding-left: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-card__price {
    margin-top: auto;
    font-weight: 600;
    font-size: 16px;
}

.pricing-card__actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card__hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ---------- Contacts ---------- */

.contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 32px;
}

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

.contact-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 18px 20px;
    background-color: #ffffff;
}

.contact-card__title {
    font-size: 16px;
    margin: 0 0 8px;
}

.contact-card__text {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form__field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    font-family: inherit;
    font-size: 14px;
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__field--checkbox {
    margin-top: 4px;
}

.form__field--checkbox .checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
}

.form__field--checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.form__field--checkbox a {
    text-decoration: underline;
}

/* ---------- Article template ---------- */

.article-header {
    max-width: 760px;
    margin: 0 auto 32px;
}

.article-header__meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.article-header__title {
    font-size: 30px;
    margin: 0 0 12px;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 22px;
    margin-top: 28px;
    margin-bottom: 8px;
}

.article-content p {
    margin-top: 0;
    margin-bottom: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 32px 0 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 48px;
}

.site-footer__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 12px;
}

.site-footer__text {
    font-size: 13px;
    color: var(--text-muted);
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .site-footer__top,
    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Language switch */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-left: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-switch__btn {
    border: none;
    background: transparent;
    padding: 2px 4px;
    cursor: pointer;
    font: inherit;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.lang-switch__btn--active {
    color: var(--accent);
    opacity: 1;
}

.lang-switch__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.lang-switch__divider {
    opacity: 0.4;
}

@media (max-width: 1100px) {
    .lang-switch {
        margin-left: auto;
    }
}
.review__photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

/* ---------- Video block (Ознакомительный урок) ---------- */

.video-block {
    max-width: 760px;
    margin: 0 auto 32px;
}

.video-block__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.video-block__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 10px;
}

.video-block__wrapper iframe,
.video-block__wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-block__caption {
    font-size: 13px;
    color: var(--text-muted);
}


/*test */
/* ---------- Списки внутри article-content (в т.ч. Ознакомительный урок) ---------- */

.article-content ul,
.article-content ol {
    padding-left: 18px;
    margin: 4px 0 12px;
}

.article-content li {
    margin-bottom: 4px;
}

/* ---------- Мобильная типографика и отступы ---------- */

@media (max-width: 768px) {
    .section {
        padding: 56px 0;
    }

    .hero {
        padding: 56px 0 40px;
    }

    .hero__title {
        font-size: 30px;
        line-height: 1.2;
    }

    .hero__subtitle {
        font-size: 15px;
    }

    .section__title {
        font-size: 26px;
    }

    .article-header__title {
        font-size: 26px;
    }

    .article-content {
        font-size: 15px;
    }
}

/* ---------- Очень маленькие экраны (телефоны 320–430px) ---------- */

@media (max-width: 480px) {
    .site-header__inner {
        gap: 12px;
        padding: 10px 0;
    }

    .logo {
        font-size: 16px;
        letter-spacing: 0.12em;
    }

    .lang-switch {
        font-size: 13px;
    }

    .hero__title {
        font-size: 26px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .section {
        padding: 44px 0;
    }

    .section__title {
        font-size: 24px;
    }

    .cards-grid,
    .cards-grid--2,
    .cards-grid--4 {
        gap: 16px;
    }

    .card {
        padding: 16px 16px 14px;
    }

    .article-header {
        margin-bottom: 24px;
    }

    .article-header__title {
        font-size: 24px;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-content p,
    .article-content li {
        font-size: 14px;
    }

    /* Видеоблок на странице "Ознакомительный урок" */
    .video-block {
        margin-bottom: 24px;
    }

    .video-block__caption {
        font-size: 12px;
    }
}



/* ---------- Alternative (tripwire) teaser ---------- */

.alt-teaser {
    padding: 26px 0;
}

.alt-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.alt-card__content {
    min-width: 0;
}

.alt-card__title {
    margin: 6px 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.alt-card__text {
    margin: 0;
    color: var(--text-muted);
    max-width: 720px;
}

.alt-card__action {
    flex: 0 0 auto;
}

.alt-card__btn {
    padding: 18px 22px;
    border-radius: 16px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
}

@media (max-width: 820px) {
    .alt-card {
        flex-direction: column;
        align-items: stretch;
    }

    .alt-card__btn {
        width: 100%;
    }
}

/* -------- Articles: readable formatting -------- */
.article-content p,
.article-content div {
    margin: 0 0 12px;
    line-height: 1.6;
}

.article-content p:first-child,
.article-content div:first-child {
    text-indent: 0;
}

.article-content p {
    text-indent: 1.6em; /* "красная строка" */
}

.article-content ul,
.article-content ol {
    margin: 0 0 12px 1.4em;
}

.article-content li {
    margin: 6px 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- Tables (pasted from Word) --- */
.article-content table,
.rte-editor table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
    font-size: 14px;
}

.article-content th,
.article-content td,
.rte-editor th,
.rte-editor td {
    border: 1px solid var(--border-light);
    padding: 8px 10px;
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
}

.article-content th,
.rte-editor th {
    background: #fafafa;
    font-weight: 600;
}

/* Don't indent paragraphs inside tables */
.article-content table p,
.rte-editor table p {
    text-indent: 0;
    margin: 0 0 8px;
}

.article-content table p:last-child,
.rte-editor table p:last-child {
    margin-bottom: 0;
}

.article-content table ul,
.article-content table ol,
.rte-editor table ul,
.rte-editor table ol {
    margin: 0 0 8px 1.2em;
}

@media (max-width: 720px) {
    .article-content table,
    .rte-editor table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* -------- Admin: Rich text editor (Word-like buttons) -------- */
.rte {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.rte-toolbar .rte-btn {
    appearance: none;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.rte-toolbar .rte-btn:hover {
    border-color: #cfcfcf;
}

.rte-toolbar .rte-sep {
    width: 1px;
    background: #e6e6e6;
    margin: 0 4px;
}

.rte-editor {
    min-height: 280px;
    padding: 12px 14px;
    outline: none;
}

.rte-editor:empty:before {
    content: attr(data-placeholder);
    color: #999;
}

.rte-advanced {
    border-top: 1px solid #eee;
    background: #fcfcfc;
    padding: 10px 12px;
}

.rte-advanced summary {
    cursor: pointer;
    color: #333;
}

.rte-advanced textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


/* --- Admin RTE improvements: groups, active state, status, modal, fullscreen --- */
.rte-toolbar {
    align-items: center;
}

.rte-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rte-select {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
}
.rte-select--mini {
    padding: 8px 8px;
    font-size: 14px;
    min-width: 64px;
}

/* --- Word-like list markers (saved as data-ul-style / data-ol-style) --- */

/* Ensure custom marker glyphs render even if the main font lacks symbols (e.g., Inter) */
.article-content ul[data-ul-style] li::marker,
.rte-editor ul[data-ul-style] li::marker {
    font-family: "Segoe UI Symbol", "Noto Sans Symbols2", "Noto Sans Symbols", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}


.article-content ul[data-ul-style="circle"],
.rte-editor ul[data-ul-style="circle"] { list-style-type: circle; }

.article-content ul[data-ul-style="square"],
.rte-editor ul[data-ul-style="square"] { list-style-type: square; }

/* Custom markers via ::marker */
.article-content ul[data-ul-style="box"] li::marker,
.rte-editor ul[data-ul-style="box"] li::marker { content: "□  "; }

.article-content ul[data-ul-style="dash"] li::marker,
.rte-editor ul[data-ul-style="dash"] li::marker { content: "–  "; }

.article-content ul[data-ul-style="emdash"] li::marker,
.rte-editor ul[data-ul-style="emdash"] li::marker { content: "—  "; }

.article-content ul[data-ul-style="check"] li::marker,
.rte-editor ul[data-ul-style="check"] li::marker { content: "✓  "; }

.article-content ul[data-ul-style="checkbox"] li::marker,
.rte-editor ul[data-ul-style="checkbox"] li::marker { content: "☑  "; }

/* Checklist (☐/☑) with per-item state stored in <li data-checked="1"> */
.article-content ul[data-ul-style="todo"] li::marker,
.rte-editor ul[data-ul-style="todo"] li::marker { content: "☐  "; }

.article-content ul[data-ul-style="todo"] li[data-checked="1"]::marker,
.rte-editor ul[data-ul-style="todo"] li[data-checked="1"]::marker { content: "☑  "; }

.article-content ul[data-ul-style="arrow"] li::marker,
.rte-editor ul[data-ul-style="arrow"] li::marker { content: "➤  "; }

.article-content ul[data-ul-style="arrow2"] li::marker,
.rte-editor ul[data-ul-style="arrow2"] li::marker { content: "➜  "; }

.article-content ul[data-ul-style="star"] li::marker,
.rte-editor ul[data-ul-style="star"] li::marker { content: "★  "; }

.article-content ul[data-ul-style="diamond"] li::marker,
.rte-editor ul[data-ul-style="diamond"] li::marker { content: "◆  "; }

.article-content ul[data-ul-style="diamond-outline"] li::marker,
.rte-editor ul[data-ul-style="diamond-outline"] li::marker { content: "◇  "; }

/* Ordered list styles */
.article-content ol[data-ol-style="decimal-leading-zero"],
.rte-editor ol[data-ol-style="decimal-leading-zero"] { list-style-type: decimal-leading-zero; }

.article-content ol[data-ol-style="lower-alpha"],
.rte-editor ol[data-ol-style="lower-alpha"] { list-style-type: lower-alpha; }

.article-content ol[data-ol-style="upper-alpha"],
.rte-editor ol[data-ol-style="upper-alpha"] { list-style-type: upper-alpha; }

.article-content ol[data-ol-style="lower-roman"],
.rte-editor ol[data-ol-style="lower-roman"] { list-style-type: lower-roman; }

.article-content ol[data-ol-style="upper-roman"],
.rte-editor ol[data-ol-style="upper-roman"] { list-style-type: upper-roman; }

/* Word-like multilevel numbering: 1.1 / 1.1.1 (saved as data-ol-style="multilevel") */
.article-content ol[data-ol-style="multilevel"],
.rte-editor ol[data-ol-style="multilevel"] {
    list-style: none;
    counter-reset: item;
    margin: 0 0 12px 0;
    padding-left: 2.2em;
}

.article-content ol[data-ol-style="multilevel"] > li,
.rte-editor ol[data-ol-style="multilevel"] > li {
    position: relative;
}

.article-content ol[data-ol-style="multilevel"] > li::before,
.rte-editor ol[data-ol-style="multilevel"] > li::before {
    content: counters(item, ".") ". ";
    counter-increment: item;
    position: absolute;
    left: -2.2em;
    width: 2em;
    text-align: right;
}

.article-content ol[data-ol-style="multilevel"] ol[data-ol-style="multilevel"],
.rte-editor ol[data-ol-style="multilevel"] ol[data-ol-style="multilevel"] {
    counter-reset: item;
    margin: 6px 0 6px 0;
}

/* Make lists in editor look like on the site */
.rte-editor ul,
.rte-editor ol {
    margin: 0 0 12px 1.4em;
}

.rte-editor li {
    margin: 6px 0;
}


.rte-btn.is-active {
    border-color: #c22a2a;
    box-shadow: 0 0 0 2px rgba(194, 42, 42, 0.12);
}

.rte-status {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-top: 1px solid #eee;
    background: #fcfcfc;
    font-size: 13px;
    color: #555;
}

.rte-status__left {
    white-space: nowrap;
}

.rte-status__right {
    margin-left: auto;
    white-space: nowrap;
    color: #777;
}

.rte-draft {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    background: #fff6da;
    color: #553c00;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rte-draft .rte-draft__actions {
    display: inline-flex;
    gap: 8px;
}

.rte-draft .rte-draft__btn {
    appearance: none;
    border: 1px solid #d8c38a;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
}

.rte-draft .rte-draft__btn:hover {
    border-color: #cdb46d;
}

/* Fullscreen */
.rte.is-fullscreen {
    position: fixed;
    inset: 12px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.rte.is-fullscreen .rte-editor {
    min-height: calc(100vh - 220px);
}

/* Modal */
.rte-modal[hidden] {
    display: none !important;
}

.rte-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rte-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.rte-modal__dialog {
    position: relative;
    width: min(640px, calc(100vw - 24px));
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    overflow: hidden;
}

.rte-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.rte-modal__title {
    font-weight: 700;
}

.rte-modal__x {
    appearance: none;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;
    width: 36px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.rte-modal__body {
    padding: 14px;
}

.rte-modal__body label {
    display: block;
    margin: 10px 0 6px;
    font-size: 14px;
}

.rte-modal__body input[type="text"],
.rte-modal__body input[type="url"],
.rte-modal__body input[type="email"] {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
}

.rte-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

/* Editor typography */
.rte-editor p { margin: 0 0 12px; }
.rte-editor h2 { margin: 18px 0 10px; }
.rte-editor h3 { margin: 16px 0 8px; }
.rte-editor blockquote {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 3px solid #c22a2a;
    background: #fff7f7;
    border-radius: 12px;
}
.rte-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}


/* ---------- Cookie consent banner ---------- */
.btn--small {
    padding: 10px 16px;
    font-size: 13px;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.cookie-banner__text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.35;
}

.cookie-banner__text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 768px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-banner__actions {
        width: 100%;
    }
}


.pricing-card__image {
    width: 100%;
    height: auto;
    border-radius: 16px;
}


/* ---------- Certificates ---------- */

.certificates-section .container {
    max-width: 1120px;
}

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

.certificate-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.certificate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(214, 36, 53, 0.22);
}

.certificate-card__image-wrap {
    min-height: 280px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-card__image {
    width: 100%;
    max-height: 330px;
    object-fit: contain;
    border-radius: 10px;
}

.certificate-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.certificate-card__title {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}

.certificate-card__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}


/* ---------- Hero diagnostic teaser ---------- */

.hero__diagnostic {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0 8px 28px;
    border-left: 1px solid var(--border-light);
}

.hero__diagnostic-title {
    font-size: 34px;
    line-height: 1.1;
    margin: 0;
}

.hero__diagnostic-logo {
    margin-bottom: 0;
}

.hero__diagnostic-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    max-width: 420px;
}

.hero__diagnostic-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 6px;
}

.hero__diagnostic-link::before {
    content: '[';
    margin-right: 10px;
}

.hero__diagnostic-link::after {
    content: ']';
    margin-left: 10px;
}

.hero__diagnostic-link:hover {
    color: var(--accent);
}

/* ---------- Trigger landing ---------- */

.lead-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
    align-items: start;
}

.lead-title {
    font-size: 48px;
    line-height: 1.05;
    margin: 0 0 18px;
    max-width: 760px;
}

.lead-subtitle {
    margin: 0;
    max-width: 640px;
    color: var(--text-muted);
    font-size: 19px;
}

.lead-card,
.cta-banner {
    border-radius: 24px;
    border: 1px solid var(--border-light);
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.lead-form .form__field label,
.lead-form--inline .form__field label {
    font-size: 13px;
    font-weight: 600;
}

.lead-form .form__input,
.lead-form--inline .form__input {
    height: 52px;
    border-radius: 14px;
    font-size: 16px;
}

.lead-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.lead-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

.lead-bullets li {
    position: relative;
    padding-left: 24px;
    font-size: 18px;
    line-height: 1.45;
}

.lead-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
}

.truth-block {
    max-width: 860px;
    border-left: 4px solid var(--accent);
    padding-left: 24px;
}

.truth-block p {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.35;
}

.truth-block p:last-child {
    margin-bottom: 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.trust-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.trust-card__icon {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
}

.trust-card__text {
    margin: 0;
    font-size: 15px;
    color: var(--text-main);
}

.lead-form--inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.lead-form--inline .btn {
    min-height: 52px;
    padding-left: 28px;
    padding-right: 28px;
}

/* ---------- Thank-you page ---------- */

.thanks-hero {
    margin-bottom: 34px;
}

.thanks-note {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.next-steps-title {
    font-size: 36px;
    line-height: 1.15;
    margin: 0 0 24px;
}

.next-card {
    padding: 24px 24px 22px;
}

.next-card .hero__actions {
    margin-top: 18px;
    margin-bottom: 0;
}

.video-block__hint {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.video-block__hint a {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .hero__diagnostic {
        border-left: none;
        border: 1px solid var(--border-light);
        border-radius: 20px;
        padding: 24px;
        box-shadow: var(--shadow-soft);
    }

    .lead-layout,
    .lead-bullets,
    .trust-grid,
    .lead-form--inline {
        grid-template-columns: 1fr;
    }

    .lead-title {
        font-size: 36px;
    }

    .truth-block p {
        font-size: 20px;
    }

    .lead-form--inline .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero__diagnostic-title {
        font-size: 28px;
    }

    .hero__diagnostic-link {
        font-size: 20px;
    }

    .lead-title {
        font-size: 31px;
    }

    .lead-subtitle {
        font-size: 17px;
    }

    .truth-block {
        padding-left: 18px;
    }
}

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

    .certificate-card__image-wrap {
        min-height: 220px;
    }

    .certificate-card__image {
        max-height: 280px;
    }
}



/* ---------- Assessment-first homepage hero ---------- */

.hero--lungs-focus {
    padding-bottom: 32px;
}

.hero__grid--assessment.hero__grid--assessment-focus {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
    gap: 36px;
    align-items: start;
}

.hero__main.hero__main--stacked {
    justify-content: flex-start;
    gap: 0;
}

.hero__method-inline {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(214, 36, 53, 0.12);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.06);
}

.hero__method-title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.15;
}

.hero__method-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
}

.hero__actions--compact {
    margin-top: 20px;
}

.hero__side-stack {
    display: flex;
    align-items: stretch;
}

.hero__side-card {
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.hero__side-card .alt-card__action {
    align-self: flex-start;
    margin-top: 18px;
}

.section--diagnostic-shift {
    padding-top: 6px;
}

.diagnostic-shift__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 30px;
    align-items: center;
}

.hero__diagnostic-badge-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.hero__diagnostic--moved {
    padding: 30px;
}

.hero__diagnostic--moved .hero__diagnostic-copy {
    max-width: none;
}

.hero-secondary-cta {
    padding: 12px 0 12px 6px;
}

.hero-secondary-cta .section__title {
    margin-bottom: 14px;
}

.hero-secondary-cta .btn {
    margin-top: 8px;
}

.hero--assessment {
    padding: 72px 0 48px;
}

.hero__grid--assessment {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.88fr);
    gap: 44px;
    align-items: stretch;
}

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

.hero__title--xl {
    font-size: 52px;
    line-height: 1.05;
    max-width: 760px;
    margin-bottom: 18px;
}

.hero--lungs-focus .hero__title--xl {
    max-width: 100%;
}

@media (min-width: 901px) {
    .hero--lungs-focus .hero__title--xl {
        font-size: clamp(40px, 4vw, 46px);
        white-space: nowrap;
        letter-spacing: -0.03em;
    }
}

.hero__subtitle--lead {
    font-size: 18px;
    max-width: 680px;
    margin-bottom: 28px;
}

.hero__pill--accent {
    margin-bottom: 16px;
    background: rgba(214, 36, 53, 0.08);
    border-color: rgba(214, 36, 53, 0.18);
    color: var(--accent);
}

.hero__actions--primary-first {
    margin-bottom: 18px;
}

.btn--hero-main {
    padding: 16px 30px;
    font-size: 15px;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
}

.btn--hero-secondary {
    padding: 16px 24px;
    font-size: 15px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__meta-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f7f7f7;
    color: #383838;
    font-size: 13px;
    font-weight: 600;
}

.hero__diagnostic--card {
    position: relative;
    overflow: hidden;
    gap: 18px;
    padding: 28px;
    border: 1px solid rgba(214, 36, 53, 0.14);
    border-radius: 28px;
    background: linear-gradient(180deg, #fff8f9 0%, #ffffff 78%);
    box-shadow: 0 22px 44px rgba(214, 36, 53, 0.08);
}

.hero__diagnostic--card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 36, 53, 0.10) 0%, rgba(214, 36, 53, 0) 72%);
    pointer-events: none;
}

.hero__diagnostic-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero__diagnostic-badge,
.hero__diagnostic-time {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.hero__diagnostic-badge {
    background: var(--accent);
    color: #ffffff;
}

.hero__diagnostic-time {
    background: rgba(21, 21, 21, 0.06);
    color: #333333;
}

.hero__diagnostic--card .hero__diagnostic-title {
    font-size: 36px;
}

.hero__diagnostic-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero__diagnostic-list li {
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

.hero__diagnostic-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.hero__diagnostic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__diagnostic-chips span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(214, 36, 53, 0.14);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    font-size: 13px;
    font-weight: 600;
}

.hero__diagnostic-cta {
    margin-top: 4px;
    padding: 15px 22px;
    font-size: 15px;
}

.alt-card--emphasis {
    border-color: rgba(214, 36, 53, 0.14);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .hero__grid--assessment {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero__grid--assessment.hero__grid--assessment-focus {
        gap: 24px;
    }

    .hero__method-inline {
        padding: 24px;
    }

    .hero__method-title {
        font-size: 26px;
    }

    .diagnostic-shift__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero-secondary-cta {
        padding-left: 0;
    }

    .hero__title--xl {
        font-size: 38px;
    }

    .hero__subtitle--lead {
        font-size: 17px;
    }

    .hero__actions--primary-first {
        flex-direction: column;
        align-items: stretch;
    }

    .btn--hero-main,
    .btn--hero-secondary {
        width: 100%;
    }

    .hero__diagnostic--card {
        padding: 24px;
    }

    .hero__diagnostic--card .hero__diagnostic-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .hero--assessment {
        padding-top: 56px;
    }

    .hero__method-inline {
        margin-top: 24px;
        padding: 22px;
    }

    .hero__method-title {
        font-size: 24px;
    }

    .hero__method-text {
        font-size: 15px;
    }

    .hero__title--xl {
        font-size: 32px;
    }

    .hero__meta {
        gap: 8px;
    }

    .hero__meta-item {
        font-size: 12px;
    }

    .btn--hero-main {
        font-size: 14px;
        padding: 15px 18px;
    }

    .hero__diagnostic-list li {
        padding-left: 20px;
        font-size: 14px;
    }
}

/* ---------- Assessment hero additions ---------- */

.hero--assessment-primary .hero__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__diagnostic--visual {
    gap: 20px;
}

.hero__meter {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.hero__meter-circle {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #ffffff 0%, #fff4f5 56%, rgba(214, 36, 53, 0.15) 100%);
    border: 1px solid rgba(214, 36, 53, 0.18);
    box-shadow: inset 0 0 0 12px rgba(214, 36, 53, 0.06);
    text-align: center;
}

.hero__meter-circle span {
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
}

.hero__meter-circle small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.hero__meter-copy p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.hero__meter-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Dedicated assessment page ---------- */

.assessment-hero {
    padding: 72px 0 34px;
}

.assessment-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: stretch;
}

.assessment-hero__title {
    font-size: 48px;
    line-height: 1.06;
    margin: 0 0 16px;
    max-width: 760px;
}

.assessment-hero__subtitle {
    margin: 0 0 24px;
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
}

.assessment-hero__meta {
    margin-top: 12px;
}

.assessment-hero__card {
    border-radius: 24px;
    border: 1px solid rgba(214, 36, 53, 0.14);
    background: linear-gradient(180deg, #fff9fa 0%, #ffffff 88%);
    box-shadow: 0 18px 38px rgba(214, 36, 53, 0.08);
    padding: 28px;
}

.assessment-hero__badge-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.assessment-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--accent);
    color: #ffffff;
}

.assessment-hero__badge--light {
    background: rgba(21, 21, 21, 0.06);
    color: var(--text-main);
}

.assessment-hero__card-title {
    font-size: 28px;
    line-height: 1.18;
    margin: 0 0 14px;
}

.assessment-hero__list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-main);
}

.assessment-hero__list li {
    margin-bottom: 10px;
}

.assessment-hero__note {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.assessment-section {
    padding-top: 40px;
}

.assessment-card {
    border-radius: 28px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
    padding: 28px;
}

.assessment-progress {
    margin-bottom: 26px;
}

.assessment-progress__bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #f1f1f1;
    overflow: hidden;
    margin-bottom: 10px;
}

.assessment-progress__bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.assessment-progress__meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.assessment-stage[hidden] {
    display: none;
}

.assessment-question {
    font-size: 34px;
    line-height: 1.18;
    margin: 0 0 22px;
    max-width: 900px;
}

.assessment-question__note {
    margin: -8px 0 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 860px;
}

.assessment-question__note[hidden] {
    display: none;
}

.assessment-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    background: #ffffff;
    padding: 18px 20px;
    text-align: left;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.quiz-option:hover,
.quiz-option:focus-visible {
    border-color: rgba(214, 36, 53, 0.28);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    outline: none;
}

.assessment-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.assessment-actions--between {
    justify-content: space-between;
}

.assessment-result-teaser {
    border-radius: 22px;
    border: 1px solid rgba(214, 36, 53, 0.14);
    background: linear-gradient(180deg, #fff7f8 0%, #ffffff 100%);
    padding: 24px;
    margin-bottom: 22px;
}

.assessment-result-teaser__title {
    font-size: 30px;
    line-height: 1.18;
    margin: 6px 0 10px;
}

.assessment-result-teaser__text {
    margin: 0 0 10px;
    color: var(--text-main);
    font-size: 16px;
}

.assessment-result-teaser__note {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.assessment-form {
    margin-bottom: 16px;
}

.assessment-chat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.assessment-chat-links .btn {
    flex: 1 1 260px;
    justify-content: center;
}

.sticky-quiz-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: none;
    padding: 10px 16px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 28%, #ffffff 100%);
}

.sticky-quiz-cta .btn {
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- Thank-you with result ---------- */

.thanks-section {
    padding-top: 68px;
}

.thanks-result-card {
    padding: 28px;
    margin-bottom: 20px;
}

.thanks-result-card__title {
    font-size: 32px;
    line-height: 1.16;
    margin: 6px 0 10px;
}

.thanks-result-card__summary {
    margin: 0 0 14px;
    font-size: 16px;
    color: var(--text-main);
}

.thanks-result-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f7f7f7;
    margin-bottom: 12px;
}

.thanks-result-card__meta-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.thanks-result-card__note {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.thanks-chat {
    padding: 24px;
    margin-bottom: 30px;
}

.assessment-chat-links--thanks {
    margin-top: 18px;
}

.thanks-next-intro {
    margin-bottom: 16px;
}

@media (max-width: 960px) {
    .assessment-hero__grid {
        grid-template-columns: 1fr;
    }

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

    .assessment-hero__title,
    .assessment-question,
    .thanks-result-card__title {
        font-size: 34px;
    }
}

@media (max-width: 760px) {
    .assessment-hero {
        padding-top: 56px;
    }

    .assessment-hero__title,
    .assessment-question,
    .thanks-result-card__title,
    .assessment-result-teaser__title {
        font-size: 28px;
    }

    .assessment-card,
    .assessment-hero__card,
    .thanks-result-card,
    .thanks-chat {
        padding: 22px;
    }

    .sticky-quiz-cta {
        display: block;
    }

    .site-footer {
        padding-bottom: 88px;
    }
}

@media (max-width: 520px) {
    .assessment-hero__title,
    .assessment-question,
    .thanks-result-card__title,
    .assessment-result-teaser__title {
        font-size: 24px;
    }

    .quiz-option {
        padding: 16px;
        font-size: 15px;
    }

    .assessment-chat-links .btn,
    .assessment-actions .btn {
        width: 100%;
    }

    .hero__meter-circle {
        width: 104px;
        height: 104px;
    }
}

.lead-switch-banner {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(214, 36, 53, 0.08);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.lead-switch-banner a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}


/* ---------- Mobile layout fixes for homepage/test funnel ---------- */

.hero__grid--assessment > *,
.hero__grid--assessment.hero__grid--assessment-focus > *,
.diagnostic-shift__grid > *,
.assessment-hero__grid > *,
.cards-grid > *,
.cards-grid--2 > *,
.cards-grid--4 > * {
    min-width: 0;
}

.hero__main,
.hero__side-stack,
.hero__side-card,
.hero__method-inline,
.hero__diagnostic--card,
.hero-secondary-cta,
.alt-card__content,
.hero__pill,
.hero__meta,
.hero__actions {
    min-width: 0;
}

@media (max-width: 900px) {
    .hero__grid--assessment.hero__grid--assessment-focus {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero__grid--assessment.hero__grid--assessment-focus > * {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .hero__side-card .alt-card__action {
        align-self: stretch;
        width: 100%;
        margin-top: 16px;
    }
}

@media (max-width: 640px) {
    .hero__pill {
        max-width: 100%;
        padding: 6px 10px;
        font-size: 10px;
        line-height: 1.35;
    }

    .hero__title--xl {
        font-size: 28px;
        line-height: 1.08;
        white-space: normal;
        letter-spacing: -0.02em;
    }

    .hero__subtitle--lead,
    .hero__method-text,
    .alt-card__text,
    .section__subtitle {
        font-size: 16px;
        line-height: 1.55;
    }

    .hero__actions--primary-first,
    .hero__actions--compact,
    .hero__actions--compact .btn,
    .btn--hero-main,
    .alt-card__btn {
        width: 100%;
        max-width: 100%;
    }

    .btn--hero-main {
        min-height: 56px;
        padding: 15px 18px;
        font-size: 15px;
    }

    .hero__meta {
        gap: 8px;
    }

    .hero__meta-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .hero__method-title,
    .alt-card__title,
    .hero__diagnostic--card .hero__diagnostic-title,
    .assessment-hero__card-title {
        font-size: 22px;
        line-height: 1.2;
    }
}

@media (max-width: 420px) {
    .hero__title--xl {
        font-size: 26px;
    }

    .hero__subtitle--lead {
        font-size: 15px;
    }

    .btn--hero-main {
        padding: 14px 16px;
        font-size: 14px;
    }

    .hero__meta-item {
        font-size: 11px;
    }
}

/* ---------- Admin panel ---------- */

.admin-body {
    background: #f7f8fb;
}

.admin-section {
    padding: 32px 0 48px;
}

.admin-container {
    max-width: 1360px;
}

.admin-page {
    max-width: none;
}

.admin-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.admin-page__heading h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.1;
}

.admin-page__subtitle {
    margin: 10px 0 0;
    max-width: 880px;
    color: var(--text-muted);
}

.admin-page__header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid #e7e8ed;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(18, 24, 40, 0.04);
}

.admin-stat-card__label {
    font-size: 13px;
    color: var(--text-muted);
}

.admin-stat-card__value {
    margin-top: 8px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.admin-alert-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.admin-alert {
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    border: 1px solid transparent;
}

.admin-alert--success {
    background: #f2fff5;
    border-color: #bfe7c7;
    color: #0a7a2f;
}

.admin-alert--error {
    background: #fff5f5;
    border-color: #f3b4b4;
    color: #8a1f1f;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #e7e8ed;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(18, 24, 40, 0.04);
}

.admin-card + .admin-card,
.admin-card + .admin-table-wrap,
.admin-table-wrap + .admin-card {
    margin-top: 16px;
}

.admin-card--filters {
    margin-bottom: 16px;
}

.admin-filters-form {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
    gap: 12px;
    align-items: end;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-field--buttons {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.admin-field__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-input,
.admin-select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d8dae3;
    background: #ffffff;
    color: var(--text-main);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-input:focus,
.admin-select:focus {
    outline: none;
    border-color: rgba(214, 36, 53, 0.5);
    box-shadow: 0 0 0 4px rgba(214, 36, 53, 0.08);
}

.admin-card__footer-note {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.admin-empty-state {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.admin-empty-state h2 {
    margin: 0;
    font-size: 24px;
}

.admin-empty-state p {
    margin: 0;
    max-width: 620px;
    color: var(--text-muted);
}

.admin-empty-state__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-card--bulk {
    margin-bottom: 12px;
}

.admin-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-bulk-bar__meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.admin-bulk-bar__count {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.admin-bulk-bar__text {
    color: var(--text-muted);
}

.admin-bulk-bar__controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-bulk-bar__controls .admin-select {
    min-width: 260px;
}

.admin-table-wrap {
    overflow: auto;
    background: #ffffff;
    border: 1px solid #e7e8ed;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(18, 24, 40, 0.04);
}

.admin-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    text-align: left;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    padding: 16px 16px 14px;
    background: #fbfbfd;
    border-bottom: 1px solid #ececf2;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f0f1f5;
    vertical-align: top;
}

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

.admin-table tbody tr:hover {
    background: #fcfcfe;
}

.admin-table__check {
    width: 92px;
}

.admin-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
}

.admin-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.admin-checkbox--header {
    font-weight: 600;
    color: var(--text-main);
}

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

.admin-article-cell {
    max-width: 420px;
}

.admin-article-cell__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.admin-article-cell__subtitle {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.admin-article-cell__slugs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-inline-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4f5f8;
    color: #4e5565;
    font-size: 12px;
    line-height: 1;
}

.admin-inline-chip strong {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-badge-group--stacked {
    flex-direction: column;
    align-items: flex-start;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

.admin-badge--success {
    background: #f2fff5;
    border-color: #c9ebcf;
    color: #0a7a2f;
}

.admin-badge--warning {
    background: #fff8ec;
    border-color: #f3d6a1;
    color: #8a5b00;
}

.admin-badge--muted {
    background: #f4f5f8;
    border-color: #e1e4ea;
    color: #5e6677;
}

.admin-date-cell__value {
    font-weight: 600;
    line-height: 1.3;
}

.admin-date-cell__meta {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn--sm {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 13px;
}

.btn--danger-outline {
    border: 1px solid rgba(214, 36, 53, 0.35);
    color: var(--accent);
    background: #ffffff;
}

.btn--danger-outline:hover {
    border-color: var(--accent);
    background: rgba(214, 36, 53, 0.04);
}

@media (max-width: 1100px) {
    .admin-filters-form {
        grid-template-columns: 1fr 1fr;
    }

    .admin-field--search {
        grid-column: 1 / -1;
    }

    .admin-field--buttons {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .admin-section {
        padding: 20px 0 32px;
    }

    .admin-page__heading h1 {
        font-size: 32px;
    }

    .admin-page__header-actions,
    .admin-empty-state__actions,
    .admin-bulk-bar__controls {
        width: 100%;
    }

    .admin-page__header-actions .btn,
    .admin-empty-state__actions .btn,
    .admin-bulk-bar__controls .btn,
    .admin-bulk-bar__controls .admin-select {
        width: 100%;
    }

    .admin-filters-form {
        grid-template-columns: 1fr;
    }
}
