/* Additions on top of the theme (styles.css). Theme rules are reused by
   class name; everything here is new behaviour or a fix to the theme. */

/* ---------- base & accessibility ---------- */

:root {
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --mobile-cta-h: 0px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: 32px;
    background: var(--primary-green-100);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: none;
}

:focus-visible {
    outline: 2px solid var(--primary-80);
    outline-offset: 3px;
}

main:focus {
    outline: none;
}

body {
    padding-bottom: var(--mobile-cta-h);
}

/* ---------- header ---------- */

.header {
    transition: transform .35s var(--ease-out);
}

.header .header__top {
    transition: margin-top .35s var(--ease-out);
}

/* On phones the top strip folds away once you scroll, leaving more room
   for content; it comes back at the top of the page. */
@media (width <= 768px) {
    body.is-scrolled .header .header__top {
        margin-top: -40px;
    }
}

.header__bottom {
    transition: box-shadow .3s ease;
}

body.is-scrolled .header__bottom {
    box-shadow: 0 6px 24px rgba(4, 23, 51, .06);
}

.header .header__bottom .header__bottom-logo {
    flex-shrink: 0;
}

.header__bottom-logo .logo {
    display: block;
    width: 205px;
    max-width: 100%;
    height: auto;
}

@media (width <= 1024px) {
    .header__bottom-logo .logo { width: 180px; }
}

@media (width <= 768px) {
    .header__bottom-logo .logo { width: 160px; }
}

/* the ECG line in the logo draws itself once */
.logo__pulse {
    transform-box: fill-box;
    animation: logo-pulse 1.4s var(--ease-out) .25s both;
}

@keyframes logo-pulse {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

/* five menu items + the button need tighter spacing on small laptops */
@media (1024px < width <= 1280px) {
    .header .header__bottom .header__nav ul { gap: 14px; }
    .header .header__bottom .header__nav a:not(.btn) { font-size: 15px; }
    .header .header__bottom .header__bottom-btn { padding-inline: 28px; }
    .header .header__bottom .header__bottom-container { gap: 18px; }
}

@media (1024px < width <= 1120px) {
    .header__bottom-logo .logo { width: 170px; }
    .header .header__bottom .header__nav ul { gap: 12px; }
    .header .header__bottom .header__nav a:not(.btn) { font-size: 14px; }
}

.header .header__bottom .header__nav a[aria-current="page"] {
    color: var(--primary-green-100);
}

@media (width > 1024px) {
    .header .header__bottom .header__nav a:not(.btn) {
        position: relative;
        padding-block: 6px;
    }

    .header .header__bottom .header__nav a:not(.btn)::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .3s var(--ease-out);
    }

    .header .header__bottom .header__nav a:not(.btn):hover::after,
    .header .header__bottom .header__nav a[aria-current="page"]::after {
        transform: scaleX(1);
    }
}

@media (width <= 1024px) {
    .header .header__bottom .header__nav {
        box-shadow: 0 16px 32px rgba(4, 23, 51, .08);
        visibility: hidden;
        transition: transform .3s var(--ease-out), visibility 0s linear .3s;
    }

    .header .header__bottom .header__nav.active {
        visibility: visible;
        transition: transform .3s var(--ease-out), visibility 0s;
    }
}

/* language switch, in the top strip */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .7);
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding-inline: 6px;
    border-radius: 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--black-100);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.lang-switch a:hover {
    color: var(--green-hover);
}

.lang-switch a[aria-current="true"] {
    background: var(--primary-green-100);
    color: #fff;
}

.header__top-end {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (width <= 768px) {
    .header__top-end { gap: 12px; }
    .lang-switch a { min-width: 30px; height: 24px; font-size: 12px; }
}

@media (width <= 400px) {
    .header .header__top .header-donate .header__top-text { display: none; }
}

/* ---------- motion: reveal on scroll ---------- */

/* `translate` rather than `transform`, so hover lifts still compose */
html.js [data-reveal] {
    opacity: 0;
    translate: 0 18px;
    transition: opacity .7s var(--ease-out), translate .7s var(--ease-out), transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s;
}

html.js [data-reveal].is-in {
    opacity: 1;
    translate: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js [data-reveal] {
        opacity: 1;
        translate: none;
        transition: none;
    }

    .logo__pulse { animation: none; }

    *, *::before, *::after {
        scroll-behavior: auto !important;
    }
}

/* buttons: a little lift and a magnetic pull, set by main.js */
.btn {
    transition: background-color .2s ease, color .2s ease, transform .25s var(--ease-out), box-shadow .25s ease;
    transform: translate(var(--mx, 0), var(--my, 0));
}

@media (hover: hover) {
    .btn.green:hover,
    .btn:not(.btn--white):not(.btn--green-border):hover {
        box-shadow: 0 10px 24px rgba(4, 174, 148, .28);
    }

    .btn.btn--green-border:hover::after {
        transform: translateX(4px);
    }
}

.btn.btn--green-border::after {
    transition: transform .25s var(--ease-out);
}

/* ---------- sliders (replace Swiper) ---------- */

.slider__track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.slider__track::-webkit-scrollbar {
    display: none;
}

.slider__slide {
    flex: 0 0 100%;
    min-width: 0;
    overflow-wrap: break-word;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.slider__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--gray-15);
    cursor: pointer;
    transition: width .3s var(--ease-out), background-color .3s ease;
}

.slider__dot[aria-current="true"] {
    width: 24px;
    background: var(--primary-green-100);
}

.slider__btn {
    border: 0;
    padding: 0;
}

.slider__btn[disabled] {
    opacity: .3;
    pointer-events: none;
}

/* hero cards: three across on desktop, a swipeable row with a peek below */
.hero .hero__slider {
    margin-inline: calc(var(--container) * -1);
}

.hero .hero__cards {
    gap: 16px;
    padding: 4px var(--container) 12px;
    scroll-padding-inline: var(--container);
}

.hero .hero__card {
    flex: 0 0 min(432px, 82%);
    max-width: none;
    box-shadow: 0 1px 0 rgba(4, 23, 51, .04);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .7s var(--ease-out);
}

.hero .hero__card .hero__card-media {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.hero .hero__card .hero__card-img {
    transition: transform .8s var(--ease-out);
}

.hero .hero__card .hero__card-title::after {
    transition: transform .3s var(--ease-out);
}

@media (hover: hover) {
    .hero .hero__card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(4, 107, 85, .12);
    }

    .hero .hero__card:hover .hero__card-img {
        transform: scale(1.05);
    }

    .hero .hero__card:hover .hero__card-title {
        color: var(--green-hover);
    }

    .hero .hero__card:hover .hero__card-title::after {
        transform: translateX(6px);
    }
}

@media (width > 1024px) {
    .hero .hero__slider { margin-inline: 0; }

    .hero .hero__cards {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 432px));
        overflow: visible;
        padding: 0;
    }

    .hero .hero__dots { display: none; }
}

@media (576px < width <= 1024px) {
    .hero .hero__card { flex-basis: calc((100% - var(--container) * 2 - 16px) / 2.15); }
}

.hero .hero__dots {
    margin-top: 8px;
}

/* phones: no sideways swipe — the three cards are a compact list, all on one screen */
@media (width <= 576px) {
    .hero .hero__slider { margin-inline: 0; }

    .hero .hero__cards {
        display: grid;
        gap: 10px;
        overflow: visible;
        padding: 0;
    }

    .hero .hero__card {
        flex-direction: row;
        align-items: center;
        max-width: none;
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(4, 23, 51, .07);
    }

    .hero .hero__card .hero__card-media {
        flex: 0 0 104px;
        align-self: stretch;
        border-radius: 14px 0 0 14px;
    }

    .hero .hero__card .hero__card-img {
        height: 100%;
        min-height: 84px;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .hero .hero__card .hero__card-text {
        padding: 12px 14px 12px 16px;
    }

    .hero .hero__card .hero__card-title {
        font-size: 16px;
        line-height: 1.3;
        gap: 12px;
    }

    .hero .hero__card .hero__card-title::after { width: 24px; height: 24px; }

    .hero .hero__dots { display: none; }
}

/* parallax on the hero illustration, driven by --py from main.js */
.hero::after {
    transform: translate3d(0, var(--py, 0px), 0);
    will-change: transform;
}

.hero .hero-subtitle {
    margin-bottom: 0;
}

.hero__cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 40px;
}

.hero__cta-text {
    font-size: 18px;
    color: var(--black-100);
}

.hero__cta-text a {
    color: var(--green-dark);
    font-weight: 600;
    white-space: nowrap;
}

@media (width <= 576px) {
    .hero__cta { margin-top: 28px; }
    .hero__cta .btn { width: 100%; }
    .hero__cta-text { font-size: 16px; text-align: center; width: 100%; }
}

/* clinical support slider */
.support .support__content {
    flex-wrap: wrap;
    row-gap: 16px;
}

.support .support__swiper {
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
}

@media (width <= 1024px) {
    .support .support__swiper { align-items: flex-start; }
}

.support .support__card {
    flex-wrap: nowrap;
}

@media (width <= 1024px) {
    .support .support__card { flex-wrap: wrap; align-content: flex-start; }
}

.support .slider__footer {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    order: 3;
}

.slider__count {
    min-width: 48px;
    font-size: 14px;
    font-weight: 500;
    color: var(--green-dark);
    font-variant-numeric: tabular-nums;
}

@media (width <= 576px) {
    .support .support__content { justify-content: center; column-gap: 24px; }
    .support .slider__footer { order: 1; }
    .support .support__button-prev { order: 2; }
    .support .support__button-next { order: 3; }
}

.support__card-content p + p { margin-top: 0; }

/* ---------- about / person / team ---------- */

.about-us .about-us__btn {
    margin-top: 32px;
}

@media (width <= 576px) {
    .about-us .about-us__btn { width: 100%; }
}

.person .person__content p + p {
    margin-top: 12px;
}

.person .person__position + p {
    margin-top: 0;
}

.person blockquote.person__highlight {
    margin-inline: 0;
}

.person .person__img img {
    transition: transform .8s var(--ease-out);
}

.person__subhead {
    font-size: 18px;
    font-weight: 600;
    color: var(--black-100);
    margin: 16px 0 8px;
}

.person__list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.person__list li {
    display: flex;
    gap: 12px;
    font-size: 18px;
    color: var(--black-100);
}

.person__list li::before {
    content: '';
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: url('../images/icons/icon-check.svg') center / contain no-repeat;
}

.team-list {
    margin-bottom: 0;
}

.team-list__container {
    display: grid;
    gap: 32px;
}

@media (width <= 768px) {
    .team-list__container { gap: 20px; }
    .person__list li { font-size: 16px; }
}

.team-hero .hero-inner__img {
    object-fit: cover;
    border-radius: 0 0 0 32px;
}

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

.faq__list {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq__item {
    border-radius: 16px;
    background: var(--gray-1);
    border: 1px solid transparent;
    transition: border-color .3s ease, background-color .3s ease;
    interpolate-size: allow-keywords;
}

.faq__item[open] {
    background: #fff;
    border-color: var(--gray-15);
}

.faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height .35s var(--ease-out), content-visibility .35s allow-discrete;
}

.faq__item[open]::details-content {
    height: auto;
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    font-size: 20px;
    font-weight: 600;
    color: var(--black-100);
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::after {
    content: '';
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background:
        linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
        linear-gradient(#fff, #fff) center / 2px 12px no-repeat,
        var(--primary-green-100);
    transition: transform .3s var(--ease-out), background-color .3s ease;
}

.faq__item[open] .faq__q::after {
    transform: rotate(135deg);
}

.faq__q:hover {
    color: var(--green-hover);
}

.faq__a {
    padding: 0 24px 22px;
    font-size: 18px;
    color: var(--black-100);
}

.faq__a a {
    color: var(--green-dark);
    font-weight: 500;
}

@media (width <= 768px) {
    .faq__q { font-size: 17px; padding: 16px 18px; }
    .faq__a { font-size: 16px; padding: 0 18px 18px; }
}

/* ---------- contacts: map loads on click ---------- */

.contacts .contacts__text > span:last-child {
    display: block;
}

.map-facade {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background:
        repeating-linear-gradient(0deg, rgba(4, 174, 148, .08) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(4, 174, 148, .08) 0 1px, transparent 1px 32px),
        linear-gradient(135deg, #e7fbf7 0%, #f5faff 100%);
}

.map-facade::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 38%, rgba(95, 144, 197, .22) 38% 41%, transparent 41%),
        linear-gradient(20deg, transparent 60%, rgba(95, 144, 197, .16) 60% 62%, transparent 62%);
}

.map-facade > * {
    position: relative;
}

.map-facade__pin {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary-green-100);
    transform: rotate(-45deg);
    box-shadow: 0 8px 18px rgba(4, 174, 148, .35);
    animation: pin-drop 2.4s var(--ease-out) infinite;
}

.map-facade__pin::after {
    content: '';
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: #fff;
}

@keyframes pin-drop {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

.map-facade__btn {
    height: 44px;
    padding: 6px 32px;
    border: 0;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(4, 23, 51, .1);
}

.map-facade__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--green-dark);
}

@media (prefers-reduced-motion: reduce) {
    .map-facade__pin { animation: none; }
}

/* ---------- process: numbered steps that arrive in order ---------- */

.process .process__container {
    list-style: none;
    padding-left: var(--container);
    counter-reset: step;
    align-items: flex-start;
}

.process .process__item {
    counter-increment: step;
}

.process .process__item-content {
    position: relative;
    text-align: center;
}

.process .process__item-content::before {
    content: counter(step, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 24px;
    padding-inline: 8px;
    margin-bottom: 8px;
    border-radius: 24px;
    background: var(--light-green);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.process .process__item img {
    width: 100%;
    max-width: 120px;
    height: auto;
    aspect-ratio: 1;
    transition: transform .5s var(--ease-out);
}

@media (hover: hover) {
    .process .process__item:hover img { transform: translateY(-4px) scale(1.04); }
}

.process .process__item:not(:first-child)::before {
    top: 96px;
    transition: opacity .5s ease .2s, translate .5s var(--ease-out) .2s;
}

html.js .process .process__item[data-reveal]:not(.is-in)::before {
    opacity: 0;
    translate: -12px 0;
}

@media (width <= 768px) {
    .process .process__item:not(:first-child)::before { top: 80px; }
    .process .process__item img { max-width: 96px; }
}

@media (width <= 576px) {
    .process .process__item:not(:first-child)::before { top: -32px; }
    html.js .process .process__item[data-reveal]:not(.is-in)::before { translate: 0 -10px; }
}

/* ---------- weight page: no white band between the two technology blocks ---------- */

.tech.tech--first {
    padding-bottom: 0;
    margin-bottom: 0;
}

.tech.tech--next {
    padding-top: 0;
}

.tech.tech--next .tech__section {
    border-top: 1px solid rgba(255, 255, 255, .7);
}

/* ---------- massage page ---------- */

.massage-benefits {
    background: #effffd;
}

.preventive .massage-benefits__grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (width <= 1024px) {
    .preventive .massage-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}

.massage-benefits .preventive__item {
    min-height: 160px;
    padding: 20px 12px;
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

@media (hover: hover) {
    .massage-benefits .preventive__item:hover,
    .preventive .preventive__item:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(4, 107, 85, .1);
    }
}

.preventive .preventive__item {
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .7s var(--ease-out);
}

.services .services__item,
.diagnostics .diagnostics__item {
    overflow: hidden;
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .7s var(--ease-out);
}

.services .services__item img,
.diagnostics .diagnostics__item img {
    transition: transform .8s var(--ease-out);
}

@media (hover: hover) {
    .services .services__item:hover,
    .diagnostics .diagnostics__item:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(4, 23, 51, .08);
    }

    .services .services__item:hover img,
    .diagnostics .diagnostics__item:hover img {
        transform: scale(1.04);
    }
}

.services .services__item-text,
.advantages .advantages__item-text {
    display: block;
}

/* ---------- booking ---------- */

.booking__lead {
    font-size: 18px;
    max-width: 720px;
}

.booking__lead a,
.booking__note a {
    color: var(--green-dark);
    font-weight: 500;
}

.booking {
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-15);
}

.booking__frame {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

.booking__fallback {
    margin-top: 16px;
}

.booking__fallback a {
    color: var(--primary-green-100);
    text-decoration: underline;
}

.booking__fallback a:hover {
    color: var(--green-hover);
}

.booking__note {
    font-size: 14px;
    color: #4a5568;
}

@media (max-width: 767px) {
    .booking__frame { height: 460px; }
}

/* ---------- privacy policy ---------- */

.privacy-toc {
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: 16px;
    background: var(--gray-1);
}

.privacy-toc ul {
    margin: 8px 0 0;
}

.privacy-toc a,
.simple-post__content a {
    color: var(--green-dark);
}

.simple-post__content h2[id] {
    scroll-margin-top: 180px;
}

/* ---------- 404 ---------- */

.page-404 .page-404__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.page-404 .page-title {
    font-family: var(--font-family);
}

/* ---------- footer ---------- */

.footer .footer__bottom {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer .footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer .footer__nav a {
    font-size: 15px;
    opacity: .9;
}

.footer .footer__copy {
    font-size: 14px;
    opacity: .8;
}

.footer h2.footer-title {
    margin: 0;
}

.footer .footer__credit {
    margin-top: 24px;
    display: flex;
    justify-content: flex-start;
}

/* owner's call: plain text on the footer green — no plate, no frame;
   RUNX orange is unreadable on this green, so the link is white and underlined */
.footer .footer__credit .runx-credit,
.footer .footer__credit .runx-credit:hover,
.footer .footer__credit .runx-credit:focus-visible {
    background: none;
    border: 0;
    padding: 0;
}

.footer .footer__credit .runx-credit__meta u {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- mobile action bar ---------- */

.mobile-cta {
    display: none;
}

@media (width <= 768px) {
    :root { --mobile-cta-h: calc(72px + env(safe-area-inset-bottom)); }

    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9;
        display: flex;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(10px);
        box-shadow: 0 -8px 24px rgba(4, 23, 51, .08);
        transform: translateY(110%);
        transition: transform .35s var(--ease-out);
    }

    body.is-scrolled .mobile-cta {
        transform: none;
    }

    body.menu-open .mobile-cta {
        transform: translateY(110%);
    }

    .mobile-cta .btn {
        flex: 1;
        height: 48px;
        padding-inline: 12px;
    }

    .mobile-cta__call {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 0 0 auto;
        height: 48px;
        padding-inline: 20px;
        border-radius: 32px;
        border: 1px solid var(--primary-green-100);
        color: var(--primary-green-100);
        font-weight: 500;
        text-decoration: none;
    }

    .mobile-cta__call .icon {
        font-size: 20px;
    }
}

/* ---------- fixes found in review ---------- */

/* the theme sizes inner-page hero images by height only; keep the ratio now
   that every <img> carries width/height attributes */
.hero-inner .hero-inner__img {
    width: auto;
    max-width: none;
}

.support__footer p a {
    color: var(--green-dark);
    font-weight: 600;
}

/* team page: the whole group photo, not a crop of two people */
@media (width > 768px) {
    .hero-inner.team-hero .hero-inner__img {
        left: auto;
        right: 0;
        top: 50%;
        bottom: auto;
        width: 46%;
        height: auto;
        transform: translateY(-50%);
        border-radius: 24px;
        object-fit: cover;
    }

    .hero-inner.team-hero .hero-inner__content {
        position: static;
    }

    .hero-inner.team-hero .hero-inner__container {
        position: relative;
        min-height: 560px;
    }
}

@media (width <= 768px) {
    .hero-inner.team-hero .hero-inner__img { display: none; }
    .hero-inner.team-hero .hero-inner__container { min-height: 0; }
}

/* people cards: text takes the free space on either side of the photo */
.person .person__content {
    flex: 1 1 0;
    max-width: 760px;
}

.person .person__container.reverse .person__content {
    margin-right: auto;
}

.person .person__img {
    flex-shrink: 0;
}

/* long words (Ukrainian / Russian legal terms, URLs) must wrap on 360px
   phones instead of widening the page */
h1, h2, h3, h4 {
    overflow-wrap: break-word;
}

/* hyphenate only the one place a single word can outgrow a phone */
.simple-post__title {
    hyphens: auto;
}

.simple-post__content {
    overflow-wrap: anywhere;
}

/* ---------- hero: the face illustration is never covered by the cards ---------- */

/* wide screens: everything sits left of the face (≈450px at the right edge) */
@media (width >= 1280px) {
    .hero .hero__content {
        max-width: min(980px, calc(100vw - 560px));
    }

    .hero .hero__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero .hero__card .hero__card-title {
        font-size: 18px;
        gap: 16px;
    }

    .hero .hero__card .hero__card-text {
        padding: 18px 16px;
    }
}

/* narrower screens have no room beside the face: it becomes a soft backdrop
   for the heading only and fades out before the cards begin */
@media (width < 1280px) {
    .hero::after,
    .hero::after {
        opacity: .55;
        background-position: top right;
        background-size: auto min(520px, 70%);
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 42%);
        mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 42%);
    }

    .hero::before {
        opacity: .25;
    }
}

@media (width <= 768px) {
    .hero::after {
        opacity: .4;
        background-size: auto 340px;
        -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 170px, transparent 300px);
        mask-image: linear-gradient(to bottom, #000 0, #000 170px, transparent 300px);
    }
}

@media (1280px <= width < 1440px) {
    .hero .hero__card .hero__card-title { font-size: 16px; }
    .hero .hero__card .hero__card-title::after { width: 22px; height: 22px; }
}

/* massage page: nine techniques, three across */
.services .massage-types__grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (width <= 1024px) {
    .services .massage-types__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (width <= 576px) {
    .services .massage-types__grid { grid-template-columns: 1fr; }
}

.person .person__content .section-subtitle {
    margin-bottom: 8px;
}

.person .person__content a {
    color: var(--green-dark);
    font-weight: 500;
}

/* Bohdan and Olena read as one block on the home page */
.person:has(+ .person--second) {
    margin-bottom: 0;
    padding-bottom: 12px;
}

.person.person--second {
    padding-top: 12px;
}

/* >>> RUNX credit — from _shared/runx-credit, do not edit here */
/* RUNX site credit — required in the footer of every client site.
   Self-contained: scoped to .runx-credit, no dependencies. Theme with:
     --runx-ink     mark + text colour  (default: currentColor — inherits the footer)
     --runx-accent  RUNX orange         (default: #FF4400, from runxai.com)
   Motion: the letters arrive in sequence when the credit scrolls into view,
   then an orange glint, clipped to the mark's own shapes, sweeps across it
   and repeats every ~7s. Hover turns the X orange and re-runs the glint.
   Everything is static under prefers-reduced-motion or without JS
   (runx-credit.js adds .is-armed, so nothing hides unless it can come back). */

.runx-credit {
  --runx-ink: currentColor;
  --runx-accent: #FF4400;
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 56px; padding: 10px 18px 10px 14px;
  color: inherit; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--runx-ink) 18%, transparent);
  border-left: 3px solid var(--runx-accent);
  border-radius: 2px;
  transition: border-color .25s, background-color .25s;
}
.runx-credit:hover, .runx-credit:focus-visible {
  border-color: color-mix(in srgb, var(--runx-accent) 55%, transparent);
  border-left-color: var(--runx-accent);
  background: color-mix(in srgb, var(--runx-accent) 7%, transparent);
}
.runx-credit:focus-visible { outline: 2px solid var(--runx-accent); outline-offset: 3px; }

.runx-mark { display: block; flex: none; height: 38px; width: auto; aspect-ratio: 418.5 / 243; overflow: visible; }
.runx-mark__part { fill: var(--runx-ink); transform-box: fill-box; transform-origin: 50% 50%;
  transition: transform .45s cubic-bezier(.22,1,.36,1), fill .25s; }
.runx-mark__glint { transform: translateX(-120px); opacity: 0; }
.runx-credit:hover .runx-mark__x, .runx-credit:focus-visible .runx-mark__x { fill: var(--runx-accent); transform: translateX(3%) rotate(-5deg); }

.runx-credit__text { display: grid; gap: 5px; min-width: 0; }
.runx-credit__line { font-size: 14px; line-height: 1.3; font-weight: 500; }
.runx-credit__line b { font-weight: 800; letter-spacing: .02em; }
.runx-credit__meta { font-size: 12px; line-height: 1.3; letter-spacing: .04em; opacity: .75; }
.runx-credit__meta u { text-decoration: none; color: var(--runx-accent); font-weight: 600; }
.runx-credit:hover .runx-credit__meta { opacity: 1; }

.runx-credit__line b, .runx-credit__meta u { white-space: nowrap; }

/* narrow screens: mark on top, text below — nothing breaks mid-name */
@media (max-width: 520px) {
  .runx-credit { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .runx-mark { height: 34px; }
  .runx-credit__line { font-size: 13.5px; }
  .runx-credit__meta { font-size: 12px; line-height: 1.45; }
}

@media (prefers-reduced-motion: no-preference) {
  .runx-credit.is-armed .runx-mark__part { opacity: 0; transform: translateX(-30%); }
  .runx-credit.is-armed.is-in .runx-mark__part { opacity: 1; transform: none;
    transition: opacity .5s ease, transform .75s cubic-bezier(.22,1,.36,1), fill .25s; }
  .runx-credit.is-armed.is-in .runx-mark__u { transition-delay: .08s; }
  .runx-credit.is-armed.is-in .runx-mark__n { transition-delay: .16s; }
  .runx-credit.is-armed.is-in .runx-mark__x { transition-delay: .3s; }
  .runx-credit.is-armed.is-in:hover .runx-mark__x { transform: translateX(3%) rotate(-5deg); transition-delay: 0s; }
  .runx-credit.is-in .runx-mark__glint { animation: runx-glint 7s 1.1s cubic-bezier(.65,0,.35,1) infinite; }
  .runx-credit.is-in:hover .runx-mark__glint { animation: runx-glint-hover 1.1s cubic-bezier(.65,0,.35,1) infinite; }
}

@keyframes runx-glint {
  0%       { transform: translateX(-120px); opacity: 1; }
  17%      { transform: translateX(480px);  opacity: 1; }
  18%,100% { transform: translateX(480px);  opacity: 0; }
}
@keyframes runx-glint-hover {
  from { transform: translateX(-120px); opacity: 1; }
  to   { transform: translateX(480px);  opacity: 1; }
}
/* <<< RUNX credit */
