/* =========================================================
   Palilova Portfolio — Refactored, Responsive CSS
   Breakpoints:
     • Mobile-first (<= 599 / 360px artwork)
     • ≥1024px: same layout as desktop but with tighter gutters
     • ≥1440px: full desktop spacing (matches your original)
   Notes:
     • Class names preserved to match your JS/HTML
     • Uses CSS variables for easy theming
   ========================================================= */

/* ---------- Base / tokens ---------- */
:root {
    /* colors */
    --c-bg: #FAF9F6;
    --c-text: #2F2F2F;
    --c-muted: #5A685E;
    --c-brand: #709A6C;
    --c-brand-2: #EBFBED;
    --c-border: #D2D4D2;
    --c-border-soft: #E6E6E6;
    --c-danger: #FD4E4E;
    --c-danger-bg: #FFD0D0;
    --c-white: #fff;

    /* radii */
    --r-xs: .5rem;
    --r-sm: .625rem;
    --r-md: .75rem;
    --r-lg: .875rem;
    --r-xl: .9375rem;

    /* shadows */
    --sh-card: 0 1px 2px rgba(16, 24, 40, .06);
    --sh-elev: 0 2px 10px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .03);

    /* sizing / spacing (mobile defaults) */
    --container-w: 100%;
    --container-pad-x: 1rem; /* tighter on mobile */
    --section-gap: 3rem;
    --hero-title: 2.25rem;
    --hero-img-w: 100%;
    --hero-img-h: auto;

    /* marquee speed (lower = faster) */
    --marquee-speed: 25s;

    /*--container-w: 1200px;*/
    /*--container-pad-x: 16px;*/
    /*--c-bg: #F7F5F1;          !* site background behind header *!*/
    --c-ink: #1d201d; /* primary text */
    /*--c-muted: #56615a;       !* nav links in idle state *!*/
    /*--c-brand: #709A6C;       !* focus/brand *!*/
    /*--r-sm: 8px;*/
}

:root {
    --header-h: 80px;
}

html {
    scroll-padding-top: var(80px);
}

section[id] {
    scroll-margin-top: 100px;
}

/* ≥1024: laptop layout, tighter than 1440 but same structure */
@media (min-width: 1024px) {
    :root {
        --container-w: min(75rem, 100%); /* ~1200px */
        --container-pad-x: 2rem;
        --section-gap: 6rem;
        --hero-title: 3rem;
        --hero-img-w: 28.125rem;
        --hero-img-h: 29.125rem;
        --marquee-speed: 25s;
    }
}

/* ≥1440: full desktop spacing like your original */
@media (min-width: 1440px) {
    :root {
        --container-w: 90rem; /* 1440px design width */
        --container-pad-x: 5rem;
        --section-gap: 9.38rem;
        --hero-title: 4.0625rem;
        --marquee-speed: 25s;
    }
}

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

html, body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--c-bg);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--c-text);
}

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

/*HEADER*/
/* ====== SHARED TOKENS (hardcoded) ====== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

/* ======================================
   HEADER FIX (rem-only, no CSS variables)
   ====================================== */
/* ============================
   HEADER — final, rem-only
   ============================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FAF9F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin-inline: auto;
    width: 100%;
}

/* bar: logo + toggle */
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0;
    max-width: 75rem; /* desktop container width (≈1200px) */
    margin-left: auto;
    margin-right: auto;
    min-height: 4.5rem; /* used as overlay offset */
}

@media (min-width: 90rem) {
    /* very wide desktop (≈1440px) */
    .header__inner {
        max-width: 90rem;
    }
}

.header__logo {
    display: block;
    width: 16.25rem;
    height: 4.4375rem;
}

.header__logo-link {
    display: inline-flex;
    text-decoration: none;
    color: inherit;
}

.header__toggle {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: #1d201d;
    cursor: pointer;
}

.i {
    display: block;
}

.header:not(.header--open) .i--close {
    display: none;
}

.header.header--open .i--menu {
    display: none;
}

/* pill (shown on overlay and desktop) */
.header__location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    background: #e7f1e7;
    border: 0.0625rem solid #c9dfc9;
    text-decoration: none;
    white-space: nowrap;
    color: #5A685E;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* =============== MOBILE/TABLET (≤ 62.498rem) =============== */
@media (max-width: 62.498rem) {
    .header {
        display: block;
    }

    /* logo hard left, burger hard right */
    .header__inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header__logo-link {
        margin-right: auto;
    }

    .header__toggle {
        margin-left: auto;
    }

    .nav {
        background: #FAF9F6;
        position: fixed;
        left: 0;
        right: 0;
        top: 4.5rem;
        bottom: 0;
        /*background: #f7f5f1;*/
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.75rem;
        padding: 2.25rem 1.25rem 1.5rem;

        /* smooth slide + fade */
        transform: translateY(-0.5rem);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(.22, .61, .36, 1),
        opacity 0.2s ease,
        visibility 0s linear 0.3s;
    }

    .header.header--open .nav {
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s, 0s, 0s;
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.375rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav__link {
        display: block;
        padding: 0.5rem 1rem;
        color: #1d201d;
        text-decoration: none;
        font-size: 1.125rem;
        border-radius: 0.5rem;
    }
}

/* =============== DESKTOP (≥ 62.5rem) =============== */
@media (min-width: 62.5rem) {
    /* burger hidden on PC */
    .header__toggle {
        display: none;
    }

    /* force nav back to inline row and align with content */
    .nav {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        display: flex;
        align-items: center;
        gap: 1rem;
        max-width: 75rem; /* match header__inner width */
        margin-left: auto;
        margin-right: auto;
        background: transparent;
    }

    @media (min-width: 90rem) {
        .nav {
            max-width: 90rem;
        }
    }

    .nav__list {
        display: flex;
        flex-direction: row;
        gap: 0.94rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav__link {
        display: block;
        padding: 0.5rem 1rem;
        color: #56615a;
        text-decoration: none;
        font-size: 1rem;
        border-radius: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav {
        transition: none;
    }
}


/* ---------- Main container ---------- */
.main-container {
    max-width: var(--container-w);
    margin-inline: auto;
    padding: 2rem var(--container-pad-x);
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
}

/* ---------- Hero ---------- */
.hero {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* mobile: stacked */
    align-items: start;
}

@media (min-width: 1024px) {
    .hero {
        grid-template-columns: 1fr auto; /* text + image */
        gap: 4rem;
    }
}

.hero__content {
    max-width: 45rem;
}

.hero__image-container {
    position: relative;
    margin: .5rem;
    max-width: 100%;
}

.hero__image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #D4DFD2;
    border-radius: var(--r-xl);
    transform: rotate(-2deg);
    z-index: -1;
}

.hero__image {
    display: block;
    /*width: var(--hero-img-w);*/
    /*height: var(--hero-img-h);*/
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--r-xl);
}

.hero__title {
    margin: 0 0 1rem;
    font-family: 'Yeseva One', serif;
    font-weight: 400;
    line-height: 1.2;
    font-size: var(--hero-title);
}

.hero__title-line {
    display: block;
}

.hero__title-line--green {
    color: var(--c-brand);
}

.hero__description {
    color: var(--c-muted);
    margin: .94rem 0;
    line-height: 1.5;
    font-size: 1.125rem;
}

.hero__quote {
    margin: 2rem 0;
    color: var(--c-text);
    font-size: 1.5rem;
    font-style: italic;
}

.hero__quote::before {
    content: '“';
    color: var(--c-brand);
    margin-right: .15em;
}

.hero__quote::after {
    content: '”';
    color: var(--c-brand);
    margin-left: .15em;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.25rem;
    border-radius: var(--r-sm);
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.button--primary {
    background: var(--c-brand);
    color: var(--c-bg);
    border-color: var(--c-brand);
    text-decoration: none;
}

.button--secondary {
    background: transparent;
    color: var(--c-brand);
    text-decoration: none;
    border-color: var(--c-brand);
}

.hero__stats {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    color: var(--c-muted);
    font-size: .875rem;
    flex-wrap: wrap;
}

.hero__stats-item {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.hero__stats-icons-container {
    display: flex;
    align-items: center;
}

.hero__stats-icon {
    width: 2.8125rem;
    height: 2.8125rem;
    border-radius: 50%;
}

.hero__stats-icon:not(:first-child) {
    margin-left: -.62rem;
}

/* ---------- Section titles ---------- */
.about, .methods, .therapy, .prices, .reviews, .contact, .certificates {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.about__title, .prices__title {
    margin: 0;
    font-family: 'Yeseva One', serif;
    font-weight: 400;
    font-size: 2rem; /* mobile */
}

@media (min-width: 1024px) {
    .about__title, .prices__title {
        font-size: 2.8125rem;
    }
}

.about__subtitle, .prices__subtitle {
    margin: 0;
    color: var(--c-muted);
    text-align: center;
    line-height: 1.4;
    font-size: 1rem;
    max-width: 38rem;
}

/* ---------- About / timeline accordion ---------- */
.about__items {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

@media (min-width: 1024px) {
    .about__items {
        gap: 1.5rem;
    }
}

.about__items::before {
    content: '';
    position: absolute;
    inset-block: 0;
    left: -1.5rem;
    width: 2px;
    z-index: 0;
    background: linear-gradient(to bottom, transparent, #E0E0E0 40px, #E0E0E0 calc(100% - 40px), transparent);
}

@media (min-width: 1024px) {
    .about__items::before {
        left: -3rem;
    }
}

.about__item {
    position: relative;
}

.about__item::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: -1.9rem;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--c-bg);
    border: 2px solid #E0E0E0;
    transition: .3s;
}

@media (min-width: 1024px) {
    .about__item::before {
        left: -3.4rem;
    }
}

.item__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    border: 1px solid var(--c-border);
    background: #fff;
    border-radius: var(--r-xl);
    position: relative;
}

.item__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.item__index {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    background: var(--c-brand-2);
    color: var(--c-brand);
    border-radius: .3125rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.item__title {
    margin: 0 0 .25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--c-text);
}

.item__subtitle {
    margin: 0;
    color: var(--c-muted);
    font-size: 1rem;
    line-height: 1.3;
}

.item__arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform .25s;
}

.item__panel {
    max-height: 0;
    overflow: hidden;
    transition: all .15s ease-out;
    color: var(--c-muted);
}

.about__item.active::before {
    border-color: var(--c-brand);
    background: var(--c-brand-2);
}

.about__item.active .item__arrow {
    transform: rotate(180deg);
}

.about__item.active .item__panel {
    max-height: 100rem;
    margin-top: .75rem;
    padding: 1rem;
    border: 1px solid var(--c-brand);
    border-radius: var(--r-xl);
    background: #fff;
}

/* ---------- Certificates (marquee + summary) ---------- */
.certificates {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--c-brand);
    background: var(--c-brand-2);
    border-radius: var(--r-xl);
    align-items: center;
}

.certificates__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.certificates__subtitle {
    margin-top: .6rem;
    color: var(--c-muted);
    font-size: 1rem;
}

/* Running line container */
.certs-marquee {
    cursor: pointer;
    width: 100%;
    margin: 1rem 0 1.25rem;
    position: relative;
    overflow: hidden;
    padding: .5rem 0;
    /*border: 1px solid var(--c-brand);*/
    border-radius: var(--r-xl);
    /*background: #fff;*/
}

/* fade edges */
.certs-marquee::before,
.certs-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6rem;
    z-index: 2;
    pointer-events: none;
}

/*.certs-marquee::before {*/
/*    left: 0;*/
/*    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));*/
/*}*/

/*.certs-marquee::after {*/
/*    right: 0;*/
/*    background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));*/
/*}*/

.marquee {
    display: flex;
    gap: 0;
}

.marquee__group {
    display: flex;
    align-items: center;
    gap: 0; /* remove tiny gaps within 5-image chunk */
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    list-style: none;
    animation: certs-scroll var(--marquee-speed) linear infinite;
}

.marquee__group li {
    padding: 0 0.32rem;
}

.marquee__group:nth-child(2) {
    animation-name: certs-scroll-2;
}


/* hover pause + lightbox pause */
.certs-marquee:hover .marquee__group,
.certs-marquee.is-paused .marquee__group {
    animation-play-state: paused;
}

@keyframes certs-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes certs-scroll-2 {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Thumbs — no inner gaps; control spacing with border only */
.cert-thumb {
    padding: 0;
    display: block;
    border: none;
    /*border: 1px solid var(--c-border);*/
    /*background: #fff;*/
    border-radius: .75rem;
    overflow: hidden;
    /*box-shadow: var(--sh-card);*/
}

.cert-thumb + .cert-thumb {
    margin-left: .75rem;
}

/* visual rhythm, but zero gap inside UL */
.marquee__group li {
    list-style: none;
}

.cert-thumb img {
    display: block;
    max-height: 15rem;
    /*height: 11.25rem;*/
    height: auto;
    width: auto;
    object-fit: cover;
}

.cert-thumb:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 2px;
}

/* Summary pills */
.certificates__summary {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 6.25rem;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.summary__part {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    min-width: 12rem;
}

.summary__part-top {
    margin: 0;
    color: var(--c-brand);
    font-weight: 600;
    font-size: 1.125rem;
}

.summary__part-bottom {
    margin: 0;
    color: var(--c-muted);
    font-size: 1rem;
}

.summary__part + .summary__part {
    border-left: 3px solid var(--c-brand);
    padding-left: 2rem;
}

@media (max-width: 500px) {
    .summary__part + .summary__part {
        border-left: 0;
        padding-left: 0;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .72);
    padding: 2rem;
    z-index: 9999;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__img {
    max-width: min(92vw, 1200px);
    max-height: 86vh;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--c-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__close:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee__group {
        animation-duration: .001s;
        animation-iteration-count: 1;
    }
}

/* ---------- Methods ---------- */
.methods__items {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .methods__items {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.1875rem;
    }
}

.method__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--c-border);
    background: #fff;
    border-radius: var(--r-xl);
    width: 100%;
    box-shadow: var(--sh-card);
}

.methods__icon {
    border-radius: 6.25rem;
    background: var(--c-brand-2);
    padding: 1rem;
}

.methods__title {
    margin: 0 0 .5rem;
    color: var(--c-text);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.methods__subtitle {
    margin: 0;
    color: var(--c-muted);
    text-align: center;
    font-size: 1rem;
    line-height: 1.3;
}

.methods__button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    gap: .5rem;
    width: 100%;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-brand);
    background: none;
    color: var(--c-brand);
    cursor: pointer;
    font-weight: 500;
}

/*@media (min-width: 1024px) {*/
/*    .methods__button-short {*/
/*        transform: translateY(1.1rem);*/
/*    }*/
/*}*/

.methods__button:hover {
    background: var(--c-brand);
    color: var(--c-bg);
    transition: .2s;
}

/* ---------- Therapy (tabs + 3 cards grid) ---------- */
.therapy {
    align-items: center;
}

.therapy__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    margin-bottom: 2rem;
}

.therapy__hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-brand-2);
    padding: 12px;
    object-fit: contain;
    border: 1px solid #cfe8da;
}

.therapy__hero-title {
    margin: .25rem 0 0;
    font-family: 'Yeseva One', serif;
    font-weight: 400;
    font-size: 2rem;
}

.therapy__hero-sub {
    margin: .25rem 0 0;
    max-width: 46rem;
    color: var(--c-muted);
    line-height: 1.45;
    font-size: 1rem;
}

/* tabs */
.therapy__tabs {
    display: flex;
    gap: .75rem;
    width: 100%;
    padding: .75rem;
    border: 1px solid var(--c-border);
    background: #fff;
    border-radius: var(--r-xl);
    overflow: auto;
}

.therapy__tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: .75rem 1rem;
    border-radius: 9999px;
    background: #F6F6F6;
    color: var(--c-muted);
    font-size: 1rem;
    font-weight: 500;
    flex: 0 0 auto;
    min-width: 13rem;
    text-align: center;
}

.therapy__tab[aria-selected="true"] {
    background: var(--c-brand);
    color: #fff;
}

/* cards grid */
.therapy__grid {
    width: 100%;
    display: grid;
    gap: 1rem;
    align-items: stretch;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .therapy__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.1875rem;
    }
}

.therapy__card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    background: #fff;
    box-shadow: var(--sh-card);
    height: auto;
}

.therapy__card--green {
    border-color: var(--c-brand);
    background: var(--c-brand-2);
}

.therapy__h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-text);
}

.therapy__list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.therapy__li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.therapy__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: .6rem;
    border-radius: 6.25rem;
}

.therapy__icon {
    width: 1.5625rem;
    height: 1.5625rem;
    object-fit: contain;
}

.therapy__li-title {
    display: block;
    color: var(--c-text);
    font-weight: 500;
    font-size: 1.125rem;
}

.therapy__li-subtitle {
    color: var(--c-muted);
    font-size: 1rem;
}

.therapy__li-divider {
    height: 1px;
    border: 0;
    border-top: 1px solid var(--c-brand);
    margin: 0;
    width: 100%;
}

#t-benefits li {
    align-items: center;
    gap: .9rem;
}

.benefits__icon {
    display: flex;
    width: 1.5625rem;
    height: 1.5625rem;
    padding: .625rem;
    border-radius: 6.25rem;
    background: var(--c-brand-2);
}

.benefits__divider {
    margin: 0;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--c-border);
}

.therapy__btn {
    margin-top: 2rem;
    align-self: stretch;
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--c-brand);
    color: #fff;
    cursor: pointer;
    font-weight: 500;
}

.therapy__btn:hover {
    background: #5A685E;
}

.therapy__tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.therapy__tag {
    border: 1px solid var(--c-brand);
    background: var(--c-brand-2);
    border-radius: var(--r-sm);
    padding: .5rem .75rem;
    color: var(--c-muted);
    font-size: 1rem;
}

/* Contra / Rules */
.therapy__contra {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid var(--c-danger);
    border-radius: var(--r-xl);
    background: var(--c-danger-bg);
}

.therapy__contra-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--c-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.therapy__contra-icon {
    border-radius: 6.25rem;
    background: #fff;
    display: flex;
    padding: .625rem;
}

.therapy__contra-list {
    margin: 0;
    padding-left: 18px;
}

.methods__list-item {
    margin: .4rem 0;
    color: #685A5A;
}

.therapy__rules {
    width: 100%;
    margin-top: 14px;
    padding: 16px;
    border-radius: 14px;
    background: #ECF7EF;
    border: 1px solid #cfe8da;
}

.therapy__rules-list {
    margin: 0;
    padding-left: 18px;
}

.therapy__rules-list li {
    margin: .4rem 0;
}

/* ---------- Prices ---------- */
.prices {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.prices__head {
    text-align: center;
    margin-bottom: 1rem;
}

.prices__card {
    background: #fff;
    border: 1px solid var(--c-border-soft);
    border-radius: 14px;
    box-shadow: var(--sh-card);
    padding: 1rem;
    width: 100%;
}

.price-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.price-item {
    padding-inline: .94rem;
    border-left: 1px solid var(--c-border);
    border-right: 1px solid var(--c-border);
    transition: .2s;
}

.price-item:hover {
    border-left-color: var(--c-brand);
    border-right-color: var(--c-brand);
}

.price-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: .94rem;
}

@media (max-width: 640px) {
    .price-row {
        grid-template-columns: 1fr;
    }

    .price-value {
        justify-self: end;
    }
}

.price-name {
    color: var(--c-text);
    font-size: 1.25rem;
    font-weight: 600;
}

.price-name--sub {
    color: var(--c-muted);
    font-size: 1rem;
    font-weight: 400;
}

.price-value {
    color: #6a6f6b;
    font-weight: 600;
    white-space: nowrap;
}

.price-meta {
    display: flex;
    align-items: center;
    gap: .94rem;
    color: var(--c-brand);
    margin: .94rem 0;
    font-size: 1rem;
}

.meta-ico__img {
    width: 1.5625rem;
    height: 1.5625rem;
}

.price-sub {
    margin-top: .6rem;
}

.price__divider {
    width: 100%;
    height: 1px;
    background: var(--c-border);
}

/* ---------- Reviews ---------- */
.title-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.reviews .reviews-grid.cols-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 700px) {
    .reviews .reviews-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews .reviews-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

#reviewsList, #reviewsGrid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.19rem;
}

#reviewsList {
    margin-bottom: 2.19rem;
}

.review-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .875rem;
    padding: 1.125rem 1.25rem;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sh-elev);
    transition: box-shadow .2s, transform .2s;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .375rem;
}

.review-author {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
}

.review-tag {
    display: inline-block;
    padding: .375rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    color: #2e7d32;
    background: #eaf6ee;
    border: 1px solid #cfe9d6;
    border-radius: 999rem;
    white-space: nowrap;
}

.review-quote {
    margin: .5rem 0 .75rem;
    color: #374151;
    line-height: 1.55;
    display: flex;
    gap: .625rem;
    flex: 1;
}

.review-quote p {
    margin: 0;
}

.quote-icon {
    width: 1.375rem;
    height: 1.375rem;
    fill: #2e7d32;
    flex: 0 0 auto;
    margin-top: .125rem;
}

.review-footer time {
    color: #6b7280;
    font-size: .875rem;
}

/* CTA */
.reviews-cta {
    inline-size: clamp(16rem, 50vw, 28rem);
    margin: 3rem auto;
    padding: .5rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
    overflow: hidden;
}

.reviews-cta__btn {
    display: block;
    inline-size: 100%;
    text-align: center;
    padding: .875rem 1rem;
    border-radius: .75rem;
    background: #6f9968;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background-color .2s, transform .02s;
}

.reviews-cta__btn:hover {
    background: #7aa774;
}

.reviews-cta__btn:active {
    transform: translateY(1px);
    background: #5f8a5b;
}

.reviews-cta__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 153, 104, .25);
}

.contact {
    width: 100%;
    max-width: 70rem;
    margin: 0 auto;
}

.contact__head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact__title {
    margin: 0 0 .5rem;
    font-size: 2rem;
    line-height: 1.2;
}

.contact__subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.19rem;
    }
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .875rem;
    box-shadow: var(--sh-elev);
    padding: 1rem;
}

.card-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: flex-start;
}

.card__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-text);
}

.card__hint {
    margin: 0;
    color: var(--c-muted);
    font-size: 1rem;
}

/* Form */
.form {
    display: grid;
    gap: 1.25rem;
}

.form__label {
    display: inline-block;
    margin-bottom: .5rem;
    color: var(--c-text);
}

.req {
    color: #e11d48;
}

.form__control {
    width: 100%;
    height: 2.75rem;
    padding: 0 .875rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    font-size: 1rem;
    color: #1f2937;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.form__control::placeholder {
    color: #9ca3af;
}

.form__control:focus {
    outline: none;
    border-color: #9ac19a;
    box-shadow: 0 0 0 3px rgba(111, 153, 104, .25);
}

.form__control--area {
    min-height: 7.5rem;
    padding: .75rem .875rem;
    resize: vertical;
}

.btn {
    display: inline-block;
    text-align: center;
    padding: .9rem 1.2rem;
    border-radius: .625rem;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

.btn--primary {
    width: 100%;
    background: #6f9968;
    color: #fff;
}

.btn--primary:hover {
    background: #7aa774;
}

.btn--primary:active {
    transform: translateY(1px);
    background: #5f8a5b;
}

.btn--primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 153, 104, .25);
}

/* Socials */
.card--socials {
    height: fit-content;
    padding: 1.25rem;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.social {
    display: grid;
    place-items: center;
    background: #f1f6f1;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, transform .02s;
}

.social__icon {
    width: 6.2815rem;
    height: 4rem;
}

.social:hover {
    background: #eaf2ea;
}

@media (max-width: 34rem) {
    .socials {
        justify-content: flex-start;
    }
}

/* Map */
.card--map {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.map-box {
    margin-top: 2rem;
    border: 1px solid var(--c-brand);
    border-radius: var(--r-xl);
    overflow: hidden;
    background: #fff;
}

.map {
    display: block;
    width: 100%;
    height: 33.4rem;
    border: 0;
}

.map__caption {
    margin: 0;
    padding: .9rem 1rem;
    text-align: center;
    background: #E9F6E9;
    color: var(--c-text);
    font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1A1A1A;
    color: #e9e9e9;
    padding: 3rem var(--container-pad-x);
    margin-top: 3.12rem;
}

.footer-inner {
    max-width: var(--container-w);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
    }
}

.brand-bio {
    margin-top: 1.25rem;
    margin-bottom: 0;
    max-width: 25rem;
    color: #9F9F9F;
    font-size: 1.125rem;
    line-height: 1.3;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-title {
    margin: 0 0 1rem;
    color: #FAF9F6;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-menu {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .footer-menu {
        gap: 3.2rem;
        flex-wrap: nowrap;
    }
}

.footer-menu a {
    color: #ededed;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .01em;
}

.footer-menu a:hover, .footer-menu a:focus {
    text-decoration: underline;
}

.footer-menu a:focus-visible {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

.footer-divider {
    max-width: var(--container-w);
    margin: 2rem auto;
    border: 0;
    border-top: 1px solid #2a2a2c;
}

.footer-disclaimer {
    max-width: var(--container-w);
    margin: 0 auto 1rem;
    padding: 0 1.25rem;
    text-align: center;
    color: #9F9F9F;
    font-size: 1.125rem;
    line-height: 1.3;
}

.footer-disclaimer strong {
    color: #FAF9F6;
}

.footer-copy {
    max-width: var(--container-w);
    margin: .9rem auto 0;
    padding: 0 1.25rem;
    color: #9aa29a;
    font-size: .9375rem;
    text-align: center;
}

/* =========================================================
   Mobile-specific tweaks for 360px comp
   ========================================================= */
@media (max-width: 400px) {
    .hero__actions {
        width: 100%;
    }

    .button {
        flex: 1 1 100%;
    }

    .summary__part {
        min-width: 10rem;
    }

    .therapy__tab {
        min-width: 11rem;
    }

    .map {
        height: 22rem;
    }

    .site-footer {
        margin-top: 2.19rem;
    }
}

/* End of file */

/*-----------------NEW------------------*/

/* -------------------------------------------
   1) Kill accidental horizontal scroll on 360
----------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
}

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

/* Make any media never exceed the viewport */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Tighten mobile page padding to avoid overflow from inner fixed widths */
@media (max-width: 480px) {
    .main-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* -------------------------------------------
   2) Tabs must be *below* title + subtitle
----------------------------------------------*/
/* Ensure column flow and explicit order */
.therapy {
    display: flex;
    flex-direction: column;
}

.therapy__hero {
    order: 1;
    margin-bottom: 2rem;
}

.therapy__tabs {
    order: 2;
}

/* Mobile tab layout: wrap nicely, no overflow */
.therapy__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    width: 100%;
}

@media (max-width: 480px) {
    .therapy__tab {
        width: auto; /* stop fixed width pushing layout */
        min-width: 12rem; /* keeps pill readable */
        flex: 1 1 calc(50% - .75rem);
    }
}

/* -------------------------------------------
   3) Equal height for Contact (form ↔ map)
----------------------------------------------*/
/* Use a real grid and stretch both columns */
@media (min-width: 901px) {
    .contact__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: stretch;
    }

    .card {
        height: 100%;
    }

    /* let cards fill the row height */
}

/* Make the map card fill its column height */
.card--map .map-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card--map .map {
    flex: 1 1 auto; /* grow to match the left column */
    height: auto;
    min-height: 25rem; /* safety for short forms */
}

.card--map .map__caption {
    margin-top: 0;
}

/* -------------------------------------------
   Extra mobile hardening (prevents right gap)
----------------------------------------------*/
@media (max-width: 480px) {
    /* Hero */
    .hero {
        flex-direction: column;
        gap: 1.25rem;
    }

    .hero__image {
        width: 100%;
        height: auto;
    }

    /* Reviews list: single column on phones */
    .reviews .reviews-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    /* Methods grid: single column */
    .methods__items {
        display: grid;
        grid-template-columns: 1fr;
    }

    /* Any fixed-width social icons stay inside */
    .social__icon {
        width: 5.5rem;
        height: 3.5rem;
    }
}


/*--------------new again-------------------*/
/* ==============================
   FIX #1 — Tabs dropped below rules
   Put hero + tabs back BEFORE the rest
   ===============================*/

/* keep column layout but reset any custom ordering */
.therapy {
    display: flex;
    flex-direction: column;
}

.therapy__hero,
.therapy__tabs,
.therapy__grid,
.therapy__contra,
.therapy__rules {
    order: 0 !important;
}

/* neutral order */

.therapy__hero {
    margin-bottom: 1.5rem;
}

/* spacing above tabs */
@media (max-width: 480px) {
    .therapy__tabs {
        margin-top: .25rem;
    }

    /* small breathing room on phones */
}

/* (mobile tabs remain wrapping without overflow from the earlier rules) */


/* =========================================
   FIX #2 — Contact map “went way below”
   Make right column (socials + map) fill the
   same row height as the form and let the
   map flex to remaining space.
   ==========================================*/
@media (min-width: 901px) {
    /* two equal columns; both tracks stretch */
    .contact__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: stretch;
    }

    /* don’t force every .card to be 100% height */
    .card {
        height: auto;
    }

    /* the right column becomes a vertical flex stack */
    .right-col {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* top card (socials) is natural height … */
    .card--socials {
        flex: 0 0 auto;
    }

    /* … bottom card (map) takes the rest */
    .card--map {
        flex: 1 1 auto;
        display: flex; /* so its child can stretch */
    }

    .card--map .map-box {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    .card--map .map {
        flex: 1 1 auto; /* fills column height */
        height: auto;
        min-height: 26rem; /* sensible floor on desktop */
    }
}

/* stack naturally on tablet/phone */
@media (max-width: 900px) {
    .contact__grid {
        display: block;
    }

    .card--map .map {
        min-height: 18rem;
    }
}

/* palette hooks — keeps your existing theme */
:root{
    --brand:#709A6C;            /* already used on site */
    --tone-50:#F4F6F3;
    --tone-100:#E7EEE6;
    --tone-300:#C9D7C7;
    --ink:#2E2E2E;
}

/* wrapper */
.contact-ways__list { display: grid; gap: 12px;
    padding: 0;
    margin: 10px 0 0;
}
.contact-ways__item {
    list-style: none;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid var(--tone-100);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
@media (max-width: 640px){
    .contact-ways__item { grid-template-columns: 36px 1fr; }
    .contact-ways__item .contact-ways__copy { grid-column: 2 / -1; justify-self: start; }
}

.contact-ways__icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--tone-50); color: var(--brand);
    display: grid; place-items: center;
}
.contact-ways__icon svg { width: 22px; height: 22px; }

.contact-ways__label { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.contact-ways__value { color: var(--brand); text-decoration: none; }
.contact-ways__value:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
    display: inline-block; padding: 6px 10px; border-radius: 9999px;
    background: var(--tone-50); border: 1px solid var(--tone-100);
    color: var(--ink); text-decoration: none; font-size: .95rem;
}
.chip:hover { border-color: var(--tone-300); }

/* tiny ghost button that matches your .btn style */
.btn--ghost.btn--sm {
    --btn-pad-y: 6px; --btn-pad-x: 10px; --btn-radius: 10px;
    padding: var(--btn-pad-y) var(--btn-pad-x);
    border-radius: var(--btn-radius);
    background: transparent; border: 1px solid var(--tone-100); color: var(--ink);
}
.btn--ghost.btn--sm:hover { border-color: var(--tone-300); }
