/* Homepage visual direction: editorial black / white / pink. */

@font-face {
    font-family: "Neuroskin Script";
    src: url("../fonts/papamarkou.otf") format("opentype");
    font-display: swap;
}

/* ================================================================
   Dedicated service pages: comparison, photo analysis and routine
   ================================================================ */
.tool-page {
    --tool-ink: #151218;
    --tool-pink: #ff2f74;
    --tool-paper: #fffaf8;
    color: var(--tool-ink);
    background: #fff;
}

.tool-hero {
    padding: calc(var(--header-height) + 78px) 0 86px;
    background:
        radial-gradient(circle at 83% 18%, rgba(255, 47, 116, 0.16), transparent 27%),
        linear-gradient(135deg, #fff 0%, #fff8f7 52%, #f5eee9 100%);
    border-bottom: 1px solid rgba(21, 18, 24, 0.12);
}

.tool-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: end;
}

.tool-overline {
    margin: 0 0 18px;
    color: var(--tool-pink);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tool-hero h1 {
    max-width: 870px;
    margin: 0;
    color: var(--tool-ink);
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.3vw, 6.8rem);
    font-weight: 650;
    line-height: 0.93;
    letter-spacing: -0.065em;
}

.tool-hero__lead {
    max-width: 720px;
    margin: 30px 0 28px;
    color: #5f5962;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.7;
}

.tool-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: #706a72;
    font-size: 0.78rem;
}

.tool-hero__facts li {
    position: relative;
    padding-left: 15px;
}

.tool-hero__facts li::before {
    content: '';
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tool-pink);
}

.tool-hero__note {
    position: relative;
    min-height: 370px;
    padding: 34px;
    overflow: hidden;
    color: #fff;
    background: #171318;
    border-radius: 30px 30px 4px 30px;
    box-shadow: 0 28px 70px rgba(31, 19, 25, 0.18);
}

.tool-hero__note::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -85px;
    width: 230px;
    height: 230px;
    border: 54px solid rgba(255, 47, 116, 0.55);
    border-radius: 50%;
}

.tool-hero__number {
    display: block;
    color: var(--tool-pink);
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 7vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.tool-hero__note-label {
    margin: 42px 0 10px;
    color: #ff8eb4;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tool-hero__note h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.6vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.tool-hero__note > p:last-child {
    position: relative;
    z-index: 1;
    max-width: 330px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.88rem;
    line-height: 1.6;
}

.tool-hero__note--photo {
    color: var(--tool-ink);
    background: #ffd6e3;
}

.tool-hero__note--photo .tool-hero__number,
.tool-hero__note--photo .tool-hero__note-label { color: #b10f4d; }
.tool-hero__note--photo h2 { color: var(--tool-ink); }
.tool-hero__note--photo > p:last-child { color: rgba(21, 18, 24, 0.67); }
.tool-hero__note--photo::after { border-color: rgba(255, 255, 255, 0.55); }

.tool-workspace {
    padding: 82px 0 96px;
    background: var(--tool-paper);
}

.tool-section-head {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 42px;
}

.tool-section-head > span {
    color: var(--tool-pink);
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 0.85;
    letter-spacing: -0.07em;
}

.tool-section-head .tool-overline { margin-bottom: 10px; }

.tool-section-head h2 {
    max-width: 820px;
    margin: 0;
    color: var(--tool-ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.4vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.tool-section-head > div > p:last-child {
    max-width: 650px;
    margin: 18px 0 0;
    color: #6f6870;
    line-height: 1.65;
}

.tool-page .tool-workspace #inci {
    padding: 0;
    background: transparent;
}

.tool-page .tool-workspace #inci > .container {
    max-width: var(--container);
}

.tool-page .tool-workspace #inci .inci-header,
.tool-page .tool-workspace #inci .lab-modes {
    display: none !important;
}

.tool-page .tool-workspace #inci .lab-card {
    padding: clamp(24px, 4vw, 56px);
    background: #fff;
    border: 1px solid rgba(21, 18, 24, 0.16);
    border-radius: 4px 34px 34px 34px;
    box-shadow: 0 25px 70px rgba(35, 24, 29, 0.09);
}

.tool-page--compat #panel-analyze,
.tool-page--compat #panel-routine {
    display: none !important;
}

.tool-page--compat #panel-compat {
    display: block !important;
}

.tool-page--routine #panel-analyze {
    display: none !important;
}

.tool-page--routine #panel-compat,
.tool-page--routine #panel-routine {
    display: block !important;
}

.tool-page--routine #panel-compat {
    margin-bottom: 28px;
}

.tool-page--routine #panel-compat #compat-check-btn,
.tool-page--routine #panel-compat #compat-to-routine-btn,
.tool-page--routine #panel-compat #compat-loading,
.tool-page--routine #panel-compat #compat-result {
    display: none !important;
}

.tool-page--routine #panel-compat .lab-card::before {
    content: 'Шаг 1 · Добавьте средства';
    display: block;
    margin-bottom: 24px;
    color: var(--tool-pink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tool-page--routine #panel-routine .lab-card::before {
    content: 'Шаг 2 · Настройте программу';
    display: block;
    margin-bottom: 24px;
    color: var(--tool-pink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.routine-preferences {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(21, 18, 24, 0.12);
}

.routine-preferences .lab-input {
    width: 100%;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6d6269 50%), linear-gradient(135deg, #6d6269 50%, transparent 50%);
    background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.tool-explain {
    padding: 96px 0;
    background: #fff;
}

.tool-section-head--compact { margin-bottom: 46px; }

.tool-explain__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #1b171b;
    border-bottom: 1px solid #1b171b;
}

.tool-explain__grid article {
    min-height: 240px;
    padding: 34px 30px 38px;
    border-right: 1px solid rgba(21, 18, 24, 0.2);
}

.tool-explain__grid article:last-child { border-right: 0; }

.tool-explain__grid strong {
    display: block;
    margin-bottom: 58px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 1.05;
}

.tool-explain__grid p {
    margin: 0;
    color: #6c656d;
    font-size: 0.9rem;
    line-height: 1.7;
}

.tool-next {
    padding: 52px 0;
    color: #fff;
    background: #171318;
}

.tool-next__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
}

.tool-next .tool-overline { margin-bottom: 9px; }

.tool-next h2 {
    max-width: 750px;
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.8vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.tool-safety {
    padding: 54px 0 90px;
    background: #fff;
}

.tool-safety__inner {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 38px;
    color: #fff;
    background: #171318;
    border-radius: 4px 30px 30px 30px;
}

.tool-safety__inner > span {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    color: #171318;
    background: var(--tool-pink);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 2rem;
}

.tool-safety h2 {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    line-height: 1;
}

.tool-safety p {
    max-width: 850px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
}

.tool-page--photo #photo {
    padding-top: 88px;
    background: var(--tool-paper);
}

.tool-page--photo #photo .photo-header .section-label { display: none; }
.tool-page--photo #photo .photo-header .section-title {
    color: var(--tool-ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.4vw, 4.6rem);
    letter-spacing: -0.05em;
}

.tool-page--photo #photo .photo-workspace {
    border: 1px solid rgba(21, 18, 24, 0.16);
    border-radius: 4px 34px 34px 34px;
    box-shadow: 0 25px 70px rgba(35, 24, 29, 0.09);
}

/* Editorial authentication modal */
.auth-modal-backdrop {
    padding: 24px;
    background: rgba(18, 14, 17, 0.66);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-modal {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(380px, 1fr);
    width: min(940px, 100%);
    max-width: 940px;
    max-height: min(820px, calc(100vh - 48px));
    padding: 0;
    overflow: auto;
    background: #fff;
    border: 0;
    border-radius: 4px 32px 32px 32px;
    box-shadow: 0 40px 110px rgba(9, 7, 8, 0.34);
}

.auth-modal-story {
    position: relative;
    min-height: 650px;
    padding: 54px 42px;
    overflow: hidden;
    color: #fff;
    background: #171318;
}

.auth-modal-story::after {
    content: '';
    position: absolute;
    right: -105px;
    bottom: -115px;
    width: 300px;
    height: 300px;
    border: 70px solid rgba(255, 47, 116, 0.72);
    border-radius: 50%;
}

.auth-modal-story__overline,
.auth-modal-kicker {
    margin: 0 0 22px;
    color: #ff6b9d;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-modal-story h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 4vw, 3.8rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.auth-modal-story > p:not(.auth-modal-story__overline) {
    position: relative;
    z-index: 1;
    margin: 26px 0 38px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.88rem;
    line-height: 1.7;
}

.auth-modal-story ul {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-modal-story li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
}

.auth-modal-story li span { color: #ff6b9d; }

.auth-modal-panel {
    position: relative;
    padding: 54px 54px 36px;
}

.auth-modal-close {
    top: 20px;
    right: 20px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    color: #171318;
    background: #f6f1ef;
    border: 1px solid rgba(21, 18, 24, 0.14);
}

.auth-modal-head { padding-right: 36px; }
.auth-modal-kicker { display: block; margin-bottom: 10px; }

.auth-modal-head h3 {
    margin: 0 0 30px;
    color: #171318;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.auth-form { gap: 9px; }

.auth-form > label:not(.auth-check) {
    margin-top: 7px;
    color: #403a40;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form > label > span { color: #999097; font-weight: 500; text-transform: none; }

.auth-modal .lab-input {
    min-height: 54px;
    padding: 14px 16px;
    color: #171318;
    background: #faf7f5;
    border: 1px solid rgba(21, 18, 24, 0.18);
    border-radius: 12px;
}

.auth-modal .lab-input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(255, 47, 116, 0.09);
}

.auth-password-toggle {
    right: 12px;
    width: auto;
    min-width: 66px;
    padding: 0 9px;
    color: #6e666c;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 0.71rem;
    font-weight: 700;
}

.auth-password-wrap .auth-password-input { padding-right: 82px; }

.auth-check {
    align-items: flex-start;
    margin: 9px 0 2px;
    color: #6e666c;
    line-height: 1.45;
}

.auth-check input { accent-color: var(--rose); }
.auth-submit { min-height: 52px; border-radius: 12px; }

.auth-alt-action {
    margin-top: 11px;
    padding-top: 17px;
    border-top: 1px solid rgba(21, 18, 24, 0.1);
}

.auth-alt-action button { text-decoration: none; }

.auth-modal-alert {
    margin: 0 0 16px;
    border-radius: 10px;
}

.auth-user-box > p {
    margin: 0 0 20px;
    color: #625b62;
    line-height: 1.6;
}

.auth-user-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-user-actions .btn-secondary { display: inline-flex; justify-content: center; text-decoration: none; }
.auth-user-actions .auth-submit { width: auto; margin-top: 0; }

.auth-modal-privacy {
    margin: 24px 0 0;
    color: #918991;
    font-size: 0.7rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .tool-hero { padding-top: calc(var(--header-height) + 54px); }
    .tool-hero__grid { grid-template-columns: 1fr; gap: 42px; }
    .tool-hero__note { min-height: 310px; }
    .tool-explain__grid { grid-template-columns: 1fr; }
    .tool-explain__grid article { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(21, 18, 24, 0.2); }
    .tool-explain__grid article:last-child { border-bottom: 0; }
    .tool-explain__grid strong { margin-bottom: 24px; }
    .auth-modal { grid-template-columns: 1fr; max-width: 600px; }
    .auth-modal-story { display: none; }
}

@media (max-width: 640px) {
    .tool-hero { padding: 112px 0 56px; }
    .tool-hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
    .tool-hero__lead { margin-top: 22px; }
    .tool-hero__facts { display: grid; gap: 9px; }
    .tool-hero__note { min-height: 290px; padding: 26px; border-radius: 24px 24px 4px 24px; }
    .tool-hero__note-label { margin-top: 30px; }
    .tool-workspace, .tool-explain { padding: 60px 0; }
    .tool-section-head { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; margin-bottom: 28px; }
    .tool-section-head > span { font-size: 2.5rem; }
    .tool-page .tool-workspace #inci .lab-card { padding: 22px 18px; border-radius: 4px 22px 22px 22px; }
    .routine-preferences { grid-template-columns: 1fr; }
    .tool-explain__grid article { padding: 27px 20px; }
    .tool-next__inner { align-items: flex-start; flex-direction: column; }
    .tool-next__inner .btn-primary { width: 100%; justify-content: center; }
    .tool-safety__inner { grid-template-columns: 1fr; padding: 26px 22px; }
    .auth-modal-backdrop { padding: 10px; }
    .auth-modal { max-height: calc(100vh - 20px); border-radius: 4px 22px 22px 22px; }
    .auth-modal-panel { padding: 52px 22px 26px; }
    .auth-modal-head h3 { margin-bottom: 22px; }
    .auth-modal-close { top: 14px; right: 14px; }
}

/* Homepage hero v3 — editorial product scene with a result preview. */
#hero.hero-editorial .hero-editorial-visual--analysis {
    isolation: isolate;
    min-height: 650px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 14%, rgba(255, 47, 116, 0.2), transparent 30%),
        linear-gradient(145deg, #211b21 0%, #151216 70%);
}

#hero.hero-editorial .hero-editorial-visual--analysis::before {
    position: absolute;
    top: -74px;
    right: -62px;
    z-index: -1;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(255, 91, 145, 0.38);
    border-radius: 50%;
    content: "";
}

#hero.hero-editorial .hero-editorial-visual--analysis::after {
    position: absolute;
    bottom: -112px;
    left: -82px;
    z-index: -1;
    width: 310px;
    height: 310px;
    border: 58px solid rgba(255, 47, 116, 0.34);
    border-radius: 50%;
    content: "";
}

#hero.hero-editorial .hero-visual-number {
    position: absolute;
    top: 34px;
    left: 34px;
    color: #ff5b91;
    font-size: clamp(5rem, 7vw, 7.2rem);
    font-weight: 300;
    letter-spacing: -0.08em;
    line-height: 0.85;
}

#hero.hero-editorial .hero-visual-copy {
    position: absolute;
    top: 160px;
    left: 38px;
    z-index: 2;
    max-width: 330px;
}

#hero.hero-editorial .hero-visual-copy p {
    margin: 0 0 10px;
    color: #ff7ca8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#hero.hero-editorial .hero-visual-copy strong {
    display: block;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.3vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

#hero.hero-editorial .hero-product-image {
    position: absolute;
    bottom: -68px;
    left: -36px;
    z-index: 1;
    width: min(78%, 430px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.32));
}

#hero.hero-editorial .hero-analysis-card {
    position: absolute;
    right: 26px;
    bottom: 28px;
    z-index: 3;
    width: min(255px, calc(100% - 52px));
    padding: 20px;
    border-radius: 4px 22px 22px 22px;
    color: #171318;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

#hero.hero-editorial .hero-analysis-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
    color: #ff2f74;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#hero.hero-editorial .hero-analysis-card__head i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff2f74;
    box-shadow: 0 0 0 5px rgba(255, 47, 116, 0.12);
}

#hero.hero-editorial .hero-analysis-card > strong {
    display: block;
    margin-bottom: 15px;
    font-size: 1.04rem;
    letter-spacing: -0.025em;
    line-height: 1.28;
}

#hero.hero-editorial .hero-analysis-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 0 15px;
    border-bottom: 1px solid #e5dde1;
    color: #5f5960;
    font-size: 0.72rem;
    font-weight: 700;
    list-style: none;
}

#hero.hero-editorial .hero-analysis-card li {
    display: flex;
    align-items: center;
    gap: 8px;
}

#hero.hero-editorial .hero-analysis-card li > span {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

#hero.hero-editorial .hero-analysis-card .is-positive { background: #55a477; }
#hero.hero-editorial .hero-analysis-card .is-attention { background: #f0ad4e; }

#hero.hero-editorial .hero-analysis-card > p {
    margin: 13px 0 0;
    color: #777078;
    font-size: 0.69rem;
    line-height: 1.5;
}

@media (max-width: 1180px) and (min-width: 901px) {
    #hero.hero-editorial .hero-visual-copy {
        left: 32px;
    }

    #hero.hero-editorial .hero-product-image {
        left: -52px;
        width: 82%;
    }

    #hero.hero-editorial .hero-analysis-card {
        right: 20px;
        bottom: 24px;
        width: 230px;
        padding: 18px;
    }
}

#hero.hero-editorial {
    min-height: 720px;
    height: 100svh;
    max-height: 860px;
    overflow: hidden;
    background: #ffffff;
}

#hero.hero-editorial .hero-shell {
    min-height: 100%;
    height: 100%;
    overflow: hidden;
    padding-top: 106px;
    background: #ffffff;
}

#hero.hero-editorial .hero-container {
    min-height: 0;
}

#hero.hero-editorial .hero-main {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    align-items: stretch;
    gap: 18px;
}

#hero.hero-editorial .hero-inner {
    z-index: 4;
    max-width: 680px;
    justify-content: center;
    gap: 24px;
    padding: 32px 0 38px;
}

#hero.hero-editorial .hero-heading {
    max-width: 680px;
}

#hero.hero-editorial .hero-kicker {
    margin: 0 0 18px;
    color: #ff2f74;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.3;
    text-transform: uppercase;
}

#hero.hero-editorial .hero-title {
    max-width: 660px;
    color: #0f0f14;
    font-size: clamp(3rem, 4.5vw, 4.45rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.01;
}

#hero.hero-editorial .hero-body {
    max-width: 650px;
    gap: 26px;
}

#hero.hero-editorial .hero-note {
    max-width: 610px;
    color: #64646d;
    font-size: clamp(1.08rem, 1.4vw, 1.3rem);
    line-height: 1.48;
}

#hero.hero-editorial .hero-actions {
    gap: 14px;
}

#hero.hero-editorial .hero-actions .btn-primary,
#hero.hero-editorial .hero-actions .btn-secondary {
    min-height: 62px;
    padding: 0 34px;
    border-radius: 22px;
    font-size: 1.08rem;
    font-weight: 700;
}

#hero.hero-editorial .hero-actions .btn-primary {
    color: #ffffff;
    background: #ff2f74;
    border: 2px solid #ff2f74;
    box-shadow: 0 12px 28px rgba(255, 47, 116, 0.22);
}

#hero.hero-editorial .hero-actions .btn-primary:hover {
    background: #e91f63;
    border-color: #e91f63;
}

#hero.hero-editorial .hero-actions .btn-secondary {
    color: #0f0f14;
    background: #ffffff;
    border: 2px solid #ff2f74;
}

#hero.hero-editorial .hero-actions .btn-secondary:hover {
    color: #0f0f14;
    background: #fff6f9;
    border-color: #ff2f74;
}

.hero-editorial-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 520px;
    overflow: visible;
}

.hero-expert-image {
    position: absolute;
    z-index: 2;
    right: -2%;
    bottom: -14%;
    width: min(680px, 92%);
    height: auto;
    max-height: 122%;
    object-fit: contain;
    object-position: center bottom;
}

.hero-inci-preview {
    position: absolute;
    z-index: 4;
    top: 16%;
    left: 0;
    width: 176px;
    padding: 20px 22px;
    border: 1px solid #ededf0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 44px rgba(15, 15, 20, 0.08);
}

.hero-inci-preview strong {
    display: block;
    margin-bottom: 12px;
    color: #0f0f14;
    font-size: 1rem;
}

.hero-inci-preview span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 3px 0;
    color: #64646d;
    font-size: 0.72rem;
    line-height: 1.35;
}

.hero-inci-preview i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
}

.hero-inci-preview .is-safe { background: #67c943; }
.hero-inci-preview .is-attention { background: #ff2f74; }

.hero-visual-panel {
    position: absolute;
    z-index: 1;
    overflow: hidden;
    background: #fff4f8;
}

.hero-visual-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.65) brightness(1.55) contrast(0.72);
    opacity: 0.66;
}

.hero-visual-panel--right {
    right: -1%;
    top: 34%;
    width: 218px;
    height: 240px;
}

.hero-handnote {
    position: absolute;
    z-index: 5;
    top: 10%;
    right: -1%;
    width: 160px;
    margin: 0;
    color: #ff2f74;
    font-family: "Nunito", sans-serif;
    font-size: 1.08rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    transform: rotate(-6deg);
}

.hero-safety-note {
    position: absolute;
    z-index: 5;
    right: 2%;
    bottom: 6%;
    max-width: 164px;
    padding: 16px 18px;
    color: #64646d;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-safety-note span {
    display: block;
    width: 48px;
    height: 1px;
    margin-bottom: 10px;
    background: #64646d;
}

#hero.hero-editorial #features-bar {
    flex-shrink: 0;
    padding: 0;
    border-top: 1px solid #e2e2e6;
    background: #ffffff;
    box-shadow: none;
}

#hero.hero-editorial #features-bar .container {
    padding-top: 18px;
    padding-bottom: 18px;
}

#hero.hero-editorial .features-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#hero.hero-editorial .feat-item {
    justify-content: flex-start;
    gap: 16px;
    padding: 8px 28px;
}

#hero.hero-editorial .feat-item:not(:last-child)::after {
    height: 54px;
    background: #dedee3;
}

#hero.hero-editorial .feat-icon {
    width: 48px;
    height: 48px;
}

#hero.hero-editorial .feat-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

#hero.hero-editorial .feat-copy { min-width: 0; }

#hero.hero-editorial .feat-copy p {
    margin: 0 0 2px;
    color: #0f0f14;
    font-size: 0.98rem;
    font-weight: 800;
}

#hero.hero-editorial .feat-copy span {
    display: block;
    color: #74747d;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.35;
}

@media (max-width: 1180px) {
    #hero.hero-editorial .hero-main {
        grid-template-columns: minmax(0, 1fr) minmax(430px, 0.92fr);
    }

    #hero.hero-editorial .hero-title {
        font-size: clamp(2.9rem, 4.5vw, 3.8rem);
    }

    .hero-handnote,
    .hero-safety-note,
    .hero-visual-panel--right { display: none; }

    .hero-inci-preview { left: -2%; }
}

@media (max-width: 900px) {
    #hero.hero-editorial {
        height: auto;
        max-height: none;
    }

    #hero.hero-editorial .hero-shell {
        height: auto;
        min-height: 100svh;
        padding-top: 96px;
        overflow: hidden;
    }

    #hero.hero-editorial .hero-main { display: block; }

    #hero.hero-editorial .hero-inner {
        max-width: 720px;
        padding: 52px 0 20px;
    }

    #hero.hero-editorial .hero-title {
        max-width: 720px;
        font-size: clamp(3rem, 7.2vw, 4rem);
    }

    .hero-editorial-visual { min-height: 540px; }

    .hero-expert-image {
        right: 1%;
        bottom: -15%;
        width: min(610px, 82%);
    }

    .hero-inci-preview {
        top: 18%;
        left: 8%;
    }

}

@media (max-width: 640px) {
    #hero.hero-editorial .hero-shell { padding-top: 82px; }

    #hero.hero-editorial .hero-inner {
        padding: 34px 4px 16px;
        gap: 20px;
    }

    #hero.hero-editorial .hero-kicker {
        margin-bottom: 12px;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    #hero.hero-editorial .hero-title {
        font-size: clamp(2.45rem, 11.5vw, 3.15rem);
        line-height: 1.02;
    }

    #hero.hero-editorial .hero-note {
        max-width: 94%;
        font-size: 1rem;
        line-height: 1.5;
    }

    #hero.hero-editorial .hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #hero.hero-editorial .hero-actions .btn-primary,
    #hero.hero-editorial .hero-actions .btn-secondary {
        width: 100%;
        min-height: 56px;
        padding: 0 20px;
        border-radius: 18px;
        font-size: 1rem;
    }

    .hero-editorial-visual { min-height: 430px; }

    .hero-expert-image {
        right: -11%;
        bottom: -13%;
        width: 112%;
        max-height: 118%;
    }

    .hero-inci-preview {
        top: 13%;
        left: 0;
        width: 145px;
        padding: 14px 16px;
    }

    .hero-inci-preview span { font-size: 0.62rem; }
    .hero-visual-panel { display: none; }

    #hero.hero-editorial #features-bar .container {
        padding: 12px var(--container-gutter);
    }

    #hero.hero-editorial .features-bar-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #hero.hero-editorial .feat-item {
        min-width: 0;
        flex-direction: column;
        justify-content: flex-start;
        gap: 6px;
        padding: 6px 8px;
        text-align: center;
    }

    #hero.hero-editorial .feat-item:not(:last-child)::after { height: 64px; }

    #hero.hero-editorial .feat-icon,
    #hero.hero-editorial .feat-icon img {
        width: 34px;
        height: 34px;
    }

    #hero.hero-editorial .feat-copy p {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    #hero.hero-editorial .feat-copy span { display: none; }
}

/* Homepage: one editorial route from ingredients to a complete routine. */
.nsk-home-flow {
    position: relative;
    overflow: hidden;
    padding: 88px 0 74px;
    color: #151317;
    background:
        radial-gradient(circle at 92% 7%, rgba(255, 47, 116, 0.1) 0, rgba(255, 47, 116, 0) 26%),
        #f8f4f5;
}

.nsk-home-flow__header {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
    align-items: end;
    gap: 64px;
    margin-bottom: 42px;
    padding-top: 24px;
    border-top: 1px solid #d8d0d3;
}

.nsk-home-flow__header .section-title {
    margin: 0;
    font-size: clamp(2.55rem, 4.5vw, 4.8rem);
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.nsk-home-flow__lead {
    max-width: 670px;
    margin: 0 0 5px;
    color: #5f5a60;
    font-size: clamp(1.03rem, 1.35vw, 1.22rem);
    line-height: 1.55;
}

.nsk-home-flow__steps {
    display: grid;
    grid-template-columns: 1.06fr 1.16fr 0.98fr;
    isolation: isolate;
    border: 1px solid #d4ccd0;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(27, 18, 23, 0.08);
}

.nsk-home-flow__step {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 316px;
    padding: 34px 34px 32px;
    border: 0;
    border-radius: 34px 0 0 34px;
    color: #151317;
    background: #ffffff;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.24s ease, transform 0.24s ease;
}

/* Dedicated ingredient-check page. */
.composition-page {
    color: #151317;
    background: #f8f4f5;
}

.composition-page__hero {
    padding: 126px 0 58px;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 47, 116, 0.1) 0, rgba(255, 47, 116, 0) 28%),
        #f8f4f5;
}

.composition-page__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
    overflow: hidden;
    min-height: 570px;
    border: 1px solid #d4ccd0;
    border-radius: 38px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(27, 18, 23, 0.08);
}

.composition-page__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 58px 62px 48px;
}

.composition-page__overline {
    margin: 0 0 17px;
    color: #ff2f74;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.35;
    text-transform: uppercase;
}

.composition-page__intro h1 {
    max-width: 760px;
    margin: 0;
    color: #151317;
    font-size: clamp(3.15rem, 5.3vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.94;
}

.composition-page__lead {
    max-width: 720px;
    margin: 28px 0 0;
    color: #5f5a60;
    font-size: clamp(1.04rem, 1.3vw, 1.2rem);
    line-height: 1.6;
}

.composition-page__start {
    min-height: 58px;
    margin-top: 30px;
    padding: 0 28px;
    border-radius: 18px;
    text-decoration: none;
}

.composition-page__start > span {
    margin-left: 8px;
    font-size: 1.1rem;
}

.composition-page__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 22px;
    margin: 30px 0 0;
    padding: 19px 0 0;
    border-top: 1px solid #e3dde0;
    color: #777078;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
}

.composition-page__trust li {
    position: relative;
    padding-left: 15px;
}

.composition-page__trust li::before {
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff2f74;
    content: "";
}

.composition-page__guide {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 48px 44px 50px;
    color: #ffffff;
    background: #19161a;
}

.composition-page__guide::before {
    position: absolute;
    top: -95px;
    right: -80px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 91, 145, 0.35);
    border-radius: 50%;
    content: "";
}

.composition-page__guide-number {
    position: absolute;
    top: 38px;
    left: 42px;
    color: #ff5b91;
    font-size: clamp(5rem, 8vw, 8.5rem);
    font-weight: 300;
    letter-spacing: -0.08em;
    line-height: 0.85;
}

.composition-page__guide-kicker {
    margin: 0 0 12px;
    color: #aaa1a8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.composition-page__guide h2 {
    max-width: 390px;
    margin: 0 0 28px;
    color: #ffffff;
    font-size: clamp(1.65rem, 2.5vw, 2.45rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.composition-page__guide ol {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    color: #c8c1c7;
    font-size: 0.87rem;
    line-height: 1.5;
    list-style: none;
}

.composition-page__guide li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.composition-page__guide li > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
}

.composition-page__analyzer #inci {
    padding: 22px 0 96px;
    scroll-margin-top: 90px;
    background: #f8f4f5;
}

.composition-page #inci .inci-header,
.composition-page #inci .lab-modes,
.composition-page #panel-compat,
.composition-page #panel-routine {
    display: none !important;
}

.composition-page #panel-analyze {
    display: block !important;
}

.composition-page #inci .lab-card {
    padding: 48px 54px 50px;
    border: 1px solid #d4ccd0;
    border-radius: 38px;
    box-shadow: 0 24px 70px rgba(27, 18, 23, 0.07);
}

.composition-page #inci .lab-panel-heading {
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 30px;
}

.composition-page #inci .lab-step-label {
    order: 2;
    padding: 0 0 5px;
    border-radius: 0;
    color: #ff2f74;
    background: transparent;
    letter-spacing: 0.14em;
}

.composition-page #inci .lab-panel-heading h3 {
    font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.composition-page #inci .lab-panel-heading p {
    max-width: 650px;
    font-size: 0.98rem;
}

.composition-page #inci .lab-input,
.composition-page #inci .lab-textarea {
    border-color: #d4ccd0;
    background: #faf7f8;
}

.composition-page #inci .lab-textarea {
    min-height: 210px;
}

.composition-page #inci .inci-actions #inci-check-btn {
    border-radius: 18px;
}

.composition-page #inci-result.visible {
    margin-top: 28px;
    border: 1px solid #d4ccd0;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: none;
}

.composition-page__result-guide {
    padding: 90px 0 82px;
    background: #ffffff;
}

.composition-page__section-head {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
    align-items: end;
    gap: 60px;
    margin-bottom: 40px;
    padding-top: 22px;
    border-top: 1px solid #d8d0d3;
}

.composition-page__section-head h2,
.composition-page__context h2,
.composition-page__next h2,
.composition-page__faq h2 {
    margin: 0;
    color: #151317;
    font-size: clamp(2.45rem, 4.4vw, 4.6rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.composition-page__section-head > p {
    max-width: 680px;
    margin: 0 0 4px;
    color: #5f5a60;
    font-size: 1.08rem;
    line-height: 1.55;
}

.composition-page__result-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr 0.92fr;
    overflow: hidden;
    border: 1px solid #d4ccd0;
    border-radius: 34px;
}

.composition-page__result-grid article {
    min-height: 300px;
    padding: 34px;
    background: #ffffff;
}

.composition-page__result-grid article + article {
    border-left: 1px solid #d4ccd0;
    background: #fff7fa;
}

.composition-page__result-grid .composition-page__result-final {
    color: #ffffff;
    background: #19161a;
}

.composition-page__result-number {
    display: block;
    margin-bottom: 58px;
    color: #eadfe3;
    font-size: clamp(4.2rem, 5vw, 5.8rem);
    font-weight: 300;
    letter-spacing: -0.08em;
    line-height: 0.85;
}

.composition-page__result-grid article:nth-child(2) .composition-page__result-number {
    color: #f1cbd8;
}

.composition-page__result-final .composition-page__result-number {
    color: #ff5b91;
}

.composition-page__result-grid h3 {
    margin: 0 0 14px;
    color: inherit;
    font-size: clamp(1.25rem, 1.7vw, 1.58rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.composition-page__result-grid p {
    max-width: 340px;
    margin: 0;
    color: #686269;
    font-size: 0.9rem;
    line-height: 1.58;
}

.composition-page__result-final p {
    color: #c8c1c7;
}

.composition-page__context {
    padding: 94px 0;
    background: #f8f4f5;
}

.composition-page__context-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 80px;
    align-items: start;
}

.composition-page__context-copy {
    padding-top: 8px;
}

.composition-page__context-copy p {
    margin: 0;
    color: #5f5a60;
    font-size: 1.02rem;
    line-height: 1.72;
}

.composition-page__context-copy p + p {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #d8d0d3;
}

.composition-page__next {
    padding: 88px 0;
    background: #ffffff;
}

.composition-page__next-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    align-items: end;
    gap: 58px;
    padding: 52px 56px;
    border-radius: 34px;
    color: #ffffff;
    background: #19161a;
}

.composition-page__next .composition-page__overline {
    color: #ff5b91;
}

.composition-page__next h2 {
    max-width: 800px;
    color: #ffffff;
    font-size: clamp(2.3rem, 4vw, 4.2rem);
}

.composition-page__next-panel p:not(.composition-page__overline) {
    max-width: 720px;
    margin: 24px 0 0;
    color: #c8c1c7;
    font-size: 1rem;
    line-height: 1.6;
}

.composition-page__next-actions {
    display: grid;
    gap: 12px;
}

.composition-page__next-actions a {
    width: 100%;
    min-height: 56px;
    justify-content: center;
    border-radius: 18px;
    text-decoration: none;
}

.composition-page__next-actions .btn-secondary {
    color: #ffffff;
    background: transparent;
    border-color: #6d646c;
}

.composition-page__faq {
    padding: 90px 0 110px;
    background: #f8f4f5;
}

.composition-page__faq-grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.7fr) minmax(480px, 1.3fr);
    gap: 80px;
}

.composition-page__faq-list {
    border-top: 1px solid #cfc6ca;
}

.composition-page__faq details {
    padding: 0;
    border-bottom: 1px solid #cfc6ca;
}

.composition-page__faq summary {
    position: relative;
    padding: 24px 50px 24px 0;
    color: #151317;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.composition-page__faq summary::-webkit-details-marker {
    display: none;
}

.composition-page__faq summary::after {
    position: absolute;
    top: 22px;
    right: 2px;
    color: #ff2f74;
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}

.composition-page__faq details[open] summary::after {
    content: "−";
}

.composition-page__faq details p {
    max-width: 760px;
    margin: -4px 0 24px;
    color: #5f5a60;
    font-size: 0.94rem;
    line-height: 1.65;
}

@media (max-width: 980px) {
    .composition-page__hero-grid,
    .composition-page__section-head,
    .composition-page__context-grid,
    .composition-page__next-panel,
    .composition-page__faq-grid {
        grid-template-columns: 1fr;
    }

    .composition-page__hero-grid {
        border-radius: 30px;
    }

    .composition-page__guide {
        min-height: 470px;
    }

    .composition-page__result-grid {
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .composition-page__result-grid article + article {
        border-top: 1px solid #d4ccd0;
        border-left: 0;
    }

    .composition-page__result-grid article {
        min-height: 250px;
    }

    .composition-page__context-grid,
    .composition-page__faq-grid {
        gap: 42px;
    }
}

/* Keep footer v2 authoritative over legacy footer rules declared above. */
#site-footer {
    padding: 0;
    border-top: 0;
    color: #ffffff;
    background: #171419;
}

#site-footer .footer-top-row {
    grid-template-columns: minmax(300px, 0.82fr) minmax(560px, 1.18fr);
    align-items: stretch;
    gap: 24px;
    margin: 0;
    padding: 78px 0 62px;
}

#site-footer .footer-brand-left {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px 30px 12px 0;
}

#site-footer .footer-brand-kicker {
    max-width: none;
    margin: 0 0 36px;
    color: #ff679b;
    font-size: 0.72rem;
    line-height: 1.4;
}

#site-footer .footer-brand-left .logo {
    justify-content: flex-start;
    margin: 0 0 38px;
}

#site-footer .footer-brand-left .logo img {
    width: 190px;
}

#site-footer .footer-brand-left p.footer-brand-title {
    max-width: 520px;
    margin: auto 0 22px;
    color: #ffffff;
    font-size: clamp(2.3rem, 3.8vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

#site-footer .footer-brand-left p.footer-brand-copy {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.94rem;
    line-height: 1.62;
}

#site-footer .donate-block-right {
    min-height: 460px;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
    gap: 12px;
    padding: 52px 32px 44px 52px;
    border: 0;
    border-radius: 34px;
    background: #ff2f74;
    box-shadow: none;
}

#site-footer .donate-content { text-align: left; }

#site-footer .donate-label {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
}

#site-footer .donate-title {
    margin: 0 0 18px;
    color: #ffffff;
}

#site-footer .donate-copy {
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.78);
}

#site-footer .donate-btn {
    min-height: 58px;
    width: auto;
    padding: 9px 24px 9px 12px;
    border-radius: 18px;
    color: #171419;
    background: #ffffff;
    box-shadow: none;
}

#site-footer .donate-btn:hover {
    color: #ffffff;
    background: #171419;
    box-shadow: none;
}

#site-footer .heart-beat {
    width: 38px;
    height: 38px;
}

#site-footer .donate-text { color: inherit; }

#site-footer .donate-image {
    align-self: end;
    justify-self: end;
    order: initial;
}

#site-footer .donate-image img {
    width: 270px;
    margin: 0 -20px -48px 0;
}

#site-footer .footer-inner {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    height: auto;
    grid-template-columns: 1.25fr 0.9fr 1.2fr;
    gap: 8vw;
    margin: 0;
    padding: 50px 0 56px;
    border-left: 0;
    border-top-color: rgba(255, 255, 255, 0.2);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: auto;
    transition: none;
}

#site-footer .footer-col h4 {
    margin: 0 0 23px;
    color: #ff679b;
    font-size: 0.72rem;
}

#site-footer .footer-col a {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

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

#site-footer .footer-bottom {
    align-items: center;
    padding: 25px 0 31px;
    border-top-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.46);
    text-align: left;
}

#site-footer .footer-bottom span {
    max-width: 680px;
    margin: 0;
}

#site-footer .footer-bottom a { color: #ffffff; }

@media (max-width: 1024px) {
    #site-footer .footer-top-row {
        grid-template-columns: 1fr;
        padding: 64px 0 52px;
    }

    #site-footer .footer-brand-left {
        min-height: 430px;
        padding-right: 0;
    }

    #site-footer .donate-block-right {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    #site-footer .footer-top-row {
        gap: 32px;
        padding: 54px 0 42px;
    }

    #site-footer .footer-brand-left {
        min-height: 390px;
        padding-top: 25px;
    }

    #site-footer .footer-brand-left p.footer-brand-title {
        font-size: clamp(2.3rem, 12vw, 3.25rem);
    }

    #site-footer .donate-block-right {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 34px 25px 0;
        border-radius: 26px;
    }

    #site-footer .donate-btn {
        width: 100%;
        justify-content: center;
    }

    #site-footer .donate-image {
        margin-top: -10px;
    }

    #site-footer .donate-image img {
        width: 175px;
        margin: 0 -10px -20px 0;
    }

    #site-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 38px 24px;
        padding: 42px 0 45px;
    }

    #site-footer .footer-col:last-child { grid-column: 1 / -1; }

    #site-footer .footer-bottom {
        align-items: flex-start;
        padding-bottom: 28px;
    }
}

@media (max-width: 420px) {
    #site-footer .footer-brand-left { min-height: 360px; }
    #site-footer .footer-brand-left .logo img { width: 166px; }
    #site-footer .footer-brand-left p.footer-brand-copy { font-size: 0.88rem; }
    #site-footer .footer-inner { grid-template-columns: 1fr; }
    #site-footer .footer-col:last-child { grid-column: auto; }
}

/* Homepage content sequence: result, next services, editorial feed and FAQ. */

.home-result-example,
.home-capabilities,
.home-news,
.home-faq {
    position: relative;
    overflow: hidden;
}

.home-result-example,
.home-capabilities,
.home-news {
    padding: 108px 0;
}

.home-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.7fr);
    align-items: end;
    gap: 64px;
    margin-bottom: 48px;
    padding-top: 24px;
    border-top: 1px solid #d8d1d4;
}

.home-section-head h2,
.home-news__head h2,
.home-faq__intro h2 {
    margin: 0;
    color: #121116;
    font-size: clamp(2.45rem, 4.5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.home-section-head > p {
    max-width: 480px;
    margin: 0;
    color: #68636a;
    font-size: 1.06rem;
    line-height: 1.62;
}

.home-result-example {
    background: #ffffff;
}

.home-result-example::before {
    position: absolute;
    top: 115px;
    right: -100px;
    width: 270px;
    height: 270px;
    border: 1px solid #ffc5d9;
    border-radius: 50%;
    content: "";
}

.home-result-example__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(340px, 0.83fr) minmax(0, 1.17fr);
    overflow: hidden;
    border: 1px solid #d9d2d5;
    border-radius: 36px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(25, 18, 22, 0.07);
}

.home-result-example__summary {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    padding: 52px 48px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 47, 116, 0.34), transparent 27%),
        #18151a;
}

.home-result-example__label,
.home-result-example__row-label,
.home-capability__eyebrow,
.home-news__overline,
.home-faq__overline {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-result-example__label {
    color: #ff7eaa;
}

.home-result-example__product {
    margin: 54px 0 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
}

.home-result-example__summary h3 {
    max-width: 510px;
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(1.85rem, 2.8vw, 3rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.home-result-example__summary > p:not(.home-result-example__product) {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.65;
}

.home-result-example__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: fit-content;
    margin-top: auto;
    padding: 17px 22px;
    border-radius: 16px;
    color: #151217;
    background: #ffffff;
    font-size: 0.93rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.home-result-example__cta:hover {
    color: #ffffff;
    background: #ff2f74;
    transform: translateY(-2px);
}

.home-result-example__details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 52px;
}

.home-result-example__row {
    display: grid;
    grid-template-columns: 13px minmax(0, 1fr);
    gap: 24px;
    padding: 31px 0;
}

.home-result-example__row + .home-result-example__row {
    border-top: 1px solid #e7e1e4;
}

.home-result-example__row-mark {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
}

.home-result-example__row-mark.is-useful { background: #5cbb63; }
.home-result-example__row-mark.is-attention { background: #ff2f74; }
.home-result-example__row-mark.is-advice { background: #171419; }

.home-result-example__row-label {
    margin: 0 0 10px;
    color: #8a8389;
}

.home-result-example__row h3 {
    margin: 0 0 8px;
    color: #18151a;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.3;
}

.home-result-example__row p:last-child {
    max-width: 590px;
    margin: 0;
    color: #6b656b;
    font-size: 0.94rem;
    line-height: 1.58;
}

.home-result-example__note {
    margin: 18px 4px 0;
    color: #8d858b;
    font-size: 0.78rem;
    line-height: 1.5;
}

.home-capabilities {
    background: #f7f2f4;
}

.home-capabilities__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
    grid-template-rows: repeat(2, minmax(260px, 1fr));
    gap: 18px;
}

.home-capability {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    padding: 34px;
    border: 1px solid #d8d0d4;
    border-radius: 30px;
    color: #18151a;
    text-decoration: none;
    isolation: isolate;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-capability:hover {
    color: inherit;
    border-color: rgba(255, 47, 116, 0.5);
    box-shadow: 0 22px 50px rgba(28, 20, 24, 0.09);
    transform: translateY(-4px);
}

.home-capability--compare {
    grid-row: 1 / span 2;
    min-height: 560px;
    padding: 44px;
    background: #ffdce8;
}

.home-capability--routine {
    background: #ffffff;
}

.home-capability--photo {
    color: #ffffff;
    background: #18151a;
    border-color: #18151a;
}

.home-capability--photo:hover {
    color: #ffffff;
}

.home-capability__number {
    position: absolute;
    top: 34px;
    left: 34px;
    color: currentColor;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.home-capability__copy {
    position: relative;
    z-index: 3;
    display: flex;
    max-width: 62%;
    align-self: flex-end;
    flex-direction: column;
}

.home-capability--compare .home-capability__copy {
    max-width: 72%;
}

.home-capability__eyebrow {
    margin-bottom: 13px;
    color: #e52464;
}

.home-capability--photo .home-capability__eyebrow {
    color: #ff79a7;
}

.home-capability__copy strong {
    font-size: clamp(1.55rem, 2.6vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.home-capability--routine .home-capability__copy strong,
.home-capability--photo .home-capability__copy strong {
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.home-capability__copy > span:last-child {
    margin-top: 14px;
    color: #625c62;
    font-size: 0.91rem;
    line-height: 1.5;
}

.home-capability--photo .home-capability__copy > span:last-child {
    color: rgba(255, 255, 255, 0.66);
}

.home-capability img {
    position: absolute;
    z-index: 1;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.35s ease;
}

.home-capability:hover img {
    transform: scale(1.04) rotate(1deg);
}

.home-capability--compare img {
    top: 54px;
    right: 25px;
    width: 48%;
    height: 58%;
}

.home-capability--routine img,
.home-capability--photo img {
    top: 28px;
    right: 50px;
    width: 35%;
    height: 45%;
    opacity: 0.92;
}

.home-capability--photo img {
    opacity: 0.96;
    filter: none;
}

.home-capability__arrow {
    position: absolute;
    z-index: 4;
    top: 26px;
    right: 26px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 1.05rem;
}

.home-news {
    background: #ffffff;
}

.home-news__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
    padding-top: 24px;
    border-top: 1px solid #d8d1d4;
}

.home-news__overline,
.home-faq__overline {
    margin: 0 0 16px;
    color: #ff2f74;
}

.home-news__all {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    padding-bottom: 5px;
    border-bottom: 1px solid #18151a;
    color: #18151a;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.home-news__all:hover {
    color: #ff2f74;
    border-color: #ff2f74;
}

.home-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 22px;
}

.home-news-card {
    min-width: 0;
}

.home-news-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: #f1ebed;
}

.home-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-news-card:hover .home-news-card__media img {
    transform: scale(1.035);
}

.home-news-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #ff2f74;
    background: linear-gradient(145deg, #fff3f7, #f4e4ea);
    font-size: 4rem;
    font-weight: 800;
}

.home-news-card__meta {
    margin: 20px 0 9px;
    color: #8a8389;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.45;
    text-transform: uppercase;
}

.home-news-card h3 {
    margin: 0;
    font-size: clamp(1.15rem, 1.6vw, 1.48rem);
    font-weight: 780;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.home-news-card h3 a {
    color: #18151a;
    text-decoration: none;
}

.home-news-card h3 a:hover {
    color: #ff2f74;
}

.home-news__empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px 0;
    color: #777178;
}

.home-faq {
    padding: 108px 0 120px;
    background: #f7f2f4;
}

.home-faq__grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
    gap: 8vw;
}

.home-faq__intro {
    align-self: start;
    padding-top: 22px;
    border-top: 1px solid #d8d1d4;
}

.home-faq__intro > p:last-child {
    max-width: 390px;
    margin: 25px 0 0;
    color: #6b656b;
    font-size: 1rem;
    line-height: 1.65;
}

.home-faq__list {
    border-top: 1px solid #bfb7bb;
}

.home-faq__list details {
    border-bottom: 1px solid #d3cbcf;
}

.home-faq__list summary {
    position: relative;
    padding: 27px 62px 27px 0;
    color: #18151a;
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 780;
    line-height: 1.4;
    list-style: none;
}

.home-faq__list summary::-webkit-details-marker {
    display: none;
}

.home-faq__list summary::before,
.home-faq__list summary::after {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 18px;
    height: 1px;
    background: #18151a;
    content: "";
    transition: transform 0.2s ease;
}

.home-faq__list summary::after {
    transform: rotate(90deg);
}

.home-faq__list details[open] summary::after {
    transform: rotate(0);
}

.home-faq__list details p {
    max-width: 690px;
    margin: -6px 62px 0 0;
    padding: 0 0 27px;
    color: #686168;
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (max-width: 980px) {
    .home-result-example,
    .home-capabilities,
    .home-news,
    .home-faq {
        padding-top: 82px;
        padding-bottom: 82px;
    }

    .home-section-head {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-result-example__panel {
        grid-template-columns: 1fr;
    }

    .home-result-example__summary {
        min-height: 450px;
    }

    .home-capabilities__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .home-capability--compare {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 430px;
    }

    .home-capability--routine,
    .home-capability--photo {
        min-height: 310px;
    }

    .home-capability__copy {
        max-width: 78%;
    }

    .home-faq__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 720px) {
    .home-news__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-news-card__media {
        aspect-ratio: 16 / 11;
    }

    .home-capabilities__grid {
        display: flex;
        flex-direction: column;
    }

    .home-capability,
    .home-capability--compare,
    .home-capability--routine,
    .home-capability--photo {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .home-result-example,
    .home-capabilities,
    .home-news,
    .home-faq {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .home-section-head,
    .home-news__head {
        margin-bottom: 32px;
    }

    .home-section-head h2,
    .home-news__head h2,
    .home-faq__intro h2 {
        font-size: clamp(2.25rem, 11vw, 3rem);
    }

    .home-result-example__panel {
        border-radius: 25px;
    }

    .home-result-example__summary {
        min-height: 470px;
        padding: 34px 26px;
    }

    .home-result-example__product {
        margin-top: 44px;
    }

    .home-result-example__details {
        padding: 12px 26px;
    }

    .home-result-example__row {
        grid-template-columns: 10px minmax(0, 1fr);
        gap: 16px;
        padding: 27px 0;
    }

    .home-result-example__cta {
        width: 100%;
    }

    .home-capability,
    .home-capability--compare,
    .home-capability--routine,
    .home-capability--photo {
        min-height: 370px;
        padding: 28px;
        border-radius: 25px;
    }

    .home-capability__number {
        top: 27px;
        left: 28px;
    }

    .home-capability__arrow {
        top: 20px;
        right: 20px;
    }

    .home-capability__copy,
    .home-capability--compare .home-capability__copy {
        max-width: 93%;
    }

    .home-capability--compare img,
    .home-capability--routine img,
    .home-capability--photo img {
        top: 48px;
        right: 18px;
        width: 55%;
        height: 48%;
        opacity: 0.92;
    }

    .home-capability--compare img {
        opacity: 1;
    }

    .home-news__head {
        align-items: flex-end;
    }

    .home-news__all {
        gap: 7px;
        font-size: 0.8rem;
    }

    .home-news-card__media {
        border-radius: 20px;
    }

    .home-faq__grid {
        gap: 34px;
    }

    .home-faq__list summary {
        padding-top: 23px;
        padding-bottom: 23px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-capability,
    .home-capability img,
    .home-news-card__media img,
    .home-result-example__cta {
        transition: none;
    }
}

/* Footer v2: a dark editorial close to the homepage story. */
footer.site-footer-editorial {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-top: 0;
    color: #ffffff;
    background: #171419;
}

footer.site-footer-editorial::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: #ff2f74;
    content: "";
}

footer.site-footer-editorial .footer-top-row {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(560px, 1.18fr);
    align-items: stretch;
    gap: 24px;
    margin: 0;
    padding: 78px 0 62px;
}

footer.site-footer-editorial .footer-brand-left {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    padding: 30px 30px 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

footer.site-footer-editorial .footer-brand-kicker {
    margin: 0 0 36px;
    color: #ff679b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
}

footer.site-footer-editorial .footer-brand-left .logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 38px;
    padding: 13px 18px;
    border-radius: 18px;
    background: #ffffff;
}

footer.site-footer-editorial .footer-brand-left .logo img {
    width: 190px;
    height: auto;
}

footer.site-footer-editorial .footer-brand-title {
    max-width: 520px;
    margin: auto 0 22px;
    color: #ffffff;
    font-size: clamp(2.3rem, 3.8vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

footer.site-footer-editorial .footer-brand-copy {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.94rem;
    line-height: 1.62;
}

footer.site-footer-editorial .donate-block-right {
    position: relative;
    display: grid;
    min-height: 460px;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 52px 32px 44px 52px;
    border: 0;
    border-radius: 34px;
    background: #ff2f74;
    box-shadow: none;
    isolation: isolate;
}

footer.site-footer-editorial .donate-block-right::before {
    position: absolute;
    z-index: -1;
    top: -125px;
    right: -95px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    content: "";
}

footer.site-footer-editorial .donate-block-right::after {
    position: absolute;
    z-index: -1;
    right: 195px;
    bottom: -150px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;
    content: "";
}

footer.site-footer-editorial .donate-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

footer.site-footer-editorial .donate-label {
    display: block;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.17em;
}

footer.site-footer-editorial .donate-title {
    max-width: 540px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.15rem, 3.2vw, 3.65rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.99;
}

footer.site-footer-editorial .donate-copy {
    max-width: 490px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    line-height: 1.56;
}

footer.site-footer-editorial .donate-btn {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    gap: 11px;
    padding: 9px 24px 9px 12px;
    border: 0;
    border-radius: 18px;
    color: #171419;
    background: #ffffff;
    box-shadow: none;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

footer.site-footer-editorial .donate-btn:hover {
    color: #ffffff;
    background: #171419;
    box-shadow: none;
    transform: translateY(-2px);
}

footer.site-footer-editorial .heart-beat {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

footer.site-footer-editorial .donate-text {
    color: inherit;
    font-size: 0.9rem;
    font-weight: 800;
}

footer.site-footer-editorial .donate-image {
    position: relative;
    z-index: 1;
    align-self: end;
    justify-self: end;
}

footer.site-footer-editorial .donate-image img {
    width: 270px;
    max-width: none;
    margin: 0 -20px -48px 0;
    filter: drop-shadow(0 22px 26px rgba(87, 0, 29, 0.16));
}

footer.site-footer-editorial .footer-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr 1.2fr;
    gap: 8vw;
    margin: 0;
    padding: 50px 0 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer.site-footer-editorial .footer-col {
    min-width: 0;
}

footer.site-footer-editorial .footer-col h4 {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 23px;
    color: #ff679b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

footer.site-footer-editorial .footer-column-index {
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.08em;
}

footer.site-footer-editorial .footer-col a {
    display: block;
    width: fit-content;
    margin: 0 0 12px;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.42;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

footer.site-footer-editorial .footer-col a:hover {
    color: #ffffff;
    border-color: #ff679b;
}

footer.site-footer-editorial .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin: 0;
    padding: 25px 0 31px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.73rem;
    line-height: 1.5;
}

footer.site-footer-editorial .footer-bottom > span {
    max-width: 680px;
}

footer.site-footer-editorial .footer-social-links {
    display: flex;
    align-items: center;
    gap: 21px;
}

footer.site-footer-editorial .footer-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

footer.site-footer-editorial .footer-bottom a:hover {
    color: #ff679b;
}

@media (max-width: 1024px) {
    footer.site-footer-editorial .footer-top-row {
        grid-template-columns: 1fr;
        padding: 64px 0 52px;
    }

    footer.site-footer-editorial .footer-brand-left {
        min-height: 430px;
        padding-right: 0;
    }

    footer.site-footer-editorial .footer-brand-title {
        max-width: 760px;
    }

    footer.site-footer-editorial .donate-block-right {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    footer.site-footer-editorial .footer-top-row {
        gap: 32px;
        padding: 54px 0 42px;
    }

    footer.site-footer-editorial .footer-brand-left {
        min-height: 390px;
        padding-top: 25px;
    }

    footer.site-footer-editorial .footer-brand-kicker {
        margin-bottom: 28px;
    }

    footer.site-footer-editorial .footer-brand-left .logo {
        margin-bottom: 32px;
    }

    footer.site-footer-editorial .donate-block-right {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 34px 25px 0;
        border-radius: 26px;
    }

    footer.site-footer-editorial .donate-title {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    footer.site-footer-editorial .donate-btn {
        width: 100%;
        justify-content: center;
    }

    footer.site-footer-editorial .donate-image {
        margin-top: -10px;
    }

    footer.site-footer-editorial .donate-image img {
        width: 175px;
        margin: 0 -10px -20px 0;
    }

    footer.site-footer-editorial .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 38px 24px;
        padding: 42px 0 45px;
    }

    footer.site-footer-editorial .footer-col:last-child {
        grid-column: 1 / -1;
    }

    footer.site-footer-editorial .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 19px;
        padding-bottom: 28px;
        text-align: left;
    }

    footer.site-footer-editorial .footer-social-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    footer.site-footer-editorial .footer-brand-left {
        min-height: 360px;
    }

    footer.site-footer-editorial .footer-brand-left .logo {
        padding: 11px 15px;
    }

    footer.site-footer-editorial .footer-brand-left .logo img {
        width: 166px;
    }

    footer.site-footer-editorial .footer-brand-copy {
        font-size: 0.88rem;
    }

    footer.site-footer-editorial .footer-inner {
        grid-template-columns: 1fr;
        gap: 31px;
    }

    footer.site-footer-editorial .footer-col:last-child {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    footer.site-footer-editorial .donate-btn,
    footer.site-footer-editorial .footer-col a {
        transition: none;
    }
}

@media (max-width: 640px) {
    .composition-page__hero {
        padding: 92px 0 34px;
    }

    .composition-page__hero-grid {
        border-radius: 24px;
    }

    .composition-page__intro {
        padding: 32px 20px 28px;
    }

    .composition-page__intro h1 {
        font-size: clamp(2.55rem, 12vw, 3.35rem);
    }

    .composition-page__lead {
        margin-top: 21px;
        font-size: 0.96rem;
    }

    .composition-page__start {
        width: 100%;
        justify-content: center;
    }

    .composition-page__trust {
        display: grid;
        gap: 9px;
        margin-top: 24px;
    }

    .composition-page__guide {
        min-height: 430px;
        padding: 40px 24px 34px;
    }

    .composition-page__guide-number {
        top: 35px;
        left: 24px;
    }

    .composition-page__analyzer #inci {
        padding: 16px 0 64px;
    }

    .composition-page #inci .lab-card {
        padding: 27px 18px 25px;
        border-radius: 24px;
    }

    .composition-page #inci .lab-panel-heading {
        display: block;
        padding-bottom: 23px;
    }

    .composition-page #inci .lab-step-label {
        display: block;
        margin: 0 0 13px;
    }

    .composition-page #inci .lab-panel-heading h3 {
        font-size: 2rem;
    }

    .composition-page #inci .lab-textarea {
        min-height: 170px;
    }

    .composition-page__result-guide,
    .composition-page__context,
    .composition-page__next,
    .composition-page__faq {
        padding: 62px 0;
    }

    .composition-page__section-head {
        gap: 17px;
        margin-bottom: 28px;
    }

    .composition-page__section-head h2,
    .composition-page__context h2,
    .composition-page__faq h2 {
        font-size: clamp(2.4rem, 11vw, 3.1rem);
    }

    .composition-page__section-head > p {
        font-size: 0.96rem;
    }

    .composition-page__result-grid article {
        min-height: 230px;
        padding: 27px 24px;
    }

    .composition-page__result-number {
        margin-bottom: 35px;
    }

    .composition-page__next-panel {
        gap: 34px;
        padding: 34px 24px;
        border-radius: 26px;
    }

    .composition-page__next h2 {
        font-size: clamp(2.2rem, 10vw, 2.9rem);
    }

    .composition-page__faq-grid {
        gap: 30px;
    }
}

.nsk-home-flow__step + .nsk-home-flow__step {
    border-left: 1px solid #d4ccd0;
    border-radius: 0;
}

.nsk-home-flow__step:nth-child(2) {
    background: #fff7fa;
}

.nsk-home-flow__step--finish,
.nsk-home-flow__step + .nsk-home-flow__step--finish {
    border-color: #19161a;
    border-radius: 0 34px 34px 0;
    color: #ffffff;
    background: #19161a;
}

.nsk-home-flow__step:not(.nsk-home-flow__step--finish):hover {
    background: #fff0f5;
}

.nsk-home-flow__step--finish:hover {
    background: #29242a;
}

.nsk-home-flow__step:focus-visible {
    z-index: 5;
    outline: 3px solid rgba(255, 47, 116, 0.38);
    outline-offset: 4px;
}

.nsk-home-flow__step:not(:last-child)::after {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: -21px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: #ff2f74;
    box-shadow: 0 8px 22px rgba(255, 47, 116, 0.27);
    content: "→";
    font-size: 1.1rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.24s ease;
}

.nsk-home-flow__step:not(:last-child):hover::after {
    transform: translate(4px, -50%);
}

.nsk-home-flow__number {
    display: block;
    margin: -8px 0 26px;
    color: #eadfe3;
    font-size: clamp(4.2rem, 5.6vw, 6.1rem);
    font-weight: 300;
    letter-spacing: -0.08em;
    line-height: 0.9;
}

.nsk-home-flow__step:nth-child(2) .nsk-home-flow__number {
    color: #f1cbd8;
}

.nsk-home-flow__step--finish .nsk-home-flow__number {
    color: #ff5b91;
}

.nsk-home-flow__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.nsk-home-flow__kicker {
    margin-bottom: 10px;
    color: #a49ca1;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.nsk-home-flow__copy strong {
    max-width: 270px;
    margin-bottom: 13px;
    color: inherit;
    font-size: clamp(1.25rem, 1.7vw, 1.62rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.nsk-home-flow__copy > span:not(.nsk-home-flow__kicker):not(.nsk-home-flow__action) {
    max-width: 305px;
    color: #686269;
    font-size: 0.88rem;
    line-height: 1.55;
}

.nsk-home-flow__step--finish .nsk-home-flow__kicker,
.nsk-home-flow__step--finish .nsk-home-flow__copy > span:not(.nsk-home-flow__kicker):not(.nsk-home-flow__action) {
    color: #c8c1c7;
}

.nsk-home-flow__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    color: #ff2f74;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.3;
}

.nsk-home-flow__action > span {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.nsk-home-flow__step:hover .nsk-home-flow__action > span {
    transform: translate(3px, -3px);
}

.nsk-home-flow__step--finish .nsk-home-flow__action {
    color: #ffffff;
}

.nsk-home-flow__note {
    margin: 20px 0 0;
    color: #898187;
    font-size: 0.74rem;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .nsk-home-flow__header {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nsk-home-flow__steps {
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .nsk-home-flow__step,
    .nsk-home-flow__step + .nsk-home-flow__step,
    .nsk-home-flow__step + .nsk-home-flow__step--finish {
        min-height: 250px;
        border-left: 0;
        border-radius: 0;
    }

    .nsk-home-flow__step:first-child {
        border-radius: 26px 26px 0 0;
    }

    .nsk-home-flow__step + .nsk-home-flow__step {
        border-top: 1px solid #d4ccd0;
    }

    .nsk-home-flow__step--finish,
    .nsk-home-flow__step + .nsk-home-flow__step--finish {
        border-radius: 0 0 26px 26px;
    }

    .nsk-home-flow__step:not(:last-child)::after {
        top: auto;
        right: 30px;
        bottom: -21px;
        transform: rotate(90deg);
    }

    .nsk-home-flow__step:not(:last-child):hover::after {
        transform: translateY(4px) rotate(90deg);
    }
}

@media (max-width: 640px) {
    .nsk-home-flow {
        padding: 62px 0 52px;
    }

    .nsk-home-flow__header {
        margin-bottom: 28px;
        padding-top: 18px;
    }

    .nsk-home-flow__header .section-title {
        font-size: clamp(2.45rem, 12vw, 3.25rem);
    }

    .nsk-home-flow__lead {
        font-size: 0.96rem;
    }

    .nsk-home-flow__step,
    .nsk-home-flow__step + .nsk-home-flow__step,
    .nsk-home-flow__step + .nsk-home-flow__step--finish {
        min-height: 236px;
        padding: 27px 24px 25px;
    }

    .nsk-home-flow__number {
        margin-bottom: 18px;
        font-size: 4.5rem;
    }

    .nsk-home-flow__copy strong {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nsk-home-flow__step,
    .nsk-home-flow__step::after,
    .nsk-home-flow__action > span {
        transition: none;
    }
}

/* AI laboratory: clear two-step flow in the homepage editorial style. */
#inci {
    padding: 112px 0 120px;
    background: #ffffff;
    scroll-margin-top: 88px;
}

#inci::before { display: none; }

#inci .inci-header {
    max-width: 860px;
    margin: 0 0 42px;
    text-align: left;
}

#inci .inci-header .section-label {
    color: #ff2f74;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#inci .inci-header .section-title {
    margin: 12px 0 14px;
    color: #0f0f14;
    font-size: clamp(2.5rem, 4.6vw, 4.3rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.inci-header-note {
    margin: 0;
    color: #6a6a73;
    font-size: 1.06rem;
    line-height: 1.5;
}

#inci .lab-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

#inci .lab-mode-btn {
    min-height: 142px;
    padding: 22px 58px 22px 22px;
    border: 1px solid #dcdce2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: none;
    color: #0f0f14;
}

#inci .lab-mode-btn::after { display: none; }

#inci .lab-mode-btn:hover {
    border-color: #0f0f14;
    transform: translateY(-2px);
}

#inci .lab-mode-btn.active {
    border: 2px solid #ff2f74;
    background: #fff7fa;
    box-shadow: 0 12px 30px rgba(255, 47, 116, 0.1);
}

.lab-mode-number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #a2a2aa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.lab-mode-btn.active .lab-mode-number { color: #ff2f74; }

#inci .lab-mode-icon {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin: 0;
}

#inci .lab-mode-icon img {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    object-fit: contain;
}

#inci .lab-mode-title {
    margin-bottom: 6px;
    color: #0f0f14;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}

#inci .lab-mode-sub {
    color: #73737c;
    font-size: 0.78rem;
    line-height: 1.42;
}

#inci .lab-card {
    padding: 46px;
    border: 1px solid #dcdce2;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(15, 15, 20, 0.06);
}

.lab-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e5e9;
}

.lab-step-label {
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 100px;
    color: #ffffff;
    background: #ff2f74;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lab-panel-heading h3 {
    margin: -3px 0 6px;
    color: #0f0f14;
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.lab-panel-heading p {
    margin: 0;
    color: #73737c;
    font-size: 0.92rem;
    line-height: 1.5;
}

#inci .inci-split {
    display: block;
    margin-bottom: 22px;
}

#inci .lab-section-title {
    display: block;
    margin-bottom: 9px;
    color: #0f0f14;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.lab-optional {
    margin-left: 7px;
    color: #8b8b94;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.lab-required {
    margin-left: 7px;
    color: #ff2f74;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.lab-field-help {
    display: block;
    margin-top: 7px;
    color: #73737c;
    font-size: 0.75rem;
    line-height: 1.45;
}

#inci .lab-input,
#inci .lab-textarea {
    border: 1px solid #cfcfd6;
    border-radius: 16px;
    background: #ffffff;
    color: #0f0f14;
}

#inci .lab-input { min-height: 56px; }
#inci .lab-textarea { min-height: 180px; }

#inci .lab-input:focus,
#inci .lab-textarea:focus {
    border-color: #ff2f74;
    box-shadow: 0 0 0 4px rgba(255, 47, 116, 0.09);
}

#inci .lab-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.09);
}

#inci .inci-actions {
    display: block;
    margin-top: 24px;
}

#inci .inci-actions #inci-check-btn {
    width: min(100%, 390px);
    min-height: 60px;
    justify-content: center;
    border: 2px solid #ff2f74;
    border-radius: 20px;
    background: #ff2f74;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(255, 47, 116, 0.2);
}

.inci-usage-hint {
    min-height: 20px;
    margin-top: 11px;
    color: #73737c;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}

.inci-result-tools {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

#inci-result.visible + .inci-result-tools { display: flex; }

#inci-loading,
#inci-result {
    scroll-margin-top: 112px;
}

.inci-next-actions {
    display: none;
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin-top: 18px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid #dedadd;
    border-radius: 18px;
    background: #f3f1f2;
    color: #171318;
    box-shadow: none;
}

.inci-next-actions::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: #171318;
    content: '';
}

#inci-result.visible.has-report ~ .inci-next-actions { display: grid; }

#inci-next-result.visible.has-report ~ .inci-next-report-actions { display: grid; }

.inci-next-actions__copy { max-width: 560px; }

.inci-next-actions__step {
    display: block;
    margin-bottom: 7px;
    color: #746e72;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.inci-next-actions h3 {
    margin: 0;
    color: #171318;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.15;
}

.inci-next-actions p {
    margin: 9px 0 0;
    color: #6d6970;
    font-size: 0.88rem;
    line-height: 1.5;
}

.inci-next-actions__buttons {
    display: grid;
    grid-template-columns: minmax(210px, 0.9fr) minmax(230px, 1.1fr);
    align-items: stretch;
    gap: 10px;
}

.inci-next-actions__controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    min-width: min(100%, 500px);
}

.inci-next-actions__buttons .btn-secondary {
    border-color: #8d888c;
    background: #ffffff;
    color: #242127;
}

.inci-next-actions__buttons .btn-secondary:hover {
    border-color: #171318;
    background: #f5f3f3;
    color: #171318;
}

.inci-next-actions__buttons .btn-primary,
.inci-next-actions__buttons .btn-secondary {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
}

.inci-next-actions__buttons .btn-primary {
    border-color: #171318;
    background: #171318;
    color: #ffffff;
    box-shadow: none;
}

.inci-next-actions__buttons .btn-primary:hover {
    border-color: #2d292e;
    background: #2d292e;
    transform: translateY(-1px);
}

.inci-next-actions__buttons .btn-primary.is-saved {
    background: #f1f5f2;
    border-color: #9caf9f;
    color: #285f47;
    box-shadow: none;
}

.inci-next-actions__buttons .btn-secondary.is-saved {
    border-color: #9caf9f;
    background: #f1f5f2;
    color: #285f47;
}

.inci-next-actions__text-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 18px;
    flex-wrap: wrap;
}

.inci-text-action {
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: #5f5b63;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.65;
    cursor: pointer;
}

.inci-text-action:hover,
.inci-text-action:focus-visible {
    border-bottom-color: #171318;
    color: #171318;
    outline: none;
}

.inci-new-analysis-form {
    display: block;
    margin-top: 28px;
    padding: 32px;
    border: 1px solid #d8d4d6;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(40, 31, 36, 0.06);
}

.inci-new-analysis-form[hidden] { display: none !important; }

.inci-new-analysis-form__head {
    position: relative;
    margin-bottom: 28px;
    padding-right: 82px;
}

.inci-new-analysis-form__head .lab-step-label {
    background: #171318;
}

.inci-new-analysis-form__close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid #aaa5ad;
    background: transparent;
    color: #5f5b63;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

#inci .inci-new-analysis-form .lab-input,
#inci .inci-new-analysis-form .lab-textarea {
    width: 100%;
    margin: 0;
    border-radius: 16px;
    background: #ffffff;
}

#inci .inci-new-analysis-form .lab-input { min-height: 56px; }

#inci .inci-new-analysis-form .lab-textarea {
    min-height: 180px;
    resize: vertical;
}

.inci-new-analysis-form__composition { margin-top: 6px; }

.inci-new-analysis-form .inci-hint-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    color: #8a8589;
    font-size: 0.74rem;
}

.inci-new-analysis-form__submit {
    width: min(100%, 390px);
    min-height: 60px;
    justify-content: center;
    border: 2px solid #ff2f74;
    border-radius: 20px;
    background: #ff2f74;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(255, 47, 116, 0.18);
}

.inci-next-result {
    margin-top: 30px;
}

.inci-next-report-actions {
    margin-top: 18px;
    background: #faf8f9;
}

.inci-next-report-actions .inci-next-actions__buttons {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.inci-next-report-actions .inci-next-actions__controls {
    min-width: min(100%, 570px);
}

.is-primary-report-locked #inci-product-name,
.is-primary-report-locked #inci-input {
    border-color: #dedadd;
    background: #f5f3f4;
    color: #5f5a5e;
    cursor: default;
}

.is-primary-report-locked #inci-check-btn[hidden] { display: none !important; }

.inci-additional-reports:empty { display: none; }

.inci-history-report {
    margin-top: 30px;
    padding: 28px;
    border: 1px solid #d8d4d6;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(40, 31, 36, 0.05);
}

.inci-history-report__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.inci-history-report__heading h3 {
    margin: 0;
    color: #171318;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.inci-history-report__locked {
    padding: 7px 11px;
    border: 1px solid #d9d5d7;
    border-radius: 999px;
    color: #6d6970;
    background: #f8f6f7;
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
}

.inci-history-report__composition {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #e1dde0;
    border-radius: 12px;
    background: #faf9f9;
    color: #5f5a5e;
    font-size: 0.82rem;
}

.inci-history-report__composition summary {
    color: #272329;
    font-weight: 750;
    cursor: pointer;
}

.inci-history-report__composition p {
    margin: 10px 0 0;
    overflow-wrap: anywhere;
}

.inci-history-report__result { margin-top: 0; }

.inci-history-actions {
    display: grid;
    margin-top: 18px;
}

.inci-history-actions .inci-next-actions__buttons {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
}

.inci-payment-placeholder {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid #d8d4d6;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff 0%, #faf3f6 100%);
}

.inci-payment-placeholder[hidden] { display: none !important; }

.inci-payment-placeholder h3 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.inci-payment-placeholder p {
    max-width: 640px;
    margin: 0 0 18px;
    color: #6d6970;
}

.inci-payment-placeholder .btn-secondary[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
}

.inci-print-sheet { display: none; }

@media (max-width: 900px) {
    #inci { padding: 82px 0 92px; }

    #inci .lab-modes { grid-template-columns: 1fr; }

    #inci .lab-mode-btn {
        min-height: 112px;
        padding: 18px 56px 18px 18px;
    }

    #inci .lab-mode-icon img {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }
}

@media (max-width: 640px) {
    #inci { padding: 64px 0 76px; }

    /* iOS Safari увеличивает страницу при фокусе на полях с шрифтом меньше 16px. */
    #inci input[type="text"],
    #inci input[type="search"],
    #inci input[type="email"],
    #inci input[type="tel"],
    #inci input[type="url"],
    #inci textarea,
    #inci select {
        font-size: 16px;
    }

    #inci .inci-header { margin-bottom: 30px; }

    #inci .inci-header .section-title {
        font-size: clamp(2.25rem, 11vw, 3rem);
    }

    .inci-header-note { font-size: 0.94rem; }

    #inci .lab-mode-btn { border-radius: 18px; }

    #inci .lab-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .lab-panel-heading {
        display: block;
        margin-bottom: 24px;
        padding-bottom: 22px;
    }

    .lab-step-label {
        display: inline-block;
        margin-bottom: 16px;
    }

    #inci .lab-textarea { min-height: 150px; }

    #inci .inci-actions #inci-check-btn { width: 100%; }

    .inci-result-tools { align-items: stretch; }
    .inci-result-tools .btn-secondary { width: 100%; justify-content: center; }

    .inci-next-actions {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .inci-next-actions__buttons {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .inci-next-actions__buttons .btn-primary,
    .inci-next-actions__buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .inci-next-actions__controls { min-width: 0; }

    .inci-next-actions__text-actions {
        justify-content: flex-start;
        gap: 7px 16px;
    }

    .inci-new-analysis-form {
        margin-top: 22px;
        padding: 24px 18px;
        border-radius: 18px;
    }
    .inci-new-analysis-form__head { padding-right: 62px; }
    #inci .inci-new-analysis-form .lab-textarea { min-height: 150px; }
    .inci-new-analysis-form__submit { width: 100%; }
    .inci-next-result { margin-top: 24px; }
    .inci-next-report-actions .inci-next-actions__buttons { grid-template-columns: 1fr; }
    .inci-history-report,
    .inci-payment-placeholder { padding: 22px 18px; border-radius: 18px; }
    .inci-history-report__heading { display: block; }
    .inci-history-report__locked { display: inline-block; margin-top: 12px; white-space: normal; }
    .inci-history-actions .inci-next-actions__buttons { grid-template-columns: 1fr; }
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    html,
    body.print-inci-report {
        width: auto !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    body.print-inci-report > *:not(.inci-print-sheet) {
        display: none !important;
    }

    body.print-inci-report > .inci-print-sheet {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .inci-print-sheet__heading {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 18px;
        margin: 0 0 16px;
        padding: 0 0 12px;
        border-bottom: 1px solid #d8d8dc;
        color: #171318;
    }

    .inci-print-sheet__heading strong { font-size: 15pt; }
    .inci-print-sheet__heading span { color: #62626a; font-size: 9pt; }

    .inci-print-sheet .ai-result {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        break-inside: auto;
    }

    .inci-print-sheet .ai-result-header,
    .inci-print-sheet .inci-report__verdict {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .inci-print-sheet .inci-report__ingredient,
    .inci-print-sheet .inci-report__verdict {
        break-inside: avoid;
    }
}

/* Editorial continuation below the hero. */
#inci .inci-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    align-items: end;
    gap: 42px;
    max-width: none;
    padding-bottom: 12px;
    border-bottom: 0;
}

#inci .inci-header .section-label,
#inci .inci-header .section-title {
    grid-column: 1;
}

#inci .inci-header .section-label,
#photo .photo-header .section-label {
    width: auto;
    justify-self: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#inci .inci-header .section-title { margin-bottom: 0; }

#inci .inci-header-note {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 330px;
    padding-left: 26px;
    border-left: 1px solid #dedee3;
}

#inci .lab-modes {
    padding-bottom: 0;
    border-bottom: 0;
}

#inci .lab-card {
    border-color: #d7d7dd;
    box-shadow: none;
}

#inci .lab-mode-btn.active {
    background: #ffffff;
}

/* Footer in the same black / white / pink system as the hero. */
footer.site-footer-editorial {
    padding: 0;
    border-top: 1px solid #dedee3;
    background: #ffffff;
}

footer.site-footer-editorial .footer-top-row {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(560px, 1.28fr);
    align-items: stretch;
    gap: 42px;
    margin: 0;
    padding: 80px 0 64px;
}

footer.site-footer-editorial .footer-brand-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

footer.site-footer-editorial .footer-brand-left .logo {
    margin-bottom: 24px;
}

footer.site-footer-editorial .footer-brand-left .logo img {
    width: 220px;
    height: auto;
}

footer.site-footer-editorial .footer-brand-left p {
    max-width: 390px;
    margin: 0;
    color: #62626b;
    font-size: 1rem;
    line-height: 1.65;
}

footer.site-footer-editorial .donate-block-right {
    min-height: 310px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 18px;
    padding: 42px 28px 34px 46px;
    overflow: hidden;
    border: 1px solid #d7d7dd;
    border-radius: 28px;
    background: #ffffff;
}

footer.site-footer-editorial .donate-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

footer.site-footer-editorial .donate-label {
    margin: 0 0 14px;
    color: #ff2f74;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.donate-title {
    max-width: 520px;
    margin: 0 0 14px;
    color: #0f0f14;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.donate-copy {
    max-width: 520px;
    margin: 0 0 26px;
    color: #6d6d76;
    font-size: 0.9rem;
    line-height: 1.55;
}

footer.site-footer-editorial .donate-btn {
    min-height: 58px;
    padding: 10px 24px;
    border-radius: 20px;
    background: #ff2f74;
    box-shadow: 0 12px 28px rgba(255, 47, 116, 0.2);
}

footer.site-footer-editorial .donate-btn:hover {
    background: #e91f63;
    box-shadow: 0 14px 32px rgba(255, 47, 116, 0.24);
}

footer.site-footer-editorial .heart-beat {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

footer.site-footer-editorial .donate-text {
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0;
}

footer.site-footer-editorial .donate-image {
    align-self: end;
}

footer.site-footer-editorial .donate-image img {
    width: 230px;
    max-width: none;
    margin-bottom: -34px;
    filter: none;
}

footer.site-footer-editorial .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
    margin: 0;
    padding: 48px 0 52px;
    border-top: 1px solid #dedee3;
}

footer.site-footer-editorial .footer-col h4 {
    margin-bottom: 18px;
    color: #0f0f14;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

footer.site-footer-editorial .footer-col a {
    margin-bottom: 10px;
    color: #66666f;
    font-size: 0.88rem;
    line-height: 1.45;
}

footer.site-footer-editorial .footer-col a:hover { color: #ff2f74; }

footer.site-footer-editorial .footer-bottom {
    margin: 0;
    padding: 24px 210px 30px 0;
    border-top: 1px solid #dedee3;
    color: #777780;
    font-size: 0.76rem;
    line-height: 1.5;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

footer.site-footer-editorial .footer-bottom a {
    color: #0f0f14;
    font-weight: 700;
}

@media (max-width: 1024px) {
    footer.site-footer-editorial .footer-top-row {
        grid-template-columns: 1fr;
        padding: 64px 0 54px;
    }

    footer.site-footer-editorial .footer-brand-left p { max-width: 520px; }

    footer.site-footer-editorial .footer-bottom { padding-right: 0; }
}

@media (max-width: 768px) {
    #inci .inci-header {
        display: block;
        padding-bottom: 26px;
    }

    #inci .inci-header-note {
        max-width: 520px;
        margin-top: 16px;
        padding-left: 0;
        border-left: 0;
    }

    footer.site-footer-editorial .footer-top-row {
        display: grid;
        gap: 34px;
        padding: 54px 0 44px;
    }

    footer.site-footer-editorial .footer-brand-left {
        align-items: flex-start;
        text-align: left;
    }

    footer.site-footer-editorial .footer-brand-left .logo {
        justify-content: flex-start;
    }

    footer.site-footer-editorial .footer-brand-left p {
        max-width: 480px;
        margin: 0;
    }

    footer.site-footer-editorial .donate-block-right {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 180px;
        padding: 34px 24px 28px 34px;
    }

    footer.site-footer-editorial .donate-content { text-align: left; }
    footer.site-footer-editorial .donate-image { order: 0; }

    footer.site-footer-editorial .donate-image img {
        width: 190px;
        margin-bottom: -28px;
    }

    footer.site-footer-editorial .footer-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        padding: 40px 0 42px;
    }
}

@media (max-width: 640px) {
    footer.site-footer-editorial .footer-brand-left .logo img { width: 190px; }

    footer.site-footer-editorial .footer-brand-left p {
        max-width: 330px;
        font-size: 0.88rem;
    }

    footer.site-footer-editorial .donate-block-right {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px 22px 0;
        border-radius: 22px;
    }

    .donate-title { font-size: 2rem; }

    footer.site-footer-editorial .donate-btn {
        width: 100%;
        justify-content: center;
    }

    footer.site-footer-editorial .donate-image {
        justify-self: end;
        margin-top: -12px;
    }

    footer.site-footer-editorial .donate-image img {
        width: 150px;
        margin-bottom: 0;
    }

    footer.site-footer-editorial .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
        padding: 36px 0 38px;
    }

    footer.site-footer-editorial .footer-col:last-child { grid-column: 1 / -1; }

    footer.site-footer-editorial .footer-col h4 { font-size: 0.68rem; }
    footer.site-footer-editorial .footer-col a { font-size: 0.82rem; }

    footer.site-footer-editorial .footer-bottom {
        align-items: flex-start;
        text-align: left;
    }

    footer.site-footer-editorial .footer-bottom span {
        max-width: none;
        margin: 0;
    }

    .footer-social-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Photo diagnosis: the same editorial system as the hero and AI lab. */
#photo {
    padding: 112px 0 120px;
    scroll-margin-top: 88px;
    background: #ffffff;
}

#photo .photo-header {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    align-items: end;
    gap: 56px;
    max-width: none;
    margin: 0 0 34px;
    padding-bottom: 12px;
    border-bottom: 0;
    text-align: left;
}

#photo .photo-header .section-label {
    grid-column: 1 / -1;
    margin: 0 0 -36px;
    color: #ff2f74;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#photo .photo-header .section-title {
    max-width: 780px;
    margin: 0;
    color: #0f0f14;
    font-size: clamp(2.7rem, 4.6vw, 4.45rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

#photo .photo-header-note {
    max-width: 380px;
    margin: 0;
    padding-left: 24px;
    border-left: 1px solid #cfcfd5;
    color: #66666f;
    font-size: 0.98rem;
    line-height: 1.62;
}

#photo .photo-workspace {
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d7d7dd;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: none;
}

#photo .photo-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 0;
}

#photo .photo-aside {
    position: static;
    padding: 38px 34px 40px;
    border-right: 1px solid #dedee3;
    background: #fafafa;
}

#photo .photo-aside-label {
    margin: 0 0 15px;
    color: #0f0f14;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#photo .photo-aside-label--requirements {
    margin-top: 34px;
}

#photo .photo-steps,
#photo .photo-requirements {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

#photo .photo-step {
    width: 100%;
    gap: 13px;
    padding: 15px 0;
    border: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #777780;
    font-size: 0.84rem;
}

#photo .photo-step:last-child {
    border-bottom: 0;
}

#photo .photo-step.is-active {
    border-color: #dedee3;
    background: transparent;
    color: #0f0f14;
}

#photo .photo-step-num {
    width: 30px;
    height: 30px;
    border: 1px solid #cfcfd5;
    background: #ffffff;
    color: #777780;
    font-size: 0.72rem;
}

#photo .photo-step.is-active .photo-step-num {
    border-color: #ff2f74;
    background: #ff2f74;
    color: #ffffff;
}

#photo .photo-step-text {
    font-weight: 700;
}

#photo .photo-req {
    width: 100%;
    gap: 11px;
    padding: 13px 0;
    border: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #66666f;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

#photo .photo-req:last-child {
    border-bottom: 0;
}

#photo .photo-req-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    flex: 0 0 32px;
}

#photo .photo-req-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

#photo .photo-main {
    display: flex;
    min-height: 520px;
    padding: 38px;
    background: #ffffff;
}

#photo .photo-drop {
    width: 100%;
    min-height: 440px;
    padding: 46px 32px;
    border: 1px dashed #bfc0c7;
    border-radius: 22px;
    background: #ffffff;
}

#photo .photo-drop:hover,
#photo .photo-drop.dragging {
    border-color: #ff2f74;
    background: #fff8fb;
}

#photo .photo-drop-visual {
    width: 86px;
    height: 86px;
    margin: 0 0 22px;
    display: grid;
    place-items: center;
    border: 1px solid #dedee3;
    border-radius: 50%;
    background: #fafafa;
}

#photo .photo-drop-visual img {
    width: 52px;
    opacity: 1;
}

#photo .photo-drop-lead {
    margin-bottom: 9px;
    color: #0f0f14;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

#photo .photo-drop-hint {
    max-width: 430px;
    margin-bottom: 26px;
    color: #6d6d76;
    font-size: 0.92rem;
    line-height: 1.55;
}

#photo .photo-pick-btn {
    min-height: 58px;
    max-width: 270px;
    border-radius: 20px;
    background: #ff2f74;
    box-shadow: 0 12px 28px rgba(255, 47, 116, 0.2);
    font-weight: 800;
}

#photo .photo-pick-btn:hover {
    background: #e91f63;
    box-shadow: 0 14px 32px rgba(255, 47, 116, 0.24);
}

#photo .photo-drop-meta {
    margin-top: 15px;
    color: #888891;
    font-size: 0.75rem;
}

#photo .photo-preview-wrap,
#photo .photo-result-panel,
#photo .ai-loading.visible {
    width: 100%;
    align-self: center;
}

@media (max-width: 900px) {
    #photo {
        padding: 88px 0 96px;
    }

    #photo .photo-header {
        display: block;
        padding-bottom: 28px;
    }

    #photo .photo-header .section-label {
        display: block;
        margin: 0 0 16px;
    }

    #photo .photo-header-note {
        max-width: 560px;
        margin-top: 18px;
        padding-left: 0;
        border-left: 0;
    }

    #photo .photo-layout {
        grid-template-columns: 1fr;
    }

    #photo .photo-aside {
        padding: 30px;
        border-right: 0;
        border-bottom: 1px solid #dedee3;
    }

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

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

    #photo .photo-step,
    #photo .photo-req { border-bottom: 0; }

    #photo .photo-main {
        min-height: 480px;
        padding: 30px;
    }
}

@media (max-width: 640px) {
    #photo {
        padding: 72px 0 78px;
    }

    #photo .photo-header {
        margin-bottom: 24px;
    }

    #photo .photo-header .section-title {
        font-size: clamp(2.35rem, 11vw, 3rem);
    }

    #photo .photo-workspace {
        border-radius: 22px;
    }

    #photo .photo-aside {
        padding: 26px 20px 28px;
    }

    #photo .photo-steps,
    #photo .photo-requirements {
        display: flex;
        gap: 0;
    }

    #photo .photo-aside-label--requirements {
        margin-top: 28px;
    }

    #photo .photo-main {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        min-height: 0;
        padding: 18px;
    }

    #photo .photo-preview-wrap,
    #photo .photo-result-panel,
    #photo .ai-loading.visible {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }

    #photo .photo-result-panel {
        margin-top: 0;
    }

    #photo .photo-result-head {
        flex-direction: column;
        align-items: flex-start;
    }

    #photo .photo-score-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px 10px;
    }

    #photo .photo-score-row .score-bar {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    #photo .photo-drop {
        min-height: 400px;
        padding: 38px 20px;
        border-radius: 18px;
    }

    #photo .photo-drop-lead {
        font-size: 1.4rem;
    }

    #photo .photo-pick-btn {
        width: 100%;
    }
}

/* Tighter vertical rhythm between the homepage sections. */
#inci {
    padding-top: 76px;
    padding-bottom: 64px;
}

#photo {
    padding-top: 60px;
    padding-bottom: 76px;
}

footer.site-footer-editorial .footer-top-row {
    padding-top: 60px;
}

@media (max-width: 900px) {
    #inci {
        padding-top: 64px;
        padding-bottom: 54px;
    }

    #photo {
        padding-top: 52px;
        padding-bottom: 64px;
    }
}

@media (max-width: 640px) {
    #inci {
        padding-top: 52px;
        padding-bottom: 44px;
    }

    #photo {
        padding-top: 44px;
        padding-bottom: 54px;
    }

    footer.site-footer-editorial .footer-top-row {
        padding-top: 44px;
    }
}

/* Hero composition checker: one focused action, no duplicate feature strip. */
#hero.hero-editorial {
    height: auto;
    min-height: 780px;
    max-height: none;
}

#hero.hero-editorial .hero-shell {
    height: auto;
    min-height: 780px;
}

#hero.hero-editorial .hero-main {
    min-height: 674px;
}

#hero.hero-editorial .hero-inner {
    gap: 18px;
    padding-top: 34px;
    padding-bottom: 42px;
}

#hero.hero-editorial .hero-kicker {
    margin-bottom: 12px;
}

#hero.hero-editorial .hero-title {
    max-width: 610px;
    font-size: clamp(3rem, 4.3vw, 4.2rem);
}

#hero.hero-editorial .hero-body {
    gap: 14px;
}

#hero.hero-editorial .hero-note {
    margin: 0;
    max-width: 600px;
    font-size: clamp(1rem, 1.18vw, 1.14rem);
}

#hero.hero-editorial .hero-inci-form {
    width: 100%;
    max-width: 610px;
}

#hero.hero-editorial .hero-inci-textarea {
    display: block;
    width: 100%;
    min-height: 136px;
    padding: 17px 19px;
    border: 1px solid #d9d9df;
    border-radius: 20px;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    color: #0f0f14;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 32px rgba(15, 15, 20, 0.055);
    font-family: var(--font-main);
    font-size: 0.98rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#hero.hero-editorial .hero-inci-textarea:focus {
    border-color: #ff2f74;
    box-shadow: 0 0 0 3px rgba(255, 47, 116, 0.12), 0 12px 32px rgba(15, 15, 20, 0.055);
}

#hero.hero-editorial .hero-inci-textarea.is-invalid {
    border-color: #dc3545;
}

#hero.hero-editorial .hero-inci-textarea::placeholder {
    color: #92929b;
}

#hero.hero-editorial .hero-inci-meta {
    display: flex;
    justify-content: flex-end;
    min-height: 16px;
    margin-top: 5px;
    color: #85858e;
    font-size: 0.7rem;
    line-height: 1.2;
}

#hero.hero-editorial .hero-actions {
    margin-top: 5px;
}

#hero.hero-editorial .hero-inci-submit {
    cursor: pointer;
}

#hero.hero-editorial .hero-inci-submit svg {
    flex: 0 0 auto;
}

#hero.hero-editorial .hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

#hero.hero-editorial .hero-benefits li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #5f5f68;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}

#hero.hero-editorial .hero-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ff2f74;
    background: #fff3f7;
}

#hero.hero-editorial .hero-benefit-icon svg {
    width: 21px;
    height: 21px;
}

@media (max-width: 900px) {
    #hero.hero-editorial,
    #hero.hero-editorial .hero-shell {
        min-height: 0;
    }

    #hero.hero-editorial .hero-main {
        min-height: 0;
    }

    #hero.hero-editorial .hero-inner {
        max-width: 720px;
        padding-bottom: 48px;
    }

    #hero.hero-editorial .hero-editorial-visual {
        display: none;
    }
}

@media (max-width: 640px) {
    #hero.hero-editorial .hero-inner {
        padding: 30px 4px 38px;
        gap: 16px;
    }

    #hero.hero-editorial .hero-title {
        font-size: clamp(2.55rem, 12vw, 3.2rem);
    }

    #hero.hero-editorial .hero-note {
        max-width: 100%;
        font-size: 0.96rem;
    }

    #hero.hero-editorial .hero-inci-textarea {
        min-height: 132px;
        padding: 15px 16px;
        border-radius: 17px;
        font-size: 0.94rem;
    }

    #hero.hero-editorial .hero-actions {
        display: block;
        margin-top: 4px;
    }

    #hero.hero-editorial .hero-actions .hero-inci-submit {
        width: 100%;
    }

    #hero.hero-editorial .hero-benefits {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 15px;
    }

    #hero.hero-editorial .hero-benefits li {
        grid-template-columns: 36px minmax(0, 1fr);
        font-size: 0.78rem;
    }

    #hero.hero-editorial .hero-benefit-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }
}

/* Hero: framed editorial composition shared with the homepage route block. */
#hero.hero-editorial {
    min-height: 0;
    background: #f8f4f5;
}

#hero.hero-editorial .hero-shell {
    min-height: 0;
    padding: 126px 0 58px;
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 47, 116, 0.09) 0, rgba(255, 47, 116, 0) 28%),
        #f8f4f5;
}

#hero.hero-editorial .hero-main {
    grid-template-columns: minmax(0, 1.04fr) minmax(470px, 0.96fr);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid #d4ccd0;
    border-radius: 38px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(27, 18, 23, 0.08);
}

#hero.hero-editorial .hero-inner {
    align-self: stretch;
    max-width: none;
    gap: 18px;
    padding: 46px 42px 32px 48px;
}

#hero.hero-editorial .hero-kicker {
    margin-bottom: 14px;
    color: #ff2f74;
    font-size: 0.76rem;
    letter-spacing: 0.15em;
}

#hero.hero-editorial .hero-title {
    max-width: 570px;
    font-size: clamp(3rem, 4.15vw, 4.15rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
}

#hero.hero-editorial .hero-note {
    max-width: 555px;
    color: #5f5a60;
    font-size: clamp(0.98rem, 1.12vw, 1.1rem);
}

#hero.hero-editorial .hero-inci-form {
    max-width: 570px;
}

#hero.hero-editorial .hero-inci-textarea {
    min-height: 128px;
    padding: 17px 19px;
    border: 1px solid #d4ccd0;
    border-radius: 18px;
    background: #faf7f8;
    box-shadow: none;
}

#hero.hero-editorial .hero-inci-textarea:focus {
    border-color: #ff2f74;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 47, 116, 0.11);
}

#hero.hero-editorial .hero-actions {
    margin-top: 4px;
}

#hero.hero-editorial .hero-actions .hero-inci-submit {
    min-height: 58px;
    padding: 0 30px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(255, 47, 116, 0.2);
}

#hero.hero-editorial .hero-benefits {
    gap: 0;
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid #e3dde0;
}

#hero.hero-editorial .hero-benefits li {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 8px;
    padding-right: 12px;
    color: #686269;
    font-size: 0.69rem;
}

#hero.hero-editorial .hero-benefits li + li {
    padding-left: 14px;
    border-left: 1px solid #e3dde0;
}

#hero.hero-editorial .hero-benefit-icon {
    width: 25px;
    height: 25px;
    border-radius: 0;
    background: transparent;
}

#hero.hero-editorial .hero-benefit-icon svg {
    width: 20px;
    height: 20px;
}

#hero.hero-editorial .hero-editorial-visual {
    align-self: stretch;
    min-height: 650px;
    overflow: hidden;
    border-left: 1px solid #d4ccd0;
    background: #fff7fa;
}

#hero.hero-editorial .hero-expert-image {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 50% 18%;
}

#hero.hero-editorial .hero-inci-preview {
    top: 34px;
    left: 30px;
    width: 180px;
    padding: 19px 21px;
    border: 0;
    border-top: 3px solid #ff2f74;
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(27, 18, 23, 0.13);
}

#hero.hero-editorial .hero-handnote {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 18px 30px 20px;
    color: #ffffff;
    background: rgba(25, 22, 26, 0.94);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-align: left;
    text-transform: uppercase;
    transform: none;
}

@media (max-width: 1180px) {
    #hero.hero-editorial .hero-main {
        grid-template-columns: minmax(0, 1fr) minmax(410px, 0.84fr);
    }

    #hero.hero-editorial .hero-inner {
        padding-right: 34px;
        padding-left: 36px;
    }
}

@media (max-width: 900px) {
    #hero.hero-editorial .hero-shell {
        padding: 112px 0 48px;
    }

    #hero.hero-editorial .hero-main {
        display: block;
        min-height: 0;
        border-radius: 30px;
    }

    #hero.hero-editorial .hero-inner {
        max-width: none;
        padding: 46px 42px 38px;
    }

    #hero.hero-editorial .hero-editorial-visual {
        display: none;
    }
}

@media (max-width: 640px) {
    #hero.hero-editorial .hero-shell {
        padding: 92px 0 32px;
    }

    #hero.hero-editorial .hero-main {
        border-radius: 24px;
    }

    #hero.hero-editorial .hero-inner {
        gap: 16px;
        padding: 31px 20px 25px;
    }

    #hero.hero-editorial .hero-title {
        font-size: clamp(2.45rem, 11vw, 3.1rem);
    }

    #hero.hero-editorial .hero-inci-textarea {
        min-height: 130px;
    }

    #hero.hero-editorial .hero-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 15px;
    }

    #hero.hero-editorial .hero-benefits li,
    #hero.hero-editorial .hero-benefits li + li {
        grid-template-columns: 25px minmax(0, 1fr);
        padding: 0;
        border-left: 0;
        font-size: 0.76rem;
    }
}

/* Photo analysis workspace — editorial v2. */
.tool-page--photo #photo {
    padding: 96px 0 118px;
    background: radial-gradient(circle at 94% 12%, rgba(255, 47, 116, 0.08), transparent 24%), #f7f4f3;
}

.tool-page--photo #photo .photo-header {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr);
    gap: clamp(36px, 6vw, 94px);
    margin-bottom: 38px;
    padding: 0;
}

.tool-page--photo #photo .photo-header__intro { min-width: 0; }

.tool-page--photo #photo .photo-header .section-label {
    display: block;
    margin: 0 0 18px;
    color: #ff2f74;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tool-page--photo #photo .photo-header .section-title {
    max-width: 760px;
    font-size: clamp(2.65rem, 5.2vw, 5rem);
    line-height: 0.94;
}

.tool-page--photo #photo .photo-header-note {
    align-self: end;
    max-width: 420px;
    padding: 2px 0 2px 24px;
    border-left: 1px solid #c9c1c4;
    color: #686168;
    font-size: 0.98rem;
    line-height: 1.65;
}

.tool-page--photo #photo .photo-workspace {
    border: 0;
    border-radius: 4px 34px 34px 34px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(43, 25, 33, 0.1);
}

.tool-page--photo #photo .photo-layout {
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.55fr);
}

.tool-page--photo #photo .photo-aside {
    padding: 40px 36px 44px;
    border: 0;
    background: #171318;
    color: #ffffff;
}

.tool-page--photo #photo .photo-aside-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 54px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.tool-page--photo #photo .photo-aside-index {
    color: #ff6d9e;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.tool-page--photo #photo .photo-aside-head p {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.1vw, 1.8rem);
    font-weight: 750;
    line-height: 1.06;
    text-align: right;
}

.tool-page--photo #photo .photo-aside-label { color: rgba(255, 255, 255, 0.52); }

.tool-page--photo #photo .photo-step {
    position: relative;
    color: rgba(255, 255, 255, 0.48);
}

.tool-page--photo #photo .photo-step + .photo-step::before {
    content: '';
    position: absolute;
    left: 14px;
    top: -6px;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.tool-page--photo #photo .photo-step.is-active { color: #ffffff; }

.tool-page--photo #photo .photo-step-num {
    border-color: rgba(255, 255, 255, 0.25);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
}

.tool-page--photo #photo .photo-step.is-active .photo-step-num {
    border-color: #ff2f74;
    background: #ff2f74;
    color: #ffffff;
}

.tool-page--photo #photo .photo-aside-label--requirements { margin-top: 42px; }

.tool-page--photo #photo .photo-req {
    gap: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.tool-page--photo #photo .photo-req-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #ff8db3;
}

.tool-page--photo #photo .photo-req-icon svg {
    width: 20px;
    height: 20px;
}

.tool-page--photo #photo .photo-main {
    position: relative;
    display: flex;
    min-height: 650px;
    padding: 82px 44px 44px;
    background: #ffffff;
}

.tool-page--photo #photo .photo-main-note {
    position: absolute;
    top: 28px;
    left: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #777178;
    font-size: 0.72rem;
    font-weight: 700;
}

.tool-page--photo #photo .photo-main-note span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48b978;
    box-shadow: 0 0 0 4px rgba(72, 185, 120, 0.12);
}

.tool-page--photo #photo .photo-drop {
    min-height: 520px;
    padding: 58px 44px;
    border: 1px solid #d7cfd2;
    border-radius: 4px 28px 28px 28px;
    background: linear-gradient(135deg, rgba(255, 47, 116, 0.05), transparent 54%), #fbf9f9;
}

.tool-page--photo #photo .photo-drop-visual {
    width: 104px;
    height: 104px;
    margin-bottom: 30px;
    border: 1px solid #d4c9cd;
    border-radius: 50%;
    background: #ffffff;
    color: #ff2f74;
}

.tool-page--photo #photo .photo-drop-visual svg {
    width: 58px;
    height: 58px;
}

.tool-page--photo #photo .photo-drop-lead {
    max-width: 520px;
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.tool-page--photo #photo .photo-drop-hint {
    max-width: 520px;
    margin: 14px 0 30px;
}

.tool-page--photo #photo .photo-pick-btn {
    max-width: 300px;
    border-radius: 17px;
}

.tool-page--photo #photo .photo-drop-meta { margin-top: 18px; }

@media (max-width: 900px) {
    .tool-page--photo #photo .photo-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-page--photo #photo .photo-header-note {
        max-width: 620px;
        padding: 0;
        border-left: 0;
    }

    .tool-page--photo #photo .photo-layout { grid-template-columns: 1fr; }
    .tool-page--photo #photo .photo-aside { border-bottom: 0; }
    .tool-page--photo #photo .photo-aside-head { margin-bottom: 34px; }

    .tool-page--photo #photo .photo-steps,
    .tool-page--photo #photo .photo-requirements {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .tool-page--photo #photo .photo-step + .photo-step::before { display: none; }
}

@media (max-width: 640px) {
    .tool-page--photo #photo { padding: 70px 0 82px; }

    .tool-page--photo #photo .photo-header .section-title {
        font-size: clamp(2.35rem, 11vw, 3.15rem);
    }

    .tool-page--photo #photo .photo-workspace { border-radius: 4px 22px 22px 22px; }

    .tool-page--photo #photo .photo-aside {
        padding: 28px 22px 32px;
    }

    .tool-page--photo #photo .photo-aside-head {
        margin-bottom: 28px;
        padding-bottom: 22px;
    }

    .tool-page--photo #photo .photo-aside-head p { font-size: 1.35rem; }

    .tool-page--photo #photo .photo-steps,
    .tool-page--photo #photo .photo-requirements {
        display: flex;
        gap: 0;
    }

    .tool-page--photo #photo .photo-main {
        min-height: 0;
        padding: 72px 16px 16px;
    }

    .tool-page--photo #photo .photo-main-note {
        top: 25px;
        left: 22px;
        right: 22px;
        line-height: 1.35;
    }

    .tool-page--photo #photo .photo-drop {
        min-height: 450px;
        padding: 42px 22px;
        border-radius: 4px 20px 20px 20px;
    }

    .tool-page--photo #photo .photo-drop-visual {
        width: 88px;
        height: 88px;
    }

    .tool-page--photo #photo .photo-drop-visual svg {
        width: 48px;
        height: 48px;
    }

    .tool-page--photo #photo .photo-pick-btn { max-width: none; }
}

/* Blog index and article templates — editorial v2. */
.blog-index-page,
.article-editorial-page {
    background: #f7f4f3;
    color: #171318;
}

.blog-overline {
    margin: 0;
    color: #ff2f74;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.blog-editorial-hero {
    padding: calc(var(--header-height) + 72px) 0 86px;
    overflow: hidden;
    background: radial-gradient(circle at 88% 18%, rgba(255, 47, 116, 0.12), transparent 27%), #f7f4f3;
}

.blog-editorial-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.58fr);
    align-items: stretch;
    gap: clamp(34px, 6vw, 92px);
}

.blog-editorial-hero__copy {
    align-self: center;
    padding: 28px 0;
}

.blog-editorial-hero h1 {
    max-width: 870px;
    margin: 24px 0 28px;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 7.2vw, 7.2rem);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.blog-editorial-hero__lead {
    max-width: 760px;
    margin: 0;
    color: #696269;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.72;
}

.blog-editorial-hero__actions,
.article-after__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.blog-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 5px;
    border-bottom: 1px solid currentColor;
    color: #171318;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.blog-text-link:hover,
.blog-text-link:focus-visible { color: #ff2f74; }

.blog-editorial-hero__note {
    display: flex;
    min-height: 470px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 42px;
    border-radius: 4px 34px 34px 34px;
    background: #171318;
    color: #ffffff;
}

.blog-editorial-hero__number {
    margin-bottom: auto;
    color: #ff4f87;
    font-family: var(--font-display);
    font-size: clamp(5rem, 9vw, 8.5rem);
    font-weight: 420;
    letter-spacing: -0.07em;
    line-height: 0.8;
}

.blog-editorial-hero__note h2 {
    margin: 24px 0 16px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    font-weight: 720;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.blog-editorial-hero__note > p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.6;
}

.blog-catalog {
    padding: 94px 0 112px;
    scroll-margin-top: 90px;
    background: #ffffff;
}

.blog-catalog__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 46px;
    padding-bottom: 26px;
    border-bottom: 1px solid #cbc4c7;
}

.blog-catalog__head h2 {
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 740;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.blog-catalog__count {
    margin: 0;
    color: #777078;
    font-size: 0.84rem;
    font-weight: 750;
}

.blog-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 54px 28px;
}

.blog-index-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding-top: 18px;
    border-top: 1px solid #cfc8cb;
}

.blog-index-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.blog-index-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px 24px 24px 24px;
    background: #171318;
    color: #ff5d92;
    text-decoration: none;
}

@media (min-width: 901px) {
    .blog-index-card--featured .blog-index-card__media {
        height: 100%;
        min-height: 100%;
        aspect-ratio: auto;
    }
}

.blog-index-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.blog-index-card:hover .blog-index-card__media img { transform: scale(1.025); }

.blog-index-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 420;
}

.blog-index-card__content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding-top: 24px;
}

.blog-index-card--featured .blog-index-card__content {
    align-self: stretch;
    padding: 8px 0 0;
}

.blog-index-card__meta {
    margin: 0 0 16px;
    color: #ff2f74;
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    line-height: 1.45;
    text-transform: uppercase;
}

.blog-index-card h2 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    font-weight: 730;
    letter-spacing: -0.045em;
    line-height: 1.07;
}

.blog-index-card--featured h2 { font-size: clamp(2rem, 3.3vw, 3.45rem); }

.blog-index-card h2 a {
    color: #171318;
    text-decoration: none;
}

.blog-index-card h2 a:hover,
.blog-index-card h2 a:focus-visible { color: #ff2f74; }

.blog-index-card__intro {
    margin: 0;
    color: #6e676e;
    font-size: 0.9rem;
    line-height: 1.65;
}

.blog-index-card__foot {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 26px;
}

.blog-index-card__number {
    color: #d8d0d3;
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 0.8;
}

.blog-index-card__link {
    display: inline-flex;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #171318;
    color: #171318;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

.blog-index-card__link:hover,
.blog-index-card__link:focus-visible {
    border-color: #ff2f74;
    color: #ff2f74;
}

.blog-pagination {
    /* The legacy mobile menu targets every nav element. Keep this navigation
       in the document flow instead of inheriting its off-screen drawer. */
    position: static;
    inset: auto;
    z-index: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: none;
    height: auto;
    margin-top: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    transition: none;
}

.blog-pagination__summary {
    margin: 0;
    color: #6c656c;
    font-size: 0.85rem;
    line-height: 1.5;
}

.blog-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-pagination .page-item {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-pagination .page-link {
    display: inline-flex;
    min-width: 46px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #ded5da;
    border-radius: 14px;
    background: #fff;
    color: #171318;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.blog-pagination a.page-link:hover {
    border-color: #c21850;
    background: #fff0f5;
    color: #a91645;
}

.blog-pagination a.page-link:focus-visible {
    outline: 3px solid #c21850;
    outline-offset: 3px;
}

.blog-pagination .active .page-link {
    border-color: #c21850;
    background: #c21850;
    color: #fff;
}

.blog-pagination .disabled .page-link {
    border-color: #eee8eb;
    background: #f7f4f5;
    color: #a69ca2;
    cursor: default;
}

@media (max-width: 600px) {
    .blog-pagination {
        margin-top: 32px;
    }

    .blog-pagination .pagination {
        gap: 8px;
    }
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 30px;
    background: #f7f4f3;
}

.blog-editorial-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin-top: 76px;
    padding: 28px 30px;
    border-top: 1px solid #cbc4c7;
    border-bottom: 1px solid #cbc4c7;
}

.blog-editorial-note > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #171318;
    color: #ffffff;
    font-weight: 850;
}

.blog-editorial-note p {
    margin: 0;
    color: #6c656c;
    line-height: 1.6;
}

.blog-editorial-note strong { color: #171318; }

.blog-next-section--editorial {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
    align-items: end;
    gap: 54px;
    margin-top: 76px;
    padding: 42px;
    border-radius: 4px 30px 30px 30px;
    background: #171318;
    color: #ffffff;
}

.blog-next-section--editorial h2 {
    max-width: 680px;
    margin: 14px 0 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.blog-next-section--editorial > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* Article page */
.article-editorial-hero {
    padding: calc(var(--header-height) + 58px) 0 76px;
    background: radial-gradient(circle at 90% 18%, rgba(255, 47, 116, 0.11), transparent 28%), #f7f4f3;
}

.article-editorial-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.58fr);
    align-items: stretch;
    gap: clamp(38px, 6vw, 86px);
}

.article-editorial-hero__copy {
    align-self: center;
    min-width: 0;
    padding: 16px 0;
}

.article-editorial-page .article-breadcrumbs {
    margin-bottom: 32px;
    color: #817981;
    font-size: 0.78rem;
}

.article-editorial-page .article-breadcrumbs a {
    color: #171318;
    text-decoration: underline;
    text-decoration-color: #ff8fb4;
    text-underline-offset: 4px;
}

.article-editorial-hero h1 {
    max-width: 930px;
    margin: 22px 0 28px;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 6.6vw, 6.8rem);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 0.92;
    overflow-wrap: break-word;
    hyphens: auto;
}

.article-editorial-hero__lead {
    max-width: 790px;
    color: #696269;
    font-size: clamp(1rem, 1.45vw, 1.12rem);
    line-height: 1.72;
}

.article-editorial-hero__lead > *:first-child { margin-top: 0; }
.article-editorial-hero__lead > *:last-child { margin-bottom: 0; }

.article-editorial-page .article-meta {
    display: flex;
    margin-top: 32px;
    color: #827a82;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.article-editorial-page .article-meta span:not(:last-child)::after {
    color: #c3babf;
}

.article-editorial-hero__visual {
    min-height: 500px;
    overflow: hidden;
    border-radius: 4px 34px 34px 34px;
    background: #171318;
}

.article-editorial-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-editorial-hero__placeholder {
    display: flex;
    height: 100%;
    min-height: 500px;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
    color: #ffffff;
}

.article-editorial-hero__placeholder span {
    color: #ff79a6;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.article-editorial-hero__placeholder strong {
    align-self: flex-end;
    color: #ff4f87;
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 420;
    line-height: 0.7;
}

.article-reading {
    padding: 72px 0 112px;
    background: #ffffff;
}

.article-reading__layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 900px);
    justify-content: center;
    align-items: start;
    gap: 44px;
}

.article-toc {
    position: sticky;
    top: calc(var(--header-height) + 22px);
    overflow: hidden;
    border-radius: 4px 22px 22px 22px;
    background: #171318;
}

.article-toc[hidden] { display: none; }
.article-toc__toggle { display: none; }

.article-toc__links {
    display: flex;
    max-height: calc(100vh - var(--header-height) - 60px);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    overflow-y: auto;
}

.article-toc__links::before {
    content: 'Содержание';
    margin: 3px 10px 14px;
    color: #ff6d9e;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-toc__links a {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.article-toc__links a:hover,
.article-toc__links a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.article-reading__column { min-width: 0; }

.article-editorial-page .article-body {
    max-width: none;
    padding: clamp(30px, 5vw, 64px);
    padding-top: clamp(24px, 3vw, 40px);
    border: 1px solid #d5ced1;
    border-radius: 4px 32px 32px 32px;
    background: #ffffff;
    box-shadow: none;
    counter-reset: article-section;
}

.article-editorial-page .article-body > *:first-child { margin-top: 0; }
.article-editorial-page .article-body > *:last-child { margin-bottom: 0; }

.article-editorial-page .article-body h2 {
    position: relative;
    margin: 64px 0 22px;
    padding-top: 26px;
    border-top: 1px solid #d6cfd2;
    color: #171318;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.45rem);
    font-weight: 730;
    letter-spacing: -0.05em;
    line-height: 1.02;
    scroll-margin-top: calc(var(--header-height) + 28px);
    counter-increment: article-section;
}

.article-editorial-page .article-body > section:first-child > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.article-editorial-page .article-body h2::before {
    content: counter(article-section, decimal-leading-zero);
    display: block;
    margin-bottom: 15px;
    color: #ff2f74;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.article-editorial-page .article-body h3 {
    margin: 36px 0 14px;
    color: #171318;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 720;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.article-editorial-page .article-body p,
.article-editorial-page .article-body li {
    color: #423d42;
    font-size: 1rem;
    line-height: 1.78;
}

.article-editorial-page .article-body p { margin: 0 0 22px; }

.article-editorial-page .article-body ul,
.article-editorial-page .article-body ol {
    margin: 0 0 26px;
    padding-left: 1.35rem;
}

.article-editorial-page .article-body li + li { margin-top: 9px; }

.article-editorial-page .article-body a {
    color: #c80f50;
    text-decoration-color: rgba(200, 15, 80, 0.35);
    text-underline-offset: 3px;
}

.article-editorial-page .article-body img {
    display: block;
    width: 100%;
    height: auto;
    margin: 34px 0 12px;
    border-radius: 4px 24px 24px 24px;
}

.article-editorial-page .article-body figure { margin: 36px 0; }

.article-editorial-page .article-body figcaption {
    margin-top: 12px;
    color: #7d757d;
    font-size: 0.78rem;
    line-height: 1.5;
}

.article-editorial-page .article-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 30px 0 36px;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

.article-editorial-page .article-body thead,
.article-editorial-page .article-body tbody {
    display: table;
    width: 100%;
    min-width: 650px;
    table-layout: fixed;
}

.article-editorial-page .article-body th,
.article-editorial-page .article-body td {
    padding: 14px 16px;
    border: 1px solid #ded7da;
    text-align: left;
    vertical-align: top;
    font-size: 0.86rem;
    line-height: 1.5;
}

.article-editorial-page .article-body th {
    background: #171318;
    color: #ffffff;
    font-weight: 800;
}

.article-editorial-page .article-body tr:nth-child(even) td { background: #faf7f8; }

.article-editorial-page .article-body blockquote,
.article-editorial-page .article-body .article-callout,
.article-editorial-page .article-body .short-answer {
    margin: 28px 0;
    padding: 24px 26px;
    border: 0;
    border-left: 4px solid #ff2f74;
    border-radius: 0 20px 20px 0;
    background: #fff4f8;
}

.article-editorial-page .article-body .short-answer h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.article-editorial-page .article-body .article-cta {
    margin-top: 50px;
    padding: 34px;
    border-radius: 4px 26px 26px 26px;
    background: #171318;
    color: #ffffff;
}

.article-editorial-page .article-body .article-cta h2,
.article-editorial-page .article-body .article-cta h3,
.article-editorial-page .article-body .article-cta p { color: #ffffff; }

.article-editorial-page .article-body .article-cta h2 {
    border-color: rgba(255, 255, 255, 0.2);
}

.article-editorial-page .article-body .article-sources,
.article-editorial-page .article-body .sources {
    color: #655e65;
    font-size: 0.9rem;
}

.article-after {
    margin-top: 28px;
    padding: 42px;
    border-radius: 4px 28px 28px 28px;
    background: #171318;
    color: #ffffff;
}

.article-after h2 {
    max-width: 650px;
    margin: 16px 0;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.8rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.article-after > p:not(.blog-overline) {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
}

.article-after .blog-text-link {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

@media (max-width: 1100px) {
    .blog-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-index-card--featured { grid-column: 1 / -1; }
    .article-editorial-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.62fr); }
    .article-reading__layout { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 900px) {
    .blog-editorial-hero { padding-top: calc(var(--header-height) + 48px); }
    .blog-editorial-hero__grid,
    .article-editorial-hero__grid { grid-template-columns: 1fr; }
    .blog-editorial-hero h1 { font-size: clamp(3.5rem, 11vw, 6rem); }
    .blog-editorial-hero__note { min-height: 360px; }
    .blog-index-card--featured { grid-template-columns: 1fr; }
    .blog-index-card--featured .blog-index-card__media { aspect-ratio: 16 / 9; }
    .blog-next-section--editorial { grid-template-columns: 1fr; gap: 26px; }
    .article-editorial-hero { padding-top: calc(var(--header-height) + 42px); }
    .article-editorial-hero h1 { font-size: clamp(3.25rem, 10vw, 5.5rem); }
    .article-editorial-hero__visual { min-height: 360px; max-height: 560px; }
    .article-reading__layout { grid-template-columns: 1fr; }
    .article-toc { position: static; border-radius: 4px 18px 18px 18px; }
    .article-toc__toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border: 0;
        background: transparent;
        color: #ffffff;
        font: inherit;
        font-size: 0.82rem;
        font-weight: 850;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        cursor: pointer;
    }
    .article-toc__links { display: none; max-height: none; padding-top: 0; }
    .article-toc.is-open .article-toc__links { display: flex; }
    .article-toc__links::before { display: none; }
}

@media (max-width: 640px) {
    .blog-editorial-hero { padding: 116px 0 58px; }
    .blog-editorial-hero__copy { padding: 0; }
    .blog-editorial-hero h1 { margin: 20px 0 24px; font-size: clamp(3rem, 14vw, 4.25rem); }
    .blog-editorial-hero__actions { align-items: stretch; flex-direction: column; gap: 14px; }
    .blog-editorial-hero__actions .btn-primary { width: 100%; justify-content: center; }
    .blog-editorial-hero__actions .blog-text-link { width: fit-content; }
    .blog-editorial-hero__note { min-height: 330px; padding: 28px 24px; border-radius: 4px 24px 24px 24px; }
    .blog-editorial-hero__number { font-size: 6rem; }
    .blog-catalog { padding: 66px 0 80px; }
    .blog-catalog__head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 34px; }
    .blog-catalog__head h2 { font-size: 3rem; }
    .blog-index-grid { grid-template-columns: 1fr; gap: 42px; }
    .blog-index-card--featured { grid-column: auto; display: flex; }
    .blog-index-card--featured h2 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
    .blog-index-card__content,
    .blog-index-card--featured .blog-index-card__content { padding-top: 20px; }
    .blog-index-card__media,
    .blog-index-card--featured .blog-index-card__media { aspect-ratio: 4 / 3; border-radius: 4px 20px 20px 20px; }
    .blog-editorial-note { grid-template-columns: 1fr; margin-top: 58px; padding: 24px 0; }
    .blog-next-section--editorial { margin-top: 56px; padding: 28px 22px; border-radius: 4px 24px 24px 24px; }
    .article-editorial-hero { padding: 116px 0 56px; }
    .article-editorial-page .article-breadcrumbs { margin-bottom: 26px; }
    .article-editorial-hero h1 { margin: 20px 0 24px; font-size: clamp(2.9rem, 13.5vw, 4.1rem); }
    .article-editorial-page .article-meta { display: grid; gap: 7px; }
    .article-editorial-page .article-meta span::after { display: none; }
    .article-editorial-hero__visual { min-height: 260px; max-height: 390px; border-radius: 4px 24px 24px 24px; }
    .article-editorial-hero__placeholder { min-height: 300px; padding: 26px; }
    .article-editorial-hero__placeholder strong { font-size: 8rem; }
    .article-reading { padding: 42px 0 76px; }
    .article-reading__layout { gap: 18px; }
    .article-editorial-page .article-body { padding: 30px 18px; border-radius: 4px 22px 22px 22px; }
    .article-editorial-page .article-body h2 { margin-top: 48px; font-size: clamp(1.9rem, 9vw, 2.65rem); }
    .article-editorial-page .article-body h3 { font-size: 1.35rem; }
    .article-editorial-page .article-body p,
    .article-editorial-page .article-body li { font-size: 0.98rem; line-height: 1.72; }
    .article-editorial-page .article-body blockquote,
    .article-editorial-page .article-body .article-callout,
    .article-editorial-page .article-body .short-answer { padding: 20px 18px; }
    .article-editorial-page .article-body .article-cta { padding: 26px 20px; }
    .article-after { padding: 30px 22px; border-radius: 4px 24px 24px 24px; }
    .article-after__actions { align-items: stretch; flex-direction: column; gap: 14px; }
    .article-after__actions .btn-primary { width: 100%; justify-content: center; }
    .article-after__actions .blog-text-link { width: fit-content; }
}

/* ================================================================
   UNIFIED EDITORIAL PAGES — ABOUT, HOW, CONTACTS, PRIVACY, 404, SCAN
   ================================================================ */
.legal-page { background: #ffffff; }

.legal-page .legal-hero {
    padding: calc(var(--header-height) + 58px) 0 76px;
    background: radial-gradient(circle at 88% 12%, rgba(255, 47, 116, 0.12), transparent 29%), #f7f4f3;
}

.legal-page .legal-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.55fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
}

.legal-page .legal-hero-inner > * { grid-column: 1; }

.legal-page .legal-hero-inner::after {
    content: 'NS';
    grid-column: 2;
    grid-row: 1 / span 5;
    display: flex;
    min-height: 390px;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 34px;
    border-radius: 4px 34px 34px 34px;
    background: radial-gradient(circle at 74% 22%, rgba(255, 47, 116, 0.42), transparent 25%), #171318;
    color: #ff4f87;
    font-family: var(--font-display);
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 430;
    letter-spacing: -0.08em;
    line-height: 0.78;
}

.article-page--autumn .legal-hero-inner::after {
    content: '';
    background:
        linear-gradient(180deg, rgba(23, 19, 24, 0.02), rgba(23, 19, 24, 0.14)),
        url('/themes/neuroskin/assets/images/blog/autumn-skincare-v2.webp') center / cover no-repeat;
}

.legal-page .section-label,
.scan-page .section-label,
.not-found-page .section-label {
    display: block;
    width: fit-content;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ff2f74;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.legal-page .legal-title {
    max-width: 920px;
    margin: 0 0 26px;
    color: #171318;
    font-family: var(--font-display);
    font-size: clamp(3.3rem, 6.7vw, 7rem);
    font-weight: 740;
    letter-spacing: -0.065em;
    line-height: 0.92;
    overflow-wrap: break-word;
    hyphens: auto;
}

.legal-page .legal-lead {
    max-width: 760px;
    margin: 0;
    color: #6e676e;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.75;
}

.legal-page .how-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.legal-page .legal-content-section {
    padding: 76px 0 112px;
    background: #ffffff;
}

.legal-page .legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 900px);
    justify-content: center;
    gap: 44px;
    align-items: start;
}

.legal-page .legal-nav {
    position: sticky;
    top: calc(var(--header-height) + 22px);
    display: flex;
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border: 0;
    border-radius: 4px 22px 22px 22px;
    background: #171318;
    box-shadow: none;
    counter-reset: legal-nav;
}

.legal-page .legal-nav::before {
    content: 'Содержание';
    margin: 3px 10px 14px;
    color: #ff6d9e;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-page .legal-nav a {
    position: relative;
    padding: 12px 10px 12px 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    counter-increment: legal-nav;
}

.legal-page .legal-nav a::before {
    content: counter(legal-nav, decimal-leading-zero);
    position: absolute;
    left: 8px;
    color: #ff5a90;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

.legal-page .legal-nav a:hover,
.legal-page .legal-nav a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: none;
}

.legal-page .legal-card {
    min-width: 0;
    padding: clamp(30px, 5vw, 64px);
    border: 1px solid #d5ced1;
    border-radius: 4px 32px 32px 32px;
    background: #ffffff;
    box-shadow: none;
}

.legal-page .legal-section {
    margin: 0 0 42px;
    padding: 0 0 42px;
    border-bottom: 1px solid #d6cfd2;
    scroll-margin-top: calc(var(--header-height) + 28px);
}

.legal-page .legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-page .legal-section h2 {
    margin: 0 0 17px;
    color: #171318;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 730;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.legal-page .legal-section p,
.legal-page .legal-section li {
    color: #423d42;
    font-size: 1rem;
    line-height: 1.78;
}

.legal-page .how-section {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.legal-page .how-step-number {
    display: block;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ff2f74;
    font-family: var(--font-display);
    font-size: 4.7rem;
    font-weight: 430;
    letter-spacing: -0.08em;
    line-height: 0.78;
}

.legal-page .how-note {
    padding: 32px;
    border: 0;
    border-radius: 4px 24px 24px 24px;
    background: #171318;
}

.legal-page .how-note h2,
.legal-page .how-note p { color: #ffffff; }
.legal-page .how-note p { color: rgba(255, 255, 255, 0.68); }
.legal-page .how-note .btn-secondary { border-color: rgba(255, 255, 255, 0.55); color: #ffffff; }

.privacy-page .legal-title { font-size: clamp(2.8rem, 5.6vw, 5.8rem); }
.privacy-page .legal-card { padding: clamp(26px, 4vw, 50px); }

.not-found-page {
    background: radial-gradient(circle at 88% 18%, rgba(255, 47, 116, 0.12), transparent 28%), #f7f4f3;
}

.not-found-page .not-found-hero { padding: calc(var(--header-height) + 58px) 0 92px; }

.not-found-page .not-found-inner {
    min-height: min(620px, 74dvh);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.58fr);
    gap: clamp(40px, 7vw, 90px);
    align-items: center;
}

.not-found-page .not-found-title {
    margin: 0 0 26px;
    color: #171318;
    font-size: clamp(3.4rem, 7vw, 7rem);
    font-weight: 740;
    letter-spacing: -0.065em;
    line-height: 0.92;
}

.not-found-page .not-found-text { color: #6e676e; }

.not-found-page .not-found-panel {
    min-height: 470px;
    border: 0;
    border-radius: 4px 34px 34px 34px;
    background: radial-gradient(circle at 72% 24%, rgba(255, 47, 116, 0.42), transparent 26%), #171318;
    box-shadow: none;
}

.not-found-page .not-found-panel::before { display: none; }
.not-found-page .not-found-code { padding: 42px 34px 10px; color: #ff4f87; font-size: clamp(6rem, 13vw, 10rem); }

.not-found-page .not-found-card {
    max-width: none;
    margin: 0 32px;
    padding: 16px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.not-found-page .not-found-card span { color: #ff6d9e; }
.not-found-page .not-found-card strong { color: rgba(255, 255, 255, 0.78); }

.scan-page {
    min-height: 100vh;
    padding: calc(var(--header-height) + 58px) 0 112px !important;
    background: radial-gradient(circle at 88% 12%, rgba(255, 47, 116, 0.12), transparent 29%), #f7f4f3;
}

.scan-page > .container { max-width: 1180px; }

.scan-page .section-title {
    max-width: 930px;
    margin: 0 !important;
    color: #171318;
    font-family: var(--font-display);
    font-size: clamp(3.3rem, 6.7vw, 7rem);
    font-weight: 740;
    letter-spacing: -0.065em;
    line-height: 0.92;
    text-align: left;
}

.scan-page .section-title em {
    color: #171318;
    font-style: normal;
    -webkit-text-fill-color: currentColor;
}

.scan-page .deco-divider { display: none; }

.scan-page .section-sub {
    max-width: 760px !important;
    margin: 28px 0 0 !important;
    color: #6e676e;
    font-size: 1.05rem;
    line-height: 1.75;
    text-align: left;
}

.scan-page .scan-card {
    max-width: none !important;
    margin: 56px 0 0 !important;
    padding: clamp(26px, 5vw, 58px) !important;
    border: 1px solid #d5ced1;
    border-radius: 4px 32px 32px 32px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
}

.scan-page .scan-reader {
    min-height: 260px;
    overflow: hidden;
    border-radius: 4px 24px 24px 24px;
    background: #171318;
}

.scan-page .scan-actions { justify-content: flex-start !important; }
.scan-page .scan-manual { border-color: #d6cfd2 !important; }
.scan-page .lab-input { border-color: #bfb6bb; background: #ffffff; }
.scan-page .scan-result-inner { border: 1px solid #d5ced1; background: #faf7f8; box-shadow: none; }

@media (max-width: 900px) {
    .legal-page .legal-hero-inner { grid-template-columns: 1fr; }
    .legal-page .legal-hero-inner::after { grid-column: 1; grid-row: auto; min-height: 220px; }
    .legal-page .legal-layout { grid-template-columns: 1fr; gap: 22px; }
    .legal-page .legal-nav { position: static; }
    .not-found-page .not-found-inner { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 640px) {
    .legal-page .legal-hero { padding: 116px 0 56px; }
    .legal-page .legal-title { font-size: clamp(2.9rem, 13vw, 4.1rem); }
    .legal-page .legal-hero-inner::after { min-height: 190px; padding: 24px; border-radius: 4px 24px 24px 24px; }
    .legal-page .legal-content-section { padding: 42px 0 76px; }
    .legal-page .legal-card { padding: 30px 18px; border-radius: 4px 22px 22px 22px; }
    .legal-page .legal-section { margin-bottom: 34px; padding-bottom: 34px; }
    .legal-page .legal-section h2 { font-size: clamp(1.9rem, 9vw, 2.65rem); }
    .legal-page .how-section { grid-template-columns: 62px minmax(0, 1fr); gap: 16px; }
    .legal-page .how-step-number { font-size: 3.5rem; }
    .legal-page .how-note { padding: 24px 20px; }
    .not-found-page .not-found-hero { padding: 116px 0 70px; }
    .not-found-page .not-found-title { font-size: clamp(3rem, 14vw, 4.3rem); }
    .not-found-page .not-found-panel { min-height: 350px; border-radius: 4px 24px 24px 24px; }
    .scan-page { padding: 116px 0 76px !important; }
    .scan-page .section-title { font-size: clamp(3rem, 14vw, 4.25rem); }
    .scan-page .scan-card { margin-top: 38px !important; padding: 26px 18px !important; border-radius: 4px 22px 22px 22px; }
    .scan-page .scan-actions { align-items: stretch; flex-direction: column; }
    .scan-page .scan-actions .btn-primary,
    .scan-page .scan-actions .btn-secondary { width: 100%; }
}

/* ================================================================
   COMPACT FIRST SCREENS — keep page heroes useful without letting
   display typography or decorative panels dominate the viewport.
   ================================================================ */
.legal-page .legal-hero-inner {
    row-gap: 0;
}

@media (min-width: 901px) {
    .tool-hero {
        padding: calc(var(--header-height) + 40px) 0 54px;
    }

    .tool-hero h1 {
        max-width: 820px;
        font-size: clamp(2.8rem, 4.7vw, 5rem);
        line-height: 0.94;
    }

    .tool-hero__lead { margin-top: 22px; }
    .tool-hero__note { min-height: 310px; padding: 34px; }
    .tool-hero__number { font-size: clamp(3.8rem, 5.5vw, 5.8rem); }

    #hero.hero-editorial .hero-shell {
        padding-top: 100px;
        padding-bottom: 36px;
    }

    #hero.hero-editorial .hero-main,
    #hero.hero-editorial .hero-editorial-visual {
        min-height: 520px;
    }

    #hero.hero-editorial .hero-inner {
        padding-top: 30px;
        padding-bottom: 24px;
    }

    #hero.hero-editorial .hero-title {
        font-size: clamp(2.8rem, 3.75vw, 3.75rem);
    }

    .composition-page__hero { padding: 110px 0 44px; }
    .composition-page__hero-grid { min-height: 490px; }
    .composition-page__intro { padding: 44px 50px 40px; }
    .composition-page__intro h1 {
        font-size: clamp(2.8rem, 4.5vw, 4.75rem);
        line-height: 0.96;
    }
    .composition-page__guide { padding: 40px 38px 42px; }
    .composition-page__guide-number { font-size: clamp(4rem, 6vw, 6.25rem); }

    .blog-editorial-hero {
        padding: calc(var(--header-height) + 40px) 0 56px;
    }

    .blog-editorial-hero__copy { padding: 14px 0; }
    .blog-editorial-hero h1 {
        max-width: 820px;
        margin: 20px 0 24px;
        font-size: clamp(3rem, 5vw, 5.1rem);
        line-height: 0.93;
    }
    .blog-editorial-hero__actions { margin-top: 28px; }
    .blog-editorial-hero__note { min-height: 370px; padding: 34px; }
    .blog-editorial-hero__number { font-size: clamp(4.2rem, 6.3vw, 6.4rem); }

    .article-editorial-hero {
        padding: calc(var(--header-height) + 36px) 0 54px;
    }
    .article-editorial-hero h1 {
        margin: 18px 0 24px;
        font-size: clamp(2.8rem, 4.7vw, 4.9rem);
        line-height: 0.95;
    }
    .article-editorial-page .article-breadcrumbs { margin-bottom: 24px; }
    .article-editorial-page .article-meta { margin-top: 24px; }
    .article-editorial-hero__visual,
    .article-editorial-hero__placeholder { min-height: 380px; }
    .article-editorial-hero__placeholder strong { font-size: 8.5rem; }

    .legal-page .legal-hero {
        padding: calc(var(--header-height) + 36px) 0 54px;
    }
    .legal-page .legal-title {
        margin-bottom: 22px;
        font-size: clamp(2.8rem, 4.8vw, 5rem);
        line-height: 0.95;
    }
    .privacy-page .legal-title { font-size: clamp(2.55rem, 4.1vw, 4.25rem); }
    .legal-page .legal-hero-inner::after { min-height: 310px; }

    .not-found-page .not-found-hero {
        padding: calc(var(--header-height) + 36px) 0 60px;
    }
    .not-found-page .not-found-inner { min-height: 470px; }
    .not-found-page .not-found-title { font-size: clamp(2.9rem, 4.8vw, 5rem); }
    .not-found-page .not-found-panel { min-height: 370px; }
    .not-found-page .not-found-code { font-size: clamp(5rem, 9vw, 7.5rem); }

    .scan-page {
        min-height: 0;
        padding: calc(var(--header-height) + 36px) 0 76px !important;
    }
    .scan-page .section-title {
        font-size: clamp(2.8rem, 4.8vw, 5rem);
        line-height: 0.95;
    }
    .scan-page .section-sub { margin-top: 22px !important; }
    .scan-page .scan-card { margin-top: 36px !important; }
}

@media (min-width: 641px) and (max-width: 900px) {
    .tool-hero { padding: calc(var(--header-height) + 34px) 0 48px; }
    .tool-hero h1 { font-size: clamp(2.75rem, 8vw, 4.4rem); }
    .tool-hero__grid { gap: 32px; }
    .tool-hero__note { min-height: 270px; }

    #hero.hero-editorial .hero-shell { padding: 100px 0 38px; }
    #hero.hero-editorial .hero-inner { padding: 38px 34px 32px; }
    #hero.hero-editorial .hero-title { font-size: clamp(2.75rem, 7vw, 3.8rem); }

    .composition-page__hero { padding: 100px 0 38px; }
    .composition-page__intro { padding: 40px 36px 34px; }
    .composition-page__intro h1 { font-size: clamp(2.8rem, 7.5vw, 4.2rem); }
    .composition-page__guide { min-height: 340px; }

    .blog-editorial-hero { padding: calc(var(--header-height) + 34px) 0 48px; }
    .blog-editorial-hero h1 { font-size: clamp(2.9rem, 8vw, 4.4rem); }
    .blog-editorial-hero__note { min-height: 300px; }

    .article-editorial-hero { padding: calc(var(--header-height) + 32px) 0 48px; }
    .article-editorial-hero h1 { font-size: clamp(2.7rem, 7.8vw, 4.25rem); }
    .article-editorial-hero__visual,
    .article-editorial-hero__placeholder { min-height: 300px; }

    .legal-page .legal-hero { padding: calc(var(--header-height) + 32px) 0 48px; }
    .legal-page .legal-title { font-size: clamp(2.8rem, 7.8vw, 4.35rem); }
    .legal-page .legal-hero-inner::after { min-height: 200px; }

    .not-found-page .not-found-hero { padding: calc(var(--header-height) + 32px) 0 52px; }
    .not-found-page .not-found-title { font-size: clamp(2.9rem, 8vw, 4.4rem); }
    .not-found-page .not-found-panel { min-height: 300px; }

    .scan-page { min-height: 0; padding: calc(var(--header-height) + 32px) 0 64px !important; }
    .scan-page .section-title { font-size: clamp(2.8rem, 7.8vw, 4.35rem); }
}

@media (max-width: 640px) {
    .tool-hero { padding: 96px 0 42px; }
    .tool-hero h1 { font-size: clamp(2.25rem, 10.5vw, 3.15rem); line-height: 0.98; }
    .tool-hero__grid { gap: 28px; }
    .tool-hero__lead { margin-top: 18px; }
    .tool-hero__note { min-height: 230px; }

    #hero.hero-editorial .hero-shell { padding: 84px 0 26px; }
    #hero.hero-editorial .hero-inner { padding: 26px 18px 22px; }
    #hero.hero-editorial .hero-title { font-size: clamp(2.25rem, 10vw, 2.95rem); }

    .composition-page__hero { padding: 84px 0 28px; }
    .composition-page__intro { padding: 27px 18px 24px; }
    .composition-page__intro h1 { font-size: clamp(2.25rem, 10.5vw, 3.05rem); }
    .composition-page__guide {
        min-height: 0;
        padding: 32px 24px;
        justify-content: flex-start;
    }
    .composition-page__guide-number {
        position: static;
        display: block;
        margin: 0 0 28px;
        font-size: 4rem;
        line-height: 0.8;
    }

    .blog-editorial-hero { padding: 96px 0 42px; }
    .blog-editorial-hero h1 {
        margin: 18px 0 22px;
        font-size: clamp(2.45rem, 11vw, 3.35rem);
        line-height: 0.96;
    }
    .blog-editorial-hero__note { min-height: 270px; }
    .blog-editorial-hero__number { font-size: 5rem; }

    .article-editorial-hero { padding: 96px 0 42px; }
    .article-editorial-page .article-breadcrumbs { margin-bottom: 22px; }
    .article-editorial-hero h1 {
        margin: 18px 0 22px;
        font-size: clamp(2.3rem, 10.5vw, 3.2rem);
        line-height: 0.98;
    }
    .article-editorial-hero__visual { min-height: 220px; }
    .article-editorial-hero__placeholder { min-height: 240px; }

    .legal-page .legal-hero { padding: 96px 0 42px; }
    .legal-page .legal-title { font-size: clamp(2.3rem, 10.5vw, 3.2rem); line-height: 0.98; }
    .legal-page .legal-hero-inner::after { min-height: 165px; }

    .not-found-page .not-found-hero { padding: 96px 0 50px; }
    .not-found-page .not-found-title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
    .not-found-page .not-found-panel { min-height: 280px; }

    .scan-page { min-height: 0; padding: 96px 0 58px !important; }
    .scan-page .section-title { font-size: clamp(2.45rem, 11vw, 3.4rem); line-height: 0.98; }
    .scan-page .scan-card { margin-top: 30px !important; }
}

/* Return path to a successful composition report kept in this tab. */
.inci-resume-shortcut {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 88;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    color: #ffffff;
    background: rgba(23, 19, 24, 0.96);
    box-shadow: 0 16px 42px rgba(23, 19, 24, 0.2);
    text-decoration: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inci-resume-shortcut:hover,
.inci-resume-shortcut:focus-visible {
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(23, 19, 24, 0.28);
    transform: translateY(-2px);
}

.inci-resume-shortcut__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff2f74;
    box-shadow: 0 0 0 5px rgba(255, 47, 116, 0.14);
}

.inci-resume-shortcut__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.inci-resume-shortcut__copy small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.63rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.inci-resume-shortcut__copy strong {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.3;
}

.inci-resume-shortcut__arrow {
    color: #ff6b9d;
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .inci-resume-shortcut {
        right: 14px;
        bottom: 14px;
        left: 14px;
        min-width: 0;
        padding: 12px 14px;
        border-radius: 16px;
    }
}

/* Comparison workspace: quiet editorial UI with an evidence-first report. */
#panel-compat .compat-workspace {
    overflow: hidden;
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid #dedadd;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(23, 19, 24, 0.07);
}

.compat-editor-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding-bottom: 26px;
    border-bottom: 1px solid #e8e4e6;
}

.compat-editor-head__copy { max-width: 760px; }
.compat-editor-head__copy h3 {
    margin: 6px 0 10px;
    color: #171318;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.02;
}
.compat-editor-head__copy p {
    max-width: 680px;
    margin: 0;
    color: #706a70;
    font-size: 0.98rem;
    line-height: 1.65;
}
.compat-product-count {
    min-width: 132px;
    padding: 10px 14px;
    border: 1px solid #d8d2d5;
    border-radius: 999px;
    color: #706a70;
    background: #faf9fa;
    font-size: 0.78rem;
    font-weight: 750;
    text-align: center;
}
.compat-product-count.is-ready {
    border-color: #171318;
    color: #fff;
    background: #171318;
}

.compat-editor-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 26px 0;
    padding: 0;
    border: 1px solid #e3dfe1;
    border-radius: 18px;
    list-style: none;
}
.compat-editor-guide li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 16px 18px;
    color: #5f595f;
    font-size: 0.82rem;
    line-height: 1.45;
}
.compat-editor-guide li + li { border-left: 1px solid #e3dfe1; }
.compat-editor-guide span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #ff2f74;
    background: #fff0f5;
    font-size: 0.72rem;
    font-weight: 800;
}

#panel-compat .products-list {
    display: grid;
    gap: 12px;
    margin: 0;
}
#panel-compat .product-card {
    overflow: hidden;
    border: 1px solid #dedadd;
    border-radius: 18px;
    background: #fbfafb;
    box-shadow: none;
}
#panel-compat .product-card-header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 36px 36px;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
}
#panel-compat .product-card-num {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #171318;
    font-size: 0.78rem;
    font-weight: 800;
}
.product-card-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}
#panel-compat .product-card-name-input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: #171318;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
}
.product-card-state {
    overflow: hidden;
    color: #8b858a;
    font-size: 0.73rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#panel-compat .product-card-toggle,
#panel-compat .product-card-remove {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid #dedadd;
    border-radius: 50%;
    color: #5f595f;
    background: #fff;
    cursor: pointer;
}
#panel-compat .product-card-toggle { transition: transform 0.2s ease; }
#panel-compat .product-card.collapsed .product-card-toggle { transform: rotate(-90deg); }
#panel-compat .product-card-remove:hover { border-color: #ff2f74; color: #ff2f74; }
#panel-compat .product-card-body {
    padding: 6px 16px 16px 66px;
    border-top: 1px solid #eeeaec;
}
#panel-compat .product-card.collapsed .product-card-body { display: none; }
.product-card-label {
    display: block;
    margin: 12px 0 8px;
    color: #6d676d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
#panel-compat .product-card-body .lab-textarea {
    min-height: 108px;
    border: 1px solid #d8d2d5;
    border-radius: 14px;
    background: #fff;
}

.compat-editor-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
    gap: 14px;
    align-items: center;
    margin-top: 18px;
}
#panel-compat .add-product-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    border: 1px dashed #cfc8cc;
    border-radius: 15px;
    color: #171318;
    background: #fff;
    font-weight: 700;
}
#panel-compat #compat-check-btn {
    min-height: 52px;
    padding-inline: 28px;
    border-radius: 15px;
}

#panel-compat .compat-result {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid #d9d4d7;
    border-radius: 26px;
    background: #f7f5f6;
}
.compat-result-header {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #dedadd;
    background: #fff;
}
.compat-result-brand {
    margin: 0;
    color: #171318;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.compat-verdict-pill {
    padding: 8px 12px;
    border: 1px solid #171318;
    border-radius: 999px;
    color: #171318;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}
.compat-verdict-pill.is-warn { border-color: #c68000; color: #8a5a00; background: #fff8e8; }
.compat-verdict-pill.is-good { border-color: #54806a; color: #2e6750; background: #f1f7f4; }
.compat-report { display: grid; gap: 14px; padding: 14px; }
.compat-report-section {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid #e0dcde;
    border-radius: 20px;
    background: #fff;
}
.compat-report-kicker {
    display: block;
    margin-bottom: 12px;
    color: #ff2f74;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.compat-report-section > h3,
.compat-report-section h4 {
    margin: 0 0 14px;
    color: #171318;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
.compat-report-section p { color: #686268; line-height: 1.65; }
.compat-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    gap: 22px;
    align-items: end;
}
.compat-summary__lead { margin: 0; color: #171318 !important; font-size: 1.03rem; }
.compat-summary__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.compat-summary__stat {
    padding: 14px 10px;
    border: 1px solid #e0dcde;
    border-radius: 14px;
    text-align: center;
}
.compat-summary__stat strong { display: block; color: #171318; font-size: 1.55rem; line-height: 1; }
.compat-summary__stat span { display: block; margin-top: 6px; color: #777176; font-size: 0.67rem; line-height: 1.25; }

.compat-product-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compat-product-insight,
.compat-pair-card {
    padding: 20px;
    border: 1px solid #e0dcde;
    border-radius: 16px;
    background: #fbfafb;
}
.compat-product-insight__head { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.compat-pair-card__head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.compat-product-insight h4,
.compat-pair-card h4 { margin: 0; color: #171318; font-size: 1rem; line-height: 1.35; }
.compat-product-insight__time,
.compat-pair-card__status {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid #d8d2d5;
    border-radius: 999px;
    color: #6a6469;
    background: #fff;
    font-size: 0.65rem;
    font-weight: 800;
}
.compat-product-insight__row { margin-top: 14px; }
.compat-product-insight__row strong {
    display: block;
    margin-bottom: 7px;
    color: #777176;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.compat-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.compat-tag {
    padding: 6px 8px;
    border-radius: 8px;
    color: #4f494e;
    background: #efedef;
    font-size: 0.7rem;
    line-height: 1.2;
}
.compat-tag--caution { color: #875400; background: #fff3d8; }
.compat-product-insight__index { color: #ff2f74; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.08em; }
.compat-product-insight__head small { display: block; margin-top: 5px; color: #817b80; font-size: 0.7rem; }
.compat-product-insight__tags { margin-top: 15px; }
.compat-product-insight__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.compat-product-insight__columns strong { display: block; margin-bottom: 7px; color: #777176; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.compat-product-insight__columns ul { margin: 0; padding-left: 17px; color: #5f595f; font-size: 0.76rem; line-height: 1.55; }
.compat-pairs { display: grid; gap: 10px; }
.compat-pair-card { position: relative; padding-left: 32px; background: #fff; }
.compat-pair-card::before {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 16px;
    width: 3px;
    border-radius: 4px;
    background: #6f9c85;
    content: '';
}
.compat-pair-card.is-warn::before { background: #e1a125; }
.compat-pair-card p { margin: 10px 0 0; font-size: 0.88rem; }
.compat-pair-card__how { color: #171318 !important; }
.compat-pair-card__action { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e5e1e3; }
.compat-pair-card__action strong { color: #171318; font-size: 0.72rem; }
.compat-pair-card__action span { color: #625c61; font-size: 0.8rem; line-height: 1.5; }
.compat-matrix-disclosure { margin-top: 14px; border-top: 1px solid #e4e0e2; }
.compat-matrix-disclosure summary { padding: 15px 0 0; color: #5e585d; cursor: pointer; font-size: 0.78rem; font-weight: 750; }
.compat-table-wrap { overflow-x: auto; margin-top: 12px; }
#panel-compat .compat-table { min-width: 560px; }
#panel-compat .compat-table th,
#panel-compat .compat-table td { border-color: #e0dcde; }
.compat-legend-dot--good { background: #6f9c85; }
.compat-legend-dot--warn { background: #e1a125; }
.compat-legend-dot--bad { background: #c84e68; }

.compat-schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.compat-schedule__column { padding: 18px; border: 1px solid #e0dcde; border-radius: 16px; background: #fbfafb; }
.compat-schedule__column > span,
.compat-schedule__column strong { display: block; margin-bottom: 10px; color: #171318; font-size: 0.8rem; font-weight: 800; }
.compat-schedule__column ul { margin: 0; padding-left: 18px; color: #625c61; font-size: 0.82rem; line-height: 1.55; }
.compat-schedule__column small { display: block; margin-top: 12px; color: #8a8489; font-size: 0.68rem; line-height: 1.45; }
.compat-schedule__separate { grid-column: 1 / -1; padding: 16px 18px; border-left: 3px solid #e1a125; background: #fff9eb; }
.compat-schedule__separate strong { color: #171318; font-size: 0.78rem; }
.compat-schedule__separate ul { margin: 8px 0 0; padding-left: 18px; color: #625c61; font-size: 0.78rem; line-height: 1.55; }
.compat-limitations {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 17px 20px;
    border: 1px solid #dedadd;
    border-radius: 16px;
    background: #f3f1f2;
}
.compat-limitations__mark { color: #ff2f74; font-size: 1.35rem; line-height: 1; }
.compat-limitations strong { display: block; margin-bottom: 4px; color: #171318; font-size: 0.82rem; }
.compat-limitations p { margin: 0; font-size: 0.76rem; }

@media (max-width: 760px) {
    #panel-compat .compat-workspace { padding: 20px 16px; border-radius: 22px; }
    .compat-editor-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
    .compat-product-count { min-width: 0; justify-self: start; }
    .compat-editor-guide { grid-template-columns: 1fr; }
    .compat-editor-guide li + li { border-top: 1px solid #e3dfe1; border-left: 0; }
    #panel-compat .product-card-header { grid-template-columns: 34px minmax(0, 1fr) 34px 34px; gap: 8px; padding: 12px; }
    #panel-compat .product-card-num,
    #panel-compat .product-card-toggle,
    #panel-compat .product-card-remove { width: 34px; height: 34px; }
    #panel-compat .product-card-body { padding: 4px 12px 12px; }
    .compat-editor-actions,
    .compat-summary,
    .compat-product-insights,
    .compat-schedule { grid-template-columns: 1fr; }
    .compat-editor-actions #compat-check-btn { width: 100%; }
    .compat-result-header { align-items: flex-start; flex-direction: column; padding: 18px; }
    .compat-report { padding: 8px; }
    .compat-report-section { padding: 20px 16px; }
    .compat-summary__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .compat-pair-card { padding: 18px 14px 18px 28px; }
    .compat-pair-card::before { left: 13px; }
    .compat-product-insight__columns,
    .compat-pair-card__action { grid-template-columns: 1fr; }
}

/* Photo workspace v3: compact guidance, photo first, analysis directly below. */
.tool-page--photo #photo .photo-workspace {
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tool-page--photo #photo .photo-layout {
    grid-template-columns: minmax(230px, 0.48fr) minmax(0, 1.82fr);
    gap: 18px;
    align-items: start;
}

.tool-page--photo #photo .photo-aside {
    align-self: start;
    padding: 32px 24px 34px;
    border-radius: 4px 24px 24px 24px;
    box-shadow: 0 22px 58px rgba(32, 21, 27, 0.12);
}

.tool-page--photo #photo .photo-aside-head {
    margin-bottom: 36px;
    padding-bottom: 22px;
}

.tool-page--photo #photo .photo-aside-head p {
    font-size: clamp(1.15rem, 1.65vw, 1.5rem);
}

.tool-page--photo #photo .photo-aside-label--requirements {
    margin-top: 30px;
}

.tool-page--photo #photo .photo-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-content: start;
    min-height: 0;
    padding: 72px 34px 34px;
    border: 1px solid #ded9dc;
    border-radius: 4px 28px 28px 28px;
    box-shadow: 0 24px 70px rgba(43, 25, 33, 0.08);
}

.tool-page--photo #photo .photo-drop,
.tool-page--photo #photo .photo-preview-wrap,
.tool-page--photo #photo .ai-loading,
.tool-page--photo #photo .photo-result-panel {
    grid-column: 1;
    width: 100%;
    min-width: 0;
}

.tool-page--photo #photo .photo-preview-frame {
    margin-bottom: 14px;
    border: 1px solid #ded9dc;
    border-radius: 4px 22px 22px 22px;
    background: #f6f3f4;
}

.tool-page--photo #photo .photo-preview-frame img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
}

.tool-page--photo #photo .photo-preview-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
}

.tool-page--photo #photo .photo-result-panel {
    margin-top: 0;
}

@media (min-width: 901px) {
    .tool-page--photo #photo .photo-result-panel:not([hidden]) {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
        align-items: start;
    }

    .tool-page--photo #photo .photo-result-head {
        grid-column: 1 / -1;
    }

    .tool-page--photo #photo .photo-result-summary {
        grid-column: 1;
        padding: 26px 28px 18px;
    }

    .tool-page--photo #photo .photo-result-scores {
        grid-column: 1;
        padding: 4px 28px 26px;
    }

    .tool-page--photo #photo .photo-result-rec {
        grid-column: 2;
        grid-row: 2 / span 2;
        align-self: stretch;
        margin: 24px 24px 24px 0;
        padding: 22px;
    }

    .tool-page--photo #photo .photo-disclaimer,
    .tool-page--photo #photo .photo-result-cta {
        grid-column: 1 / -1;
    }

    .tool-page--photo #photo .photo-disclaimer {
        padding: 0 28px 16px;
    }

    .tool-page--photo #photo .photo-result-cta {
        margin: 0 28px 26px;
    }
}

@media (max-width: 900px) {
    .tool-page--photo #photo .photo-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tool-page--photo #photo .photo-aside {
        width: 100%;
    }

    .tool-page--photo #photo .photo-main {
        padding: 72px 24px 24px;
    }
}

@media (max-width: 640px) {
    .tool-page--photo #photo .photo-main {
        gap: 18px;
        padding: 72px 16px 16px;
    }

    .tool-page--photo #photo .photo-preview-actions {
        grid-template-columns: 1fr;
    }

    .tool-page--photo #photo .photo-preview-frame img {
        max-height: 430px;
    }
}

/* Photo hero: compact result preview based on the composition guide card. */
.tool-page--photo .photo-hero__result {
    min-height: 0;
    padding: 34px 34px 38px;
    justify-content: flex-start;
    border-radius: 30px 30px 4px 30px;
}

.tool-page--photo .photo-hero__result .composition-page__guide-number {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    margin: 0 0 28px;
    font-size: clamp(4.5rem, 6vw, 6.5rem);
}

.tool-page--photo .photo-hero__result .composition-page__guide-kicker {
    position: relative;
    z-index: 1;
}

.tool-page--photo .photo-hero__result h2 {
    max-width: 340px;
    margin-bottom: 22px;
    font-size: clamp(1.55rem, 2.15vw, 2.05rem);
}

.tool-page--photo .photo-hero__result ol {
    gap: 14px;
    font-size: 0.82rem;
}

@media (max-width: 640px) {
    .tool-page--photo .photo-hero__result {
        padding: 28px 24px 32px;
        border-radius: 24px 24px 4px 24px;
    }

    .tool-page--photo .photo-hero__result .composition-page__guide-number {
        margin-bottom: 24px;
        font-size: 4.5rem;
    }
}

/* Photo guidance now lives in the hero; keep the workspace focused on the upload and result. */
.tool-page--photo #photo .photo-layout {
    grid-template-columns: minmax(0, 1fr);
}

.tool-page--photo #photo .photo-main {
    grid-column: 1 / -1;
}

/* Keep the homepage analysis scene above the legacy visual background rules. */
#hero.hero-editorial .hero-editorial-visual--analysis {
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 14%, rgba(255, 47, 116, 0.2), transparent 30%),
        linear-gradient(145deg, #211b21 0%, #151216 70%);
}

#hero.hero-editorial .hero-editorial-visual--analysis .hero-analysis-card {
    bottom: 140px;
}

@media (max-width: 1180px) and (min-width: 901px) {
    #hero.hero-editorial .hero-editorial-visual--analysis .hero-analysis-card {
        bottom: 134px;
    }
}

#hero.hero-editorial .hero-person-frame {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
    overflow: hidden;
    width: 150px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: #f7e9ee;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24), 0 0 0 8px rgba(255, 91, 145, 0.08);
}

#hero.hero-editorial .hero-person-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}

/* A gentle close-up of the supplied photo inside the circular frame. */
#hero.hero-editorial .hero-person-frame--portrait {
    border-radius: 50%;
}

#hero.hero-editorial .hero-person-frame--portrait img {
    display: block;
    object-fit: contain;
    object-position: center;
    transform: scale(1.10);
    transform-origin: 50% 40%;
}

@media (min-width: 901px) {
    #hero.hero-editorial .hero-shell {
        padding-top: 126px;
        padding-bottom: 52px;
    }

    #hero.hero-editorial .hero-main,
    #hero.hero-editorial .hero-editorial-visual {
        min-height: 620px;
    }
}

@media (max-width: 1180px) and (min-width: 901px) {
    #hero.hero-editorial .hero-person-frame {
        top: 28px;
        right: 26px;
        width: 132px;
    }
}

@media (max-width: 900px) {
    #hero.hero-editorial,
    #hero.hero-editorial .hero-shell,
    #hero.hero-editorial .hero-container,
    #hero.hero-editorial .hero-main,
    #hero.hero-editorial .hero-inner {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    #hero.hero-editorial .hero-inner {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    #hero.hero-editorial .hero-main {
        padding-bottom: 0;
    }

    #hero.hero-editorial .hero-shell {
        padding-bottom: 16px;
    }

    #how-it-works {
        padding-top: 42px;
    }
}

/* About page: keep the final safety note and both actions intact. */
.legal-page .legal-section.how-note:last-child {
    padding: 32px;
}

.legal-page .how-note .how-actions-bottom {
    align-items: center;
    margin-top: 26px;
}

.legal-page .how-note .btn-primary,
.legal-page .how-note .btn-secondary {
    min-height: 58px;
    padding: 0 30px;
    border-radius: 18px;
}

.legal-page .how-note .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    background: transparent;
}

.legal-page .how-note .btn-secondary:hover,
.legal-page .how-note .btn-secondary:focus-visible {
    border-color: #ffffff;
    color: #171318;
    background: #ffffff;
}

@media (max-width: 640px) {
    .legal-page .legal-section.how-note:last-child {
        padding: 24px 20px;
    }

    .legal-page .how-note .how-actions-bottom {
        align-items: stretch;
    }
}

/* About page — project creator. */
.about-page .about-creator {
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
    margin-bottom: 42px;
    padding: clamp(24px, 3.5vw, 38px);
    border: 1px solid #d5ced1;
    border-radius: 4px 28px 28px 28px;
    background:
        radial-gradient(circle at 95% 5%, rgba(255, 47, 116, 0.09), transparent 34%),
        #f8f4f5;
}

.about-page .about-creator__portrait {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin: 0;
    border-radius: 4px 24px 24px 24px;
    background: #eadfe2;
}

.about-page .about-creator__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}

.about-page .about-creator__content {
    min-width: 0;
}

.about-page .about-creator__eyebrow {
    margin: 0 0 13px;
    color: #ff2f74;
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    line-height: 1.35;
    text-transform: uppercase;
}

.about-page .about-creator h2 {
    max-width: 500px;
    margin-bottom: 20px;
    font-size: clamp(2rem, 3.25vw, 3.05rem);
    line-height: 1.02;
}

.about-page .about-creator__content p:not(.about-creator__eyebrow) {
    color: #5f5960;
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-page .about-creator__content p + p {
    margin-top: 14px;
}

@media (max-width: 760px) {
    .about-page .about-creator {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 20px;
        border-radius: 4px 24px 24px 24px;
    }

    .about-page .about-creator__portrait {
        max-width: 420px;
        aspect-ratio: 5 / 6;
    }

    .about-page .about-creator h2 {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }
}

/* About page v2 — wide content without the secondary navigation. */
.about-page .legal-layout {
    display: block;
    width: min(100%, 1280px);
    margin-inline: auto;
}

.about-page .legal-hero-inner {
    grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
    gap: clamp(44px, 6vw, 88px);
    justify-content: stretch;
}

.about-page .legal-hero-inner::after {
    display: none;
    content: none;
}

.about-page .legal-title {
    max-width: 860px;
    font-size: clamp(3.2rem, 5.3vw, 5.8rem);
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

.about-page .about-hero-copy {
    grid-column: 1;
    align-self: center;
}

.about-page .about-hero-panel {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    overflow: hidden;
    min-height: 390px;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(26px, 3vw, 38px);
    border-radius: 4px 32px 32px 32px;
    background:
        radial-gradient(circle at 104% -4%, rgba(255, 255, 255, 0.78) 0 18%, transparent 18.5%),
        linear-gradient(155deg, #f7dce6 0%, #f2e5e9 100%);
}

.about-page .about-hero-panel::after {
    position: absolute;
    right: -70px;
    bottom: -78px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 47, 116, 0.22);
    border-radius: 50%;
    content: '';
}

.about-page .about-hero-panel__number {
    position: relative;
    z-index: 1;
    color: #ff2f74;
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 6.4vw, 6.5rem);
    font-weight: 430;
    letter-spacing: -0.08em;
    line-height: 0.78;
}

.about-page .about-hero-panel__content {
    position: relative;
    z-index: 1;
}

.about-page .about-hero-panel__eyebrow {
    margin: 0 0 13px;
    color: #be1753;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-page .about-hero-panel__statement {
    max-width: 330px;
    margin: 0;
    color: #171318;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.7vw, 2.55rem);
    font-weight: 610;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.about-page .about-hero-panel__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 26px;
    color: #6f4f5a;
    font-size: 0.7rem;
    font-weight: 700;
}

.about-page .about-hero-panel__topics span + span::before {
    margin-right: 16px;
    color: #ff2f74;
    content: '•';
}

.about-page .about-content {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.about-page .about-creator {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 72px);
    margin: 0;
    padding: 0 0 clamp(46px, 6vw, 76px);
    border: 0;
    border-bottom: 1px solid #d6cfd2;
    border-radius: 0;
    background: transparent;
}

.about-page .about-creator__portrait {
    aspect-ratio: 4 / 5;
}

.about-page .about-creator h2 {
    max-width: 720px;
    margin-bottom: 26px;
    font-size: clamp(2.3rem, 3.7vw, 3.85rem);
}

.about-page .about-creator__name {
    margin: 22px 0 0 !important;
    color: #171318 !important;
    font-size: 0.8rem !important;
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: 1.4 !important;
}

.about-page .about-creator__contact {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-top: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #171318;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #d8cbd0;
    text-underline-offset: 5px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.about-page .about-creator__contact span {
    color: #ff2f74;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.about-page .about-creator__contact:hover,
.about-page .about-creator__contact:focus-visible {
    color: #ff2f74;
    text-decoration-color: #ff2f74;
}

.about-page .about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 6vw, 84px);
    border-top: 0;
}

.about-page .about-info-grid > .legal-section {
    margin: 0;
    padding: clamp(34px, 4vw, 50px) 0;
}

.about-page .about-info-grid > .legal-section h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.about-page .about-info-grid > .how-note {
    grid-column: 1 / -1;
    margin: clamp(28px, 4vw, 48px) 0 0 !important;
}

@media (max-width: 900px) {
    .about-page .legal-hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-page .about-hero-panel {
        grid-column: 1;
        grid-row: auto;
        min-height: 270px;
        margin-top: 34px;
    }
}

@media (max-width: 800px) {
    .about-page .about-content {
        padding: 0;
    }

    .about-page .about-creator {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 0 0 38px;
    }

    .about-page .about-creator__portrait {
        max-width: 440px;
        aspect-ratio: 5 / 6;
    }

    .about-page .about-info-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .about-page .about-info-grid > .how-note {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .about-page .legal-title {
        font-size: clamp(2.65rem, 11.5vw, 3.2rem);
    }

    .about-page .about-hero-panel {
        min-height: 240px;
        padding: 24px;
        border-radius: 4px 24px 24px 24px;
    }

    .about-page .about-hero-panel__statement {
        max-width: 280px;
        font-size: 1.9rem;
    }
}

/* Support message modal */
body.support-modal-open {
    overflow: hidden;
}

footer.site-footer-editorial .donate-btn {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.support-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(20, 17, 21, 0.72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.support-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.support-modal {
    position: relative;
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(26, 23, 27, 0.14);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(20, 17, 21, 0.28);
    transform: translateY(14px) scale(0.985);
    transition: transform 180ms ease;
}

.support-modal-backdrop.is-open .support-modal {
    transform: translateY(0) scale(1);
}

.support-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(26, 23, 27, 0.16);
    border-radius: 50%;
    color: #1a171b;
    background: #fff;
    cursor: pointer;
}

.support-modal__close:hover,
.support-modal__close:focus-visible {
    border-color: #ff2f74;
    color: #ff2f74;
}

.support-modal__kicker {
    margin: 0 54px 12px 0;
    color: #ff2f74;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.support-modal h2 {
    margin: 0 54px 12px 0;
    color: #1a171b;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.02;
}

.support-modal__copy {
    max-width: 520px;
    margin: 0 0 28px;
    color: #716b73;
    font-size: 1rem;
    line-height: 1.65;
}

.support-form {
    display: grid;
    gap: 10px;
}

.support-form label {
    margin-top: 6px;
    color: #1a171b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.support-form input,
.support-form textarea {
    width: 100%;
    border: 1px solid #d9d3d8;
    border-radius: 14px;
    padding: 15px 17px;
    color: #1a171b;
    background: #fbf8f9;
    font: inherit;
    line-height: 1.45;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.support-form textarea {
    min-height: 140px;
    resize: vertical;
}

.support-form input:focus,
.support-form textarea:focus {
    outline: none;
    border-color: #ff2f74;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 47, 116, 0.11);
}

.support-form__error {
    min-height: 0;
    color: #c21f58;
    font-size: 0.82rem;
}

.support-form__error:empty {
    display: none;
}

.support-form__submit {
    min-height: 56px;
    margin-top: 10px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: #ff2f74;
    box-shadow: 0 12px 28px rgba(255, 47, 116, 0.22);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.support-form__submit:hover,
.support-form__submit:focus-visible {
    background: #e92768;
}

.support-form__submit[disabled] {
    opacity: 0.65;
    cursor: wait;
}

.support-form__note {
    margin: 4px 0 0;
    color: #9a939b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.support-form__flash:empty {
    display: none;
}

.support-form__flash .alert,
.support-form__flash .flash-message {
    margin: 0 0 8px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.support-form__flash .alert-success,
.support-form__flash .success {
    color: #185c40;
    background: #e9f8f0;
}

.support-form__flash .alert-danger,
.support-form__flash .error {
    color: #8b2348;
    background: #fff0f5;
}

@media (max-width: 640px) {
    .support-modal-backdrop {
        align-items: end;
        padding: 12px;
    }

    .support-modal {
        width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 28px 20px 24px;
        border-radius: 24px 24px 16px 16px;
    }

    .support-modal__close {
        top: 14px;
        right: 14px;
    }

    .support-modal h2 {
        font-size: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-modal-backdrop,
    .support-modal {
        transition: none;
    }
}
