:root {
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --primary-blue: #2563eb;
    --dark-text: #1e293b;
    --gray-text: #475569;
    --pill-bg: #334155;
    --whatsapp: #25D366;
    --border-color: #e2e8f0;
    --hero-bg: #0f172a;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--dark-text);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

a, button, input, select {
    -webkit-tap-highlight-color: transparent;
}

/* YLÄPALKKI */
.navbar {
    background-color: white;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--dark-text);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.nav-logo img {
    height: 32px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.nav-links .nav-highlight {
    color: var(--primary-blue);
    font-weight: 700;
}

.mobile-menu-contacts {
    display: none;
}

/* Oikean puolen toiminnot navbariin */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hampurilaisvalikon nappi */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    transition: background 0.2s;
}

.nav-toggle:hover,
.nav-toggle:active {
    background: #f1f5f9;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--dark-text);
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav-overlay {
    display: none;
}

/* MOBIILIVÄLILEHDET (Vaakasuuntainen swipe-palkki mobiilissa) */
.mobile-tab-bar {
    display: none;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 66px;
    z-index: 990;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.mobile-tab-scroll {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}

.mobile-tab-scroll::-webkit-scrollbar {
    display: none;
}

.tab-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: #f1f5f9;
    color: var(--dark-text);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tab-item:active {
    background: #e2e8f0;
}

.tab-item.active {
    background: var(--primary-blue);
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.tab-item.tab-highlight:not(.active) {
    background: #eff6ff;
    color: var(--primary-blue);
    border-color: #bfdbfe;
    font-weight: 700;
}

/* NAPIT */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    min-height: 48px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline:hover {
    background-color: white;
    color: var(--hero-bg);
}

.btn-white {
    background-color: white;
    color: var(--dark-text);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    border-radius: 50px;
}
.btn-whatsapp:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark-text);
    border: 2px solid #cbd5e1;
}
.btn-outline-dark:hover {
    border-color: var(--dark-text);
    background: var(--dark-text);
    color: white;
}

/* FLOATING WHATSAPP PALLURA MOBIILISSA */
.floating-whatsapp {
    position: fixed;
    bottom: 22px;
    right: 18px;
    width: 58px;
    height: 58px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    z-index: 996;
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
}

.floating-whatsapp:hover,
.floating-whatsapp:active {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
}

@media (min-width: 769px) {
    .floating-whatsapp {
        display: none;
    }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .floating-whatsapp {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* HERO-ALUE */
.hero {
    background-color: var(--hero-bg);
    color: white;
    text-align: center;
    padding: 90px 20px 150px 20px;
    position: relative;
    overflow: hidden;
}

.hero-short {
    padding: 70px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background-image: url('watermark.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.5;
    filter: brightness(5) contrast(1.2);
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255,255,255,0.18);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.4px;
    backdrop-filter: blur(5px);
}

.badge-light {
    background-color: #dbeafe;
    color: #1e40af;
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    margin: 0 0 22px 0;
    line-height: 1.22;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-short h1 {
    font-size: clamp(1.85rem, 5vw, 2.9rem);
    max-width: 800px;
}

.hero p {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: #e2e8f0;
    max-width: 650px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-short p {
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* INFO KORTIT (Etusivu) */
.overlap-cards {
    display: flex;
    justify-content: center;
    gap: 22px;
    max-width: 1000px;
    margin: -70px auto 60px auto;
    padding: 0 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.stat-card h2 {
    margin: 0 0 8px 0;
    color: var(--dark-text);
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-card p {
    margin: 0;
    color: var(--gray-text);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* OSIOT */
.section {
    padding: 80px 20px;
    max-width: 950px;
    margin: 0 auto;
}

.section-alt {
    background-color: white;
    max-width: 100%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-alt-padding {
    padding: 70px 20px;
    min-height: 55vh;
}

.section-inner {
    max-width: 950px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 14px 0;
    color: var(--dark-text);
    font-weight: 800;
}

.section-header p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
    margin-inline: auto;
}

/* HINNASTO-KORTIT */
.price-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.price-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 26px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s;
}

.price-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
    transform: scale(1.008);
}

.price-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.price-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background-color: #eff6ff;
    color: var(--primary-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
}

.price-info h3 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    color: var(--dark-text);
    font-weight: 700;
}

.price-info p {
    margin: 0;
    color: var(--gray-text);
    font-size: 0.98rem;
    line-height: 1.5;
}

.price-tag {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 800;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 1.15rem;
    white-space: nowrap;
    margin-left: 20px;
    box-shadow: 0 4px 8px rgba(37,99,235,0.2);
}

/* ASKEL-OSIO */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    text-align: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.step {
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 18px auto;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.step p {
    color: var(--gray-text);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0;
}

/* TIETOA.HTML CONTENT */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--dark-text);
    font-size: 1.08rem;
}

.content-container h2 {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    margin-top: 45px;
    margin-bottom: 20px;
    color: var(--bg-dark);
    font-weight: 800;
}

.content-container h3 {
    font-size: clamp(1.3rem, 2.8vw, 1.5rem);
    margin-top: 35px;
    margin-bottom: 16px;
    color: var(--bg-dark);
    font-weight: 700;
}

.content-container p {
    margin-bottom: 22px;
    color: #334155;
}

.content-container ul {
    margin-bottom: 25px;
    color: #334155;
    padding-left: 20px;
}

.content-container li {
    margin-bottom: 10px;
}

.content-container a {
    color: var(--primary-blue);
    text-decoration: underline;
    font-weight: 600;
}
.content-container a:hover {
    color: #1d4ed8;
}

/* UKK.HTML FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.faq-item h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    color: var(--dark-text);
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-item h3::before {
    content: "Q:";
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.faq-item p {
    margin: 0;
    color: var(--gray-text);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* ALAPALKKI CTA */
.cta-box {
    background-color: var(--hero-bg);
    border-radius: 24px;
    padding: 60px 26px;
    text-align: center;
    color: white;
    margin: 70px auto;
    max-width: 950px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 18px 0;
    font-weight: 800;
    position: relative;
    z-index: 2;
    line-height: 1.25;
}

.cta-box p {
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    color: #e2e8f0;
    margin: 0 auto 35px auto;
    max-width: 600px;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-footer {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 22px;
    font-size: 0.98rem;
    color: #cbd5e1;
    position: relative;
    z-index: 2;
}

footer {
    text-align: center;
    padding: 35px 20px;
    color: var(--gray-text);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

/* VIKAKOODIHAKU -TYÖKALU */
.search-wrapper {
    max-width: 900px;
    margin: -50px auto 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.search-box-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.search-title-row {
    margin-bottom: 20px;
    text-align: center;
}

.search-title-row h2 {
    margin: 0 0 8px 0;
    font-size: 1.55rem;
    color: var(--dark-text);
    font-weight: 800;
}

.search-title-row p {
    margin: 0;
    color: var(--gray-text);
    font-size: 1rem;
}

.search-inputs-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 14px;
    margin-bottom: 18px;
}

.search-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 15px 44px 15px 18px;
    font-size: 16px; /* 16px estää iPhonen tahattoman zoomaamisen */
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    display: none;
    line-height: 1;
}

.search-clear-btn:hover {
    color: var(--dark-text);
}

.search-select {
    width: 100%;
    padding: 15px 16px;
    font-size: 16px; /* 16px estää iPhonen tahattoman zoomaamisen */
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    background-color: white;
    color: var(--dark-text);
    cursor: pointer;
    transition: border-color 0.2s;
    font-family: inherit;
}

.search-select:focus {
    border-color: var(--primary-blue);
}

.quick-chips-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.quick-chips-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chips-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 7px 13px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.chip-btn:hover,
.chip-btn:active {
    background: #eff6ff;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

/* STATUS & SPINNER */
.dtc-status {
    padding: 14px 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 900px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.dtc-status-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.dtc-status-loading {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.dtc-status-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dtc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: dtc-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes dtc-spin {
    to { transform: rotate(360deg); }
}

/* TULOSKORTIT */
.dtc-results-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.dtc-result-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.dtc-result-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.07);
}

.dtc-result-card.exact-match {
    border-color: #93c5fd;
    box-shadow: 0 10px 25px rgba(37,99,235,0.08);
}

.dtc-result-card.highlight-card {
    border-left: 6px solid var(--primary-blue);
}

.dtc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.dtc-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dtc-code-pill {
    background: var(--primary-blue);
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    padding: 6px 15px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(37,99,235,0.25);
}

.badge-system {
    background: #e0f2fe;
    color: #0284c7;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.badge-brand {
    background: #f1f5f9;
    color: #475569;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.dtc-title {
    font-size: 1.45rem;
    color: var(--dark-text);
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.dtc-en-sub {
    color: #64748b;
    font-size: 0.98rem;
    margin-bottom: 18px;
    font-style: italic;
}

.dtc-repair-box {
    background: #f8fafc;
    border-left: 4px solid var(--primary-blue);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 18px 0;
}

.dtc-repair-box strong {
    color: var(--dark-text);
    display: block;
    margin-bottom: 6px;
    font-size: 1.02rem;
}

.dtc-repair-box p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
    font-size: 0.98rem;
}

.dtc-warning-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 18px 20px;
    border-radius: 0 12px 12px 0;
    margin: 18px 0;
}

.dtc-warning-box strong {
    color: #92400e;
    display: block;
    margin-bottom: 6px;
    font-size: 1.02rem;
}

.dtc-warning-box p {
    margin: 0;
    color: #78350f;
    line-height: 1.6;
    font-size: 0.96rem;
}

.dtc-brand-variants {
    margin: 18px 0;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
}

.dtc-brand-variants summary {
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
    outline: none;
}

.variants-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.variant-item {
    font-size: 0.94rem;
    line-height: 1.5;
}

.variant-item strong {
    color: var(--dark-text);
}

.dtc-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.dtc-not-found {
    background: white;
    border-radius: 18px;
    padding: 40px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 20px auto;
}

.dtc-not-found h3 {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
    color: var(--dark-text);
}

.dtc-not-found p {
    margin: 0;
    color: var(--gray-text);
    line-height: 1.6;
    max-width: 600px;
    margin-inline: auto;
}

.disclaimer-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 26px;
    margin: 45px auto 0 auto;
    max-width: 900px;
    font-size: 0.94rem;
    color: #64748b;
    line-height: 1.6;
}

.disclaimer-card strong {
    color: var(--dark-text);
}

/* ==========================================================================
   RESPONSIIVISUUS: MOBIILI (Android & iPhone, max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Yläpalkki & Navigaatio */
    .navbar {
        padding: 10px 16px;
        position: sticky;
        top: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-wa-btn {
        padding: 8px 12px;
        font-size: 0.88rem;
        min-height: 40px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        padding: 16px 20px 28px 20px;
        box-shadow: 0 14px 30px rgba(0,0,0,0.18);
        border-bottom: 2px solid var(--primary-blue);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
        z-index: 998;
        gap: 0;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 13px 12px;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--dark-text);
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        text-decoration: none;
        border-radius: 8px;
        transition: background-color 0.15s;
    }

    .nav-links a:active {
        background-color: #f1f5f9;
        color: var(--primary-blue);
    }

    .nav-links a.active {
        color: var(--primary-blue);
        background-color: #eff6ff;
    }

    .mobile-menu-contacts {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 18px;
        padding-top: 16px;
        border-top: 2px solid #f1f5f9;
    }

    .mobile-menu-contacts .btn {
        width: 100%;
        padding: 13px;
        font-size: 1rem;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 997;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Mobiilin nopea vaakapalkki (Mobiilivälilehdet) */
    .mobile-tab-bar {
        display: block;
        top: 64px;
    }

    /* Hero-osio mobiilissa */
    .hero {
        padding: 50px 16px 85px 16px;
    }

    .hero-short {
        padding: 40px 16px 55px 16px;
    }

    .hero::before {
        width: min(700px, 150vw);
        height: min(700px, 150vw);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Infokortit */
    .overlap-cards {
        margin: -40px auto 35px auto;
        padding: 0 16px;
        gap: 12px;
    }

    .stat-card {
        padding: 22px 18px;
        min-width: 0;
        width: 100%;
    }

    /* Osiot */
    .section {
        padding: 50px 16px;
    }

    .section-alt-padding {
        padding: 50px 16px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    /* Askeleet */
    .steps-container {
        margin-top: 25px;
        gap: 16px;
    }

    .step {
        min-width: 0;
        width: 100%;
        padding: 10px;
    }

    /* Hinnasto-kortit */
    .price-card {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 16px;
        gap: 14px;
    }

    .price-left {
        gap: 14px;
        align-items: flex-start;
    }

    .price-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 12px;
    }

    .price-icon svg {
        width: 24px;
        height: 24px;
    }

    .price-tag {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 1.1rem;
    }

    /* Alapalkin CTA */
    .cta-box {
        margin: 35px 16px 20px 16px;
        padding: 38px 18px;
        border-radius: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 25px auto;
        gap: 10px;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* UKK & Tietoa */
    .faq-container {
        padding: 0;
        gap: 14px;
    }

    .faq-item {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .content-container {
        padding: 0;
    }

    /* Vikakoodihaku */
    .search-wrapper {
        margin: -35px auto 25px auto;
        padding: 0 16px;
    }

    .search-box-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .search-inputs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-chips-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .chips-list {
        width: 100%;
    }

    .chip-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-height: 38px;
    }

    .dtc-results-container {
        padding: 0 16px;
        margin: 20px auto;
    }

    .dtc-result-card {
        padding: 20px 16px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .dtc-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dtc-card-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .dtc-card-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   HYVIN PIENET PUHELIMET (esim. iPhone SE, alle 420px)
   ========================================================================== */
@media (max-width: 420px) {
    .nav-logo {
        font-size: 1.15rem;
    }

    .nav-logo img {
        height: 28px;
        margin-right: 6px;
    }

    .nav-wa-btn {
        padding: 8px 10px;
    }

    .nav-wa-btn .wa-btn-text {
        display: none; /* Näytetään pelkkä WhatsApp-ikoni tilaa säästääksemme */
    }

    .hero {
        padding: 40px 12px 75px 12px;
    }

    .hero-short {
        padding: 35px 12px 50px 12px;
    }

    .tab-item {
        padding: 6px 11px;
        font-size: 0.84rem;
    }
}

/* VUOKRAUS.HTML */
.rental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.rental-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rental-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.07);
}

.rental-label {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.rental-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark-text);
}

.rental-card > p {
    margin: 0 0 18px 0;
    color: var(--gray-text);
    line-height: 1.6;
}

.rental-card h4 {
    margin: 20px 0 10px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary-blue);
}

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

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 9px;
    color: #334155;
    line-height: 1.5;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-blue);
    font-weight: 800;
}

.note-box {
    margin-top: 26px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 20px 24px;
}

.note-box strong {
    display: block;
    margin-bottom: 6px;
    color: #1e3a8a;
}

.note-box p {
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

.steps-four .step {
    min-width: 200px;
}

.terms-list {
    counter-reset: ehto;
    list-style: none;
    padding-left: 0 !important;
}

.terms-list li {
    counter-increment: ehto;
    position: relative;
    padding: 16px 18px 16px 58px;
    margin-bottom: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    line-height: 1.65;
}

.terms-list li::before {
    content: counter(ehto);
    position: absolute;
    left: 16px;
    top: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .rental-card {
        padding: 22px 18px;
    }

    .terms-list li {
        padding: 14px 14px 14px 52px;
        font-size: 1rem;
    }

    .terms-list li::before {
        left: 12px;
    }
}

/* Navigaatio keskikokoisilla näytöillä (7 linkkiä) */
.nav-logo,
.nav-links a {
    white-space: nowrap;
}

@media (min-width: 769px) and (max-width: 1150px) {
    .navbar {
        padding: 12px 3%;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.93rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-logo img {
        height: 28px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .nav-links {
        gap: 11px;
    }

    .nav-links a {
        font-size: 0.86rem;
    }

    .wa-btn-text {
        display: none;
    }
}

/* Etusivun linkkikortit (vikakoodihaku & vuokraus) */
.link-card {
    display: block;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    color: var(--dark-text);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 12px 26px rgba(0,0,0,0.07);
}

.link-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.link-card p {
    margin: 0 0 16px 0;
    color: var(--gray-text);
    line-height: 1.6;
}

.link-card-cta {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Alatunnisteen linkit */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

/* VIKAKOODISIVUT (vikakoodi/*.html) */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 22px;
}

.content-container .breadcrumbs a {
    color: var(--gray-text);
    font-weight: 500;
}

.code-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 0 0 30px 0;
}

.code-facts > div {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
}

.code-facts dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-text);
    font-weight: 700;
}

.code-facts dd {
    margin: 4px 0 0 0;
    font-weight: 600;
    line-height: 1.5;
    font-size: 1rem;
}

.severity {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
}

.severity-lievä { background: #dcfce7; color: #166534; }
.severity-kohtalainen { background: #fef3c7; color: #92400e; }
.severity-vakava { background: #fee2e2; color: #991b1b; }

.code-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.content-container .code-links {
    justify-content: flex-start;
    margin-bottom: 20px;
}

.code-link,
.content-container a.code-link {
    display: inline-block;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 8px 15px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--dark-text);
    text-decoration: none;
    line-height: 1.4;
    transition: border-color 0.2s, background 0.2s;
}

.code-link strong {
    color: var(--primary-blue);
    margin-right: 4px;
}

.code-link:hover,
.content-container a.code-link:hover {
    border-color: var(--primary-blue);
    background: #eff6ff;
}

.code-index {
    list-style: none;
    padding-left: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 8px;
}

.code-index li {
    margin: 0;
}

.content-container .code-index a {
    display: block;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: white;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    line-height: 1.45;
}

.content-container .code-index a:hover {
    border-color: var(--primary-blue);
    background: #eff6ff;
}

.code-index strong {
    color: var(--primary-blue);
    margin-right: 6px;
}

.content-container .note-box a {
    font-weight: 700;
}
