/* Design System V4
 * Clean, neutral first implementation for homepage + global shell.
 * Intentionally independent from legacy main/components styling.
 */

:root {
    color-scheme: light;

    --v4-font-body: "WF Sans", "Segoe UI", "Trebuchet MS", sans-serif;
    --v4-font-heading: "WF Display", "WF Sans", "Segoe UI", sans-serif;

    --v4-accent-blue: #275e9c;
    --v4-accent-blue-light: #2f77c8;
    --v4-accent-blue-dark: #0d3c71;
    --v4-accent-gold: #e3c439;
    --v4-accent-gold-dark: #b08f1f;

    --v4-bg: #f4f4f5;
    --v4-bg-soft: #eceef1;
    --v4-surface: #ffffff;
    --v4-surface-muted: #f6f7f8;

    --v4-text: #111111;
    --v4-text-soft: #303845;
    --v4-text-muted: #4f5968;

    --v4-line: rgba(18, 32, 52, 0.14);
    --v4-line-strong: rgba(18, 32, 52, 0.24);

    --v4-shadow-xs: 0 4px 10px rgba(8, 24, 44, 0.08);
    --v4-shadow-sm: 0 8px 20px rgba(8, 24, 44, 0.08);
    --v4-shadow-md: 0 16px 34px rgba(8, 24, 44, 0.12);

    --v4-radius-sm: 10px;
    --v4-radius-md: 14px;
    --v4-radius-lg: 18px;
    --v4-radius-pill: 999px;

    --v4-container: min(1240px, calc(100% - 2rem));
    --v4-header-height: 82px;

    --v4-ease: 180ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

html[data-theme="dark"] {
    color-scheme: dark;

    --v4-bg: #121417;
    --v4-bg-soft: #1a1d22;
    --v4-surface: #1d2128;
    --v4-surface-muted: #242a33;

    --v4-text: #edf2f8;
    --v4-text-soft: #d5deea;
    --v4-text-muted: #b6c2d0;

    --v4-line: rgba(198, 210, 223, 0.2);
    --v4-line-strong: rgba(198, 210, 223, 0.34);

    --v4-shadow-xs: 0 6px 14px rgba(2, 6, 12, 0.3);
    --v4-shadow-sm: 0 10px 24px rgba(2, 6, 12, 0.34);
    --v4-shadow-md: 0 20px 36px rgba(2, 6, 12, 0.44);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--v4-font-body);
    font-size: 16px;
    line-height: 1.62;
    color: var(--v4-text);
    background: linear-gradient(180deg, var(--v4-bg) 0%, var(--v4-bg-soft) 100%);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: var(--v4-container);
    margin: 0 auto;
}

.main-content {
    margin-top: var(--v4-header-height);
}

.grid {
    display: grid;
    gap: 1rem;
}

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

.section-header,
.section-header-blog,
.home-v4-section-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto clamp(1.8rem, 3.6vw, 2.8rem);
}

.section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 0.16rem 0.82rem;
    border-radius: var(--v4-radius-pill);
    border: 1px solid rgba(227, 196, 57, 0.5);
    background: rgba(227, 196, 57, 0.14);
    color: #8f7417;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.section-title,
.section-title-modern {
    margin: 0;
    font-family: var(--v4-font-heading);
    color: var(--v4-text);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.section-subtitle,
.section-subtitle-modern {
    margin-top: 0.78rem;
    color: var(--v4-text-soft);
    font-size: clamp(1rem, 1.7vw, 1.15rem);
}

/* Header / nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--v4-line);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(10, 26, 46, 0.08);
}

.main-header.scrolled {
    box-shadow: 0 12px 28px rgba(10, 26, 46, 0.14);
    background: rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .main-header {
    background: rgba(18, 22, 28, 0.92);
    border-bottom-color: var(--v4-line);
    box-shadow: 0 10px 22px rgba(1, 5, 11, 0.4);
}

html[data-theme="dark"] .main-header.scrolled {
    background: rgba(18, 22, 28, 0.96);
    box-shadow: 0 14px 30px rgba(1, 5, 11, 0.5);
}

.navbar,
.navbar .container {
    height: var(--v4-header-height);
}

.navbar {
    padding: 0;
    background: transparent;
}

.navbar .container {
    padding-top: 0;
    padding-bottom: 0;
}

.nav-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    width: clamp(160px, 14vw, 220px);
    height: auto;
    filter: brightness(0) saturate(100%);
    transition: filter var(--v4-ease);
}

html[data-theme="dark"] .logo-image {
    filter: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-left: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-item.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 42px;
    padding: 0.45rem 0.72rem;
    border-radius: 10px;
    color: #1d2e43;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 700;
    transition: background var(--v4-ease), color var(--v4-ease);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(39, 94, 156, 0.1);
    color: #123d6d;
}

html[data-theme="dark"] .nav-link {
    color: #e4eaf2;
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active {
    background: rgba(207, 218, 232, 0.12);
    color: #ffffff;
}

.dropdown-arrow {
    font-size: 0.86rem;
    line-height: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(80%);
    left: 0;
    min-width: 240px;
    border-radius: var(--v4-radius-md);
    border: 1px solid var(--v4-line-strong);
    background: var(--v4-surface);
    box-shadow: var(--v4-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--v4-ease), transform var(--v4-ease), visibility var(--v4-ease);
    z-index: 1200;
}

.mega-menu {
    width: min(1120px, calc(100vw - 2rem));
    padding: 0.9rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.mega-menu-section {
    padding: 0.15rem;
}

.mega-menu-heading {
    display: inline-block;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.mega-menu-heading h4 {
    margin: 0;
    font-family: var(--v4-font-heading);
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--v4-text);
}

.dropdown-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    border-radius: 10px;
    text-decoration: none;
    padding: 0.55rem;
    color: var(--v4-text-soft);
    transition: background var(--v4-ease), color var(--v4-ease);
}

.dropdown-item strong {
    display: block;
    color: var(--v4-text);
    font-size: 0.9rem;
    line-height: 1.25;
}

.dropdown-item small {
    display: block;
    color: var(--v4-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.14rem;
}

.dropdown-item:hover {
    background: rgba(39, 94, 156, 0.08);
}

.menu-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.dropdown:hover > .dropdown-menu,
.nav-item.dropdown.active > .dropdown-menu,
.nav-item.dropdown.active > .dropdown-menu-simple {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

html[data-theme="dark"] .dropdown-menu {
    background: var(--v4-surface);
    border-color: var(--v4-line-strong);
}

html[data-theme="dark"] .dropdown-item:hover {
    background: rgba(202, 214, 229, 0.12);
}

.language-switcher-dropdown {
    position: relative;
}

.lang-dropdown-toggle {
    min-height: 38px;
    min-width: 44px;
    border-radius: 10px;
    border: 1px solid var(--v4-line-strong);
    background: rgba(255, 255, 255, 0.8);
    color: var(--v4-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.26rem;
    cursor: pointer;
}

html[data-theme="dark"] .lang-dropdown-toggle {
    background: rgba(22, 28, 36, 0.9);
    color: var(--v4-text);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 210px;
    border-radius: var(--v4-radius-md);
    border: 1px solid var(--v4-line-strong);
    background: var(--v4-surface);
    box-shadow: var(--v4-shadow-md);
    padding: 0.3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--v4-ease), transform var(--v4-ease), visibility var(--v4-ease);
    z-index: 1400;
}

.language-switcher-dropdown.open .lang-dropdown-menu,
.language-switcher-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.46rem 0.55rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--v4-text-soft);
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(39, 94, 156, 0.08);
}

.lang-option-active {
    background: rgba(39, 94, 156, 0.12);
    color: var(--v4-text);
    font-weight: 700;
}

.lang-name {
    flex: 1;
}

.lang-check {
    color: var(--v4-accent-blue);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--v4-line-strong);
    background: rgba(255, 255, 255, 0.8);
    color: var(--v4-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--v4-ease), border-color var(--v4-ease);
}

.theme-toggle:hover {
    background: rgba(39, 94, 156, 0.12);
}

html[data-theme="dark"] .theme-toggle {
    background: rgba(22, 28, 36, 0.9);
}

.theme-icon-sun,
.theme-icon-moon {
    width: 18px;
    height: 18px;
}

.theme-icon-sun {
    display: none;
}

.theme-icon-moon {
    display: inline-block;
}

html[data-theme="dark"] .theme-icon-sun {
    display: inline-block;
}

html[data-theme="dark"] .theme-icon-moon {
    display: none;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--v4-line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--v4-text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform var(--v4-ease), opacity var(--v4-ease);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

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

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.46);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--v4-ease), visibility var(--v4-ease);
    z-index: 980;
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Buttons */
.btn,
.btn-ultra,
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 46px;
    padding: 0.62rem 1.16rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform var(--v4-ease), background var(--v4-ease), border-color var(--v4-ease), color var(--v4-ease), box-shadow var(--v4-ease);
}

.btn-large {
    min-height: 50px;
    padding: 0.72rem 1.4rem;
}

.btn-primary,
.btn-ultra-primary {
    background: var(--v4-accent-blue);
    border-color: var(--v4-accent-blue-dark);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(18, 54, 95, 0.22);
}

.btn-primary:hover,
.btn-ultra-primary:hover {
    background: var(--v4-accent-blue-dark);
    border-color: var(--v4-accent-blue-dark);
    transform: translateY(-1px);
}

.btn-outline,
.btn-ultra-outline {
    background: transparent;
    border-color: var(--v4-accent-blue);
    color: var(--v4-accent-blue-dark);
}

.btn-outline:hover,
.btn-ultra-outline:hover {
    background: var(--v4-accent-blue);
    border-color: var(--v4-accent-blue);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-cta-primary {
    background: var(--v4-accent-gold);
    border-color: var(--v4-accent-gold-dark);
    color: #143a63;
    box-shadow: 0 12px 22px rgba(227, 196, 57, 0.28);
}

.btn-cta-primary:hover {
    background: #d6b734;
    border-color: #c6a82f;
    transform: translateY(-1px);
}

html[data-theme="dark"] :is(.btn-primary, .btn-ultra-primary) {
    background: #445c7b;
    border-color: #334760;
}

html[data-theme="dark"] :is(.btn-primary, .btn-ultra-primary):hover {
    background: #334760;
    border-color: #2a3b50;
}

html[data-theme="dark"] :is(.btn-outline, .btn-ultra-outline) {
    border-color: rgba(214, 224, 236, 0.5);
    color: #eaf0f7;
    background: rgba(15, 21, 30, 0.5);
}

html[data-theme="dark"] :is(.btn-outline, .btn-ultra-outline):hover {
    background: #eef2f7;
    border-color: #eef2f7;
    color: #17212c;
}

/* Hero */
.page-home .hero-mesh {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--v4-line);
    background:
        radial-gradient(circle at 14% 20%, rgba(134, 145, 161, 0.22) 0%, rgba(134, 145, 161, 0) 46%),
        radial-gradient(circle at 86% 76%, rgba(227, 196, 57, 0.14) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(130deg, #f8f8f9 0%, #f1f2f4 52%, #e7e9ec 100%);
    padding: clamp(4.2rem, 7vw, 6.1rem) 0 0;
}

.page-home .spotlights {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.page-home .spotlight {
    position: absolute;
    border-radius: 999px;
    filter: blur(74px);
    opacity: 0.34;
}

.page-home .spotlight-1 {
    width: 360px;
    height: 360px;
    top: -84px;
    left: -56px;
    background: rgba(122, 133, 149, 0.2);
}

.page-home .spotlight-2 {
    width: 280px;
    height: 280px;
    top: 16%;
    right: -44px;
    background: rgba(227, 196, 57, 0.24);
}

.page-home .spotlight-3 {
    width: 300px;
    height: 300px;
    bottom: -92px;
    left: 36%;
    background: rgba(128, 138, 153, 0.18);
}

.page-home .hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    align-items: center;
    min-height: 540px;
    gap: 1.2rem;
}

.page-home .hero-content-ultra {
    max-width: 720px;
    text-align: left;
    padding: 0.4rem 0 4.8rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: var(--v4-radius-pill);
    border: 1px solid var(--v4-line-strong);
    background: rgba(255, 255, 255, 0.75);
    color: #41556d;
    padding: 0.12rem 0.64rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-home .hero-title-ultra {
    margin-top: 0.7rem;
    margin-bottom: 0;
    font-family: var(--v4-font-heading);
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #121417;
    text-shadow: 0 8px 20px rgba(23, 30, 39, 0.08);
}

.page-home .highlight-gold,
.page-home .text-gradient-gold {
    color: var(--v4-accent-gold-dark);
    -webkit-text-fill-color: var(--v4-accent-gold-dark);
    text-shadow: none;
}

.page-home .hero-subtitle-ultra {
    margin-top: 1.14rem;
    max-width: 640px;
    font-size: clamp(1.04rem, 2vw, 1.3rem);
    line-height: 1.62;
    color: #3a4350;
}

.page-home .hero-cta-group {
    margin-top: 1.55rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.page-home .hero-image {
    position: absolute;
    right: 0.6rem;
    bottom: 0;
    width: min(40%, 510px);
}

.page-home .hero-image img {
    width: 100%;
    filter: drop-shadow(0 18px 36px rgba(18, 24, 33, 0.2));
}

/* Stats */
.page-home .home-v4-stats {
    padding: 1.36rem 0;
    background: linear-gradient(180deg, #f5f6f7 0%, #eceef1 100%);
    border-top: 1px solid var(--v4-line);
}

.page-home .stats-header {
    text-align: center;
    margin-bottom: 1rem;
}

.page-home .stats-header h2 {
    margin: 0;
    font-family: var(--v4-font-heading);
    color: #1a1f26;
    font-size: clamp(1.72rem, 2.8vw, 2.35rem);
}

.page-home .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.page-home .stat-box {
    text-align: center;
    padding: 0.98rem 0.68rem;
    border-radius: var(--v4-radius-md);
    border: 1px solid var(--v4-line);
    background: #ffffff;
    box-shadow: var(--v4-shadow-sm);
}

.page-home .stat-number {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--v4-accent-blue);
    line-height: 1.05;
}

.page-home .stat-label {
    margin-top: 0.3rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #334354;
}

.page-home .stat-description {
    margin-top: 0.28rem;
    font-size: 0.82rem;
    color: #56677b;
}

/* Logos */
.page-home .home-v4-logos {
    padding: 1.02rem 0;
    background: linear-gradient(180deg, #f9f9fa 0%, #f2f3f5 100%);
    border-top: 1px solid var(--v4-line);
    border-bottom: 1px solid var(--v4-line);
    overflow: hidden;
}

.logos-scroll-container {
    width: 100%;
    overflow: hidden;
}

.page-home .home-v4-logos-track,
.page-home .logos-scroll-track {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: max-content;
    animation: v4-logos-scroll 24s linear infinite;
}

@keyframes v4-logos-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.page-home .logo-item {
    min-width: 176px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(39, 94, 156, 0.2);
    background: #ffffff;
}

.page-home .logo-item img {
    max-height: 52px;
    max-width: 150px;
    opacity: 0.76;
    filter: grayscale(100%) saturate(90%);
    transition: filter var(--v4-ease), opacity var(--v4-ease);
}

.page-home .logo-item:hover img {
    opacity: 1;
    filter: grayscale(0%) saturate(104%);
}

/* Services */
.page-home .home-v4-services {
    position: relative;
    overflow: hidden;
    padding: clamp(2.8rem, 5vw, 4.2rem) 0;
    background: linear-gradient(180deg, #f7f7f8 0%, #ffffff 100%);
    border-top: 1px solid var(--v4-line);
}

.page-home .home-v4-services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--v4-accent-blue) 32%, var(--v4-accent-gold) 68%, transparent 100%);
}

.page-home .decorative-shapes {
    display: none;
}

.page-home .decorative-shapes .shape {
    position: absolute;
    opacity: 0.85;
}

.page-home .shape-services-1 {
    width: 680px;
    height: 560px;
    top: -10%;
    left: -14%;
}

.page-home .shape-services-2 {
    width: 620px;
    height: 620px;
    right: -14%;
    bottom: -18%;
}

.page-home .home-v4-services .container,
.page-home .home-v4-services-grid {
    position: relative;
    z-index: 1;
}

.page-home .home-v4-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.page-home .service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.06rem;
    border-radius: var(--v4-radius-lg);
    border: 1px solid var(--v4-line);
    background: var(--v4-surface);
    box-shadow: var(--v4-shadow-sm);
    overflow: hidden;
    transition: transform var(--v4-ease), box-shadow var(--v4-ease), border-color var(--v4-ease);
}

.page-home .service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--v4-accent-blue-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--v4-ease);
}

.page-home .service-card:nth-child(3n + 2)::before {
    background: var(--v4-accent-gold);
}

.page-home .service-card:nth-child(3n + 3)::before {
    background: #7e93ac;
}

.page-home .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v4-shadow-md);
    border-color: var(--v4-line-strong);
}

.page-home .service-card:hover::before {
    transform: scaleX(1);
}

.page-home .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--v4-accent-blue);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.page-home .service-card:nth-child(3n + 2) .card-icon {
    background: var(--v4-accent-gold);
    color: #213445;
}

.page-home .service-card:nth-child(3n + 3) .card-icon {
    background: #5f748d;
    color: #ffffff;
}

.page-home .card-title {
    margin: 0;
    font-family: var(--v4-font-heading);
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    color: var(--v4-text);
}

.page-home .card-description {
    margin-top: 0.5rem;
    color: var(--v4-text-soft);
    font-size: 0.9rem;
}

.page-home .card-features {
    list-style: none;
    margin: 0.72rem 0 0;
    padding: 0;
}

.page-home .card-features li {
    position: relative;
    margin-top: 0.32rem;
    padding-left: 1.12rem;
    color: var(--v4-text-muted);
    font-size: 0.84rem;
}

.page-home .card-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--v4-accent-blue-light);
    font-size: 1.1rem;
    line-height: 1;
}

.page-home .card-link {
    display: inline-flex;
    margin-top: auto;
    padding-top: 0.72rem;
    color: #1e4f82;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
}

.page-home .card-link:hover {
    color: #143a63;
}

/* Security */
.page-home .home-v4-security {
    padding: clamp(3rem, 6vw, 4.8rem) 0;
    border-top: 1px solid var(--v4-line);
    background: linear-gradient(180deg, #f6f7f9 0%, #ffffff 100%);
}

.page-home .home-v4-security-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 1.2rem;
}

.page-home .security-focus-title,
.page-home .home-v4-security .section-title {
    text-align: left;
}

.page-home .security-lead {
    color: var(--v4-text-soft);
    font-size: 1.03rem;
}

.page-home .security-highlights {
    display: grid;
    gap: 0.72rem;
    margin-top: 1.05rem;
    margin-bottom: 1.05rem;
}

.page-home .highlight-box {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    border-radius: 14px;
    border: 1px solid var(--v4-line);
    background: #ffffff;
    box-shadow: var(--v4-shadow-sm);
    padding: 0.78rem;
}

.page-home .highlight-icon {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--v4-accent-gold);
    color: #1e3f62;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-home .highlight-content h3 {
    margin: 0;
    color: var(--v4-text);
    font-size: 1rem;
}

.page-home .highlight-content p {
    margin: 0.26rem 0 0;
    color: var(--v4-text-soft);
    font-size: 0.92rem;
}

.page-home .security-shield {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(39, 94, 156, 0.32);
    background:
        radial-gradient(circle at 30% 20%, rgba(247, 227, 137, 0.52) 0%, rgba(247, 227, 137, 0) 46%),
        radial-gradient(circle at 74% 78%, rgba(144, 195, 240, 0.24) 0%, rgba(144, 195, 240, 0) 52%),
        linear-gradient(145deg, rgba(64, 102, 145, 0.42) 0%, rgba(35, 64, 94, 0.58) 100%);
    box-shadow: 0 16px 30px rgba(6, 26, 47, 0.2);
}

.page-home .shield-animation {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px solid rgba(227, 196, 57, 0.6);
    animation: v4-pulse-ring 2.8s ease-in-out infinite;
}

@keyframes v4-pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 0.58; }
}

.page-home .shield-logo-overlay {
    width: 170px;
    height: 170px;
}

/* CTA */
.page-home .home-v4-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(3.4rem, 6vw, 5.2rem) 0;
    border-top: 1px solid var(--v4-line);
    border-bottom: 1px solid var(--v4-line);
    background:
        radial-gradient(circle at 16% 40%, rgba(124, 138, 156, 0.16) 0%, transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(227, 196, 57, 0.12) 0%, transparent 48%),
        linear-gradient(132deg, #f8f8f9 0%, #f1f2f4 52%, #e9ebee 100%);
}

.page-home .home-v4-cta .cta-wrapper {
    position: relative;
    z-index: 1;
}

.page-home .cta-content-premium {
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.page-home .cta-badge {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    border-radius: var(--v4-radius-pill);
    padding: 0.15rem 0.85rem;
    border: 1px solid rgba(86, 101, 120, 0.32);
    background: rgba(86, 101, 120, 0.1);
    color: #2f3f52;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.page-home .cta-title-premium {
    margin: 0;
    font-family: var(--v4-font-heading);
    font-size: clamp(2.2rem, 5.2vw, 4.3rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--v4-text);
}

.page-home .cta-subtitle-premium {
    margin: 1rem auto 0;
    max-width: 700px;
    color: var(--v4-text-soft);
    font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.page-home .cta-buttons-premium {
    margin-top: 1.6rem;
    display: inline-flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

/* Blog */
.page-home .home-v4-blog {
    padding: clamp(3rem, 6vw, 4.8rem) 0;
    border-top: 1px solid var(--v4-line);
    background: linear-gradient(180deg, #f8f8f9 0%, #ffffff 100%);
}

.page-home .home-v4-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page-home .home-v4-blog-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--v4-radius-lg);
    border: 1px solid var(--v4-line);
    background: #ffffff;
    box-shadow: var(--v4-shadow-sm);
    overflow: hidden;
}

.page-home .blog-card-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--v4-line);
}

.page-home .blog-card-image-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f6076 0%, #39495d 100%);
}

.page-home .blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

.page-home .blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #5a6a7d;
}

.page-home .blog-card-category {
    padding: 0.12rem 0.42rem;
    border-radius: var(--v4-radius-pill);
    border: 1px solid var(--v4-line);
    background: var(--v4-surface-muted);
}

.page-home .blog-card-title {
    margin: 0.7rem 0 0;
    font-family: var(--v4-font-heading);
    font-size: 1.22rem;
    line-height: 1.25;
}

.page-home .blog-card-title a {
    color: var(--v4-text);
    text-decoration: none;
}

.page-home .blog-card-title a:hover {
    color: #203f62;
}

.page-home .blog-card-excerpt {
    margin-top: 0.62rem;
    color: var(--v4-text-soft);
    font-size: 0.95rem;
}

.page-home .home-v4-blog-card .card-link {
    margin-top: auto;
    padding-top: 0.82rem;
}

.page-home .blog-cta-wrapper {
    margin-top: 1.45rem;
    text-align: center;
}

/* FAQ */
.page-home .home-v4-faq {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 4.6rem) 0;
    border-top: 1px solid var(--v4-line);
    background: linear-gradient(180deg, #f8f9fb 0%, #eef2f6 100%);
}

.page-home .home-v4-faq::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--v4-accent-blue) 32%, var(--v4-accent-gold) 68%, transparent 100%);
}

.page-home .home-v4-faq-grid,
.page-home .faq-grid-home {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page-home .home-v4-faq-card,
.page-home .faq-card {
    border-radius: var(--v4-radius-lg);
    border: 1px solid var(--v4-line);
    background: #ffffff;
    box-shadow: var(--v4-shadow-xs, 0 4px 10px rgba(8, 24, 44, 0.08));
    padding: 1.05rem;
    transition: transform var(--v4-ease), box-shadow var(--v4-ease), border-color var(--v4-ease);
}

.page-home .faq-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--v4-shadow-sm);
    border-color: var(--v4-line-strong);
}

.page-home .faq-card:nth-child(3n + 1) {
    border-left: 3px solid var(--v4-accent-blue);
}

.page-home .faq-card:nth-child(3n + 2) {
    border-left: 3px solid var(--v4-accent-gold);
}

.page-home .faq-card:nth-child(3n + 3) {
    border-left: 3px solid #73879f;
}

.page-home .faq-card-header {
    display: flex;
    gap: 0.72rem;
}

.page-home .faq-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(39, 94, 156, 0.13);
    color: #1c4f84;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-home .faq-icon span {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.page-home .faq-question {
    margin: 0;
    color: var(--v4-text);
    font-family: var(--v4-font-heading);
    font-size: 1.02rem;
    line-height: 1.35;
}

.page-home .faq-answer p {
    margin-top: 0.6rem;
    color: var(--v4-text-soft);
    font-size: 0.94rem;
}

.page-home .faq-cta-wrapper {
    margin-top: 1.46rem;
    text-align: center;
}

/* Made in Sweden */
.page-home .home-v4-made {
    padding: clamp(2.8rem, 5vw, 4.2rem) 0;
    border-top: 1px solid var(--v4-line);
    background: linear-gradient(180deg, #f2f4f6 0%, #e9ecf0 100%);
}

.page-home .home-v4-made-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 1.2rem;
}

.page-home .home-v4-made .section-title-modern {
    text-align: left;
}

.page-home .made-in-sweden-text {
    margin-top: 0.74rem;
    color: var(--v4-text-soft);
}

.page-home .made-in-sweden-logo {
    display: flex;
    justify-content: center;
}

.page-home .made-in-sweden-logo img {
    width: min(100%, 265px);
    filter: drop-shadow(0 10px 20px rgba(8, 36, 68, 0.16));
}

/* Legacy alias + utility hooks kept for homepage cleanup path */
.page-home .security-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 1.2rem;
}

.page-home .security-content,
.page-home .made-in-sweden-content {
    max-width: 760px;
}

.page-home .security-visual {
    display: flex;
    justify-content: center;
}

.page-home .made-in-sweden-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 1.2rem;
}

.title-line-1 {
    display: inline;
}

.page-home .card,
.page-home .blog-card {}

.dropdown-toggle {
    cursor: pointer;
}

.home-v4-cta-wrapper {
    position: relative;
    z-index: 1;
}

.page-home :is(
    .services,
    .security-focus,
    .cta-section-premium,
    .blog-showcase,
    .faq-section-home,
    .made-in-sweden-section,
    .stats-section,
    .customer-logos-banner
) {
    position: relative;
}

/* Privacy banner */
.trust-banner {
    border-top: 1px solid var(--v4-line);
    border-bottom: 1px solid var(--v4-line);
    background: linear-gradient(135deg, #1f2732 0%, #2a3543 100%);
    padding: clamp(3rem, 5vw, 4.8rem) 0;
}

.trust-container {
    width: var(--v4-container);
    margin: 0 auto;
}

.trust-content {
    text-align: center;
    color: #eef3f9;
}

.trust-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trust-header h2 {
    margin: 0;
    font-family: var(--v4-font-heading);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.16;
}

.trust-score {
    display: inline-flex;
    align-items: baseline;
    gap: 0.42rem;
    padding: 0.28rem 0.66rem;
    border-radius: var(--v4-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
}

.score-number {
    font-size: 1.14rem;
    font-weight: 800;
}

.score-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    opacity: 0.9;
}

.trust-description {
    margin: 1rem auto 0;
    max-width: 780px;
    color: rgba(239, 246, 255, 0.9);
}

.trust-features {
    margin-top: 1.05rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.68rem;
}

.trust-feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(240, 247, 255, 0.94);
    font-size: 0.84rem;
    font-weight: 700;
}

.trust-feature svg {
    width: 17px;
    height: 17px;
}

/* Footer (light by default) */
.main-footer {
    border-top: 1px solid rgba(13, 60, 113, 0.16);
    background:
        radial-gradient(circle at 14% 0%, rgba(47, 119, 200, 0.08) 0%, rgba(47, 119, 200, 0) 42%),
        radial-gradient(circle at 86% 0%, rgba(227, 196, 57, 0.1) 0%, rgba(227, 196, 57, 0) 38%),
        linear-gradient(180deg, #f8fafd 0%, #edf2f7 100%);
    color: #213246;
}

.footer-top {
    padding: clamp(2.6rem, 5vw, 4rem) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.82fr)) minmax(0, 1.2fr);
    gap: 1rem;
}

.footer-column h4 {
    margin: 0 0 0.82rem;
    font-family: var(--v4-font-heading);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #10365f;
}

.footer-column-wide {
    min-width: 0;
}

.footer-logo {
    display: inline-flex;
}

.footer-logo-image {
    width: min(260px, 100%);
    filter: brightness(0) saturate(100%);
    opacity: 0.94;
}

.footer-description {
    margin-top: 0.66rem;
    color: #455a73;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.38rem;
}

.footer-links a {
    color: #2f4763;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.35;
}

.footer-links a:hover {
    color: #103d6a;
}

.footer-contact {
    display: grid;
    gap: 0.56rem;
}

.contact-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    color: #3f556f;
    font-size: 0.9rem;
}

.contact-item a {
    color: #103d6a;
    text-decoration: none;
}

.contact-item address {
    font-style: normal;
    color: inherit;
}

.contact-item svg {
    color: #1c578f;
}

.footer-badges {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.privacy-badge-simple,
.product-badge-simple {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 12px;
    padding: 0.58rem;
}

.privacy-badge-text strong,
.product-badge-text strong {
    display: block;
    font-size: 0.88rem;
    color: #10365f;
}

.privacy-badge-text span,
.product-badge-text span {
    display: block;
    font-size: 0.8rem;
    color: #5a6d84;
}

.wf-security-logo-wrapper svg {
    width: 58px;
    height: 58px;
}

html[data-theme="light"] .wf-security-logo-wrapper svg path:not([stroke]),
html:not([data-theme]) .wf-security-logo-wrapper svg path:not([stroke]) {
    fill: #111111 !important;
}

html[data-theme="light"] .wf-security-logo-wrapper svg path[stroke="#e5c738"],
html:not([data-theme]) .wf-security-logo-wrapper svg path[stroke="#e5c738"] {
    stroke: #e5c738 !important;
}

.footer-bottom {
    border-top: 1px solid rgba(13, 60, 113, 0.14);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(6px);
    padding: 0.95rem 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.copyright {
    color: #415770;
    font-size: 0.82rem;
}

.version-info,
.footer-version-info {
    margin-left: 0.4rem;
    font-size: 0.72rem;
    opacity: 0.72;
}

.footer-bottom-links {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #375270;
    text-decoration: none;
    font-size: 0.82rem;
}

.footer-bottom-links a:hover {
    color: #103d6a;
}

.footer-social {
    display: inline-flex;
    gap: 0.45rem;
    margin-top: 0.72rem;
}

.footer-social-privacy {
    margin-top: 0.4rem;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(39, 94, 156, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: #1e568c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(12, 42, 74, 0.08);
}

.footer-social a:hover {
    background: rgba(39, 94, 156, 0.12);
    border-color: rgba(39, 94, 156, 0.42);
    color: #133c67;
}

/* Footer dark mode */
html[data-theme="dark"] .main-footer {
    border-top-color: rgba(213, 222, 232, 0.16);
    background: linear-gradient(180deg, #131820 0%, #0e131a 100%);
    color: #e8edf4;
}

html[data-theme="dark"] .footer-column h4 {
    color: #f3f7fc;
}

html[data-theme="dark"] .footer-logo-image {
    filter: none;
    opacity: 1;
}

html[data-theme="dark"] .footer-description {
    color: rgba(228, 236, 246, 0.84);
}

html[data-theme="dark"] .footer-links a {
    color: rgba(228, 236, 246, 0.84);
}

html[data-theme="dark"] .footer-links a:hover {
    color: #ffffff;
}

html[data-theme="dark"] .contact-item {
    color: rgba(228, 236, 246, 0.86);
}

html[data-theme="dark"] .contact-item a {
    color: #ffffff;
}

html[data-theme="dark"] .contact-item address {
    color: inherit;
}

html[data-theme="dark"] .contact-item svg {
    color: inherit;
}

html[data-theme="dark"] .privacy-badge-simple,
html[data-theme="dark"] .product-badge-simple {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .privacy-badge-text strong,
html[data-theme="dark"] .product-badge-text strong {
    color: #ffffff;
}

html[data-theme="dark"] .privacy-badge-text span,
html[data-theme="dark"] .product-badge-text span {
    color: rgba(231, 239, 248, 0.82);
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(213, 222, 232, 0.18);
    background: rgba(8, 12, 18, 0.36);
    backdrop-filter: blur(6px);
}

html[data-theme="dark"] .copyright {
    color: rgba(224, 233, 243, 0.78);
}

html[data-theme="dark"] .footer-bottom-links a {
    color: rgba(232, 240, 249, 0.92);
}

html[data-theme="dark"] .footer-bottom-links a:hover {
    color: #ffffff;
}

html[data-theme="dark"] .footer-social a {
    border-color: rgba(211, 222, 235, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #f0f5fb;
    box-shadow: none;
}

html[data-theme="dark"] .footer-social a:hover {
    background: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .wf-security-logo-wrapper svg path:not([stroke]) {
    fill: #ffffff !important;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--v4-line-strong);
    background: rgba(255, 255, 255, 0.92);
    color: #1b2a3b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--v4-ease), visibility var(--v4-ease), transform var(--v4-ease);
    z-index: 990;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

html[data-theme="dark"] .back-to-top {
    background: rgba(26, 34, 45, 0.94);
    color: #e5edf6;
    border-color: var(--v4-line-strong);
}

/* Dark theme section mapping */
html[data-theme="dark"] .page-home .hero-mesh {
    background:
        radial-gradient(circle at 18% 20%, rgba(110, 120, 134, 0.24) 0%, rgba(110, 120, 134, 0) 44%),
        radial-gradient(circle at 84% 78%, rgba(227, 196, 57, 0.12) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(135deg, #131517 0%, #1b1f25 50%, #20252d 100%);
    border-bottom-color: var(--v4-line);
}

html[data-theme="dark"] .hero-badge {
    background: rgba(20, 27, 35, 0.72);
    border-color: rgba(204, 214, 226, 0.34);
    color: #d9e2ec;
}

html[data-theme="dark"] .page-home .hero-title-ultra {
    color: #edf2f8;
}

html[data-theme="dark"] .page-home .hero-subtitle-ultra {
    color: #c7d0db;
}

html[data-theme="dark"] .page-home .home-v4-stats {
    background: linear-gradient(180deg, #171a1f 0%, #1f242d 100%);
    border-top-color: var(--v4-line);
}

html[data-theme="dark"] .page-home .stats-header h2 {
    color: #edf2f8;
}

html[data-theme="dark"] .page-home .stat-box {
    border-color: var(--v4-line);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--v4-shadow-sm);
}

html[data-theme="dark"] .page-home .stat-number {
    color: #dbe5f0;
}

html[data-theme="dark"] .page-home .stat-label {
    color: #d2dbe6;
}

html[data-theme="dark"] .page-home .stat-description {
    color: #b7c2cf;
}

html[data-theme="dark"] .page-home :is(
    .home-v4-logos,
    .home-v4-services,
    .home-v4-security,
    .home-v4-cta,
    .home-v4-blog,
    .home-v4-faq,
    .home-v4-made
) {
    background: linear-gradient(180deg, #14181f 0%, #1b2028 100%);
    border-top-color: var(--v4-line);
}

html[data-theme="dark"] .page-home .home-v4-cta {
    background:
        radial-gradient(circle at 16% 40%, rgba(107, 117, 130, 0.18) 0%, transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(227, 196, 57, 0.13) 0%, transparent 48%),
        linear-gradient(136deg, #14171d 0%, #1c2129 48%, #171b22 100%);
}

html[data-theme="dark"] .page-home .cta-badge {
    background: rgba(227, 196, 57, 0.18);
    border-color: rgba(227, 196, 57, 0.46);
    color: #f2e39a;
}

html[data-theme="dark"] .page-home :is(
    .service-card,
    .home-v4-blog-card,
    .faq-card,
    .highlight-box
) {
    background: linear-gradient(170deg, #1d222b 0%, #252c37 100%);
    border-color: var(--v4-line);
    box-shadow: var(--v4-shadow-sm);
}

html[data-theme="dark"] .page-home :is(
    .section-title,
    .section-title-modern,
    .card-title,
    .blog-card-title a,
    .faq-question,
    .highlight-content h3
) {
    color: #eef2f7;
}

html[data-theme="dark"] .page-home :is(
    .section-subtitle,
    .section-subtitle-modern,
    .card-description,
    .card-features li,
    .blog-card-excerpt,
    .faq-answer p,
    .made-in-sweden-text,
    .security-lead,
    .highlight-content p,
    .blog-card-meta,
    .blog-card-category
) {
    color: rgba(214, 223, 234, 0.86);
}

html[data-theme="dark"] .page-home .card-link {
    color: #d7e5f5;
}

html[data-theme="dark"] .page-home .faq-icon {
    background: rgba(121, 140, 168, 0.22);
    color: #e1e8f1;
}

html[data-theme="dark"] body.page-home .home-v4-logos .logo-item,
html[data-theme="dark"] .page-home .logo-item {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(39, 94, 156, 0.28) !important;
    box-shadow: 0 8px 16px rgba(8, 24, 42, 0.2);
}

html[data-theme="dark"] body.page-home .home-v4-logos .logo-item img,
html[data-theme="dark"] .page-home .logo-item img {
    filter: grayscale(100%) saturate(90%) brightness(0.95) !important;
}

html[data-theme="dark"] body.page-home .home-v4-logos .logo-item:hover img,
html[data-theme="dark"] .page-home .logo-item:hover img {
    filter: grayscale(0%) saturate(104%) !important;
}

html[data-theme="dark"] .trust-banner {
    background: linear-gradient(135deg, #0f141b 0%, #1a2029 100%);
}

/* Non-home rollout: hero + FAQ consistency */
body:not(.page-home) section:is(
    .hero-mesh,
    .hero-faq,
    .hero-legal-premium,
    .hero-local-service,
    .hero-buy-computer,
    .hero-mesh-compact,
    .hero-section,
    .hero-webbdrift,
    .hero-security,
    .hero-service,
    .hero,
    .package-hero
) {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--v4-line);
    background: none !important;
    padding: clamp(3.1rem, 6.3vw, 5.1rem) 0;
}

body:not(.page-home) :is(
    .decorative-shapes,
    .hero-gradient-overlay,
    .hero-legal-gradient,
    .security-particles
) {
    display: none !important;
}

body:not(.page-home) :is(
    .hero-content-ultra,
    .hero-content,
    .hero-legal-content,
    .package-hero-content
) {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

body:not(.page-home) :is(
    .hero-title-ultra,
    .hero-title,
    .hero-legal-title,
    .package-hero-title
) {
    margin: 0;
    font-family: var(--v4-font-heading);
    color: #121417;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
    text-shadow: 0 8px 20px rgba(23, 30, 39, 0.08);
}

body:not(.page-home) :is(
    .hero-subtitle-ultra,
    .hero-subtitle,
    .hero-legal-subtitle,
    .package-hero-tagline
) {
    margin: 1rem auto 0;
    max-width: 760px;
    color: #3a4350;
    font-size: clamp(1rem, 1.9vw, 1.2rem);
    line-height: 1.58;
}

body:not(.page-home) .hero-badges {
    display: flex !important;
    gap: 0.52rem !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
    flex-wrap: wrap !important;
}

body:not(.page-home) :is(
    .hero-badge,
    .hero-legal-badge,
    .section-badge,
    .package-badge
) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 0.16rem 0.82rem;
    border-radius: var(--v4-radius-pill);
    border: 1px solid rgba(227, 196, 57, 0.5);
    background: rgba(227, 196, 57, 0.14);
    color: #8f7417;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body:not(.page-home) :is(.hero-badge, .hero-legal-badge, .package-badge) svg {
    width: 16px;
    height: 16px;
    margin-right: 0.26rem;
}

body:not(.page-home) :is(.hero-cta-group, .hero-buttons) {
    margin-top: 1.45rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
}

body:not(.page-home) .btn-ultra-outline-dark,
body:not(.page-home) .hero-buttons .btn-secondary {
    background: transparent;
    border-color: var(--v4-accent-blue);
    color: var(--v4-accent-blue-dark);
}

body:not(.page-home) .btn-ultra-outline-dark:hover,
body:not(.page-home) .hero-buttons .btn-secondary:hover {
    background: var(--v4-accent-blue);
    border-color: var(--v4-accent-blue);
    color: #ffffff;
}

body:not(.page-home) section.package-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

body:not(.page-home) .package-hero-features {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

body:not(.page-home) .hero-feature {
    border-radius: 12px;
    border: 1px solid var(--v4-line);
    background: rgba(255, 255, 255, 0.74);
    padding: 0.64rem 0.72rem;
}

body:not(.page-home) .faq-section.faq-standard {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 4.6rem) 0;
    border-top: 1px solid var(--v4-line);
    background: linear-gradient(180deg, #f8f9fb 0%, #eef2f6 100%);
}

body:not(.page-home) .faq-section.faq-standard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--v4-accent-blue) 32%, var(--v4-accent-gold) 68%, transparent 100%);
}

body:not(.page-home) .faq-section.faq-standard .section-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto clamp(1.8rem, 3.6vw, 2.8rem);
}

body:not(.page-home) .faq-section.faq-standard :is(.faq-container, .faq-grid) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

body:not(.page-home) .faq-section.faq-standard .faq-item {
    border-radius: var(--v4-radius-lg);
    border: 1px solid var(--v4-line);
    background: #ffffff;
    box-shadow: var(--v4-shadow-xs);
    padding: 1.05rem;
    transition: transform var(--v4-ease), box-shadow var(--v4-ease), border-color var(--v4-ease);
}

body:not(.page-home) .faq-section.faq-standard .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--v4-shadow-sm);
    border-color: var(--v4-line-strong);
}

body:not(.page-home) .faq-section.faq-standard .faq-item:nth-child(3n + 1) {
    border-left: 3px solid var(--v4-accent-blue);
}

body:not(.page-home) .faq-section.faq-standard .faq-item:nth-child(3n + 2) {
    border-left: 3px solid var(--v4-accent-gold);
}

body:not(.page-home) .faq-section.faq-standard .faq-item:nth-child(3n + 3) {
    border-left: 3px solid #73879f;
}

body:not(.page-home) .faq-section.faq-standard .faq-item > :is(h3, .faq-question) {
    position: relative;
    margin: 0;
    padding-left: 2.2rem;
    font-family: var(--v4-font-heading);
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--v4-text);
    text-align: left;
}

body:not(.page-home) .faq-section.faq-standard .faq-item > .faq-question {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: default;
}

body:not(.page-home) .faq-section.faq-standard .faq-item > :is(h3, .faq-question)::before {
    content: "?";
    position: absolute;
    left: 0;
    top: 0.02rem;
    width: 1.62rem;
    height: 1.62rem;
    border-radius: 10px;
    background: rgba(39, 94, 156, 0.13);
    color: #1c4f84;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

body:not(.page-home) .faq-section.faq-standard .faq-answer {
    margin-top: 0.58rem;
}

body:not(.page-home) .faq-section.faq-standard .faq-answer p {
    margin: 0;
    color: var(--v4-text-soft);
    font-size: 0.94rem;
    line-height: 1.6;
}

/* Webbhotell: keep section badges centered above headings */
body.page-webbhotell .section-header .section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0 auto 0.95rem;
}

/* Services CTA: ensure readable text in light theme */
html[data-theme="light"] body.page-services .cta-section-premium .cta-title-premium,
html:not([data-theme]) body.page-services .cta-section-premium .cta-title-premium {
    color: #121417;
    text-shadow: none;
}

html[data-theme="light"] body.page-services .cta-section-premium :is(.cta-subtitle-white, .cta-subtitle-premium),
html:not([data-theme]) body.page-services .cta-section-premium :is(.cta-subtitle-white, .cta-subtitle-premium) {
    color: #3a4b5d;
}

html[data-theme="light"] body.page-services .cta-section-premium .text-gradient-gold,
html:not([data-theme]) body.page-services .cta-section-premium .text-gradient-gold {
    color: var(--v4-accent-gold-dark);
    -webkit-text-fill-color: var(--v4-accent-gold-dark);
}

html[data-theme="light"] body.page-services .cta-section-premium .cta-badge,
html:not([data-theme]) body.page-services .cta-section-premium .cta-badge {
    background: rgba(227, 196, 57, 0.12);
    border-color: rgba(176, 143, 31, 0.34);
    color: #8f7417;
}

/* Webbyra SEO CTA: keep strong contrast in light theme */
html[data-theme="light"] body.page-webbyra-seo .cta-section-premium .cta-title-premium,
html:not([data-theme]) body.page-webbyra-seo .cta-section-premium .cta-title-premium {
    color: #121417;
    text-shadow: none;
}

html[data-theme="light"] body.page-webbyra-seo .cta-section-premium .cta-subtitle-premium,
html:not([data-theme]) body.page-webbyra-seo .cta-section-premium .cta-subtitle-premium {
    color: #3a4b5d;
}

html[data-theme="light"] body.page-webbyra-seo .cta-section-premium .text-gradient-gold,
html:not([data-theme]) body.page-webbyra-seo .cta-section-premium .text-gradient-gold {
    color: var(--v4-accent-gold-dark);
    -webkit-text-fill-color: var(--v4-accent-gold-dark);
}

html[data-theme="light"] body.page-webbyra-seo .cta-section-premium .cta-badge,
html:not([data-theme]) body.page-webbyra-seo .cta-section-premium .cta-badge {
    background: rgba(227, 196, 57, 0.12);
    border-color: rgba(176, 143, 31, 0.34);
    color: #8f7417;
}

html[data-theme="light"] body.page-webbyra-seo .cta-section-premium .cta-buttons-premium .btn.btn-outline,
html:not([data-theme]) body.page-webbyra-seo .cta-section-premium .cta-buttons-premium .btn.btn-outline {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #163f6c !important;
    border-color: rgba(39, 94, 156, 0.34) !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-webbyra-seo .cta-section-premium .cta-buttons-premium .btn.btn-outline:hover,
html:not([data-theme]) body.page-webbyra-seo .cta-section-premium .cta-buttons-premium .btn.btn-outline:hover {
    background: #ffffff !important;
    color: #123656 !important;
    border-color: #1f4f84 !important;
}

html[data-theme="light"] body.page-webbyra-seo .cta-section-premium .cta-buttons-premium .btn.btn-outline svg,
html:not([data-theme]) body.page-webbyra-seo .cta-section-premium .cta-buttons-premium .btn.btn-outline svg {
    color: inherit !important;
}

/* Storegate warning CTA: readable paragraph color in light mode */
html[data-theme="light"] body.page-services .storegate-backup-notice .cta-description,
html:not([data-theme]) body.page-services .storegate-backup-notice .cta-description {
    color: #2f3f52;
}

/* Datorservice booking section: v4 light-surface treatment */
html[data-theme="light"] body.page-services .booking-section,
html:not([data-theme]) body.page-services .booking-section {
    color: var(--v4-text);
    border-top: 1px solid var(--v4-line);
    border-bottom: 1px solid var(--v4-line);
    background:
        radial-gradient(circle at 16% 24%, rgba(39, 94, 156, 0.12) 0%, rgba(39, 94, 156, 0) 44%),
        radial-gradient(circle at 84% 76%, rgba(227, 196, 57, 0.12) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(136deg, #f8f9fb 0%, #eef2f7 52%, #f8fafc 100%) !important;
}

html[data-theme="light"] body.page-services .booking-section .section-title,
html:not([data-theme]) body.page-services .booking-section .section-title {
    color: var(--v4-text) !important;
    -webkit-text-fill-color: var(--v4-text) !important;
    text-shadow: none !important;
}

html[data-theme="light"] body.page-services .booking-section .booking-description,
html:not([data-theme]) body.page-services .booking-section .booking-description {
    color: var(--v4-text-soft);
    opacity: 1;
}

html[data-theme="light"] body.page-services .booking-section .booking-card,
html:not([data-theme]) body.page-services .booking-section .booking-card {
    background: #ffffff;
    border: 1px solid var(--v4-line);
    border-radius: var(--v4-radius-lg);
    box-shadow: var(--v4-shadow-sm);
    backdrop-filter: none;
}

html[data-theme="light"] body.page-services .booking-section .booking-card h3,
html:not([data-theme]) body.page-services .booking-section .booking-card h3 {
    color: var(--v4-text);
}

html[data-theme="light"] body.page-services .booking-section .booking-card :is(p, li, address, .hours),
html:not([data-theme]) body.page-services .booking-section .booking-card :is(p, li, address, .hours) {
    color: var(--v4-text-soft);
}

html[data-theme="light"] body.page-services .booking-section .booking-card li::before,
html:not([data-theme]) body.page-services .booking-section .booking-card li::before {
    color: #1f4f84;
}

html[data-theme="light"] body.page-services .booking-section .booking-phone-link,
html:not([data-theme]) body.page-services .booking-section .booking-phone-link {
    color: #1c4f84;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

html[data-theme="light"] body.page-services .booking-section .booking-phone-link:hover,
html:not([data-theme]) body.page-services .booking-section .booking-phone-link:hover {
    color: #123d69;
}

html[data-theme="light"] body.page-services .booking-section .booking-cta .btn,
html:not([data-theme]) body.page-services .booking-section .booking-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 250px;
}

html[data-theme="light"] body.page-services .booking-section .booking-cta .btn svg,
html:not([data-theme]) body.page-services .booking-section .booking-cta .btn svg {
    margin-right: 0;
    vertical-align: middle;
}

html[data-theme="light"] body.page-services .booking-section .booking-cta .booking-call-btn,
html:not([data-theme]) body.page-services .booking-section .booking-cta .booking-call-btn {
    background: linear-gradient(135deg, #1f5ea3 0%, #174980 100%);
    border-color: #1f5ea3;
    color: #ffffff;
}

html[data-theme="light"] body.page-services .booking-section .booking-cta .booking-call-btn:hover,
html:not([data-theme]) body.page-services .booking-section .booking-cta .booking-call-btn:hover {
    background: linear-gradient(135deg, #174980 0%, #123c69 100%);
    border-color: #174980;
}

html[data-theme="light"] body.page-services .booking-section .booking-cta .booking-mail-btn,
html:not([data-theme]) body.page-services .booking-section .booking-cta .booking-mail-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #163f6c !important;
    border-color: rgba(39, 94, 156, 0.34) !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.page-services .booking-section .booking-cta .booking-mail-btn:hover,
html:not([data-theme]) body.page-services .booking-section .booking-cta .booking-mail-btn:hover {
    background: #ffffff !important;
    color: #123656 !important;
    border-color: #1f4f84 !important;
}

/* Webbhotell: restore clear CTA surface in light mode */
html[data-theme="light"] body.page-webbhotell .cta-section-premium,
html:not([data-theme]) body.page-webbhotell .cta-section-premium {
    border-top: 1px solid var(--v4-line);
    border-bottom: 1px solid var(--v4-line);
    background:
        radial-gradient(circle at 16% 28%, rgba(39, 94, 156, 0.12) 0%, rgba(39, 94, 156, 0) 46%),
        radial-gradient(circle at 84% 76%, rgba(227, 196, 57, 0.12) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(138deg, #f4f7fb 0%, #eceff4 50%, #f6f8fb 100%) !important;
}

html[data-theme="light"] body.page-webbhotell .cta-section-premium::before,
html:not([data-theme]) body.page-webbhotell .cta-section-premium::before {
    background:
        radial-gradient(circle at 24% 36%, rgba(227, 196, 57, 0.14) 0%, rgba(227, 196, 57, 0) 46%),
        radial-gradient(circle at 72% 62%, rgba(39, 94, 156, 0.1) 0%, rgba(39, 94, 156, 0) 48%) !important;
}

html[data-theme="light"] body.page-webbhotell .cta-section-premium::after,
html:not([data-theme]) body.page-webbhotell .cta-section-premium::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(39, 94, 156, 0.38) 28%,
        rgba(227, 196, 57, 0.52) 50%,
        rgba(39, 94, 156, 0.38) 72%,
        transparent 100%
    ) !important;
}

/* Webbdrift: align package CTA with v4 CTA spacing/typography in light mode */
html[data-theme="light"] body.page-webbdrift .package-cta-section.package-cta-light,
html:not([data-theme]) body.page-webbdrift .package-cta-section.package-cta-light {
    padding: clamp(3.4rem, 6vw, 5.2rem) 0;
    border-top: 1px solid var(--v4-line);
    border-bottom: 1px solid var(--v4-line);
    background:
        radial-gradient(circle at 16% 40%, rgba(124, 138, 156, 0.16) 0%, transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(227, 196, 57, 0.12) 0%, transparent 48%),
        linear-gradient(132deg, #f8f8f9 0%, #f1f2f4 52%, #e9ebee 100%) !important;
}

html[data-theme="light"] body.page-webbdrift .package-cta-section.package-cta-light .package-cta-content,
html:not([data-theme]) body.page-webbdrift .package-cta-section.package-cta-light .package-cta-content {
    max-width: 880px;
    margin: 0 auto;
}

html[data-theme="light"] body.page-webbdrift .package-cta-section.package-cta-light .package-cta-content h2,
html:not([data-theme]) body.page-webbdrift .package-cta-section.package-cta-light .package-cta-content h2 {
    margin: 0;
    font-family: var(--v4-font-heading);
    font-size: clamp(2.2rem, 5.2vw, 4.3rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--v4-text);
    text-shadow: none;
}

html[data-theme="light"] body.page-webbdrift .package-cta-section.package-cta-light .package-cta-content > p,
html:not([data-theme]) body.page-webbdrift .package-cta-section.package-cta-light .package-cta-content > p {
    margin: 1rem auto 1.7rem;
    max-width: 700px;
    font-size: clamp(1.02rem, 1.8vw, 1.18rem);
    line-height: 1.7;
    color: var(--v4-text-soft);
}

html[data-theme="light"] body.page-webbdrift .package-cta-section.package-cta-light .package-cta-content .btn,
html:not([data-theme]) body.page-webbdrift .package-cta-section.package-cta-light .package-cta-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 2.15rem;
    border-radius: 12px;
    font-size: 1.02rem;
    font-weight: 700;
    background: var(--wf-blue);
    color: #ffffff;
}

html[data-theme="light"] body.page-webbdrift .package-cta-section.package-cta-light .package-cta-content .btn:hover,
html:not([data-theme]) body.page-webbdrift .package-cta-section.package-cta-light .package-cta-content .btn:hover {
    background: #0052a3;
    color: #ffffff;
}

html[data-theme="dark"] body:not(.page-home) section:is(
    .hero-mesh,
    .hero-faq,
    .hero-legal-premium,
    .hero-local-service,
    .hero-buy-computer,
    .hero-mesh-compact,
    .hero-section,
    .hero-webbdrift,
    .hero-security,
    .hero-service,
    .hero,
    .package-hero
) {
    background: none !important;
    border-bottom-color: var(--v4-line);
}

html[data-theme="dark"] body:not(.page-home) :is(
    .hero-title-ultra,
    .hero-title,
    .hero-legal-title,
    .package-hero-title
) {
    color: #edf2f8;
}

html[data-theme="dark"] body:not(.page-home) :is(
    .hero-subtitle-ultra,
    .hero-subtitle,
    .hero-legal-subtitle,
    .package-hero-tagline
) {
    color: #c7d0db;
}

html[data-theme="dark"] body:not(.page-home) :is(
    .hero-badge,
    .hero-legal-badge,
    .section-badge,
    .package-badge
) {
    background: rgba(20, 27, 35, 0.72);
    border-color: rgba(204, 214, 226, 0.34);
    color: #d9e2ec;
}

html[data-theme="dark"] body:not(.page-home) .hero-feature {
    background: rgba(25, 33, 43, 0.86);
    border-color: var(--v4-line);
    color: #d7e5f5;
}

html[data-theme="dark"] body:not(.page-home) .faq-section.faq-standard {
    background: linear-gradient(180deg, #14181f 0%, #1b2028 100%);
}

html[data-theme="dark"] body:not(.page-home) .faq-section.faq-standard .faq-item {
    background: linear-gradient(170deg, #1d222b 0%, #252c37 100%);
    border-color: var(--v4-line);
}

html[data-theme="dark"] body:not(.page-home) .faq-section.faq-standard .faq-item > :is(h3, .faq-question) {
    color: #eef2f7;
}

html[data-theme="dark"] body:not(.page-home) .faq-section.faq-standard .faq-answer p {
    color: rgba(214, 223, 234, 0.86);
}

html[data-theme="dark"] body:not(.page-home) .faq-section.faq-standard .faq-item > :is(h3, .faq-question)::before {
    background: rgba(121, 140, 168, 0.22);
    color: #e1e8f1;
}

/* FAQ page (V4 layout model) */
.page-faq .hero-faq.faq-v4-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.2rem, 6vw, 4.8rem) 0 clamp(2.4rem, 4vw, 3.2rem);
    border-bottom: 1px solid var(--v4-line);
    background:
        radial-gradient(circle at 14% 18%, rgba(47, 119, 200, 0.14) 0%, rgba(47, 119, 200, 0) 42%),
        radial-gradient(circle at 86% 8%, rgba(227, 196, 57, 0.18) 0%, rgba(227, 196, 57, 0) 36%),
        linear-gradient(180deg, #f8fafd 0%, #edf2f7 100%);
}

.page-faq .hero-faq.faq-v4-hero .hero-gradient-overlay {
    opacity: 0.55;
    background: radial-gradient(circle at 80% 16%, rgba(39, 94, 156, 0.12) 0%, transparent 60%);
    animation: none;
}

.page-faq .hero-faq.faq-v4-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
    text-align: center;
}

.page-faq .hero-faq.faq-v4-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    min-height: 32px;
    padding: 0.22rem 0.72rem;
    border-radius: var(--v4-radius-pill);
    border: 1px solid rgba(39, 94, 156, 0.25);
    background: rgba(255, 255, 255, 0.8);
    color: #1b4e82;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-faq .hero-faq.faq-v4-hero .faq-icon {
    width: 17px;
    height: 17px;
}

.page-faq .hero-faq.faq-v4-hero .hero-title {
    margin: 0.82rem 0 0.62rem;
    color: var(--v4-text);
    font-family: var(--v4-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
}

.page-faq .hero-faq.faq-v4-hero .hero-subtitle {
    margin: 0 auto;
    max-width: 760px;
    color: var(--v4-text-soft);
    font-size: clamp(1rem, 2.2vw, 1.16rem);
}

.page-faq .faq-search-box {
    position: relative;
    max-width: 680px;
    margin: 1.3rem auto 0;
}

.page-faq .faq-search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #5a6d84;
}

.page-faq .faq-search-input {
    width: 100%;
    min-height: 48px;
    padding: 0.72rem 0.92rem 0.72rem 2.65rem;
    border-radius: 12px;
    border: 1px solid var(--v4-line-strong);
    background: rgba(255, 255, 255, 0.92);
    color: var(--v4-text);
    font-size: 0.96rem;
    transition: border-color var(--v4-ease), box-shadow var(--v4-ease), background-color var(--v4-ease);
}

.page-faq .faq-search-input::placeholder {
    color: #607185;
}

.page-faq .faq-search-input:focus {
    outline: none;
    border-color: rgba(39, 94, 156, 0.45);
    box-shadow: 0 0 0 3px rgba(39, 94, 156, 0.14);
    background: #ffffff;
}

.page-faq .faq-categories-section.faq-v4-categories {
    padding: 1rem 0 1.35rem;
    border-bottom: 1px solid var(--v4-line);
    background: linear-gradient(180deg, #f2f5f9 0%, #edf1f6 100%);
}

.page-faq .category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.54rem;
    overflow: visible;
    padding: 0;
}

.page-faq .category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.24rem 0.74rem;
    border-radius: 999px;
    border: 1px solid var(--v4-line);
    background: rgba(255, 255, 255, 0.88);
    color: #2b415a;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--v4-ease), background-color var(--v4-ease), color var(--v4-ease), transform var(--v4-ease);
    white-space: nowrap;
}

.page-faq .category-tab svg {
    width: 15px;
    height: 15px;
}

.page-faq .category-tab:hover {
    border-color: rgba(39, 94, 156, 0.4);
    color: #163f67;
}

.page-faq .category-tab.active {
    border-color: #1f4f82;
    background: #1f4f82;
    color: #f7fbff;
}

.page-faq .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    min-height: 19px;
    padding: 0 0.34rem;
    border-radius: 999px;
    background: rgba(17, 44, 71, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
}

.page-faq .category-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

.page-faq .faq-content-section.faq-v4-content {
    padding: clamp(2.2rem, 5vw, 3.4rem) 0;
    background: linear-gradient(180deg, #f3f6fa 0%, #edf1f5 100%);
}

.page-faq .faq-grid {
    display: grid;
    gap: 1.35rem;
    max-width: none;
    margin: 0;
}

.page-faq .faq-category-group {
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.page-faq .faq-category-group[hidden] {
    display: none;
}

.page-faq .category-heading {
    margin: 0 0 0.9rem;
    padding-bottom: 0;
    border-bottom: 0;
    color: var(--v4-text);
    font-family: var(--v4-font-heading);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.2;
}

.page-faq .faq-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.62rem;
}

.page-faq .faq-item {
    border-radius: 12px;
    border: 1px solid var(--v4-line);
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
    transition: border-color var(--v4-ease), background-color var(--v4-ease);
}

.page-faq .faq-item[hidden] {
    display: none;
}

.page-faq .faq-item:hover {
    border-color: var(--v4-line-strong);
    background: rgba(255, 255, 255, 0.96);
}

.page-faq .faq-question {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1rem;
    border: 0;
    background: transparent;
    color: var(--v4-text);
    text-align: left;
    cursor: pointer;
}

.page-faq .question-text {
    margin: 0;
    color: var(--v4-text);
    font-family: var(--v4-font-heading);
    font-size: 1.01rem;
    line-height: 1.32;
}

.page-faq .faq-toggle-icon {
    width: 1.28rem;
    height: 1.28rem;
    color: #1f4f82;
    padding: 0.18rem;
    border-radius: 999px;
    border: 1px solid rgba(39, 94, 156, 0.25);
    background: rgba(39, 94, 156, 0.06);
    transition: transform var(--v4-ease);
}

.page-faq .faq-item.open .faq-toggle-icon {
    transform: rotate(180deg);
}

.page-faq .faq-answer {
    padding: 0 1rem 1rem;
}

.page-faq .faq-answer[hidden] {
    display: none;
}

.page-faq .faq-answer p {
    margin: 0;
    color: var(--v4-text-soft);
    font-size: 0.93rem;
    line-height: 1.6;
}

.page-faq .faq-item.open .faq-answer {
    border-top: 1px solid var(--v4-line);
    padding-top: 0.72rem;
}

.page-faq .faq-question:focus-visible {
    outline: 2px solid rgba(39, 94, 156, 0.45);
    outline-offset: -2px;
}

.page-faq .no-results {
    margin-top: 0.35rem;
    padding: 2.3rem 1rem;
    text-align: center;
    border-radius: var(--v4-radius-lg);
    border: 1px dashed var(--v4-line-strong);
    background: rgba(255, 255, 255, 0.68);
}

.page-faq .no-results[hidden] {
    display: none;
}

.page-faq .no-results svg {
    width: 46px;
    height: 46px;
    color: #7f91a7;
    margin: 0 auto 0.7rem;
}

.page-faq .no-results h3 {
    margin: 0;
    color: var(--v4-text);
    font-size: 1.18rem;
}

.page-faq .no-results p {
    margin: 0.3rem 0 0;
    color: var(--v4-text-soft);
}

.page-faq .cta-section-premium.faq-cta-premium {
    position: relative;
    overflow: hidden;
    padding: clamp(2.6rem, 5vw, 3.8rem) 0;
    border-top: 1px solid var(--v4-line);
    border-bottom: 1px solid var(--v4-line);
    background:
        radial-gradient(circle at 14% 18%, rgba(39, 94, 156, 0.11) 0%, rgba(39, 94, 156, 0) 46%),
        radial-gradient(circle at 84% 82%, rgba(227, 196, 57, 0.13) 0%, rgba(227, 196, 57, 0) 44%),
        linear-gradient(140deg, #f4f7fb 0%, #edf2f8 52%, #f6f8fb 100%) !important;
}

.page-faq .cta-section-premium.faq-cta-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 26% 38%, rgba(227, 196, 57, 0.12) 0%, rgba(227, 196, 57, 0) 46%),
        radial-gradient(circle at 74% 68%, rgba(39, 94, 156, 0.11) 0%, rgba(39, 94, 156, 0) 48%) !important;
    pointer-events: none;
}

.page-faq .cta-section-premium.faq-cta-premium::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(39, 94, 156, 0.4) 28%,
        rgba(227, 196, 57, 0.54) 50%,
        rgba(39, 94, 156, 0.4) 72%,
        transparent 100%
    ) !important;
    pointer-events: none;
}

.page-faq .faq-cta-premium .cta-wrapper,
.page-faq .faq-cta-premium .cta-related-links {
    position: relative;
    z-index: 2;
}

.page-faq .faq-cta-premium .cta-wrapper {
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
}

.page-faq .faq-cta-premium .cta-content-premium {
    margin-bottom: 1.05rem;
}

.page-faq .faq-cta-premium .cta-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: var(--v4-radius-pill);
    border: 1px solid rgba(39, 94, 156, 0.26);
    background: rgba(255, 255, 255, 0.78);
    color: #275e9c;
    padding: 0.12rem 0.68rem;
    margin-bottom: 0.72rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-faq .faq-cta-premium .cta-title-premium {
    margin: 0;
    font-family: var(--v4-font-heading);
    font-size: clamp(1.78rem, 4vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #121417;
    text-wrap: balance;
}

.page-faq .faq-cta-premium .text-gradient-gold {
    color: var(--v4-accent-gold-dark);
    -webkit-text-fill-color: var(--v4-accent-gold-dark);
    background: none;
}

.page-faq .faq-cta-premium .cta-subtitle-premium {
    margin: 0.8rem 0 0;
    max-width: 680px;
    color: #3a4b5d;
    font-size: clamp(0.98rem, 1.8vw, 1.08rem);
    line-height: 1.62;
}

.page-faq .faq-cta-premium .cta-buttons-premium {
    margin-top: 1.15rem;
    display: flex;
    gap: 0.62rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-faq .faq-cta-premium :is(.btn-cta-primary, .btn-cta-outline) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    min-height: 44px;
    padding: 0.68rem 1.22rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.15;
    transition: transform var(--v4-ease), background-color var(--v4-ease), border-color var(--v4-ease), color var(--v4-ease), box-shadow var(--v4-ease);
}

.page-faq .faq-cta-premium .btn-cta-primary {
    border: 1px solid #1f4f84 !important;
    background: #275e9c !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(10, 43, 80, 0.2) !important;
}

.page-faq .faq-cta-premium .btn-cta-primary::before {
    display: none !important;
}

.page-faq .faq-cta-premium .btn-cta-primary:hover {
    transform: translateY(-1px);
    border-color: #173f6a !important;
    background: #1f4f84 !important;
    color: #ffffff !important;
}

.page-faq .faq-cta-premium .btn-cta-primary svg {
    color: currentColor;
    transition: transform var(--v4-ease);
}

.page-faq .faq-cta-premium .btn-cta-primary:hover svg {
    transform: translateX(2px);
}

.page-faq .faq-cta-premium .btn-cta-outline {
    border: 1px solid rgba(39, 94, 156, 0.34);
    background: rgba(255, 255, 255, 0.9);
    color: #163f6c;
}

.page-faq .faq-cta-premium .btn-cta-outline:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: #1f4f84;
    color: #123656;
}

.page-faq .faq-cta-premium .cta-related-links {
    margin-top: 1.18rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(39, 94, 156, 0.18);
    text-align: left;
}

.page-faq .faq-cta-premium .related-label {
    display: block;
    margin: 0;
    color: #4f6277;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.page-faq .faq-cta-premium .related-chips {
    margin-top: 0.58rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.page-faq .faq-cta-premium .chip-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
    padding: 0.56rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(39, 94, 156, 0.34);
    background: rgba(255, 255, 255, 0.9);
    color: #163f6c;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.22;
    transition: transform var(--v4-ease), background-color var(--v4-ease), border-color var(--v4-ease), color var(--v4-ease), box-shadow var(--v4-ease);
}

.page-faq .faq-cta-premium .chip-link:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: #1f4f84;
    color: #123656;
    box-shadow: 0 8px 16px rgba(16, 48, 84, 0.12);
}

.page-faq .faq-help-section.faq-help-v4 {
    padding: clamp(2.4rem, 5vw, 3.6rem) 0;
    border-top: 1px solid var(--v4-line);
    background: linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
}

.page-faq .faq-help-panel {
    border: 1px solid var(--v4-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fbff 100%);
    border-radius: var(--v4-radius-lg);
    box-shadow: var(--v4-shadow-sm);
    padding: clamp(1.1rem, 2.4vw, 1.7rem);
}

.page-faq .faq-help-header {
    max-width: 760px;
    text-align: left;
}

.page-faq .faq-help-kicker {
    margin: 0 0 0.36rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #275e9c;
}

.page-faq .faq-help-header h3 {
    margin: 0;
    color: var(--v4-text);
    font-family: var(--v4-font-heading);
    font-size: 1.22rem;
    line-height: 1.25;
}

.page-faq .faq-help-copy {
    margin: 0.42rem 0 0;
    color: var(--v4-text-soft);
    max-width: 700px;
    line-height: 1.6;
}

.page-faq .faq-help-primary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.58rem;
    flex-wrap: wrap;
    margin-top: 0.95rem;
}

.page-faq .faq-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.68rem 1.22rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: transform var(--v4-ease), box-shadow var(--v4-ease), background-color var(--v4-ease), color var(--v4-ease), border-color var(--v4-ease);
}

.page-faq .faq-help-btn:hover {
    transform: translateY(-1px);
}

.page-faq .faq-help-btn-primary {
    background: #275e9c;
    border-color: #1f4f84;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(10, 43, 80, 0.2);
}

.page-faq .faq-help-btn-primary:hover {
    background: #1f4f84;
    border-color: #173f6a;
    color: #ffffff;
}

.page-faq .faq-help-btn-outline {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(39, 94, 156, 0.34);
    color: #163f6c;
}

.page-faq .faq-help-btn-outline:hover {
    background: #ffffff;
    border-color: #1f4f84;
    color: #123656;
}

.page-faq .faq-help-divider {
    margin: 1rem 0 0.95rem;
    height: 1px;
    background: var(--v4-line);
}

.page-faq .faq-help-secondary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.58rem;
}

.page-faq .faq-help-chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
    padding: 0.58rem 0.82rem;
    border-radius: 10px;
    border: 1px solid rgba(39, 94, 156, 0.34);
    background: rgba(255, 255, 255, 0.88);
    color: #163f6c;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    transition: transform var(--v4-ease), background-color var(--v4-ease), border-color var(--v4-ease), color var(--v4-ease), box-shadow var(--v4-ease);
}

.page-faq .faq-help-chip:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: #1f4f84;
    color: #123656;
    box-shadow: 0 8px 16px rgba(16, 48, 84, 0.12);
}

html[data-theme="dark"] .page-faq .hero-faq.faq-v4-hero {
    background:
        radial-gradient(circle at 14% 18%, rgba(86, 138, 201, 0.18) 0%, rgba(86, 138, 201, 0) 42%),
        radial-gradient(circle at 86% 8%, rgba(227, 196, 57, 0.14) 0%, rgba(227, 196, 57, 0) 36%),
        linear-gradient(180deg, #161b23 0%, #1c222b 100%) !important;
}

html[data-theme="dark"] .page-faq .hero-faq.faq-v4-hero .hero-badge {
    border-color: rgba(181, 197, 217, 0.35);
    background: rgba(22, 29, 38, 0.72);
    color: #d7e5f4;
}

html[data-theme="dark"] .page-faq .hero-faq.faq-v4-hero .hero-subtitle {
    color: rgba(219, 228, 238, 0.86);
}

html[data-theme="dark"] .page-faq .faq-search-input {
    border-color: var(--v4-line-strong);
    background: rgba(20, 26, 34, 0.75);
    color: var(--v4-text);
}

html[data-theme="dark"] .page-faq .faq-search-input::placeholder {
    color: #a4b4c7;
}

html[data-theme="dark"] .page-faq .faq-categories-section.faq-v4-categories,
html[data-theme="dark"] .page-faq .faq-content-section.faq-v4-content,
html[data-theme="dark"] .page-faq .faq-help-section.faq-help-v4 {
    background: linear-gradient(180deg, #14181f 0%, #1b2028 100%);
}

html[data-theme="dark"] .page-faq .category-tab {
    border-color: var(--v4-line);
    background: rgba(28, 35, 45, 0.84);
    color: #d8e2ee;
}

html[data-theme="dark"] .page-faq .category-tab.active {
    border-color: rgba(196, 212, 231, 0.44);
    background: rgba(53, 79, 109, 0.9);
    color: #f6faff;
}

html[data-theme="dark"] .page-faq .tab-count {
    background: rgba(205, 218, 233, 0.2);
}

html[data-theme="dark"] .page-faq .faq-category-group {
    background: transparent;
    border-color: var(--v4-line);
}

html[data-theme="dark"] .page-faq .faq-item {
    background: linear-gradient(170deg, #1d232d 0%, #252c37 100%);
    border-color: var(--v4-line);
}

html[data-theme="dark"] .page-faq .faq-toggle-icon {
    color: #d7e5f5;
    border-color: rgba(196, 212, 231, 0.3);
    background: rgba(105, 129, 157, 0.18);
}

html[data-theme="dark"] .page-faq .no-results {
    border-color: var(--v4-line-strong);
    background: rgba(24, 31, 40, 0.72);
}

html[data-theme="dark"] .page-faq .cta-section-premium.faq-cta-premium {
    border-top-color: var(--v4-line);
    border-bottom-color: var(--v4-line);
    background:
        radial-gradient(circle at 16% 20%, rgba(86, 138, 201, 0.2) 0%, rgba(86, 138, 201, 0) 44%),
        radial-gradient(circle at 84% 82%, rgba(227, 196, 57, 0.15) 0%, rgba(227, 196, 57, 0) 42%),
        linear-gradient(180deg, #151a22 0%, #1d2430 100%) !important;
}

html[data-theme="dark"] .page-faq .cta-section-premium.faq-cta-premium::before {
    background:
        radial-gradient(circle at 24% 36%, rgba(227, 196, 57, 0.14) 0%, rgba(227, 196, 57, 0) 44%),
        radial-gradient(circle at 76% 68%, rgba(86, 138, 201, 0.16) 0%, rgba(86, 138, 201, 0) 48%) !important;
}

html[data-theme="dark"] .page-faq .cta-section-premium.faq-cta-premium::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(152, 181, 217, 0.46) 28%,
        rgba(227, 196, 57, 0.58) 50%,
        rgba(152, 181, 217, 0.46) 72%,
        transparent 100%
    ) !important;
}

html[data-theme="dark"] .page-faq .faq-cta-premium .cta-badge {
    border-color: rgba(190, 205, 223, 0.34);
    background: rgba(26, 33, 43, 0.74);
    color: #d7e5f4;
}

html[data-theme="dark"] .page-faq .faq-cta-premium .cta-title-premium {
    color: #f3f7fc;
}

html[data-theme="dark"] .page-faq .faq-cta-premium .text-gradient-gold {
    color: #e3c439;
    -webkit-text-fill-color: #e3c439;
}

html[data-theme="dark"] .page-faq .faq-cta-premium .cta-subtitle-premium {
    color: rgba(219, 228, 238, 0.86);
}

html[data-theme="dark"] .page-faq .faq-cta-premium .btn-cta-primary {
    border-color: #4f7fb8 !important;
    background: #3a6da8 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .page-faq .faq-cta-premium .btn-cta-primary:hover {
    border-color: #5e8fc8 !important;
    background: #4d80bb !important;
}

html[data-theme="dark"] .page-faq .faq-cta-premium :is(.btn-cta-outline, .chip-link) {
    border-color: rgba(190, 205, 223, 0.3);
    background: rgba(26, 33, 43, 0.7);
    color: #e1eaf4;
}

html[data-theme="dark"] .page-faq .faq-cta-premium :is(.btn-cta-outline, .chip-link):hover {
    background: rgba(37, 47, 61, 0.92);
    border-color: rgba(206, 220, 238, 0.5);
    box-shadow: none;
}

html[data-theme="dark"] .page-faq .faq-cta-premium .cta-related-links {
    border-top-color: var(--v4-line);
}

html[data-theme="dark"] .page-faq .faq-cta-premium .related-label {
    color: #aab9ca;
}

html[data-theme="dark"] .page-faq .faq-help-panel {
    border-color: var(--v4-line);
    background: linear-gradient(180deg, #1c2330 0%, #212a37 100%);
    box-shadow: none;
}

html[data-theme="dark"] .page-faq .faq-help-kicker {
    color: #9fc2e7;
}

html[data-theme="dark"] .page-faq .faq-help-btn-primary {
    background: #3a6da8;
    border-color: #4f7fb8;
}

html[data-theme="dark"] .page-faq .faq-help-btn-primary:hover {
    background: #4d80bb;
    border-color: #5e8fc8;
}

html[data-theme="dark"] .page-faq .faq-help-btn-outline,
html[data-theme="dark"] .page-faq .faq-help-chip {
    border-color: rgba(190, 205, 223, 0.3);
    background: rgba(26, 33, 43, 0.7);
    color: #e1eaf4;
}

html[data-theme="dark"] .page-faq .faq-help-btn-outline:hover,
html[data-theme="dark"] .page-faq .faq-help-chip:hover {
    background: rgba(37, 47, 61, 0.92);
    border-color: rgba(206, 220, 238, 0.5);
    box-shadow: none;
}

html[data-theme="dark"] .page-faq .faq-help-divider {
    background: var(--v4-line);
}

@media (max-width: 1100px) {
    .page-faq .faq-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .page-faq .faq-cta-premium .related-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-faq .faq-help-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page-faq .hero-faq.faq-v4-hero {
        padding: 2.9rem 0 2.4rem;
    }

    .page-faq .faq-categories-section.faq-v4-categories {
        padding: 0.85rem 0 1.05rem;
    }

    .page-faq .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.34rem;
    }

    .page-faq .faq-cta-premium .cta-wrapper {
        text-align: left;
    }

    .page-faq .faq-cta-premium .cta-buttons-premium {
        gap: 0.5rem;
    }

    .page-faq .faq-cta-premium :is(.btn-cta-primary, .btn-cta-outline) {
        width: 100%;
    }

    .page-faq .faq-cta-premium .related-chips {
        grid-template-columns: 1fr;
    }

    .page-faq .faq-help-panel {
        padding: 1rem;
    }

    .page-faq .faq-help-primary .faq-help-btn {
        width: 100%;
    }

    .page-faq .faq-help-secondary {
        grid-template-columns: 1fr;
    }
}

/* Webbyra page: remove legacy blue tone and align to V4 surfaces */
.page-services .page-webbyra .wf-v4-banner {
    position: relative;
    overflow: hidden;
    border-top: 0;
    border-bottom: 1px solid var(--v4-line);
    background: none !important;
    padding: clamp(3.2rem, 6vw, 5rem) 0;
}

.page-services .page-webbyra .wf-v4-banner-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.page-services .page-webbyra .wf-v4-banner-title {
    margin: 0;
    font-family: var(--v4-font-heading);
    color: #111111;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.page-services .page-webbyra .wf-v4-banner-subtitle {
    margin: 1rem auto 0;
    max-width: 760px;
    color: #36414f;
    font-size: clamp(1rem, 1.9vw, 1.2rem);
    line-height: 1.58;
}

.page-services .page-webbyra .wf-v4-banner-cta {
    margin-top: 1.45rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-services .page-webbyra .wf-v4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.68rem 1.34rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: var(--v4-font-body);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform var(--v4-ease), box-shadow var(--v4-ease), background-color var(--v4-ease), color var(--v4-ease), border-color var(--v4-ease);
}

.page-services .page-webbyra .wf-v4-btn:hover {
    transform: translateY(-1px);
}

.page-services .page-webbyra .wf-v4-btn-primary {
    background: #275e9c;
    border-color: #1f4f84;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(10, 43, 80, 0.2);
}

.page-services .page-webbyra .wf-v4-btn-primary:hover {
    background: #1f4f84;
    border-color: #173f6a;
}

.page-services .page-webbyra .wf-v4-btn-outline {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(39, 94, 156, 0.34);
    color: #163f6c;
}

.page-services .page-webbyra .wf-v4-btn-outline:hover {
    background: #ffffff;
    border-color: #1f4f84;
    color: #123656;
}

.page-services .page-webbyra :is(
    .stats-bar-section,
    .service-section,
    .why-us-section,
    .testimonials-section,
    .portfolio-section,
    .cta-section-premium,
    .faq-section.faq-standard
) {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--v4-line);
    background: linear-gradient(180deg, #f7f8fa 0%, #f1f3f6 100%) !important;
}

.page-services .page-webbyra :is(
    .service-section.alt-bg,
    .portfolio-section,
    .faq-section.faq-standard
) {
    background: linear-gradient(180deg, #f3f5f8 0%, #edf1f5 100%) !important;
}

.page-services .page-webbyra :is(
    .stats-bar-section,
    .service-section,
    .why-us-section,
    .testimonials-section,
    .portfolio-section,
    .cta-section-premium,
    .faq-section.faq-standard
)::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--v4-accent-blue) 34%,
        var(--v4-accent-gold) 66%,
        transparent 100%
    );
    animation: none;
    pointer-events: none;
    opacity: 0.78;
}

.page-services .page-webbyra .stats-bar-section {
    padding: clamp(2.5rem, 5vw, 3.6rem) 0 !important;
    border-bottom: 1px solid var(--v4-line);
}

.page-services .page-webbyra .stats-bar {
    gap: 1rem;
}

.page-services .page-webbyra .stat-item {
    background: var(--v4-surface);
    border: 1px solid var(--v4-line);
    box-shadow: var(--v4-shadow-xs);
    backdrop-filter: none;
}

.page-services .page-webbyra .stat-item:hover {
    border-color: var(--v4-line-strong);
    box-shadow: var(--v4-shadow-sm);
}

.page-services .page-webbyra .stat-number {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--v4-accent-blue-dark);
}

.page-services .page-webbyra .stat-label {
    color: var(--v4-text-soft);
}

.page-services .page-webbyra :is(
    .process-card,
    .tech-category,
    .seo-step,
    .sidebar-card,
    .highlight-box,
    .results-box,
    .benefit-card,
    .testimonial-card,
    .portfolio-card,
    .content-highlight-panel
) {
    background: var(--v4-surface);
    border: 1px solid var(--v4-line);
    border-radius: var(--v4-radius-lg);
    box-shadow: var(--v4-shadow-xs);
    padding: 15px;
}

.page-services .page-webbyra :is(.highlight-box, .results-box) {
    border-left: 3px solid var(--v4-accent-blue);
}

.page-services .page-webbyra :is(
    .highlight-box h3,
    .results-box h3,
    .benefit-card h3,
    .sidebar-card h4,
    .portfolio-title,
    .testimonial-author strong
) {
    color: var(--v4-text);
}

.page-services .page-webbyra :is(
    .lead-text,
    .benefit-card p,
    .testimonial-quote p,
    .portfolio-industry,
    .tech-category li,
    .tool-list li,
    .method-list li
) {
    color: var(--v4-text-soft);
}

.page-services .page-webbyra .step-icon,
.page-services .page-webbyra .benefit-icon {
    background: rgba(39, 94, 156, 0.08);
    border: 1px solid rgba(39, 94, 156, 0.2);
}

.page-services .page-webbyra .step-icon svg,
.page-services .page-webbyra .benefit-icon svg,
.page-services .page-webbyra .check-icon {
    color: var(--v4-accent-blue-dark);
}

.page-services .page-webbyra .sidebar-card.cta-card {
    background: linear-gradient(150deg, #f8fafd 0%, #eff3f8 100%);
    border-color: rgba(39, 94, 156, 0.24);
}

.page-services .page-webbyra .portfolio-tag {
    background: rgba(39, 94, 156, 0.12);
    color: var(--v4-accent-blue-dark);
}

.page-services .page-webbyra .cta-section-premium {
    background:
        radial-gradient(circle at 16% 28%, rgba(39, 94, 156, 0.13) 0%, rgba(39, 94, 156, 0) 48%),
        radial-gradient(circle at 84% 76%, rgba(227, 196, 57, 0.13) 0%, rgba(227, 196, 57, 0) 44%),
        linear-gradient(138deg, #f4f7fb 0%, #eceff4 50%, #f5f7fa 100%) !important;
}

.page-services .page-webbyra .cta-section-premium::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(39, 94, 156, 0.4) 28%,
        rgba(227, 196, 57, 0.55) 50%,
        rgba(39, 94, 156, 0.4) 72%,
        transparent 100%
    );
}

.page-services .page-webbyra .cta-badge {
    background: rgba(227, 196, 57, 0.13);
    border-color: rgba(176, 143, 31, 0.34);
    color: #8f7417;
}

.page-services .page-webbyra .cta-title-premium {
    color: var(--v4-text);
}

.page-services .page-webbyra .cta-subtitle-premium,
.page-services .page-webbyra .cta-trust-text {
    color: var(--v4-text-soft);
}

.page-services .page-webbyra .cta-buttons-premium .btn.btn-outline {
    border-color: rgba(39, 94, 156, 0.34);
    color: var(--v4-accent-blue-dark);
}

.page-services .page-webbyra .cta-buttons-premium .btn.btn-outline svg {
    color: inherit;
}

html[data-theme="light"] .page-services .page-webbyra .cta-buttons-premium .btn.btn-outline,
html:not([data-theme]) .page-services .page-webbyra .cta-buttons-premium .btn.btn-outline {
    background: rgba(255, 255, 255, 0.86) !important;
    color: #163f6c !important;
    border-color: rgba(39, 94, 156, 0.34) !important;
    box-shadow: none !important;
}

html[data-theme="light"] .page-services .page-webbyra .cta-buttons-premium .btn.btn-outline svg,
html:not([data-theme]) .page-services .page-webbyra .cta-buttons-premium .btn.btn-outline svg {
    color: #163f6c !important;
}

.page-services .page-webbyra .cta-buttons-premium .btn.btn-outline:hover {
    border-color: var(--v4-accent-blue);
    background: var(--v4-accent-blue);
    color: #ffffff;
}

html[data-theme="dark"] .page-services .page-webbyra :is(
    .stats-bar-section,
    .service-section,
    .why-us-section,
    .testimonials-section,
    .portfolio-section,
    .cta-section-premium,
    .faq-section.faq-standard
) {
    border-top-color: var(--v4-line);
    background: linear-gradient(180deg, #171c23 0%, #1f2530 100%) !important;
}

html[data-theme="dark"] .page-services .page-webbyra .wf-v4-banner {
    border-top: 0;
    border-bottom-color: var(--v4-line);
    background: none !important;
}

html[data-theme="dark"] .page-services .page-webbyra .wf-v4-banner-title {
    color: #edf2f8;
}

html[data-theme="dark"] .page-services .page-webbyra .wf-v4-banner-subtitle {
    color: #c9d4df;
}

html[data-theme="dark"] .page-services .page-webbyra .wf-v4-btn-primary {
    background: #edf2f8;
    border-color: rgba(237, 242, 248, 0.78);
    color: #10161f;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .page-services .page-webbyra .wf-v4-btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
}

html[data-theme="dark"] .page-services .page-webbyra .wf-v4-btn-outline {
    background: transparent;
    border-color: rgba(220, 232, 247, 0.44);
    color: #dce8f7;
}

html[data-theme="dark"] .page-services .page-webbyra .wf-v4-btn-outline:hover {
    background: rgba(220, 232, 247, 0.14);
    border-color: #dce8f7;
    color: #ffffff;
}

html[data-theme="dark"] .page-services .page-webbyra :is(
    .service-section.alt-bg,
    .portfolio-section,
    .faq-section.faq-standard
) {
    background: linear-gradient(180deg, #141920 0%, #1b212a 100%) !important;
}

html[data-theme="dark"] .page-services .page-webbyra :is(
    .process-card,
    .tech-category,
    .seo-step,
    .sidebar-card,
    .highlight-box,
    .results-box,
    .benefit-card,
    .testimonial-card,
    .portfolio-card,
    .content-highlight-panel,
    .stat-item
) {
    background: linear-gradient(170deg, #1d222b 0%, #252c37 100%);
    border-color: var(--v4-line);
}

html[data-theme="dark"] .page-services .page-webbyra :is(
    .lead-text,
    .benefit-card p,
    .testimonial-quote p,
    .portfolio-industry,
    .tech-category li,
    .tool-list li,
    .method-list li,
    .cta-subtitle-premium,
    .cta-trust-text,
    .stat-label
) {
    color: rgba(214, 223, 234, 0.88);
}

html[data-theme="dark"] .page-services .page-webbyra :is(
    .highlight-box h3,
    .results-box h3,
    .benefit-card h3,
    .sidebar-card h4,
    .portfolio-title,
    .testimonial-author strong,
    .cta-title-premium
) {
    color: #edf2f8;
}

html[data-theme="dark"] .page-services .page-webbyra .stat-number {
    color: #dce8f7;
}

html[data-theme="dark"] .page-services .page-webbyra .step-icon,
html[data-theme="dark"] .page-services .page-webbyra .benefit-icon {
    background: rgba(121, 140, 168, 0.2);
    border-color: rgba(121, 140, 168, 0.36);
}

html[data-theme="dark"] .page-services .page-webbyra .step-icon svg,
html[data-theme="dark"] .page-services .page-webbyra .benefit-icon svg,
html[data-theme="dark"] .page-services .page-webbyra .check-icon {
    color: #d7e5f5;
}

html[data-theme="dark"] .page-services .page-webbyra .sidebar-card.cta-card {
    background: linear-gradient(160deg, #1f2530 0%, #27303d 100%);
    border-color: rgba(198, 210, 223, 0.3);
}

html[data-theme="dark"] .page-services .page-webbyra .portfolio-tag {
    background: rgba(121, 140, 168, 0.24);
    color: #dce8f7;
}

html[data-theme="dark"] .page-services .page-webbyra .cta-section-premium {
    background:
        radial-gradient(circle at 16% 28%, rgba(121, 140, 168, 0.2) 0%, rgba(121, 140, 168, 0) 48%),
        radial-gradient(circle at 84% 76%, rgba(227, 196, 57, 0.14) 0%, rgba(227, 196, 57, 0) 44%),
        linear-gradient(138deg, #171b22 0%, #212833 50%, #1a2028 100%) !important;
}

html[data-theme="dark"] .page-services .page-webbyra .cta-badge {
    background: rgba(227, 196, 57, 0.15);
    border-color: rgba(227, 196, 57, 0.38);
    color: #e7d786;
}

html[data-theme="dark"] .page-services .page-webbyra .cta-buttons-premium .btn.btn-outline {
    border-color: rgba(214, 223, 234, 0.46);
    color: #dce8f7;
}

html[data-theme="dark"] .page-services .page-webbyra .cta-buttons-premium .btn.btn-outline:hover {
    border-color: #dce8f7;
    background: rgba(220, 232, 247, 0.14);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1230px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(390px, 92vw);
        height: 100vh;
        background: var(--v4-surface);
        border-left: 1px solid var(--v4-line);
        box-shadow: var(--v4-shadow-md);
        padding: calc(var(--v4-header-height) + 0.9rem) 0.9rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.72rem;
        transform: translateX(100%);
        transition: transform var(--v4-ease);
        z-index: 1100;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .nav-link {
        justify-content: space-between;
        width: 100%;
        min-height: 44px;
    }

    .dropdown-menu,
    .mega-menu,
    .dropdown-menu-simple {
        position: static;
        width: 100%;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 10px;
        display: none;
        margin-top: 0.22rem;
    }

    .mega-menu {
        grid-template-columns: 1fr;
        padding: 0.45rem;
    }

    .nav-item.dropdown.active > .dropdown-menu,
    .nav-item.dropdown.active > .dropdown-menu-simple {
        display: block;
    }

    .language-switcher-dropdown,
    .theme-toggle,
    .nav-cta {
        width: 100%;
    }

    .lang-dropdown-toggle,
    .theme-toggle,
    .nav-cta .btn {
        width: 100%;
    }

    .nav-cta {
        display: grid;
        gap: 0.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-badges {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    body:not(.page-home) section:is(
        .hero-mesh,
        .hero-faq,
        .hero-legal-premium,
        .hero-local-service,
        .hero-buy-computer,
        .hero-mesh-compact,
        .hero-section,
        .hero-webbdrift,
        .hero-security,
        .hero-service,
        .hero,
        .package-hero
    ) {
        padding: clamp(2.8rem, 6vw, 4rem) 0;
    }

    body:not(.page-home) .faq-section.faq-standard :is(.faq-container, .faq-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-home .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.2rem;
        padding-bottom: 2rem;
    }

    .page-home .hero-content-ultra {
        margin: 0 auto;
        text-align: center;
        padding: 1.8rem 0 0.8rem;
    }

    .hero-badges,
    .page-home .hero-cta-group {
        justify-content: center;
    }

    .page-home .hero-subtitle-ultra {
        margin-left: auto;
        margin-right: auto;
    }

    .page-home .hero-image {
        position: relative;
        right: auto;
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .page-home .stats-grid,
    .page-home .home-v4-services-grid,
    .page-home .home-v4-blog-grid,
    .page-home .faq-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-home .home-v4-security-grid,
    .page-home .home-v4-made-grid {
        grid-template-columns: 1fr;
    }

    .page-home .home-v4-security .section-title,
    .page-home .home-v4-made .section-title-modern {
        text-align: center;
    }

    .trust-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-services .page-webbyra .wf-v4-banner {
        padding: clamp(2.8rem, 6vw, 4rem) 0;
    }
}

@media (max-width: 760px) {
    .main-content {
        margin-top: 74px;
    }

    :root {
        --v4-header-height: 74px;
    }

    .page-home .hero-mesh {
        padding: 2.8rem 0 0;
    }

    .page-home .hero-title-ultra {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
        line-height: 0.95;
    }

    .page-home .hero-subtitle-ultra {
        font-size: 1rem;
        line-height: 1.55;
    }

    .page-home .hero-badge {
        min-height: 26px;
        padding: 0.1rem 0.52rem;
        font-size: 0.66rem;
        letter-spacing: 0.03em;
    }

    .page-home .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    body:not(.page-home) :is(.hero-cta-group, .hero-buttons) {
        flex-direction: column;
        align-items: center;
    }

    body:not(.page-home) :is(.btn, .btn-ultra, .btn-cta-primary) {
        width: min(100%, 320px);
    }

    body:not(.page-home) .package-hero-features {
        grid-template-columns: 1fr;
    }

    body:not(.page-home) .faq-section.faq-standard :is(.faq-container, .faq-grid) {
        grid-template-columns: 1fr;
    }

    .page-services .page-webbyra .wf-v4-banner-cta {
        flex-direction: column;
        align-items: center;
    }

    .page-services .page-webbyra .wf-v4-btn {
        width: min(100%, 320px);
    }

    .btn,
    .btn-ultra,
    .btn-cta-primary {
        width: min(100%, 320px);
    }

    .page-home :is(
        .home-v4-services,
        .home-v4-security,
        .home-v4-cta,
        .home-v4-blog,
        .home-v4-faq,
        .home-v4-made
    ) {
        padding: 2.6rem 0;
    }

    .page-home .stats-grid,
    .page-home .home-v4-services-grid,
    .page-home .home-v4-blog-grid,
    .page-home .faq-grid-home {
        grid-template-columns: 1fr;
    }

    .page-home .logo-item {
        min-width: 152px;
        height: 62px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-features {
        grid-template-columns: 1fr;
    }
}
