/* =========================================================
   KOSKENKUISKE – YLEISET ASETUKSET
   ========================================================= */

:root {
    color-scheme: light;

    --color-bg: #f7f3ee;
    --color-surface: #ffffff;

    --color-text: #2f2a26;
    --color-muted: #6f665f;

    --color-green: #216f6d;
    --color-green-dark: #195b59;

    --color-gold: #e6bd61;
    --color-gold-light: #f0d58c;
    --color-gold-dark: #946b24;

    --color-border: #e6ddd3;

    --container: 1180px;
    --radius: 22px;

    --shadow:
        0 16px 40px rgba(57, 43, 31, 0.08);
}


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


html {
    scroll-behavior: smooth;
    color-scheme: light;
}


/* =========================================================
   CABIN – SIVUSTON PÄÄFONTI
   ========================================================= */

body,
button,
input,
textarea,
select {
    font-family:
        "Cabin",
        Arial,
        Helvetica,
        sans-serif;
}


body {
    margin: 0;

    color: var(--color-text);

    background: var(--color-bg);

    font-size: 16px;

    line-height: 1.6;
}


img {
    display: block;

    max-width: 100%;

    height: auto;
}


a {
    color: inherit;

    text-decoration: none;
}


/* =========================================================
   SISÄLTÖLEVEYS
   ========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}


.section {
    padding: 90px 0;
}


.page-section {
    padding: 72px 0 90px;

    background: var(--color-bg);
}


.page-content {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
}


/* =========================================================
   TYPOGRAFIA
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    font-family:
        "Cabin",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.15;
}


h1 {
    font-size: clamp(
        2.7rem,
        6vw,
        5.6rem
    );

    font-weight: 600;

    letter-spacing: -0.025em;
}


h2 {
    font-size: clamp(
        2rem,
        4vw,
        3.6rem
    );

    font-weight: 600;

    letter-spacing: -0.02em;
}


h3 {
    font-size: 1.35rem;

    font-weight: 700;
}


p {
    margin-top: 0;
}


strong,
b {
    font-weight: 700;
}


.eyebrow {
    margin: 0 0 10px;

    color: var(--color-gold-dark);

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


/* =========================================================
   YLEISET PAINIKKEET
   ========================================================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 24px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-family:
        "Cabin",
        Arial,
        Helvetica,
        sans-serif;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.button-primary {
    color: #ffffff;

    background: var(--color-green);

    border-color: var(--color-green);
}


.button-primary:hover,
.button-primary:focus {
    color: #ffffff;

    background: var(--color-green-dark);

    border-color: var(--color-green-dark);

    transform: translateY(-1px);
}


.button-secondary {
    color: var(--color-green-dark);

    border-color:
        rgba(33, 111, 109, 0.45);

    background:
        rgba(255, 255, 255, 0.82);
}


.button-secondary:hover,
.button-secondary:focus {
    color: var(--color-green-dark);

    background: #ffffff;

    transform: translateY(-1px);
}


.button-large {
    min-height: 60px;

    padding-inline: 30px;
}


/* =========================================================
   ETUSIVUN HERO
   ========================================================= */

.home-hero {
    position: relative;

    display: flex;

    align-items: center;

    height: clamp(
        650px,
        43vw,
        770px
    );

    overflow: hidden;

    background: var(--color-bg);
}


/* =========================================================
   HERO – KUVA
   ========================================================= */

.home-hero-media {
    position: absolute;

    inset: 0;

    z-index: 1;
}


.home-hero-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: 70% 26%;
}


/* =========================================================
   HERO – LIIKKUVAT LEHDET
   ========================================================= */

.home-hero-leaves {
    position: absolute;

    inset: 0;

    z-index: 2;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: 70% 26%;

    pointer-events: none;

    transform-origin: 65% 43%;

    animation:
        koskenkuiske-hero-leaves
        12s
        ease-in-out
        infinite;

    will-change: transform;
}


@keyframes koskenkuiske-hero-leaves {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            rotate(0deg);
    }

    25% {
        transform:
            translate3d(1px, -1px, 0)
            rotate(0.10deg);
    }

    50% {
        transform:
            translate3d(-1px, 1px, 0)
            rotate(-0.08deg);
    }

    75% {
        transform:
            translate3d(1px, 0, 0)
            rotate(0.07deg);
    }
}


/* =========================================================
   HERO – VEDEN HILLITTY VALONVÄLKE
   ========================================================= */

.home-hero-media::after {
    content: "";

    position: absolute;

    z-index: 3;

    left: -10%;
    bottom: -3%;

    width: 78%;
    height: 58%;

    pointer-events: none;

    background:
        linear-gradient(
            105deg,
            transparent 0%,
            transparent 29%,
            rgba(255, 245, 211, 0.05) 38%,
            rgba(255, 250, 224, 0.23) 48%,
            rgba(240, 213, 140, 0.11) 57%,
            transparent 68%,
            transparent 100%
        );

    background-size:
        230% 100%;

    background-position:
        120% 0;

    mix-blend-mode: screen;

    filter:
        blur(5px);

    opacity: 0.13;

    transform:
        skewX(-8deg);

    animation:
        koskenkuiske-water-shimmer
        18s
        ease-in-out
        infinite;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.08) 14%,
            rgba(0, 0, 0, 0.72) 43%,
            #000000 100%
        );

    mask-image:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.08) 14%,
            rgba(0, 0, 0, 0.72) 43%,
            #000000 100%
        );
}


@keyframes koskenkuiske-water-shimmer {

    0%,
    100% {
        background-position:
            120% 0;

        opacity: 0.08;
    }

    35% {
        opacity: 0.16;
    }

    65% {
        background-position:
            -90% 0;

        opacity: 0.12;
    }
}


/* =========================================================
   HERO – VAALEA HÄIVYTYS
   ========================================================= */

.home-hero-shade {
    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            90deg,
            rgba(247, 243, 238, 0.96) 0%,
            rgba(247, 243, 238, 0.91) 20%,
            rgba(247, 243, 238, 0.72) 35%,
            rgba(247, 243, 238, 0.39) 49%,
            rgba(247, 243, 238, 0.10) 63%,
            rgba(247, 243, 238, 0) 77%
        );
}



/* =========================================================
   HERO – SISÄLTÖ
   ========================================================= */

.home-hero-inner {
    position: relative;

    z-index: 3;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    width: min(
        calc(100% - 40px),
        1380px
    );

    margin-inline: auto;
}


.home-hero-content {
    grid-column: 1;

    justify-self: end;

    width: min(
        700px,
        100%
    );

    transform:
        translate(
            clamp(
                190px,
                11vw,
                265px
            ),
            -55px
        );

    padding: 40px 0;

    text-align: center;
}


/* =========================================================
   HERO – LUONNOLLISTA KAUNEUTTA
   ========================================================= */

.home-hero-title {
    width: 100%;

    max-width: 100%;

    margin: 0 auto;

    color: var(--color-green);

    font-family:
        "Great Vibes",
        cursive;

    font-weight: 400;

    line-height: 0.88;

    letter-spacing: 0;

    text-align: center;
}


/* Luonnollista */

.home-hero-title-first {
    display: block;

    width: max-content;

    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    white-space: nowrap;

    color: var(--color-green);

    font-family:
        "Great Vibes",
        cursive;

    font-size: clamp(
        92px,
        6.8vw,
        126px
    );

    font-weight: 400;

    line-height: 0.90;

    letter-spacing: 0;

    text-align: center;

    -webkit-text-stroke:
        0.55px currentColor;

    text-shadow:
        0.4px 0 currentColor,
        -0.4px 0 currentColor,
        0 0.4px currentColor,
        0 -0.4px currentColor;
}


/* kauneutta */

.home-hero-title-second {
    display: block;

    width: max-content;

    max-width: 100%;

    margin-top: 9px;

    margin-left: auto;
    margin-right: auto;

    white-space: nowrap;

    color: var(--color-green);

    font-family:
        "Great Vibes",
        cursive;

    font-size: clamp(
        92px,
        6.8vw,
        126px
    );

    font-weight: 400;

    line-height: 0.90;

    letter-spacing: 0;

    text-align: center;

    -webkit-text-stroke:
        0.55px currentColor;

    text-shadow:
        0.4px 0 currentColor,
        -0.4px 0 currentColor,
        0 0.4px currentColor,
        0 -0.4px currentColor;
}


/* =========================================================
   – KUIN KOSKENKUISKE –
   ========================================================= */

.home-hero-tagline {
    display: block;

    width: 100%;

    margin-top: 30px;

    margin-left: 0;

    color: var(--color-green-dark);

    font-family:
        "Cabin",
        Arial,
        Helvetica,
        sans-serif;

    font-size: clamp(
        24px,
        1.8vw,
        31px
    );

    font-weight: 600;

    line-height: 1.25;

    letter-spacing: 0.01em;

    text-align: center;
}


/* =========================================================
   HERO – PAINIKKEET
   ========================================================= */

.home-hero-actions {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 32px;
}


/* Etusivun hero-painikkeet – sama kirkas kultainen tyyli */

.home-hero .button.home-hero-primary,
.home-hero .button.home-hero-secondary {
    min-height: 50px;

    padding: 0 28px;

    border:
        1px solid #d2a444 !important;

    border-radius: 6px;

    background:
        var(--color-gold) !important;

    color:
        var(--color-green-dark) !important;

    font-size: 15px;

    font-weight: 700;
}


.home-hero .button.home-hero-primary:hover,
.home-hero .button.home-hero-primary:focus,
.home-hero .button.home-hero-secondary:hover,
.home-hero .button.home-hero-secondary:focus {
    border-color:
        #d8ad50 !important;

    background:
        var(--color-gold-light) !important;

    color:
        var(--color-green-dark) !important;

    transform: translateY(-1px);
}


/* =========================================================
   PLACEHOLDER-KUVAT
   ========================================================= */

.placeholder-image {
    display: grid;

    place-items: center;

    overflow: hidden;

    min-height: 260px;

    border:
        1px solid var(--color-border);

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            rgba(181, 138, 90, 0.16),
            rgba(255, 255, 255, 0.72)
        );

    color: var(--color-muted);
}


/* =========================================================
   OSIOIDEN OTSIKOT
   ========================================================= */

.section-heading {
    max-width: 760px;

    margin-bottom: 44px;
}


.section-heading > p:last-child {
    color: var(--color-muted);
}


/* =========================================================
   HOITOKORTIT
   ========================================================= */

.treatments {
    background: #ffffff;
}


/*
 * FLEXBOX:
 *
 * Keskittää automaattisesti myös vajaan viimeisen rivin.
 *
 * 5 korttia:
 *    3 ensimmäisellä rivillä
 *    2 keskitettynä toisella
 *
 * 4 korttia:
 *    3 ensimmäisellä
 *    1 keskitettynä
 *
 * 6 korttia:
 *    3 + 3
 */

.treatment-grid {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    align-items: stretch;

    gap: 28px;
}


/* =========================================================
   YKSITTÄINEN HOITOKORTTI
   ========================================================= */

.treatment-card {
    position: relative;

    flex:
        0 1
        calc(
            (100% - 56px) / 3
        );

    min-width: 0;

    overflow: hidden;

    border:
        1px solid var(--color-border);

    border-radius: var(--radius);

    background: var(--color-surface);

    box-shadow: var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/*
 * Koko kortti toimii linkkinä.
 */

.treatment-card > a {
    display: flex;

    flex-direction: column;

    height: 100%;

    color: inherit;

    text-decoration: none;
}


/* Hover koko kortille */

.treatment-card:hover,
.treatment-card:focus-within {
    transform: translateY(-5px);

    border-color:
        rgba(148, 107, 36, 0.28);

    box-shadow:
        0 24px 52px rgba(57, 43, 31, 0.14);
}


/* Näppäimistökäyttäjän focus */

.treatment-card > a:focus-visible {
    outline:
        3px solid rgba(33, 111, 109, 0.45);

    outline-offset: -3px;
}


/* =========================================================
   HOITOKORTIN KUVA
   ========================================================= */

.treatment-image {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border: 0;

    border-bottom:
        1px solid var(--color-border);

    border-radius: 0;

    background:
        linear-gradient(
            135deg,
            rgba(230, 189, 97, 0.12),
            rgba(248, 244, 236, 0.9)
        );
}


.treatment-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


/* Kevyt kuvan zoomaus */

.treatment-card:hover .treatment-image img,
.treatment-card:focus-within .treatment-image img {
    transform: scale(1.035);
}


/* =========================================================
   HOITOKORTIN TEKSTIT
   ========================================================= */

.treatment-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 28px;
}


.treatment-content h2,
.treatment-content h3 {
    margin-bottom: 17px;

    color: var(--color-text);
}


.treatment-content h2 {
    font-size: 1.6rem;

    font-weight: 700;

    letter-spacing: -0.015em;
}


.treatment-content h3 {
    font-size: 1.55rem;

    font-weight: 700;

    letter-spacing: -0.015em;
}


.treatment-content p {
    margin-bottom: 18px;

    color: var(--color-muted);

    font-size: 16px;

    line-height: 1.65;
}


/*
 * Linkkiteksti pysyy kortin alaosassa.
 */

.treatment-link {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    width: fit-content;

    margin-top: auto;

    padding-top: 4px;

    color: var(--color-green-dark);

    font-size: 16px;

    font-weight: 700;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.treatment-card:hover .treatment-link,
.treatment-card:focus-within .treatment-link {
    color: var(--color-gold-dark);

    transform: translateX(3px);
}


/* =========================================================
   VARSINAINEN HOIDOT-SIVU
   ========================================================= */

.treatments-page {
    min-height: 600px;

    background: var(--color-bg);
}


.treatments-page .section-heading {
    max-width: 800px;
    margin: 0 auto 52px;
    text-align: center;
}


.treatments-page .section-heading h1 {
    margin-bottom: 18px;

    color: var(--color-text);

    font-size: clamp(
        2.8rem,
        5vw,
        4.8rem
    );

    text-align: center;
}


.treatments-page .section-heading .eyebrow {
    text-align: center;
}


.treatments-page .section-heading > p:last-child {
    max-width: 650px;

    margin-left: auto;
    margin-right: auto;

    font-size: 18px;
    line-height: 1.7;

    text-align: center;
}


.treatments-page .treatment-card {
    background: #ffffff;
}


/* =========================================================
   ESITTELY
   ========================================================= */

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


.about-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 64px;
}


/* =========================================================
   ULLAN KUVA
   ========================================================= */

.about-image {
    width: 100%;

    max-width: 560px;

    margin-inline: auto;

    overflow: hidden;

    border:
        1px solid rgba(148, 107, 36, 0.12);

    border-radius: 22px;

    background: #f7f3ee;

    box-shadow:
        0 18px 45px rgba(57, 43, 31, 0.10);
}


.about-image img {
    display: block;

    width: 100%;

    height: auto;

    object-fit: cover;
}


/* =========================================================
   ULLAN KUVAN ALATEKSTIT
   ========================================================= */

.about-person {
    position: relative;

    padding:
        24px 20px 22px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(248, 244, 236, 0.92) 0%,
            #f7f3ee 100%
        );
}


.about-person::before {
    content: "";

    display: block;

    width: 52px;

    height: 2px;

    margin:
        0 auto 17px;

    background:
        var(--color-gold);
}


.about-person-title {
    margin: 0;

    color:
        var(--color-green-dark) !important;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.35;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


.about-person-since {
    margin:
        6px 0 0;

    color:
        var(--color-gold-dark) !important;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.4;
}


.about-person-name {
    margin:
        8px 0 0;

    color:
        var(--color-green) !important;

    font-family:
        "Great Vibes",
        cursive;

    font-size: 46px;

    font-weight: 400;

    line-height: 1.05;

    letter-spacing: 0;

    -webkit-text-stroke:
        0.25px currentColor;
}


/* =========================================================
   ESITTELYTEKSTI
   ========================================================= */

.about-content {
    max-width: 570px;
}


.about-content p {
    color: var(--color-muted);
}


.about-text {
    font-size: 17px;

    line-height: 1.75;
}


.about-text p {
    margin-bottom: 20px;

    color: var(--color-muted);
}


.about-text p:last-child {
    margin-bottom: 0;
}


.about-text strong {
    color: var(--color-text);

    font-weight: 700;
}


/* =========================================================
   AJANVARAUS
   ========================================================= */

.booking-section {
    padding-top: 30px;

    background: var(--color-bg);
}


.booking-box {
    display: grid;

    grid-template-columns:
        1fr auto;

    align-items: center;

    gap: 40px;

    padding: 54px;

    border:
        1px solid rgba(230, 189, 97, 0.24);

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            var(--color-green) 0%,
            var(--color-green-dark) 100%
        );

    color: #ffffff;

    box-shadow:
        0 18px 45px rgba(25, 91, 89, 0.16);
}


.booking-box h2 {
    margin-bottom: 18px;

    color: #ffffff;
}


.booking-box .eyebrow {
    color: var(--color-gold-light);
}


.booking-box p {
    margin-bottom: 0;

    color:
        rgba(255, 255, 255, 0.84);
}


/* Ajanvarauksen painike */

.booking-box .button,
.booking-box .button-primary,
.booking-box .button-large {
    min-height: 56px;

    padding: 0 30px;

    border:
        1px solid #d4a94b !important;

    border-radius: 7px;

    background:
        var(--color-gold) !important;

    color:
        var(--color-green-dark) !important;

    font-family:
        "Cabin",
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;

    font-weight: 700;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.10);
}


.booking-box .button:hover,
.booking-box .button:focus,
.booking-box .button-primary:hover,
.booking-box .button-primary:focus,
.booking-box .button-large:hover,
.booking-box .button-large:focus {
    border-color:
        var(--color-gold-light) !important;

    background:
        var(--color-gold-light) !important;

    color:
        var(--color-green-dark) !important;

    transform: translateY(-2px);
}


/* =========================================================
   YHTEYSTIEDOT
   ========================================================= */

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


.contact-grid {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap: 28px;
}


.contact-grid > div {
    padding: 28px;

    border:
        1px solid var(--color-border);

    border-radius: var(--radius);

    background:
        rgba(255, 255, 255, 0.76);
}


.contact-grid p {
    color: var(--color-muted);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 70px 0 26px;

    border-top:
        4px solid var(--color-gold);

    background:
        linear-gradient(
            135deg,
            #195b59 0%,
            #124a49 100%
        );

    color: #ffffff;
}


.footer-grid {
    display: grid;

    grid-template-columns:
        1.4fr 1fr 1fr;

    gap: 48px;
}


.site-footer h2,
.site-footer h3,
.site-footer h4 {
    color: #ffffff;
}


.site-footer h2 {
    color: var(--color-gold-light);
}


.site-footer p {
    color:
        rgba(255, 255, 255, 0.78);
}


.site-footer a {
    color: var(--color-gold-light);

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}


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


.footer-bottom {
    margin-top: 50px;

    padding-top: 24px;

    border-top:
        1px solid rgba(230, 189, 97, 0.28);
}


.footer-bottom p {
    margin-bottom: 0;

    color:
        rgba(255, 255, 255, 0.62);

    font-size: 14px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .home-hero {
        height: clamp(
            640px,
            68vw,
            720px
        );
    }


    .home-hero-image {
        object-position: 70% 26%;
    }


    .home-hero-leaves {
        object-position: 70% 26%;

        animation-duration: 14s;
    }


    .home-hero-inner {
        width:
            calc(100% - 36px);

        grid-template-columns:
            1fr 1fr;
    }


    .home-hero-content {
        width: min(
            600px,
            100%
        );

        transform:
            translate(
                105px,
                -35px
            );

        padding: 45px 0;

        text-align: center;
    }


    .home-hero-title-first,
    .home-hero-title-second {
        font-size:
            clamp(
                72px,
                8vw,
                96px
            );

        -webkit-text-stroke:
            0.45px currentColor;
    }


    .home-hero-title-second {
        margin-top: 9px;

        margin-left: auto;
        margin-right: auto;
    }


    .home-hero-tagline {
        margin-top: 25px;

        font-size:
            clamp(
                21px,
                2.5vw,
                25px
            );
    }


    .home-hero-shade {
        background:
            linear-gradient(
                90deg,
                rgba(247, 243, 238, 0.96) 0%,
                rgba(247, 243, 238, 0.87) 37%,
                rgba(247, 243, 238, 0.50) 60%,
                rgba(247, 243, 238, 0.05) 84%
            );
    }


    /* =====================================================
       HOITOKORTIT TABLETILLA
       ===================================================== */

    .treatment-grid {
        gap: 24px;
    }


    .treatment-card {
        flex:
            0 1
            calc(
                (100% - 24px) / 2
            );
    }


    .treatment-content {
        padding: 25px;
    }


    /* =====================================================
       ESITTELY TABLETILLA
       ===================================================== */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 48px;
    }


    .about-image {
        max-width: 560px;
    }


    .about-content {
        max-width: 700px;

        margin-inline: auto;
    }


    .booking-box,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBIILI
   ========================================================= */

@media (max-width: 650px) {

    .container {
        width:
            min(
                calc(100% - 28px),
                var(--container)
            );
    }


    .section {
        padding: 64px 0;
    }


    .page-section {
        padding: 52px 0 64px;
    }


    /* =====================================================
       HERO MOBIILISSA
       ===================================================== */

    .home-hero {
        height: 760px;

        align-items: flex-end;
    }


    .home-hero-image {
        object-position: 75% 25%;
    }


    .home-hero-leaves {
        object-position: 75% 25%;

        animation-duration: 16s;
    }


    .home-hero-media::after {
        left: -20%;

        width: 115%;
        height: 45%;

        opacity: 0.10;

        animation-duration: 22s;
    }


    .home-hero-shade {
        background:
            linear-gradient(
                0deg,
                rgba(247, 243, 238, 0.98) 0%,
                rgba(247, 243, 238, 0.96) 38%,
                rgba(247, 243, 238, 0.70) 55%,
                rgba(247, 243, 238, 0.18) 72%,
                rgba(247, 243, 238, 0) 85%
            );
    }


    .home-hero-inner {
        display: block;

        width:
            calc(100% - 24px);
    }


    .home-hero-content {
        width: 100%;

        transform: none;

        padding:
            285px 0 48px;

        text-align: center;
    }


    .home-hero-title {
        width: 100%;

        margin-inline: auto;

        text-align: center;
    }


    .home-hero-title-first,
    .home-hero-title-second {
        width: max-content;

        max-width: 100%;

        margin-left: auto;
        margin-right: auto;

        font-size:
            clamp(
                58px,
                16vw,
                78px
            );

        text-align: center;

        -webkit-text-stroke:
            0.4px currentColor;
    }


    .home-hero-title-second {
        margin-top: 18px;
    }


    .home-hero-tagline {
        margin-top: 20px;

        margin-left: 0;

        text-align: center;

        font-size: 20px;
    }


    .home-hero-actions {
        justify-content: center;

        gap: 10px;

        margin-top: 26px;
    }


    .home-hero .button.home-hero-primary,
    .home-hero .button.home-hero-secondary {
        min-height: 47px;

        padding-inline: 18px;

        font-size: 14px;
    }


    /* =====================================================
       HOITOKORTIT MOBIILISSA
       ===================================================== */

    .treatment-grid {
        gap: 22px;
    }


    .treatment-card {
        flex:
            0 1 100%;

        width: 100%;

        max-width: 520px;

        margin-inline: auto;
    }


    .treatment-content {
        padding: 24px 22px;
    }


    .treatment-content h2,
    .treatment-content h3 {
        font-size: 1.45rem;
    }


    .treatment-content p {
        font-size: 15px;
    }


    .treatment-link {
        font-size: 15px;
    }


    .treatments-page .section-heading {
        margin-bottom: 36px;
    }


    .treatments-page .section-heading h1 {
        font-size:
            clamp(
                2.4rem,
                11vw,
                3.4rem
            );
    }


    .treatments-page .section-heading > p:last-child {
        font-size: 16px;
    }


    /* =====================================================
       ULLAN KUVA MOBIILISSA
       ===================================================== */

    .about-image {
        max-width: 500px;

        border-radius: 18px;
    }


    .about-person {
        padding:
            21px 16px 19px;
    }


    .about-person-title {
        font-size: 13px;

        letter-spacing: 0.11em;
    }


    .about-person-since {
        font-size: 14px;
    }


    .about-person-name {
        font-size: 40px;
    }


    .about-text {
        font-size: 16px;
    }


    /* =====================================================
       MUUT MOBIILISÄÄNNÖT
       ===================================================== */

    .booking-box {
        padding: 34px 26px;
    }
}


/* =========================================================
   PIENET PUHELIMET
   ========================================================= */

@media (max-width: 420px) {

    .home-hero-title-first,
    .home-hero-title-second {
        font-size:
            clamp(
                52px,
                15.5vw,
                66px
            );
    }


    .home-hero-tagline {
        font-size: 18px;
    }


    .home-hero-actions {
        flex-direction: column;

        align-items: stretch;

        width: min(
            280px,
            100%
        );

        margin-left: auto;
        margin-right: auto;
    }


    .home-hero .button.home-hero-primary,
    .home-hero .button.home-hero-secondary {
        width: 100%;
    }
}
/* =========================================================
   HOITOSIVUJEN PÄÄOTSIKOT
   VAIN 6 HOITOSIVULLA
   ========================================================= */

.treatment-detail-page .page-header {
    width: 100%;

    margin-bottom: 32px;

    text-align: center;
}


.treatment-detail-page .page-title {
    width: 100%;

    margin-left: auto;
    margin-right: auto;

    text-align: center;
}

/* =========================================================
   HERO – REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .home-hero-leaves {
        animation: none;
    }


    .home-hero-media::after {
        animation: none;

        opacity: 0.05;
    }

}
/* =========================================================
   HEMMOTTELUPAKETIT – SIVU 155
   ========================================================= */

.packages-page {
    min-height: 600px;
    background: var(--color-bg);
}


/* Sivun pääotsikko */

.packages-heading {
    width: 100%;
    max-width: 100%;

    margin: 0 auto 42px;

    text-align: center;

    /* Mahdollistaa cqw-yksikön käytön otsikossa. */
    container-type: inline-size;
}


.packages-heading h1 {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0 auto;

    color: var(--color-text);

    /* Fallback vanhemmille selaimille. */
    font-size: clamp(2rem, 8.5vw, 4.8rem);

    /* Skaalautuu otsikon oman leveyden mukaan. */
    font-size: min(4.8rem, 9.2cqw);

    line-height: 1.05;
    text-align: center;

    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}


/* Suuri fiiliskuva */

.packages-hero {
    overflow: hidden;

    width: 100%;
    aspect-ratio: 3 / 1;

    margin-bottom: 44px;

    border-radius: var(--radius);

    background: #eee7de;

    box-shadow: var(--shadow);
}


.packages-hero img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* Johdantoteksti */

.packages-intro {
    max-width: 980px;

    margin: 0 auto 62px;

    color: var(--color-text);

    font-size: 18px;
    line-height: 1.7;

    text-align: center;
}


.packages-intro p {
    margin-bottom: 22px;
}


.packages-intro p:last-child {
    margin-bottom: 0;

    color: var(--color-muted);
}


.packages-lead {
    font-weight: 700;
}


/* Kolme pakettia rinnakkain */

.packages-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: start;

    gap: 54px;
}


/* Yksittäinen paketti */

.package-item {
    text-align: center;
}


.package-icon {
    width: 54px;
    height: 54px;

    margin: 0 auto 20px;

    color: var(--color-gold-dark);
}


.package-icon svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.package-item h2 {
    margin-bottom: 7px;

    color: var(--color-green-dark);

    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.25;

    text-transform: uppercase;
}


.package-price {
    margin-bottom: 20px;

    color: var(--color-green-dark);

    font-size: 1.25rem;
    font-weight: 700;
}


.package-item > p:last-child {
    margin: 0;

    color: var(--color-muted);

    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   LEVEÄ HEMMOTTELUPAKETIT-KORTTI
   Etusivulla ja Hoidot-sivulla aina koko rivin levyinen
   ========================================================= */

.treatment-grid .package-feature-card {
    flex: 0 0 100%;

    width: 100%;
    max-width: 100%;

    margin-left: 0;
    margin-right: 0;
}


.package-feature-card > a {
    display: flex;
    flex-direction: row;

    width: 100%;
    height: 100%;
}


.package-feature-card .treatment-image {
    flex: 0 0 55%;

    width: 55%;
    min-height: 360px;

    aspect-ratio: auto;

    border-right: 1px solid var(--color-border);
    border-bottom: 0;
}


.package-feature-card .treatment-content {
    flex: 1 1 auto;

    min-width: 0;

    justify-content: center;

    padding: 38px;

    /* Otsikon skaalaus perustuu tekstialueen leveyteen. */
    container-type: inline-size;
}


.package-feature-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: var(--color-gold-dark);

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.package-feature-card .treatment-content h3 {
    display: block;

    width: 100%;
    max-width: 100%;

    margin-bottom: 16px;

    color: var(--color-green-dark);

    /* Fallback vanhemmille selaimille. */
    font-size: clamp(1.35rem, 3vw, 2.25rem);

    /* Skaalautuu tekstialueen leveyden mukaan. */
    font-size: min(2.25rem, 8cqw);

    line-height: 1.1;

    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}


/* =========================================================
   HEMMOTTELUPAKETIT – TABLETTI
   ========================================================= */

@media (max-width: 900px) {

    .packages-hero {
        aspect-ratio: 2 / 1;
    }


    .packages-grid {
        grid-template-columns: 1fr;

        gap: 52px;
    }


    .package-item {
        width: 100%;
        max-width: 650px;

        margin-inline: auto;
    }


    .treatment-grid .package-feature-card {
        flex: 0 0 100%;

        width: 100%;
        max-width: 100%;
    }


    .package-feature-card .treatment-image {
        flex-basis: 52%;

        width: 52%;
        min-height: 330px;
    }


    .package-feature-card .treatment-content {
        padding: 32px;
    }
}


/* =========================================================
   HEMMOTTELUPAKETIT – MOBIILI
   ========================================================= */

@media (max-width: 650px) {

    .packages-heading {
        margin-bottom: 30px;
    }


    .packages-hero {
        aspect-ratio: 4 / 3;

        margin-bottom: 32px;

        border-radius: 18px;
    }


    .packages-intro {
        margin-bottom: 48px;

        font-size: 16px;

        text-align: center;
    }


    .packages-grid {
        gap: 48px;
    }


    .package-item h2 {
        font-size: 1.18rem;
    }


    .treatment-grid .package-feature-card {
        flex: 0 1 100%;

        width: 100%;
        max-width: 520px;

        margin-left: auto;
        margin-right: auto;
    }


    .package-feature-card > a {
        flex-direction: column;
    }


    .package-feature-card .treatment-image {
        flex: none;

        width: 100%;
        min-height: 0;

        aspect-ratio: 4 / 3;

        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }


    .package-feature-card .treatment-content {
        width: 100%;

        padding: 26px 22px;
    }


    .package-feature-card .treatment-content h3 {
        font-size: min(1.7rem, 8cqw);

        white-space: nowrap;
    }
}


/* =========================================================
   HOITOKATEGORIASIVU – YHTEINEN POHJA
   Ensimmäisenä käytössä Kasvohoidot-sivulla
   ========================================================= */

.treatment-category-section {
    padding:
        72px 0 90px;

    background:
        var(--color-bg);
}


/* =========================================================
   KATEGORIAN OTSIKKO
   ========================================================= */

.treatment-category-heading {
    width: 100%;

    margin:
        0 auto 38px;

    text-align: center;

    container-type:
        inline-size;
}


.treatment-category-heading h1 {
    width: 100%;

    margin: 0;

    color:
        var(--color-text);

    font-size:
        min(
            4.8rem,
            11cqw
        );

    font-weight: 700;

    line-height: 1.05;

    text-align: center;

    white-space: nowrap;

    word-break: keep-all;

    overflow-wrap: normal;

    hyphens: none;
}


/* =========================================================
   KATEGORIAN FIILISKUVA
   Sama periaate kuin Hemmottelupaketit-sivulla
   ========================================================= */

.treatment-category-hero {
    overflow: hidden;

    width: 100%;

    aspect-ratio:
        3 / 1;

    margin:
        0 auto 44px;

    border-radius:
        var(--radius);

    background:
        #eee7de;

    box-shadow:
        var(--shadow);
}


.treatment-category-hero img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position:
        center 38%;
}


/* =========================================================
   SIVUN TEKSTISISÄLTÖ
   ========================================================= */

.treatment-category-content {
    width: 100%;

    max-width: 1050px;

    margin-inline: auto;
}


/*
 * Kolme ensimmäistä tekstikappaletta ovat
 * kategorian johdanto.
 */

.treatment-category-content
> p:nth-of-type(-n + 3) {
    max-width: 980px;

    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


/* Ensimmäinen johdanto hieman vahvemmaksi */

.treatment-category-content
> p:first-of-type {
    font-weight: 700;
}


/* Kolmas, täydentävä teksti */

.treatment-category-content
> p:nth-of-type(3) {
    margin-bottom: 52px;

    color:
        var(--color-green-dark);

    font-style: italic;
}


/*
 * Varsinaiset hoitotiedot jätetään tässä vaiheessa
 * vasemmalle tasatuiksi.
 * Seuraavaksi muutamme ne omiksi hoitokorteiksi.
 */

.treatment-category-content
> p:nth-of-type(n + 4) {
    text-align: left;
}


/* =========================================================
   MOBIILI
   ========================================================= */

@media (max-width: 650px) {

    .treatment-category-section {
        padding:
            54px 0 72px;
    }


    .treatment-category-heading {
        margin-bottom: 28px;
    }


    /*
     * Pitkätkin hoitosivujen otsikot pysyvät yhdellä rivillä.
     * Fontti pienenee automaattisesti näytön leveyden mukana.
     */
    .treatment-category-heading h1 {
        font-size:
            min(
                3.5rem,
                11cqw
            );
    }


    .treatment-category-hero {
        aspect-ratio:
            4 / 3;

        margin-bottom: 34px;

        border-radius:
            18px;
    }


    .treatment-category-content
    > p:nth-of-type(-n + 3) {
        text-align: center;
    }

}
/* =========================================================
   KASVOHOIDOT – HOITOKORTIT
   ========================================================= */

.facial-services-list {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 1050px;

    margin:
        58px auto 0;

    gap: 22px;
}


/* Yksittäinen hoito */

.facial-service-card {
    display: grid;

    grid-template-columns:
        54px minmax(0, 1fr);

    gap: 20px;

    padding:
        28px 32px;

    background:
        rgba(255, 255, 255, 0.78);

    border:
        1px solid var(--color-border);

    border-radius:
        20px;

    box-shadow:
        0 12px 32px rgba(57, 43, 31, 0.055);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}


.facial-service-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(148, 107, 36, 0.30);

    box-shadow:
        0 16px 38px rgba(57, 43, 31, 0.08);
}


/* Kultainen koriste */

.facial-service-mark {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin-top: 1px;

    color:
        var(--color-gold-dark);

    background:
        linear-gradient(
            145deg,
            rgba(240, 213, 140, 0.23),
            rgba(230, 189, 97, 0.07)
        );

    border:
        1px solid rgba(148, 107, 36, 0.32);

    border-radius:
        50%;

    font-size: 20px;
}


/* Kortin varsinainen sisältö */

.facial-service-main {
    min-width: 0;
}


/* Otsikko + hinta */

.facial-service-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 14px;
}


.facial-service-header h2 {
    margin: 0;

    color:
        var(--color-green-dark);

    font-size:
        clamp(
            1.15rem,
            1.7vw,
            1.48rem
        );

    font-weight: 700;

    line-height: 1.25;

    letter-spacing: 0;

    text-transform: uppercase;
}


/* Hinta näkyvästi oikealle */

.facial-service-price {
    flex: 0 0 auto;

    color:
        var(--color-gold-dark);

    font-size:
        1.32rem;

    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;
}


/* Hoidon tekstit */

.facial-service-description {
    color:
        var(--color-muted);

    font-size:
        16px;

    line-height: 1.65;
}


.facial-service-description p {
    margin:
        0 0 8px;
}


.facial-service-description p:last-child {
    margin-bottom: 0;
}


/* Sarjahoito */

.facial-service-series {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap:
        5px 12px;

    margin-top: 18px;

    padding:
        12px 16px;

    color:
        var(--color-green-dark);

    background:
        linear-gradient(
            90deg,
            rgba(33, 111, 109, 0.075),
            rgba(230, 189, 97, 0.10)
        );

    border-left:
        3px solid
        var(--color-gold);

    border-radius:
        8px;
}


.facial-service-series strong {
    text-transform: uppercase;
}


.facial-service-series span {
    color:
        var(--color-gold-dark);

    font-weight: 700;
}


.facial-service-series small {
    color:
        var(--color-muted);

    font-size:
        0.87rem;
}


/* Erityisen laaja hoito */

.facial-service-card-featured {
    border-color:
        rgba(148, 107, 36, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.92),
            rgba(240, 213, 140, 0.11)
        );
}


/* =========================================================
   IHOTYYPIN MUKAISET HOIDOT – VÄLIOTSIKKO
   ========================================================= */

.facial-service-group {
    position: relative;

    margin:
        34px 0 10px;

    padding:
        24px 20px 12px;

    text-align: center;
}


.facial-service-group-decoration {
    display: block;

    margin-bottom: 8px;

    color:
        var(--color-gold-dark);

    font-size: 22px;
}


.facial-service-group h2 {
    margin: 0;

    color:
        var(--color-green-dark);

    font-size:
        clamp(
            1.45rem,
            2.3vw,
            2rem
        );

    font-weight: 700;

    line-height: 1.2;

    text-transform: uppercase;
}


/* Pieni lisämerkintä kuten "alle 18-vuotiaat" */

.facial-service-note {
    display: block;

    margin-top: 5px;

    color:
        var(--color-muted);

    font-size:
        0.92rem;

    font-style: italic;
}


/* =========================================================
   KASVOHOITOKORTIT – MOBIILI
   ========================================================= */

@media (max-width: 650px) {

    .facial-services-list {
        margin-top: 44px;

        gap: 18px;
    }


    .facial-service-card {
        grid-template-columns:
            40px minmax(0, 1fr);

        gap: 13px;

        padding:
            22px 18px;

        border-radius:
            17px;
    }


    .facial-service-mark {
        width: 36px;
        height: 36px;

        font-size: 16px;
    }


    .facial-service-header {
        flex-direction: column;

        gap: 7px;

        margin-bottom: 12px;
    }


    .facial-service-header h2 {
        font-size:
            1.08rem;
    }


    .facial-service-price {
        font-size:
            1.2rem;
    }


    .facial-service-description {
        font-size:
            15px;

        line-height:
            1.6;
    }


    .facial-service-series {
        align-items:
            flex-start;

        flex-direction:
            column;

        padding:
            11px 13px;
    }


    .facial-service-group {
        margin-top:
            24px;

        padding-inline:
            5px;
    }


    .facial-service-group h2 {
        font-size:
            1.35rem;
    }
}
/* =========================================================
   HOIDOT-ALAVALIKKO – VARMA AUKIOLO KOSKETUSLAITTEILLA
   ========================================================= */

.main-navigation
.menu-item-has-children.submenu-open
> .sub-menu {

    display: block;

    visibility: visible;

    opacity: 1;

    pointer-events: auto;

    transform:
        translate(-50%, 0);
}
/* =========================================================
   KESTOPIGMENTOINTI – MICROPIGMENTOINNIN TIETORUUTU
   ========================================================= */

.treatment-category-kestopigmentointi .pigmentation-page-content {
    width: 100%;
    max-width: 1050px;

    margin: 34px auto 0;
}


.treatment-category-kestopigmentointi .pigmentation-info-box {
    width: 100%;

    margin: 0;

    padding: 42px 46px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 253, 248, 0.94) 55%,
            rgba(248, 235, 204, 0.16) 100%
        );

    border: 1px solid rgba(163, 118, 38, 0.22);
    border-radius: 22px;

    box-shadow: 0 15px 40px rgba(57, 43, 31, 0.06);
}


/* Tietoruudun pääotsikko */

.treatment-category-kestopigmentointi .pigmentation-info-heading {
    width: 100%;
    max-width: 820px;

    margin: 0 auto 36px;

    text-align: center;
}


.treatment-category-kestopigmentointi .pigmentation-info-symbol {
    display: block;

    margin-bottom: 9px;

    color: var(--color-gold-dark);

    font-size: 21px;
    line-height: 1;
}


.treatment-category-kestopigmentointi .pigmentation-info-heading h2 {
    width: 100%;

    margin: 0 0 17px;

    color: var(--color-green-dark);

    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.1;

    text-align: center;
    text-transform: uppercase;
}


.treatment-category-kestopigmentointi .pigmentation-info-lead {
    width: 100% !important;
    max-width: 760px !important;

    margin: 0 auto !important;

    color: var(--color-muted);

    font-size: 17px;
    line-height: 1.7;

    text-align: center !important;
}


/* 2 × 2 tietoruudukko desktopilla */

.treatment-category-kestopigmentointi .pigmentation-info-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;

    column-gap: 46px;
    row-gap: 0;
}


.treatment-category-kestopigmentointi .pigmentation-info-section {
    width: 100%;
    min-width: 0;

    padding: 28px 0;

    border-top: 1px solid rgba(163, 118, 38, 0.18);
}


.treatment-category-kestopigmentointi
.pigmentation-info-section:nth-last-child(-n + 2) {
    padding-bottom: 8px;
}


.treatment-category-kestopigmentointi .pigmentation-info-section h3 {
    width: 100%;

    margin: 0 0 13px;

    color: var(--color-green-dark);

    font-size: clamp(1.05rem, 1.55vw, 1.25rem);
    font-weight: 700;
    line-height: 1.35;

    text-align: left;
    text-transform: uppercase;
}


.treatment-category-kestopigmentointi .pigmentation-info-section p {
    width: 100% !important;
    max-width: none !important;

    margin: 0 0 12px !important;

    color: var(--color-muted);

    font-size: 16px;
    line-height: 1.7;

    text-align: left !important;
}


.treatment-category-kestopigmentointi
.pigmentation-info-section p:last-child {
    margin-bottom: 0 !important;
}


.treatment-category-kestopigmentointi .pigmentation-info-section strong {
    color: var(--color-text);
    font-weight: 700;
}


/* =========================================================
   KESTOPIGMENTOINTI – HINNASTO
   ========================================================= */

.treatment-category-kestopigmentointi .pigmentation-price-list {
    width: 100%;
    max-width: 1050px;

    margin: 46px auto 0;

    gap: 20px;
}


.treatment-category-kestopigmentointi .pigmentation-price-heading {
    width: 100%;

    margin: 0 0 8px;
    padding: 0;

    text-align: center;
}


.treatment-category-kestopigmentointi .pigmentation-price-heading h2 {
    margin: 0;

    text-align: center;
}


/* =========================================================
   KESTOPIGMENTOINTI – TABLETTI
   ========================================================= */

@media (max-width: 850px) {

    .treatment-category-kestopigmentointi .pigmentation-page-content {
        margin-top: 30px;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-box {
        padding: 36px 32px;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-grid {
        column-gap: 30px;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-lead {
        font-size: 16px;
    }
}


/* =========================================================
   KESTOPIGMENTOINTI – MOBIILI
   ========================================================= */

@media (max-width: 650px) {

    .treatment-category-kestopigmentointi .pigmentation-page-content {
        margin-top: 26px;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-box {
        padding: 27px 21px;

        border-radius: 18px;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-heading {
        margin-bottom: 22px;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-symbol {
        margin-bottom: 8px;

        font-size: 18px;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-heading h2 {
        margin-bottom: 13px;

        font-size: 1.55rem;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-lead {
        font-size: 15px;
        line-height: 1.65;
    }


    /* Mobiilissa ruudukko muuttuu yhdeksi palstaksi. */

    .treatment-category-kestopigmentointi .pigmentation-info-grid {
        grid-template-columns: 1fr;

        column-gap: 0;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-section {
        padding: 21px 0;
    }


    .treatment-category-kestopigmentointi
    .pigmentation-info-section:first-child {
        padding-top: 8px;

        border-top: 0;
    }


    .treatment-category-kestopigmentointi
    .pigmentation-info-section:nth-last-child(-n + 2) {
        padding-bottom: 21px;
    }


    .treatment-category-kestopigmentointi
    .pigmentation-info-section:last-child {
        padding-bottom: 0;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-section h3 {
        margin-bottom: 10px;

        font-size: 1.04rem;
        line-height: 1.35;
    }


    .treatment-category-kestopigmentointi .pigmentation-info-section p {
        font-size: 15px;
        line-height: 1.65;
    }


    .treatment-category-kestopigmentointi .pigmentation-price-list {
        margin-top: 34px;

        gap: 18px;
    }


    .treatment-category-kestopigmentointi .pigmentation-price-heading {
        margin-bottom: 5px;
    }
}
/* =========================================================
   SISÄLTÖSIVUT – YLÄVÄLI NAVIGAATION JÄLKEEN
   ========================================================= */

@media (max-width: 650px) {

    /*
     * Tavalliset sisältösivut:
     * Yhteystiedot, Hoidot jne.
     */
    .page-section {
        padding-top:
            clamp(
                30px,
                8vw,
                38px
            );
    }


    /*
     * Yksittäiset hoitosivut:
     * Kasvohoidot, Jalkahoidot, Kestopigmentointi jne.
     */
    .treatment-category-section {
        padding-top:
            clamp(
                30px,
                8vw,
                38px
            );
    }

}
/* =========================================================
   ETUSIVU – HOIDOT-OSIO
   Tiiviimpi ylätila + keskitetty otsikko
   ========================================================= */

.home .treatments {
    padding-top: 52px;
}


/* Otsikkoalue keskelle */

.home .treatments .section-heading {
    width: 100%;
    max-width: 100%;

    margin:
        0 auto 44px;

    text-align: center;

    container-type: inline-size;
}


.home .treatments .section-heading .eyebrow {
    text-align: center;
}


.home .treatments .section-heading h2 {
    width: 100%;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    font-size:
        min(
            2.7rem,
            7.2cqw
        );

    line-height: 1.12;

    text-align: center;

    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}


.home .treatments .section-heading > p:last-child {
    max-width: 650px;

    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


/* =========================================================
   ETUSIVU – HOIDOT-OSIO MOBIILISSA
   ========================================================= */

@media (max-width: 650px) {

    .home .treatments {
        padding-top: 34px;
    }


    .home .treatments .section-heading {
        margin-bottom: 34px;
    }

}
/* =========================================================
   AJANVARAUS – TIMMA IFRAME
   ========================================================= */

.timma-test-section {
    width: 100%;

    /* Hengitystilaa navigaation alle */
    padding: 52px 0 48px;

    /* Sama tausta kuin sivuston vasemmalla ja oikealla */
    background: var(--color-bg) !important;
}


/* WordPress-editorin sisältö Timman ylä- ja alapuolella */

/* Ajanvaraus-sivun pääotsikko */

.timma-page-content-before > h1:first-child {
    width: 100%;
    margin: 0 0 26px;
    text-align: center !important;
}

.timma-page-content {
    width: min(
        calc(100% - 40px),
        900px
    );

    margin-inline: auto;

    color: var(--color-text);

    font-size: 17px;
    line-height: 1.7;
}

.timma-page-content-before {
    margin-bottom: 34px;
}

.timma-page-content-after {
    margin-top: 34px;
}

.timma-page-content > *:first-child {
    margin-top: 0;
}

.timma-page-content > *:last-child {
    margin-bottom: 0;
}


/* Timman ympärillä oleva oma alue */

.timma-test-container {
    width: min(
        calc(100% - 40px),
        1280px
    );

    margin-inline: auto;

    background: var(--color-bg) !important;

    border: 0 !important;
    border-radius: 18px;

    box-shadow: none !important;
}


/* Itse Timma-kehys */

.timma-booking-frame {
    display: block;

    width: 100% !important;
    max-width: 100% !important;

    /*
     * Riittävä korkeus palveluvalinnalle, jotta
     * Timman omaa pystyscrollia ei normaalisti tarvita.
     */
    height: 1280px !important;
    min-height: 1280px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    /*
     * Timman omat pyöristetyt kulmat saavat jäädä näkyviin.
     */
    border-radius: 18px;

    /*
     * Jos iframe-elementin oma pinta jää näkyviin,
     * se sulautuu Koskenkuiskeen taustaan eikä jää valkoiseksi.
     */
    background: var(--color-bg) !important;

    /*
     * Poistaa meidän puolelta tulevan harmaan varjostuksen.
     */
    box-shadow: none !important;
}


/* TABLETTI */

@media (max-width: 950px) {

    .timma-test-section {
        padding-top: 44px;
    }

    .timma-page-content {
        width: min(
            calc(100% - 36px),
            900px
        );
    }

    .timma-test-container {
        width: min(
            calc(100% - 36px),
            1280px
        );
    }

    .timma-booking-frame {
        height: 1420px !important;
        min-height: 1420px !important;
    }

}


/* MOBIILI */

@media (max-width: 650px) {

    .timma-test-section {
        padding: 34px 0;
    }

    .timma-page-content {
        width: min(
            calc(100% - 28px),
            900px
        );

        font-size: 16px;
        line-height: 1.65;
    }

    .timma-page-content-before {
        margin-bottom: 26px;
    }

    .timma-page-content-after {
        margin-top: 26px;
    }

    .timma-test-container {
        width: 100%;

        border-radius: 18px;
    }

    .timma-booking-frame {
        height: 1850px !important;
        min-height: 1850px !important;

        border-radius: 18px;
    }

}
