/* ==========================================================================
   Persona 2026 — design layer
   New components use the "p-" prefix so they never collide with the legacy
   styles.css, which inner pages still rely on until they are migrated.
   ========================================================================== */

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(../fonts/onest/onest-cyrillic-ext.woff2) format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(../fonts/onest/onest-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(../fonts/onest/onest-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Onest";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(../fonts/onest/onest-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* brand palette (unchanged colours, explicit roles) */
    --p-pine: #187761;        /* headings, primary buttons, footer */
    --p-pine-deep: #0f5a49;   /* hover / pressed */
    --p-teal: #43ad94;        /* brand accent, active states, the dandelion */
    --p-heading: #43ad94;     /* large headings only: page and section titles (client request) */
    --p-mint: #b2e2d7;        /* hairlines on tinted areas, soft fills */
    --p-mist: #eef8f4;        /* tinted section background */
    --p-lagoon: #049eb3;      /* inline links only */
    --p-ink: #173a32;         /* body text */
    --p-muted: #56716a;       /* secondary text */
    --p-line: #d7e8e2;        /* dividers on white */
    --p-white: #ffffff;

    --p-font: "Onest", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

    /* type scale (perfect fourth, fluid at the top end) */
    --p-fs-xs: 0.8125rem;
    --p-fs-sm: 0.9375rem;
    --p-fs-base: 1.0625rem;
    --p-fs-md: 1.25rem;
    --p-fs-lg: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
    --p-fs-xl: clamp(2rem, 1.4rem + 2.2vw, 3rem);
    --p-fs-hero: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);

    --p-radius-photo: 24px;
    --p-radius-field: 14px;
    --p-wrap: 1240px;
    --p-gutter: clamp(20px, 4vw, 48px);
    --p-section: clamp(64px, 8vw, 120px);
    --p-header-h: 76px;
}

/* ---------- base (site-wide) ---------- */
html { font-family: var(--p-font); }
body {
    /* legacy CSS fixes body to the viewport height, which would end the sticky header after one screen */
    height: auto !important;
    min-height: 100%;
    padding-top: 0 !important;
    font-family: var(--p-font);
    color: var(--p-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.p-has-actionbar { padding-bottom: 0; }

.p-wrap {
    width: 100%;
    max-width: calc(var(--p-wrap) + 2 * var(--p-gutter));
    margin: 0 auto;
    padding: 0 var(--p-gutter);
}

/* visible keyboard focus (legacy CSS removes outlines with !important) */
.p-scope a:focus-visible,
.p-scope button:focus-visible,
.p-scope summary:focus-visible,
.p-scope select:focus-visible,
.p-scope input:focus-visible {
    outline: 3px solid var(--p-teal) !important;
    outline-offset: 3px;
}

.p-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- type ---------- */
.p-scope { font-family: var(--p-font); font-size: var(--p-fs-base); line-height: 1.6; color: var(--p-ink); }
.p-scope p { margin: 0 0 1em; }
.p-h1, .p-h2, .p-h3 { margin: 0; color: var(--p-heading); font-family: var(--p-font); }
/* small headings stay pine: #43AD94 is too light for small text (contrast 2.75:1) */
.p-h3 { color: var(--p-pine); }
.p-h1 {
    font-size: var(--p-fs-hero);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.028em;
}
.p-h2 {
    font-size: var(--p-fs-xl);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.022em;
}
.p-h3 {
    font-size: var(--p-fs-md);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.p-lead { font-size: var(--p-fs-md); line-height: 1.55; color: var(--p-muted); max-width: 34em; }
.p-muted { color: var(--p-muted); }
.p-link {
    color: var(--p-pine);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--p-mint);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    transition: text-decoration-color .2s, color .2s;
}
.p-link:hover { color: var(--p-pine-deep); text-decoration-color: var(--p-teal); }

/* ---------- buttons ---------- */
.p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 600 var(--p-fs-sm)/1.1 var(--p-font);
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.p-btn--primary { background: var(--p-pine); color: var(--p-white) !important; }
.p-btn--primary:hover { background: var(--p-pine-deep); }
.p-btn--ghost { background: transparent; color: var(--p-pine) !important; border-color: var(--p-pine); }
.p-btn--ghost:hover { background: var(--p-pine); color: var(--p-white) !important; }
.p-btn--light { background: var(--p-white); color: var(--p-pine) !important; }
.p-btn--light:hover { background: var(--p-mist); }
.p-btn--sm { min-height: 44px; padding: 0 22px; }
.p-btn svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.p-topbar {
    background: var(--p-pine);
    color: rgba(255, 255, 255, .86);
    font-size: var(--p-fs-xs);
}
.p-topbar .p-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 38px;
}
.p-topbar a { color: var(--p-white); }
.p-topbar a:hover { color: var(--p-mint); }
.p-topbar__hours { display: flex; gap: 18px; }
.p-topbar__hours p { margin: 0; display: flex; gap: 6px; }
.p-topbar__hours span:first-child { opacity: .7; }
.p-topbar__links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.p-topbar a.p-topbar__btn {
    padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color .15s, color .15s, border-color .15s;
}
.p-topbar a.p-topbar__btn:hover,
.p-topbar a.p-topbar__btn:focus-visible { background: var(--p-white); border-color: var(--p-white); color: var(--p-pine); }
.p-lang { display: flex; gap: 2px; }
.p-lang a, .p-lang span {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: .04em;
}
.p-lang [aria-current] { background: rgba(255, 255, 255, .16); color: var(--p-white); }

.p-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--p-line);
}
.p-header .p-wrap {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--p-header-h);
}
.p-logo { flex: none; display: block; }
.p-logo img { display: block; height: 40px; width: auto; }

.p-nav { flex: 1; min-width: 0; }
.p-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.p-nav__list > li { position: relative; }
.p-nav__link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: var(--p-fs-sm);
    font-weight: 500;
    color: var(--p-ink);
    white-space: nowrap;
}
.p-nav__link:hover, .p-nav__more[aria-expanded="true"] { color: var(--p-pine); background: var(--p-mist); }
.p-nav__link[aria-current="page"] { color: var(--p-pine); box-shadow: inset 0 -2px 0 var(--p-teal); border-radius: 0; }
.p-nav__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: var(--p-fs-sm);
    font-weight: 500;
    color: var(--p-ink);
}
.p-nav__more svg { width: 12px; height: 12px; transition: transform .2s; }
.p-nav__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.p-nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: var(--p-white);
    border: 1px solid var(--p-line);
    border-radius: 16px;
    box-shadow: 0 18px 40px -18px rgba(23, 58, 50, .35);
}
.p-nav__dropdown[hidden] { display: none; }
.p-nav__dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: var(--p-fs-sm);
    color: var(--p-ink);
}
.p-nav__dropdown a:hover { background: var(--p-mist); color: var(--p-pine); }

.p-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.p-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--p-pine) !important;
    transition: background-color .2s;
}
.p-icon-btn:hover { background: var(--p-mist); }
.p-icon-btn svg { width: 20px; height: 20px; }
.p-burger { display: none; }

/* drawer (mobile menu) */
.p-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 50, 42, .4);
}
.p-drawer[hidden] { display: none; }
.p-drawer__panel {
    width: min(420px, 100%);
    height: 100%;
    overflow-y: auto;
    background: var(--p-white);
    padding: 20px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.p-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.p-drawer__nav { margin: 0; padding: 0; list-style: none; }
.p-drawer__nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--p-line);
    font-size: var(--p-fs-md);
    font-weight: 500;
    color: var(--p-ink);
}
.p-drawer__contacts { display: grid; gap: 6px; font-size: var(--p-fs-sm); color: var(--p-muted); }
.p-drawer__contacts a { color: var(--p-pine); font-size: var(--p-fs-md); font-weight: 600; }
.p-drawer .p-lang a, .p-drawer .p-lang span { color: var(--p-pine); border: 1px solid var(--p-line); }
.p-drawer .p-lang [aria-current] { background: var(--p-pine); color: var(--p-white); border-color: var(--p-pine); }

/* mobile action bar */
.p-actionbar { display: none; }

@media (max-width: 1239px) {
    .p-nav { display: none; }
    .p-burger { display: inline-flex; }
    .p-header__actions { margin-left: auto; }
    .p-topbar__links { display: none; }
}
@media (max-width: 767px) {
    :root { --p-header-h: 64px; }
    .p-topbar { display: none; }
    .p-logo img { height: 32px; }
    .p-header__book { display: none; }
    .p-actionbar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: 46px 46px 1fr;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: var(--p-white);
        border-top: 1px solid var(--p-line);
    }
    .p-actionbar .p-btn { min-height: 46px; padding: 0 14px; font-size: var(--p-fs-sm); }
    .p-actionbar .p-btn--icon { padding: 0; width: 46px; border-radius: 50%; }
    .p-actionbar .p-btn--icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    body.p-has-actionbar { padding-bottom: 76px; }
}

/* ==========================================================================
   Home: hero
   ========================================================================== */
.p-hero {
    position: relative;
    overflow: hidden;
    background: var(--p-white);
}
.p-hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 72%;
    margin: 0;
}
.p-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 85% 40%;
}
.p-hero__media::after {
    /* the banner photos already fade to white on the left; reinforce it so text always reads */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .85) 22%, rgba(255, 255, 255, 0) 55%);
}
.p-hero .p-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(78vh, 720px);
    padding-top: 56px;
    padding-bottom: 56px;
}
.p-hero__content { max-width: 720px; }
.p-hero .p-h1 { white-space: pre-line; }
.p-hero .p-lead { margin: 24px 0 36px; color: var(--p-ink); }
.p-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.p-hero__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--p-line);
    font-size: var(--p-fs-sm);
    color: var(--p-muted);
    max-width: 520px;
}
.p-hero__contact a { color: var(--p-pine); font-weight: 600; font-size: var(--p-fs-md); }
.p-hero__contact .p-wa { display: inline-flex; align-items: center; gap: 8px; }
.p-hero__contact .p-wa svg { width: 18px; height: 18px; }

@media (max-width: 899px) {
    .p-hero__media { position: relative; width: 100%; height: 300px; }
    .p-hero__media img { object-position: 82% 30%; }
    .p-hero__media::after { background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 45%); }
    .p-hero .p-wrap { min-height: 0; padding-top: 0; margin-top: -40px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.p-section { padding: var(--p-section) 0; }
.p-section--mist { background: var(--p-mist); }
.p-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
    margin-bottom: clamp(32px, 4vw, 56px);
}
.p-section__head .p-lead { margin: 14px 0 0; }

/* ---------- directions (service categories) ---------- */
.p-directions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 clamp(24px, 4vw, 64px);
}
.p-direction { border-top: 2px solid var(--p-teal); padding-top: 24px; }
.p-direction .p-h3 { margin-bottom: 18px; }
.p-direction ul { margin: 0 0 22px; padding: 0; list-style: none; }
.p-direction li { border-bottom: 1px solid var(--p-line); }
.p-direction li a, .p-direction li span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    color: var(--p-ink);
    font-size: var(--p-fs-base);
}
.p-direction li a::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 9px;
    border-top: 2px solid var(--p-teal);
    border-right: 2px solid var(--p-teal);
    transform: rotate(45deg);
    transition: transform .2s;
}
.p-direction li a:hover { color: var(--p-pine); }
.p-direction li a:hover::after { transform: translateX(3px) rotate(45deg); }
@media (max-width: 899px) {
    .p-directions { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   The path — treatment steps drawn as the dandelion stem from the logo
   ========================================================================== */
.p-path { position: relative; }
.p-path__stage { position: relative; }
.p-path__stem { display: none; }
.p-path__steps { list-style: none; margin: 0; padding: 0; }
.p-path__btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: left;
    font: inherit;
    color: var(--p-ink);
    cursor: pointer;
}
.p-path__seed {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--p-white);
    border: 2px solid var(--p-teal);
    color: var(--p-pine);
    font-weight: 600;
    font-size: var(--p-fs-sm);
    transition: background-color .25s, color .25s, transform .25s;
}
.p-path__name { font-weight: 500; line-height: 1.3; }
.p-path__btn:hover .p-path__seed { transform: scale(1.08); }
.p-path__btn[aria-selected="true"] .p-path__seed { background: var(--p-teal); color: var(--p-white); }
.p-path__btn[aria-selected="true"] .p-path__name { color: var(--p-pine); }
/* last step: the flower head */
.p-path__item--bloom .p-path__seed::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--p-teal) 2.5px, transparent 3px) 50% 0 / 6px 6px no-repeat,
        radial-gradient(circle, var(--p-teal) 2.5px, transparent 3px) 50% 100% / 6px 6px no-repeat,
        radial-gradient(circle, var(--p-teal) 2.5px, transparent 3px) 0 50% / 6px 6px no-repeat,
        radial-gradient(circle, var(--p-teal) 2.5px, transparent 3px) 100% 50% / 6px 6px no-repeat,
        radial-gradient(circle, var(--p-mint) 2.5px, transparent 3px) 15% 15% / 6px 6px no-repeat,
        radial-gradient(circle, var(--p-mint) 2.5px, transparent 3px) 85% 15% / 6px 6px no-repeat,
        radial-gradient(circle, var(--p-mint) 2.5px, transparent 3px) 15% 85% / 6px 6px no-repeat,
        radial-gradient(circle, var(--p-mint) 2.5px, transparent 3px) 85% 85% / 6px 6px no-repeat;
}

.p-path__panel {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px clamp(24px, 5vw, 80px);
    padding: clamp(28px, 4vw, 48px);
    background: var(--p-white);
    border-radius: var(--p-radius-photo);
}
.p-path__panel[hidden] { display: none; }
.p-path__count { margin: 0 0 10px; font-size: var(--p-fs-sm); color: var(--p-muted); }
.p-path__panel .p-h2 { font-size: var(--p-fs-lg); }
.p-path__text { max-width: 62ch; }
.p-path__text > *:last-child { margin-bottom: 0; }
.p-path__text ul { padding-left: 1.2em; }
.p-path__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* desktop: steps sit on a drawn stem */
@media (min-width: 1024px) {
    .p-path__stage { height: 260px; margin-bottom: 24px; }
    .p-path__stem {
        display: block;
        position: absolute;
        left: 0; top: 0;
        width: 100%;
        height: 200px;
        overflow: visible;
    }
    .p-path__stem path { fill: none; stroke: var(--p-teal); stroke-width: 2; stroke-linecap: round; }
    .p-path__stem .p-path__stem-bg { stroke: var(--p-mint); }
    .p-path__steps { position: absolute; inset: 0; }
    .p-path__item { position: absolute; width: 0; left: var(--x); top: var(--y); }
    .p-path__btn {
        position: absolute;
        flex-direction: column;
        gap: 12px;
        width: 128px;
        transform: translate(-50%, -23px);
        text-align: center;
    }
    .p-path__name { font-size: var(--p-fs-sm); }
}
/* mobile/tablet: a vertical stem, each step expands in place */
@media (max-width: 1023px) {
    .p-path__steps { position: relative; padding-left: 0; }
    .p-path__steps::before {
        content: "";
        position: absolute;
        left: 22px; top: 23px; bottom: 23px;
        width: 2px;
        background: var(--p-mint);
    }
    .p-path__item { position: relative; padding: 8px 0; }
    .p-path__panel { grid-template-columns: 1fr; margin: 12px 0 8px 62px; padding: 22px; }
    @media (max-width: 599px) {
        .p-path__panel { margin-left: 0; padding: 20px; }
        .p-path__actions .p-btn { width: 100%; }
    }
    .p-path__panel > div:first-child { display: none; }
}

/* ==========================================================================
   Specialists strip
   ========================================================================== */
.p-team__nav { display: flex; gap: 8px; }
.p-round-btn {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--p-line);
    color: var(--p-pine);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.p-round-btn:hover:not(:disabled) { border-color: var(--p-teal); background: var(--p-mist); }
.p-round-btn:disabled { opacity: .35; cursor: default; }
.p-round-btn svg { width: 18px; height: 18px; }
.p-team__strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(220px, 23%, 290px);
    gap: clamp(16px, 2vw, 28px);
    margin: 0;
    padding: 0 0 12px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--p-mint) transparent;
}
.p-team__strip > li { scroll-snap-align: start; }
.p-doc { display: block; color: var(--p-ink); }
.p-doc__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--p-radius-photo);
    background: #e4ece9;
}
.p-doc__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.p-doc:hover .p-doc__photo img { transform: scale(1.03); }
.p-doc__name { margin: 16px 0 4px; font-size: var(--p-fs-md); font-weight: 600; line-height: 1.25; color: var(--p-pine); }
.p-doc__meta { margin: 0; font-size: var(--p-fs-sm); color: var(--p-muted); line-height: 1.45; }
.p-team__more { margin-top: 32px; }

/* ==========================================================================
   Video
   ========================================================================== */
.p-video {
    max-width: 1040px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--p-radius-photo);
    overflow: hidden;
    background: var(--p-mist);
}
.p-video iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }

/* ==========================================================================
   Review
   ========================================================================== */
.p-review { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 96px); }
.p-review__side .p-h2 { margin-bottom: 28px; }
.p-review__side .p-team__nav { margin-bottom: 28px; }
.p-review__counter { font-size: var(--p-fs-sm); color: var(--p-muted); margin: 0 0 14px; }
.p-review__item[hidden] { display: none; }
.p-review__quote {
    width: auto;          /* legacy CSS sets every blockquote to 50% width */
    padding: 0;
    font-family: var(--p-font);
    margin: 0;
    font-size: var(--p-fs-lg);
    line-height: 1.45;
    font-weight: 400;
    color: var(--p-ink);
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.p-review__quote::before, .p-review__quote::after { content: none; display: none; }
.p-review__item::before {
    content: "";
    display: block;
    width: 44px;
    height: 32px;
    margin-bottom: 20px;
    background: var(--p-teal);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 32'%3E%3Cpath d='M0 32V18C0 8 5 2 15 0l2 4c-5 2-8 6-8 11h8v17H0zm27 0V18c0-10 5-16 15-18l2 4c-5 2-8 6-8 11h8v17H27z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 32'%3E%3Cpath d='M0 32V18C0 8 5 2 15 0l2 4c-5 2-8 6-8 11h8v17H0zm27 0V18c0-10 5-16 15-18l2 4c-5 2-8 6-8 11h8v17H27z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.p-review__author { margin: 22px 0 0; font-weight: 600; color: var(--p-pine); }
.p-review__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 899px) {
    .p-review { grid-template-columns: 1fr; }
    .p-review__side { display: contents; }
    .p-review__side .p-h2 { order: 0; margin-bottom: 0; }
    .p-review__body { order: 1; }
    .p-review__side .p-team__nav { order: 2; margin: 0; }
    .p-review__actions { order: 3; }
}

/* ==========================================================================
   Care form ("Я … Помогите мне …")
   ========================================================================== */
.p-care { background: var(--p-pine); color: var(--p-white); }
.p-care .p-h2 { color: var(--p-white); margin-bottom: 36px; max-width: 16em; }
.p-care form { margin: 0; }
.p-care__sentence {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px 16px;
    font-size: var(--p-fs-lg);
    line-height: 1.5;
    font-weight: 400;
}
.p-care__sentence .form-group, .p-care__sentence .input-field { margin: 0; display: inline-block; position: relative; }
.p-care select,
.p-care input[type="text"],
.p-care input[type="tel"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 52px;
    padding: 6px 44px 6px 18px;
    border: 0;
    border-radius: var(--p-radius-field);
    background: rgba(255, 255, 255, .12);
    color: var(--p-white);
    font: 500 var(--p-fs-md)/1.2 var(--p-font);
    cursor: pointer;
    transition: background-color .2s;
}
.p-care input[type="text"], .p-care input[type="tel"] { padding-right: 18px; cursor: text; min-width: 240px; }
.p-care input::placeholder { color: rgba(255, 255, 255, .6); }
.p-care select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b2e2d7' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}
.p-care select option { color: var(--p-ink); background: var(--p-white); }
.p-care select:hover, .p-care input:hover, .p-care select:focus, .p-care input:focus { background-color: rgba(255, 255, 255, .2); outline: none; }
.p-care__fields { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: flex-start; }
.p-care__fields .form-group, .p-care__fields .input-field { margin: 0; }
.p-care .help-block, .p-care .error-text { display: block; margin-top: 6px; font-size: var(--p-fs-xs); color: #ffd9d2; }
.p-care .has-error input, .p-care .has-error select { box-shadow: inset 0 0 0 2px #ffb3a5; }
.p-care .p-btn--light { min-height: 52px; }

/* ==========================================================================
   Articles
   ========================================================================== */
.p-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.p-article { display: block; color: var(--p-ink); }
.p-article__img {
    aspect-ratio: 16 / 10;
    border-radius: var(--p-radius-photo);
    overflow: hidden;
    background: var(--p-mist);
}
.p-article__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.p-article:hover .p-article__img img { transform: scale(1.03); }
.p-article time { display: block; margin: 18px 0 6px; font-size: var(--p-fs-sm); color: var(--p-muted); }
.p-article__title { margin: 0; font-size: var(--p-fs-md); font-weight: 600; line-height: 1.35; color: var(--p-pine); }
.p-article:hover .p-article__title { text-decoration: underline; text-decoration-color: var(--p-mint); text-underline-offset: 4px; }
@media (max-width: 899px) {
    .p-articles { grid-template-columns: 1fr; }
    .p-article { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
    .p-article__img { aspect-ratio: 1; border-radius: 16px; }
    .p-article time { margin-top: 0; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.p-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 96px); }
.p-faq__side .p-h2 { margin-bottom: 28px; }
.p-faq__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.p-faq__list { border-top: 1px solid var(--p-line); }
.p-faq__list details { border-bottom: 1px solid var(--p-line); }
.p-faq__list summary {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    font-size: var(--p-fs-md);
    font-weight: 500;
    color: var(--p-ink);
    cursor: pointer;
    list-style: none;
}
.p-faq__list summary::-webkit-details-marker { display: none; }
.p-faq__list summary::after {
    content: "";
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        linear-gradient(var(--p-pine), var(--p-pine)) center / 12px 2px no-repeat,
        linear-gradient(var(--p-pine), var(--p-pine)) center / 2px 12px no-repeat,
        var(--p-mist);
    transition: transform .25s;
}
.p-faq__list details[open] summary::after { transform: rotate(45deg); }
.p-faq__list details[open] summary { color: var(--p-pine); }
.p-faq__answer { padding: 0 52px 24px 0; color: var(--p-muted); }
.p-faq__answer > *:last-child { margin-bottom: 0; }
@media (max-width: 899px) {
    .p-faq { grid-template-columns: 1fr; }
    .p-faq__actions { order: 2; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.p-footer { background: var(--p-pine); color: rgba(255, 255, 255, .78); font-size: var(--p-fs-sm); }
.p-footer a { color: var(--p-white); }
.p-footer a:hover { color: var(--p-mint); }
.p-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: 40px clamp(32px, 5vw, 80px);
    padding: clamp(56px, 7vw, 88px) 0 48px;
}
.p-footer__logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.p-footer__about { margin: 22px 0 0; max-width: 30em; line-height: 1.6; }
.p-footer__title { margin: 0 0 16px; font-size: var(--p-fs-sm); font-weight: 600; color: var(--p-mint); }
.p-footer__menu { columns: 2; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.p-footer__menu li { break-inside: avoid; padding: 5px 0; }
.p-footer__contacts { display: grid; gap: 14px; margin: 0; }
.p-footer__contacts dt { color: rgba(255, 255, 255, .6); font-size: var(--p-fs-xs); }
.p-footer__contacts dd { margin: 2px 0 0; }
.p-footer__contacts .p-footer__tel { font-size: var(--p-fs-md); font-weight: 600; }
.p-footer__hours p { margin: 0; display: flex; gap: 8px; }
.p-socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.p-socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28);
    transition: background-color .2s, border-color .2s;
}
.p-socials a:hover { background: rgba(255, 255, 255, .12); border-color: var(--p-white); }
.p-socials svg { width: 18px; height: 18px; fill: currentColor; }
.p-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: var(--p-fs-xs);
    color: rgba(255, 255, 255, .6);
}
.p-footer__legal {
    display: grid;
    gap: 4px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: var(--p-fs-xs);
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}
.p-footer__legal p { margin: 0; }
.p-footer__legal-name { color: var(--p-white); font-weight: 600; }
.p-footer__bottom-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.p-footer__bottom-links a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
    .p-footer__main { grid-template-columns: 1fr 1fr; }
    .p-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
    .p-footer__main { grid-template-columns: 1fr; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    .p-scope *, .p-scope *::before, .p-scope *::after { transition: none !important; animation: none !important; }
    .p-team__strip { scroll-behavior: auto; }
}
