body {
    margin: 0;
    font-family: 'Trebuchet MS', sans-serif;
    background: #0a0a0a;
    color: white;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    padding: 0;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Logo vasemmalle, hamburger oikealle */
    align-items: center;            /* Keskittää logon ja hamburgerin täydellisesti linjaan */
    padding: 24px 40px; 
    box-sizing: border-box;
    z-index: 9999;                  /* Palkki pysyy aina kaiken muun päällä */
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* MENU BUTTON */
.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10002; /* Hamburger on aina päällimmäisenä, jotta sitä voi klikata */
    margin: 0;      /* Poistaa linjausta sotkevat marginaalit */
}

.menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    transition: 0.3s ease;
}

/* MENU ACTIVE ANIMATION */
.menu-btn.active span:nth-child(1) {
    transform:
        rotate(45deg)
        translateY(10px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform:
        rotate(-45deg)
        translateY(-10px);
}

/* OVERLAY MENU */
/* TÄMÄ ON VALIKKO SULJETTUNA: Pakotetaan täysin piiloon.
   Nyt se ei voi peittää etusivua tai estää klikkauksia! */
.overlay-menu {
    display: none; /* Kokonaan piilossa oletuksena */
}

/* Kun valikko avataan */
.overlay-menu.open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

/* OPEN */
.overlay-menu.active {
    right: 0;
}

/* LINKS */
.overlay-menu a {
    color: white;
    text-decoration: none;

    position: relative;

    font-size: 42px;
    font-weight: 600;
    letter-spacing: -1px;
    
    opacity: 1;

    transform: translateY(30px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

/* ACTIVE */
.overlay-menu.open a {
    opacity: 1;
    transform: translateY(0);
}

/* STAGGER */
.overlay-menu.open a:nth-child(1) {
    transition-delay: 0.1s;
}

.overlay-menu.open a:nth-child(2) {
    transition-delay: 0.2s;
}

.overlay-menu.open a:nth-child(3) {
    transition-delay: 0.3s;
}

.overlay-menu.open a:nth-child(4) {
    transition-delay: 0.4s;
}

.overlay-menu.open a:nth-child(5) {
    transition-delay: 0.5s;
}

/* LOGO */
.logo {
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    position: relative;
    z-index: 10001; /* Logo pysyy klikattavana myös valikon ollessa auki */
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 50px;
}

/* LINKS */
.nav-links a {
    color: #cfcfcf;

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    position: relative;

    transition: 0.3s ease;
}

/* HOVER */
.overlay-menu a:hover {
    transform: translateX(10px);
    color: #cfcfcf;
}
.nav-links a:hover {
    color: white;
}

/* UNDERLINE EFFECT */
.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0%;
    height: 2px;

    background: white;

    transition: 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex !important; /* MUUTETTU: Flexbox takaisin, jotta align-items ja justify-content toimivat */
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
    overflow: hidden;
    
    /* VALAISTU TAUSTA: Kevennetään mustaa reilusti (vain 20%-40%), jotta sisältö ja puuttuva kuva erottuvat */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('hero.jpg');
    background-size: cover;
    background-position: center;
}

/* ABOUT */
.about-section {

    padding:
        140px 8%;

    position: relative;
}

/* CONTAINER */
.about-container {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 90px;

    align-items: center;

    max-width: 1400px;

    margin: auto;
}

/* IMAGE */
.about-image {

    position: relative;
}

.about-image::before {

    content: "";

    position: absolute;

    inset: -12px;

    border-radius: 36px;

    border:
        1px solid rgba(255,255,255,0.05);

    pointer-events: none;
}


.about-image img {

    width: 100%;
    height: auto;
    max-height: 620px;
    border-radius: 28px;

    object-fit: contain;

    display: block;

    border:
        1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);

    transition:
        transform 0.6s ease,
        box-shadow 0.6s ease;
}

.image-caption {

    margin-top: 18px;

    text-align: center;

    font-size: 14px;

    letter-spacing: 1px;

    color: #8f8f8f;

    line-height: 1.6;
}

/* HOVER */
.about-image img:hover {

    transform: scale(1.02);

    box-shadow:
        0 40px 100px rgba(0,0,0,0.65);
}

/* TEXT */
.about-text {

    flex: 1;

    max-width: 650px;

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

    border:
        1px solid rgba(255,255,255,0.06);

    backdrop-filter: blur(12px);

    padding: 50px;

    border-radius: 28px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.35);
}

/* TAG */
.section-tag {

    font-size: 13px;

    letter-spacing: 4px;

    color: #8d8d8d;

    margin-bottom: 22px;
}

/* TITLE */
.about-text h2 {

    font-size: clamp(34px, 4vw, 48px);

    line-height: 1.1;

    letter-spacing: -1px;

    margin-bottom: 30px;
}

.about-subtitle {

    font-size: 22px;

    font-weight: 600;

    margin-top: 20px;

    margin-bottom: 12px;

    color: white;
}

/* PARAGRAPHS */
.about-text p {

    font-size: 17px;

    line-height: 1.9;

    color: #b5b5b5;

    margin-bottom: 24px;
}

/* GLASS PANEL */
.glass {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);


    backdrop-filter: blur(12px);

    padding: 60px;
    border-radius: 28px;

    max-width: 850px;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* HERO TEXT */
.hero h1 {
    font-size: clamp(36px, 8vw, 54px);
    line-height: 1.1;
    letter-spacing: -1px;
    font-weight: 700;
    width: 100%;
    max-width: 700px;
    margin-bottom: 24px;
}

.hero-text {
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.5;
    color: #b5b5b5;
    max-width: 700px;
    width: 100%;
}

.hero-subtitle {

    font-size: 13px;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #8d8d8d;

    margin-bottom: 22px;
}

.hero-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

}

.hero-content {

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

.hero-title {

    font-size: clamp(58px, 7vw, 84px);

    line-height: 0.95;

    letter-spacing: -3px;

    font-weight: 700;

    margin-bottom: 28px;

    color: white;
}



h1 {
    font-size: 40px;
}

p {
    color: #aaa;
    line-height: 1.6;
    font-size: 16px;
}

/* BUTTON */
.btn {
    margin-top: 40px;

    padding: 18px 36px;

    background: linear-gradient(135deg, #4f4f4f, #9a9a9a);

    border: none;
    border-radius: 100px;

    color: white;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;

    box-shadow:
        0 10px 30px rgba(255,255,255,0.08);
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);

    box-shadow:
        0 20px 40px rgba(255,255,255,0.12);
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;

    margin-top: 50px;
}

.card {
    text-decoration: none;

    color: white;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.02)
    );
    border: 1px solid rgba(255,255,255,0.06);
    padding: 40px;
    border-radius: 24px;

    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

    backdrop-filter: blur(10px);
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card:nth-child(2) {
    transition-delay: 0.15s;
}

.card:nth-child(3) {
    transition-delay: 0.3s;
}

.card:hover {
    transform: translateY(-10px);

    border-color: rgba(255,255,255,0.18);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.35);
}

/* QUIZ */
.quiz-container {
    max-width: 500px;
    margin: auto;
    text-align: center;
}
.quiz-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

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

    background: #0a0a0a;
    z-index: 9999;
}
.thank-you {
    display: none;
    text-align: center;
}

.thank-you.show {
    display: block;
}

.step {
    display: none;
    width: 100%;
    opacity: 0;
}

.step.active {
    display: block;
    opacity: 1;
}

/* QUIZ QUESTION HEADINGS */
.quiz-container .step h2 {
    display: block;
    position: static;
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
    color: #ffffff !important;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

button {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: #1a1a1a;
    color: white;
    border: none;
}

input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: #111;
    border: 1px solid #333;
    color: white;
}

/* PROGRESS */
.progress-bar {
    height: 6px;
    background: #222;
    margin-bottom: 20px;
}

.progress {
    height: 100%;
    width: 0%;
    background: #aaa;
}

/* SCROLL ANIMATION */
.fade-up {

    opacity: 0;

    transform:
        translateY(70px)
        scale(0.98);

    transition:
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ACTIVE */
.fade-up.show {

    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,0.08),
            transparent 30%
        );

    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    font-size: 30px;
    font-weight: 600;
    color: #888;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 50px;
    line-height: 1.1;

    display: inline-block;

    position: relative;
}

.section-header h2::after {
    content: "";

    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    bottom: -14px;

    width: 60%;
    height: 4px;

    border-radius: 20px;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,0.7),
        rgba(255,255,255,0)
    );
}

.page-hero {
    min-height: 100vh;

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

    padding: 120px 8%;
}

/* FOOTER */
.footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 140px 24px 80px;
    border-top:
        1px solid rgba(255,255,255,0.06);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0.01)
        );
}

/* CONTENT */
.footer-content {
    width: 100%;
    max-width: 900px;
    margin: auto;
    text-align: center;
    box-sizing: border-box;
}

/* TITLE */
.footer h2 {
    font-size: clamp(32px, 6vw, 48px);
    margin-bottom: 20px;
    width: 100%;
    overflow-wrap: break-word;
}

/* TEXT */
.footer-text {
    color: #9f9f9f;

    line-height: 1.8;

    max-width: 700px;

    margin:
        0 auto
        50px;
}

/* LINKS */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

/* LINK STYLE */
.footer-links a {
    color: white;

    text-decoration: none;

    padding: 16px 24px;

    border-radius: 18px;

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

    border:
        1px solid rgba(255,255,255,0.06);

    backdrop-filter: blur(10px);

    transition: 0.3s ease;
}

/* HOVER */
.footer-links a:hover {
    transform: translateY(-6px);

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

    border-color:
        rgba(255,255,255,0.16);
}

/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width: 768px) {

    /* HEADER / NAVBAR */
    .navbar {
        padding: 20px 20px;
    }

    /* LOGO */
    .logo {
        font-size: clamp(14px, 4.5vw, 18px); /* Kutistaa tekstiä puhelimen koon mukaan */
        max-width: 75%;
        overflow-wrap: break-word;
        display: inline-block;
        padding-right: 20px;
    }

    /* MENU BUTTON */
    .menu-btn {
        margin-left: auto;
    }

    .menu-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;        /* Muuta väriä jos taustasi on vaalea */
        transition: 0.3s ease;
        position: relative !important; /* Varmistaa, että siirto toimii */
    }

    .overlay-menu {
        z-index: 1000;          /* Valikko on painikkeen (1005) alapuolella */
        /* Pidä muut oman valikkosi tyylit (kuten position: fixed tai width: 100%) ennallaan */
    }

    /* HERO */
    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 24px 16px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .hero-title {

        font-size: 48px;

        line-height: 1;

        letter-spacing: -2px;

        margin-bottom: 24px;
    }

    


    .glass {
        padding: 35px 24px;
        border-radius: 22px;
    }

    .hero h1 {
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1.1;
        letter-spacing: -1px;
        max-width: 100%;
        margin-bottom: 20px;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .hero-text {
        font-size: 16px;
        line-height: 1.6;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .about-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .about-text {

    flex: 1;

    max-width: 650px;

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

    border:
        1px solid rgba(255,255,255,0.06);

    backdrop-filter: blur(12px);

    padding: 54px;

    border-radius: 30px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.35);
}

/* TITLE */
.about-text h2 {

    font-size: clamp(42px, 5vw, 60px);

    line-height: 1.02;

    letter-spacing: -2px;

    margin-bottom: 34px;

    max-width: 10ch;
}

/* PARAGRAPH WRAPPER */
.about-paragraphs {

    display: flex;

    flex-direction: column;

    gap: 26px;
}

/* PARAGRAPHS */
.about-paragraphs p {

    font-size: 17px;

    line-height: 1.95;

    color: #b8b8b8;

    margin: 0;

    max-width: 52ch;
}

}

    /* BUTTON */
    .btn {
        width: 100%;
        text-align: center;
    }

    /* SECTIONS */
    section {
        padding: 100px 24px;
    }

    /* TITLES */
    .section-header h2 {
        font-size: 38px;
    }

    /* GRID */
    .grid {
        grid-template-columns: 1fr;
    }

    /* CARD */
    .card {
        padding: 30px;
    }

    /* MENU */
    .overlay-menu a {
        font-size: 32px;
    }

    /* QUIZ */
    .quiz-wrapper {
        width: 100%;
        padding: 20px;
    }

    .quiz-container {
        width: 100%;
    }

    .quiz-container h2 {
        font-size: 28px;
    }

    .quiz-container .step h2 {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 24px;
    }

    .quiz-container button {
        padding: 18px;
    }

    input {
        font-size: 16px;
    }

    .footer {
        padding: 80px 16px 40px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-content {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

     .footer h2 {
        font-size: clamp(28px, 6vw, 36px);
        width: 100%;
        overflow-wrap: break-word;
    }

    .footer-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .footer-links a {
        width: 100%;
        max-width: 280px;
        text-align: center;
        box-sizing: border-box;
    }

    /* ABOUT DESKTOP FIX */

@media (min-width: 769px) {
    .about-container {

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 80px;

        max-width: 1250px;

        margin: 0 auto;
    }

    /* IMAGE SIDE */
    .about-image {

        flex: 0 0 420px;
    }

    .about-image img {

        width: 420px;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    /* TEXT SIDE */
    .about-text {

        flex: 1;

        max-width: 620px;
    }

    .about-text h2 {

        font-size: 52px;

        line-height: 1.05;

        margin-bottom: 28px;
    }

    .about-text p {

        font-size: 17px;

        line-height: 1.9;

        margin-bottom: 22px;
    }
}

/* QUIZ MOBILE FIX */
.quiz-section {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

.quiz-wrapper {
    position: relative;
    z-index: 20001;
}

.quiz-container {
    position: relative;
    z-index: 20002;
}

.quiz-container button,
.quiz-container input {
    position: relative;
    z-index: 20003;
    pointer-events: auto;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 20004;
}

/* =========================
   MOBILE TEXT POLISH
========================= */

@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    .hero h1 {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.08;
        letter-spacing: -1px;
        margin-bottom: 22px;
    }

    .hero-text {
        font-size: 16px;
        line-height: 1.75;
        margin-bottom: 18px;
    }

    .glass {
        padding: 32px 22px;
    }

    .section-header h2 {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.15;
        letter-spacing: -0.5px;
    }

    .section-tag {
        font-size: 13px;
        letter-spacing: 2.5px;
    }

    .card h3,
    .about-subtitle {
        font-size: 22px;
        line-height: 1.25;
    }

    .card p,
    .about-paragraphs p,
    .footer-text {
        font-size: 16px;
        line-height: 1.8;
    }

    .about-text {
        padding: 34px 24px;
    }

    .about-paragraphs {
        gap: 24px;
    }

    .footer h2 {
        font-size: clamp(30px, 8vw, 38px);
        line-height: 1.15;
    }
}

/* PROGRAMS PAGE */
.programs-page {

    padding: 160px 8%;
}

.programs-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 30px;

    max-width: 1300px;

    margin: 80px auto 0;
}

.program-card {
    display: flex;

    flex-direction: column;

    justify-content: space-between;

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

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 28px;

    padding: 40px;

    backdrop-filter: blur(10px);

    transition: 0.35s ease;

    opacity: 0;

    transform: translateY(40px);

    min-height: 620px;
}

.program-card.show {

    opacity: 1;

    transform: translateY(0);
}

.program-card:hover {

    transform:
        translateY(-10px);

    border-color:
        rgba(255,255,255,0.16);
}

.program-label {

    font-size: 12px;

    letter-spacing: 3px;

    color: #8f8f8f;

    margin-bottom: 16px;
}

.program-card h2 {

    font-size: 32px;

    line-height: 1.1;

    margin-bottom: 20px;
}

.program-card p {

    color: #b8b8b8;

    line-height: 1.8;
}

.program-card ul {

    padding-left: 18px;

    margin:
        28px 0;
    
    flex-grow: 1;

}

.program-card li {

    margin-bottom: 12px;

    color: #d0d0d0;
}

.program-footer {
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;

    width: 100%;
    box-sizing: border-box;
}

.program-footer .btn {
    width: auto;
    min-width: 220px;
    max-width: 100%;
    align-self: center;
    text-align: center;
    margin-top: 0;
    box-sizing: border-box;
}

.price {

    display: flex;

    align-items: flex-start;

    gap: 6px;

    font-size: 54px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: -2px;

    color: white;
}

.price span {

    font-size: 28px;

    opacity: 0.7;

    margin-top: 6px;
}

/* PRICING PAGE */
.pricing-page {

    padding: 160px 8%;
}

/* PRICE LIST */
.price-list {

    max-width: 900px;

    margin: 80px auto 0;

    display: flex;

    flex-direction: column;

    gap: 18px;
}

/* ROW */
.price-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 28px 32px;

    border-radius: 22px;

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

    border:
        1px solid rgba(255,255,255,0.06);

    transition: 0.3s ease;
}

/* HOVER */
.price-row:hover {

    transform: translateY(-4px);

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

    border-color:
        rgba(255,255,255,0.12);
}

/* TEXT */
.price-row span:first-child {

    font-size: 20px;

    font-weight: 500;
}

/* PRICE */
.price-row span:last-child {

    font-size: 28px;

    font-weight: 700;

    letter-spacing: -1px;
}

@media (max-width: 768px) {

    .price-row {

        padding: 24px 22px;

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }

    .price-row span:first-child {

        font-size: 18px;
    }

    .price-row span:last-child {

        font-size: 24px;
    }

}

/* SUBPAGES */
.subpage {
    padding-top: 120px;
}

/* PAGE HEADER */
.subpage .page-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
}

.subpage .page-header h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.subpage .page-header p {
    color: #b5b5b5;
    line-height: 1.8;
}

/* PRICING PAGE */
.pricing-page {
    padding: 80px 8% 150px;
}

.price-list {
    max-width: 900px;
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    border-radius: 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.3s ease;
}

.price-row:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
}

.price-row span:first-child {
    font-size: 20px;
    font-weight: 500;
}

.price-row span:last-child {
    font-size: 28px;
    font-weight: 700;
}

/* CONTACT PAGE */
.contact-page {
    padding: 80px 8% 150px;
}

.contact-list {
    max-width: 900px;
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    border-radius: 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.3s ease;
}

.contact-row:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
}

.contact-row span:first-child {
    font-size: 20px;
    font-weight: 500;
}

.contact-row span:last-child {
    font-size: 28px;
    font-weight: 700;
}

/* PROGRAMS PAGE */
.programs-page {
    padding: 80px 8% 150px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    max-width: 1400px;
    margin: 80px auto 0;
}

.program-card {
    display: flex;
    flex-direction: column;
    min-height: 620px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    transition: 0.35s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.18);
}

.program-card h2 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.program-card p {
    color: #b5b5b5;
    line-height: 1.8;
    margin-bottom: 28px;
}

.program-card ul {
    padding-left: 18px;
    margin: 0 0 36px;
}

.program-card li {
    color: #d0d0d0;
    margin-bottom: 14px;
    line-height: 1.5;
}

.program-footer {
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
    box-sizing: border-box;
}

.price {
    display: block;
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.program-footer .btn {
    width: auto;
    min-width: 220px;
    max-width: 100%;
    align-self: flex-start;
    text-align: center;
    margin-top: 0;
    box-sizing: border-box;
}

/* MOBILE SUBPAGES */
@media (max-width: 900px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        min-height: auto;
        padding: 34px 26px;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 22px;
    }

    .price-row span:first-child {
        font-size: 18px;
    }

    .price-row span:last-child {
        font-size: 24px;
    }
}

.service-card {
    text-decoration: none;
    color: white;
}

.service-card h3,
.service-card p {
    color: inherit;
    text-decoration: none;
}

.service-card:visited,
.service-card:active,
.service-card:hover {
    color: white;
    text-decoration: none;
}

.card *,
.service-card *,
.service-card h3,
.service-card p {
    color: white !important;
    text-decoration: none !important;
}

.contact-actions {

    display: flex;

    flex-direction: column;

    gap: 14px;

    width: 100%;
}

.contact-actions .btn {

    width: 100%;

    box-sizing: border-box;

    text-align: center;

    margin-top: 0;
}

/* SECONDARY BUTTON */
.secondary-btn {

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

    border:
        1px solid rgba(255,255,255,0.08);

    box-shadow: none;
}

.secondary-btn:hover {

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

.page-intro {

    max-width: 720px;

    margin:
        24px auto 0;

    font-size: 18px;

    line-height: 1.8;

    color: #b5b5b5;
}

@media (max-width: 768px) {

    .page-intro {

        font-size: 16px;

        line-height: 1.7;

        margin-top: 20px;
    }
}

/* DESKTOP: näytä kaikki kuvat */
.image-slider {
    display: grid;
    gap: 22px;
}

.image-slider .slide {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.slider-btn {
    display: none;
}

/* MOBILE: karuselli */
@media (max-width: 768px) {

    .image-slider {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .image-slider .slide {
        display: none;
        width: 100%;
        height: auto;
        border-radius: 28px;
        transition: opacity 0.4s ease;
    }

    .image-slider .slide.active {
        display: block;
    }

    .slider-btn {
        display: flex;
        align-items: center;
        justify-content: center;

        position: absolute;
        top: 50%;
        transform: translateY(-50%);

        width: 42px;
        height: 42px;

        border-radius: 50%;

        background: rgba(0,0,0,0.5);

        backdrop-filter: blur(10px);

        color: white;

        border: 1px solid rgba(255,255,255,0.1);

        z-index: 5;
    }

    .slider-btn.prev {
        left: 12px;
    }

    .slider-btn.next {
        right: 12px;
    }
}
/* KORJAUS: sulkupainike ei saa venyä koko näytön levyiseksi */
.quiz-section .close-btn {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 25px !important;
    line-height: 1 !important;
    z-index: 20010 !important;
    cursor: pointer;
}

/* Varmistetaan, että aktiivisen vaiheen otsikko näkyy ja asettuu ennen vastauksia */
.quiz-section .quiz-container form .step.active h2 {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    font-size: clamp(24px, 3vw, 32px) !important;
    line-height: 1.25 !important;
    text-align: center !important;
    z-index: 2 !important;
}

/* MOBIILIN ALKUKYSELY: keskitys ja ruutuun sopiva leveys */
@media (max-width: 600px) {
    .quiz-section {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 64px 16px 24px !important;
        box-sizing: border-box !important;
        display: none;
        align-items: center !important;
        justify-content: center !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .quiz-section[style*="display: flex"] {
        display: flex !important;
    }

    .quiz-section .quiz-wrapper {
        position: relative !important;
        width: 100% !important;
        max-width: 460px !important;
        min-width: 0 !important;
        margin: auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .quiz-section .quiz-container {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        left: auto !important;
        right: auto !important;
        text-align: center !important;
    }

    .quiz-section .quiz-container form,
    .quiz-section .quiz-container .step {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .quiz-section .quiz-container .step.active h2 {
        font-size: clamp(22px, 6vw, 28px) !important;
        line-height: 1.25 !important;
        margin: 0 0 22px !important;
        padding: 0 4px !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
    }

    .quiz-section .quiz-container button:not(.close-btn),
    .quiz-section .quiz-container input {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    .quiz-section .progress-bar {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 24px !important;
        box-sizing: border-box !important;
    }

    .quiz-section .close-btn {
        top: 12px !important;
        right: 12px !important;
    }
}

/* =====================================================
   J-R COACHING – VISUAALINEN VIIMEISTELY
   Hillitty musta–valkoinen tyyli, säilyttää nykyisen rakenteen
   ===================================================== */

/* Hienovarainen, selkeä kehys muodonmuutoskuville */
.about-image .image-slider {
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 29px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-image .image-slider:hover {
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.48);
}

.about-image img {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 23px;
}

/* Palvelukortteihin hieman näkyvämpi reunus ja sisäinen kontrasti */
.services .card,
.services .service-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.services .card:hover,
.services .service-card:hover {
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

/* Otsikoiden alle hillitty valkoinen korostusviiva */
.section-header h2::after {
    width: 54px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.18));
    border-radius: 2px;
}

.about-text h2 {
    text-decoration: none;
    text-underline-offset: 8px;
}

/* Painikkeille selkeämpi reunus ja pehmeä hover */
.btn,
.quiz-container button:not(.close-btn),
.footer a {
    transition: transform 0.25s ease, background-color 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn {
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

/* Kuvateksti erottuu paremmin kuvan alta */
.image-caption {
    color: #b8b8b8;
    letter-spacing: 0.7px;
}

/* Liikettä vain laitteilla, joissa hover on käytössä */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .about-image .image-slider:hover {
        transform: translateY(-2px);
    }
}

/* Mobiilissa reunus pysyy hillittynä eikä vie turhaa tilaa */
@media (max-width: 768px) {
    .about-image .image-slider {
        padding: 4px;
        border-radius: 23px;
    }

    .about-image img {
        border-radius: 18px;
    }

    .services .card,
    .services .service-card {
        border-color: rgba(255, 255, 255, 0.18);
    }
}


/* ===== JANNE RONGAS COACHING – VIIMEISTELTY ALATUNNISTE ===== */
.site-footer {
    padding: 64px 24px 24px;
    border-top: 1px solid rgba(255,255,255,.16);
    background: #101010;
}
.site-footer .footer-content { max-width: 1100px; }
.footer-brand { margin-bottom: 30px; }
.footer-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    font-size: clamp(20px, 3vw, 27px);
    font-weight: 600;
    letter-spacing: 3px;
}
.footer-logo-subtitle {
    color: #bdbdbd;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 6px;
}
.site-footer .footer-text {
    margin: 15px auto 0;
    font-size: 14px;
    color: #aaa;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-nav a, .footer-bottom a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s ease;
}
.footer-nav a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-links { padding: 24px 0; gap: 12px; }
.site-footer .footer-links a {
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.15);
    font-size: 14px;
}
.site-footer .footer-links a:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.5); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    flex-wrap: wrap;
    padding-top: 18px;
    color: #888;
    border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom p { margin: 0; font-size: 12px; line-height: 1.6; }
.footer-bottom a { color: #999; font-size: 12px; }
@media (max-width: 600px) {
    .site-footer { padding: 48px 18px 22px; }
    .footer-nav { gap: 14px 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
/* ==============================
   ETUSIVUN BANNERIKUVA
   ============================== */

/* Banneri ja sen kuva */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}


.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-banner-content {
    position: relative;
    width: 100%;
}




.hero-banner-image {
    display: block;
    width: 55% !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 600px) {
    .hero-banner-image {
        width: 70% !important;
        height: auto !important;
    }
}





/* ==============================
   ALATUNNISTE
   ============================== */

.site-footer {
    background: #050505;
    color: #f5f5f5;
    border-top: 1px solid #292929;
    padding: 48px 20px 20px;
}

.footer-content {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    max-width: 60%;
}

.footer-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-tagline {
    margin: 0;
    color: #aaa;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.footer-nav,
.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
}

.site-footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-nav a,
.footer-contact a {
    font-size: 14px;
}

.footer-bottom {
    width: 100%;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid #292929;
}

.footer-bottom p {
    margin: 0;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}

/* Mobiililaitteet */
@media (max-width: 600px) {
    .site-footer {
        padding: 36px 16px 18px;
    }

    .footer-logo-link {
        width: 145px;
    }

    .footer-nav,
    .footer-contact {
        gap: 14px 18px;
    }

    .footer-nav a,
    .footer-contact a {
        font-size: 13px;
    }

    .hero-banner {
        background-position: center center;
    }
}


/* KOULUTUS JA SERTIFIKAATIT */

.certifications {
    background: #0b0b0b;
    color: #f5f5f5;
    padding: 70px 20px;
}

.certifications-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.certifications h2 {
    text-align: center;
    margin: 0 0 14px;
}

.certifications-intro {
    color: #aaa;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

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

.certification-card {
    padding: 28px 22px;
    background: #151515;
    border: 1px solid #333;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.certification-card:hover {
    transform: translateY(-4px);
    border-color: #777;
}

.certification-icon {
    font-size: 30px;
    margin-bottom: 14px;
}

.certification-card h3 {
    font-size: 17px;
    margin: 0 0 12px;
}

.certification-card p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 700px) {
    .certification-grid {
        grid-template-columns: 1fr;
    }

    .certifications {
        padding: 48px 18px;
    }
}


/* YHTEYDENOTTO CTA */

.contact-cta {
    background: #111;
    color: #f5f5f5;
    padding: 65px 20px;
    border-top: 1px solid #292929;
    border-bottom: 1px solid #292929;
}

.contact-cta-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.contact-cta-label {
    color: #aaa;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.contact-cta h2 {
    font-size: clamp(26px, 4vw, 38px);
    margin: 0 0 18px;
}

.contact-cta-inner > p:not(.contact-cta-label) {
    max-width: 650px;
    margin: 0 auto 28px;
    color: #bbb;
    line-height: 1.8;
}

.contact-cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: #e5e5e5;
    color: #111;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-cta-button:hover {
    background: transparent;
    color: #fff;
}

@media (max-width: 600px) {
    .contact-cta {
        padding: 48px 20px;
    }

    .contact-cta-button {
        width: 100%;
        max-width: 320px;
        box-sizing: border-box;
    }
}


/* Yleinen mobiilioptimointi */
@media (max-width: 768px) {

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

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

    img,
    video,
    iframe {
        max-width: 100%;
    }

    input,
    textarea,
    select,
    button {
        max-width: 100%;
        font-size: 16px;
    }

    input,
    textarea,
    select {
        min-width: 0;
    }
}


/* YHTEYSTIEDOT – MOBIILIN ASETTELU JA LINKIT */

.contact a,
.contact-info a,
.contact-card a,
.contact-item a,
.contact-box a {
    color: #eeeeee;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: normal;
    transition: color 0.2s ease;
}

.contact a:hover,
.contact-info a:hover,
.contact-card a:hover,
.contact-item a:hover,
.contact-box a:hover {
    color: #aaaaaa;
}

/* Mobiili */
@media (max-width: 768px) {
    .contact,
    .contact-info,
    .contact-card,
    .contact-item,
    .contact-box {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-card,
    .contact-item,
    .contact-box {
        overflow-wrap: anywhere;
    }

    .contact a,
    .contact p,
    .contact-info a,
    .contact-info p,
    .contact-card a,
    .contact-item a,
    .contact-box a {
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}



/* Yhteydenottolomake */
.contact-form-section {
    width: 100%;
    padding: 40px 20px 70px;
    box-sizing: border-box;
}

.contact-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 35px;
    box-sizing: border-box;
    background: #111;
    border: 1px solid #292929;
    border-radius: 24px;
    color: #fff;
}

.contact-form h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 12px;
}

.contact-form > p {
    color: #bbb;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea,
.contact-form select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 15px;
    background: #1b1b1b;
    color: #fff;
    border: 1px solid #444;
    border-radius: 10px;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: 2px solid #999;
    outline-offset: 2px;
}

.contact-form .privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form .privacy-consent input {
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-form a {
    color: #ddd;
    overflow-wrap: anywhere;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form button:hover {
    background: #484848;
}

@media (max-width: 600px) {
    .contact-form-section {
        padding: 25px 14px 45px;
    }

    .contact-form {
        padding: 24px 18px;
        border-radius: 18px;
    }
}


/* Lomakkeen lähetyksen palaute */
.form-success {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    background: #111;
    border: 1px solid #333;
    border-radius: 24px;
}

.form-success[hidden],
.form-error[hidden] {
    display: none;
}

.form-success .success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    border: 2px solid #888;
    border-radius: 50%;
    font-size: 30px;
}

.form-success h2 {
    margin-bottom: 14px;
}

.form-success p {
    color: #ccc;
    line-height: 1.7;
}

.form-error {
    margin-top: 16px;
    color: #ddd;
    line-height: 1.6;
}

/* Lisää väliä kuvien ja seuraavien osioiden väliin */
.hero img,
section img {
    margin-bottom: 24px;
}


/* Väli hero-kuvan ja Tervetuloa-kortin väliin */
.hero-content {
    margin-top: 24px;
}


/* Palvelut- ja yhteydenotto-osioiden väli */
.contact-cta {
    margin-top: 32px;
}

/* Logon linkin tyylit */
.logo a {
    text-decoration: none;    /* Poistaa tekstin alleviivauksen */
    color: #ffffff;           /* Vaihda tästä logon pääväri (esim. musta/tummanharmaa) */
    font-weight: bold;        /* Tekee tekstistä paksun */
    font-size: 1.5rem;        /* Logon tekstikoko, muuta tarvittaessa */
    transition: opacity 0.2s; /* Tekee hiiren hover-efektistä pehmeän */
}

/* Efekti, kun hiiren vie logon päälle */
.logo a:hover {
    opacity: 0.8;             /* Muuttuu aavistuksen haaleammaksi, jolloin käyttäjä huomaa sen olevan linkki */
}


/* Hinnaston työpöytänäkymän tekstien asettelu */
@media (min-width: 769px) {
    .price-list {
        width: 100%;
        max-width: 1044px;
        margin: 0 auto;
    }

    .price-row {
        display: grid;
        grid-template-columns: minmax(210px, 0.9fr) 110px minmax(0, 2fr);
        align-items: center;
        column-gap: 24px;

        width: 100%;
        box-sizing: border-box;
        padding: 28px 36px;
        margin: 0 auto 16px;
    }

    .price-row > span:first-child {
        min-width: 0;
        overflow-wrap: break-word;
    }

    .price-row > span:nth-child(2) {
        min-width: 0;
        text-align: center;
        white-space: normal;
        overflow-wrap: normal;
    }

    .price-row .price-description {
        min-width: 0;
        margin: 0;
        line-height: 1.7;
        overflow-wrap: break-word;
    }
}


/* Hinnastokortit – nimi ja hinta ylös, kuvaus alle */
@media (min-width: 769px) {
    .price-list {
        width: 100%;
        max-width: 1044px;
        margin: 0 auto;
    }

    .price-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: start;
        column-gap: 24px;
        row-gap: 16px;

        width: 100%;
        box-sizing: border-box;
        padding: 30px 36px;
        margin: 0 auto 16px;
    }

    /* Tuotteen nimi */
    .price-row > span:first-child {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        font-size: 19px;
        font-weight: 500;
        line-height: 1.5;
    }

    /* Hinta */
    .price-row > span:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
        white-space: nowrap;
        font-size: 19px;
        font-weight: 600;
    }

    /* Tuotteen kuvaus */
    .price-row .price-description {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
        min-width: 0;
        color: #bbb;
        font-size: 15px;
        line-height: 1.8;
        overflow-wrap: break-word;
    }
}


@media (min-width: 769px) {
    .price-row .price-description {
        position: relative;
        padding-top: 18px;
    }

    .price-row .price-description::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: #333;
    }
}


/* Hinnasto-otsikon alle tyylikäs erotinviiva */
.pricing-page .page-header h1 {
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 18px;
}

/* Hinnastosivun otsikon viiva */
.pricing-page .page-header h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    max-width: 80vw;
    height: 2px;
    border-radius: 10px;
    background: linear-gradient(
        to right,
        #444,
        #eee,
        #444
    );
}

@media (max-width: 768px) {
    .pricing-page .page-header h1::after {
        width: 100px;
        max-width: 100px;
    }
}

.contact-page .page-header h1 {
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 18px;
}

.contact-page .page-header h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    max-width: 80vw;
    height: 2px;
    background: linear-gradient(
        to right,
        #444,
        #eee,
        #444
    );
    border-radius: 10px;
}

@media (max-width: 768px) {
    .contact-page .page-header h1::after {
        width: 100px;
        max-width: 100px;
    }
}


/* Bannerin sisältö animoituu heti sivun latautuessa */
.hero-banner .hero-content.fade-up {
    animation: heroIntro 0.8s ease-out 0.2s both;
}

@keyframes heroIntro {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================
   HERO – KUVA JA TEKSTI VIEREKKÄIN
===================================== */

.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-banner-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 48px 0;
}

.hero-image-wrap {
    width: 100%;
    min-width: 0;
}

.hero-banner-image {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    max-height: 560px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

/* Tervetuloa-teksti ja alkukysely */

.hero-banner .hero-content {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    transform: none;
    text-align: left;
}

.hero-banner .hero-content h1 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}

.hero-banner .hero-content .hero-text {
    line-height: 1.7;
}

.hero-banner .hero-content .btn {
    max-width: 100%;
    white-space: normal;
}

/* Mobiilinäkymä */

@media (max-width: 768px) {
    .hero-banner-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        width: 90%;
        padding: 24px 0 36px;
    }

    .hero-image-wrap {
        width: 100%;
    }

    .hero-banner-image {
        width: 100% !important;
        max-height: none;
        height: auto !important;
    }

    .hero-banner .hero-content {
        padding: 24px;
        text-align: center;
    }

    .hero-banner .hero-content h1 {
        text-align: center;
        margin-bottom: 16px;
    }

    .hero-banner .hero-content .hero-text {
        text-align: left;
    }

    .hero-banner .hero-content .btn {
        display: block;
        width: 100%;
        margin: 20px auto 0;
    }
}


/* =====================================
   HINNASTO CTA
===================================== */

.pricing-cta {
    position: relative;
    overflow: hidden;
    padding: 70px 24px;
    margin: 35px auto;
    background: linear-gradient(135deg, #202020, #111111);
    border-top: 1px solid #393939;
    border-bottom: 1px solid #393939;
    text-align: center;
}

.pricing-cta-content {
    width: min(760px, 100%);
    margin: 0 auto;
}

.pricing-cta-label {
    margin-bottom: 14px;
    color: #bdbdbd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.pricing-cta h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.2;
}

.pricing-cta-content > p:not(.pricing-cta-label) {
    max-width: 680px;
    margin: 0 auto 28px;
    color: #d0d0d0;
    font-size: 16px;
    line-height: 1.8;
}

.pricing-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    background: #eeeeee;
    color: #171717;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease;
}

.pricing-cta-btn:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .pricing-cta {
        padding: 48px 22px;
        margin: 24px auto;
    }

    .pricing-cta-content > p:not(.pricing-cta-label) {
        font-size: 15px;
    }


.pricing-cta-btn {
    width: auto;
    max-width: 100%;
    display: inline-flex;
    box-sizing: border-box;
    padding: 12px 24px;
}

}


.pricing-cta .pricing-cta-btn {
    width: fit-content;
    padding: 12px 24px;
}


/* FOOTERIN IKONIT */

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    border: 1px solid #555555;
    border-radius: 50%;
    text-decoration: none;
    transition: color 0.25s ease,
                background 0.25s ease,
                border-color 0.25s ease,
                transform 0.25s ease;
}

.footer-icon svg {
    display: block;
    width: 21px;
    height: 21px;
}

.footer-icon:hover {
    color: #171717;
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
}

.footer-icon:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}


/* YHTEYSTIETOJEN LINKKIEN VÄRIT */

.contact-page a,
.contact-info a {
    color: #eeeeee;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.contact-page a:hover,
.contact-info a:hover {
    color: #aaaaaa;
    text-decoration: underline;
}


/* YHTEYSTIEDOT – LINKKIEN VÄRIT */

.contact-list .contact-card,
.contact-list .contact-card:link,
.contact-list .contact-card:visited {
    color: #eeeeee !important;
    -webkit-text-fill-color: #eeeeee;
    text-decoration: none !important;
}

.contact-list .contact-card:hover,
.contact-list .contact-card:focus-visible {
    color: #bdbdbd !important;
    -webkit-text-fill-color: #bdbdbd;
    text-decoration: underline !important;
}

/* YHTEYSTIEDOT – MOBIILIN ASETTELU */

@media (max-width: 768px) {
    .contact-list {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-list .contact-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .contact-list .contact-row > span {
        min-width: 0;
    }

    .contact-list .contact-card {
        display: block;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}


/* YHTEYSTIEDOT – MOBIILIN KORTTIEN ASETTELU */

@media (max-width: 600px) {
    .contact-list .contact-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: center;
        padding: 24px 18px;
    }

    .contact-list .contact-row > span {
        display: block;
        width: 100%;
        text-align: center;
    }

    .contact-list .contact-row .contact-card {
        display: block;
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.5;
    }
}
