/* ===== CSS Custom Properties for Themes ===== */
:root {
    color-scheme: light dark;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --border-color: #e0e0e0;
    --header-bg: rgba(255, 255, 255, 0.3);
    --header-border: rgba(0, 0, 0, 0.1);
    --toggle-bg: rgba(255, 255, 255, 0.6);
    --toggle-border: rgba(0, 0, 0, 0.2);
    --toggle-hover-bg: rgba(0, 0, 0, 0.1);
    --toggle-hover-border: rgba(0, 0, 0, 0.3);
    --breadcrumb-bg: rgba(255, 255, 255, 0.18);
    --breadcrumb-border: rgba(0, 0, 0, 0.08);
    --back-to-top-bg: rgba(255, 255, 255, 0.3);
    --back-to-top-border: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --border-color: #e0e0e0;
    --header-bg: rgba(255, 255, 255, 0.3);
    --header-border: rgba(0, 0, 0, 0.1);
    --toggle-bg: rgba(255, 255, 255, 0.6);
    --toggle-border: rgba(0, 0, 0, 0.2);
    --toggle-hover-bg: rgba(0, 0, 0, 0.1);
    --toggle-hover-border: rgba(0, 0, 0, 0.3);
    --breadcrumb-bg: rgba(255, 255, 255, 0.22);
    --breadcrumb-border: rgba(0, 0, 0, 0.08);
    --back-to-top-bg: rgba(255, 255, 255, 0.3);
    --back-to-top-border: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-primary: #60a5fa;
    --accent-secondary: #a78bfa;
    --border-color: #333333;
    --header-bg: rgba(15, 15, 15, 0.3);
    --header-border: rgba(255, 255, 255, 0.1);
    --toggle-bg: rgba(30, 30, 30, 0.6);
    --toggle-border: rgba(255, 255, 255, 0.2);
    --toggle-hover-bg: rgba(255, 255, 255, 0.1);
    --toggle-hover-border: rgba(255, 255, 255, 0.3);
    --breadcrumb-bg: rgba(15, 15, 15, 0.2);
    --breadcrumb-border: rgba(255, 255, 255, 0.08);
    --back-to-top-bg: rgba(15, 15, 15, 0.3);
    --back-to-top-border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"],
    :root:not([data-theme]) {
        --bg-primary: #ffffff;
        --bg-secondary: #f5f5f5;
        --text-primary: #1a1a1a;
        --text-secondary: #666666;
        --accent-primary: #3b82f6;
        --accent-secondary: #8b5cf6;
        --border-color: #e0e0e0;
        --header-bg: rgba(255, 255, 255, 0.3);
        --header-border: rgba(0, 0, 0, 0.1);
        --toggle-bg: rgba(255, 255, 255, 0.6);
        --toggle-border: rgba(0, 0, 0, 0.2);
        --toggle-hover-bg: rgba(0, 0, 0, 0.1);
        --toggle-hover-border: rgba(0, 0, 0, 0.3);
        --breadcrumb-bg: rgba(255, 255, 255, 0.22);
        --breadcrumb-border: rgba(0, 0, 0, 0.08);
        --back-to-top-bg: rgba(255, 255, 255, 0.3);
        --back-to-top-border: rgba(0, 0, 0, 0.1);
        --shadow: rgba(0, 0, 0, 0.1);
    }
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="system"],
    :root:not([data-theme]) {
        --bg-primary: #0f0f0f;
        --bg-secondary: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --accent-primary: #60a5fa;
        --accent-secondary: #a78bfa;
        --border-color: #333333;
        --header-bg: rgba(15, 15, 15, 0.3);
        --header-border: rgba(255, 255, 255, 0.1);
        --toggle-bg: rgba(30, 30, 30, 0.6);
        --toggle-border: rgba(255, 255, 255, 0.2);
        --toggle-hover-bg: rgba(255, 255, 255, 0.1);
        --toggle-hover-border: rgba(255, 255, 255, 0.3);
        --breadcrumb-bg: rgba(15, 15, 15, 0.2);
        --breadcrumb-border: rgba(255, 255, 255, 0.08);
        --back-to-top-bg: rgba(15, 15, 15, 0.3);
        --back-to-top-border: rgba(255, 255, 255, 0.1);
        --shadow: rgba(0, 0, 0, 0.3);
    }
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a,
a:hover,
a:focus,
a:visited {
    text-decoration: none;
}

a,
a:visited {
    color: inherit;
}

a:hover,
a:focus {
    color: var(--accent-primary);
}

/* ===== Cookie Consent ===== */
.cookie-consent {
    position: fixed;
    z-index: 1000;
    left: 1rem;
    bottom: 1rem;
    width: min(34rem, calc(100vw - 2rem));
    padding: 1.25rem;
    color: var(--text-primary);
    border: 1px solid var(--header-border);
    border-radius: 1rem;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px var(--shadow);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-title {
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.cookie-consent p:not(.cookie-consent-title) {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
}

.cookie-consent .cookie-consent-error {
    color: #b42318;
}

.cookie-consent a {
    color: var(--accent-primary);
    text-underline-offset: 0.15em;
}

.cookie-consent-preferences {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cookie-consent-preferences[hidden] {
    display: none;
}

.cookie-consent-preferences label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
}

.cookie-consent-preferences input {
    margin-top: 0.25rem;
    accent-color: var(--accent-primary);
}

.cookie-consent-preferences small {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-secondary);
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-consent-actions button {
    min-height: 2.5rem;
    padding: 0.55rem 0.8rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    background: var(--bg-secondary);
    font: inherit;
    cursor: pointer;
}

.cookie-consent-actions button:last-of-type {
    border-color: var(--accent-primary);
}

.cookie-consent-actions button:focus-visible,
.cookie-consent-preferences input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .cookie-consent {
        top: max(10px, env(safe-area-inset-top));
        right: 10px;
        bottom: auto;
        left: 10px;
        width: auto;
        max-height: calc(100dvh - 100px - env(safe-area-inset-top));
        overflow-y: auto;
        padding: 0.85rem;
        border-radius: 16px;
    }

    .cookie-consent-title {
        margin-bottom: 0.35rem;
        font-size: 0.95rem;
    }

    .cookie-consent p:not(.cookie-consent-title) {
        margin-bottom: 0.65rem;
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .cookie-consent-preferences {
        gap: 0.5rem;
        margin-bottom: 0.65rem;
        font-size: 0.85rem;
    }

    .cookie-consent-preferences small {
        font-size: 0.75rem;
    }

    .cookie-consent-actions {
        gap: 0.4rem;
    }

    .cookie-consent-actions button {
        min-height: 2.25rem;
        padding: 0.45rem 0.6rem;
        font-size: 0.78rem;
    }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 15px;
    left: 50%;
    border: 1px solid var(--header-border);
    border-radius: 16px;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    z-index: 100;
    width: calc(100vw - 30px);
    max-width: 1200px;
    padding: 12px 24px;
}

.header.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-logo-svg {
    color: var(--text-primary);
    display: block;
    transition: color 0.3s ease;
}

.header-nav {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    /* text-transform: uppercase; */
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-btns {
    display: flex;
    align-items: center;
}

.header-theme-switcher {
    display: flex;
    gap: 8px;
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
    align-items: center;
}

.header-call-btn {
    padding-left: 20px;
}

/* Theme Toggle Switch */
.theme-toggle-wrapper {
    cursor: pointer;
    user-select: none;
}

.theme-toggle-checkbox {
    display: none;
}

.theme-toggle-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 28px;
    background-color: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    border-radius: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle-wrapper:hover .theme-toggle-slider {
    background-color: var(--toggle-hover-bg);
    border-color: var(--toggle-hover-border);
}

.theme-toggle-label {
    position: absolute;
    font-size: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle-label:first-child {
    left: 8px;
    opacity: 1;
    transform: scale(1);
}

.theme-toggle-label:last-child {
    right: 8px;
    opacity: 0.3;
    transform: scale(0.8);
}

.theme-toggle-checkbox:checked ~ .theme-toggle-slider .theme-toggle-label:first-child {
    opacity: 0.3;
    transform: scale(0.8);
}

.theme-toggle-checkbox:checked ~ .theme-toggle-slider .theme-toggle-label:last-child {
    opacity: 1;
    transform: scale(1);
}

/* SVG Icons in Toggle */
.theme-toggle-icon {
    position: absolute;
    color: var(--text-primary);
    transition: opacity 0.3s ease, transform 0.3s ease;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.theme-toggle-icon:first-of-type {
    left: 8px;
    opacity: 1;
    transform: scale(1);
}

.theme-toggle-icon:last-of-type {
    right: 8px;
    opacity: 0.3;
    transform: scale(0.8);
}

.theme-toggle-checkbox:checked ~ .theme-toggle-slider .theme-toggle-icon:first-of-type {
    opacity: 0.3;
    transform: scale(0.8);
}

.theme-toggle-checkbox:checked ~ .theme-toggle-slider .theme-toggle-icon:last-of-type {
    opacity: 1;
    transform: scale(1);
}

/* Desktop: Ensure proper margins */
@media (min-width: 1248px) {
    .header {
        left: 50%;
        right: auto;
        width: calc(100vw - 48px);
        transform: translateX(-50%);
    }
}

/* Mobile: Header at the bottom */
@media (max-width: 768px) {
    .header {
        top: auto;
        bottom: 15px;
        left: 15px;
        right: 15px;
        transform: translateY(20px);
        max-width: none;
        width: calc(100vw - 45px);
    }

    .header.visible {
        transform: translateY(0);
    }

    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }

    .header-nav {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .header-btns {
        gap: 15px;
    }

    .header-theme-switcher {
        padding-right: 0;
        border-right: none;
        gap: 6px;
    }

    .header-logo-svg {
        width: 32px;
        height: 32px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .header {
        padding: 10px 16px;
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: calc(100vw - 35px);
    }

    .header-container {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .header-btns {
        gap: 10px;
    }

    .header-nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .theme-toggle-slider {
        width: 48px;
        height: 24px;
    }

    .theme-toggle-icon {
        width: 14px;
        height: 14px;
    }

    .theme-toggle-icon:first-of-type {
        left: 6px;
    }

    .theme-toggle-icon:last-of-type {
        right: 6px;
    }
}

/* ===== HERO Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-background {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.animated-bg {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.animated-svg {
    width: 100%;
    height: 100%;
    filter: blur(0.5px);
}

/* Starfield canvas covers the hero background and adapts to theme */
.starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    opacity: 0.95;
    will-change: transform, opacity;
}

/* Theme-aware star visual tweaks */
:root[data-theme="dark"] .starfield {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.06));
}

:root[data-theme="light"] .starfield {
    filter: none;
    opacity: 0.75;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .starfield {
        opacity: 0.85;
        filter: none;
    }
}

/* Advanced SVG Animations */

/* Gradient blob animations */
@keyframes blob-1 {
    0%, 100% {
        d: path('M 400 300 Q 450 250 500 300 Q 450 350 400 300');
    }
    25% {
        d: path('M 400 300 Q 480 200 550 300 Q 420 400 400 300');
    }
    50% {
        d: path('M 400 300 Q 450 250 500 300 Q 450 350 400 300');
    }
    75% {
        d: path('M 400 300 Q 350 200 400 300 Q 480 400 400 300');
    }
}

@keyframes blob-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(100px, -80px) scale(1.1);
    }
    50% {
        transform: translate(80px, 100px) scale(0.9);
    }
    75% {
        transform: translate(-100px, 50px) scale(1.05);
    }
}

@keyframes blob-3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-80px, 100px) rotate(120deg);
    }
    66% {
        transform: translate(100px, -80px) rotate(240deg);
    }
}

@keyframes wave-1 {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-50px) translateY(30px);
    }
    50% {
        transform: translateX(-100px) translateY(0);
    }
    75% {
        transform: translateX(-50px) translateY(-30px);
    }
}

@keyframes wave-2 {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(50px) translateY(-30px);
    }
    50% {
        transform: translateX(100px) translateY(0);
    }
    75% {
        transform: translateX(50px) translateY(30px);
    }
}

@keyframes orbit-1 {
    0% {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

@keyframes orbit-2 {
    0% {
        transform: rotate(0deg) translateX(180px) rotate(0deg);
    }
    100% {
        transform: rotate(-360deg) translateX(180px) rotate(360deg);
    }
}

@keyframes pulse-1 {
    0%, 100% {
        r: 80px;
        opacity: 0.4;
    }
    50% {
        r: 120px;
        opacity: 0.1;
    }
}

@keyframes pulse-2 {
    0%, 100% {
        r: 60px;
        opacity: 0.3;
    }
    50% {
        r: 100px;
        opacity: 0;
    }
}

.blob-1 {
    animation: blob-1 8s ease-in-out infinite;
}

.blob-2 {
    animation: blob-2 10s ease-in-out infinite;
}

.blob-3 {
    animation: blob-3 12s ease-in-out infinite;
}

.wave-1 {
    animation: wave-1 8s ease-in-out infinite;
}

.wave-2 {
    animation: wave-2 10s ease-in-out infinite;
}

.orbit-group-1 {
    animation: orbit-1 15s linear infinite;
}

.orbit-group-2 {
    animation: orbit-2 20s linear infinite;
}

.pulse-1 {
    animation: pulse-1 6s ease-in-out infinite;
}

.pulse-2 {
    animation: pulse-2 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero > .hero-content .hero-logo-container {
    margin-bottom: 24px;
}

.hero > .hero-content .hero-logo {
    width: 96px;
    height: 96px;
}

.hero > .hero-content .hero-title {
    margin-bottom: 12px;
    font-size: clamp(2.6rem, 8vw, 4rem);
}

.hero > .hero-content .hero-subtitle {
    max-width: 520px;
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
}

.hero-content-services {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 32px 0 80px;
    text-align: left;
}

.hero-content-services .hero-logo-container {
    margin-bottom: 32px;
    text-align: center;
}

.hero-content-services .hero-logo {
    margin: 0 auto;
}

.hero-content-services .hero-title {
    max-width: 920px;
    margin-bottom: 24px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 1.02;
}

.hero-content-services .hero-subtitle {
    max-width: 720px;
    margin: 0;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.hero-action:hover {
    transform: translateY(-3px);
}

.hero-action-primary,
.hero-action-primary:visited {
    background: var(--accent-primary);
    color: #fff;
}

.hero-action-primary:hover {
    color: #fff;
}

.hero-action-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.hero-action-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.hero-logo-container {
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.hero-logo {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px var(--shadow));
    animation: float 3s ease-in-out infinite;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 1px;
    animation: mouse-wheel 1.5s ease-in-out infinite;
}

@keyframes mouse-wheel {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-2px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(6px);
    }
}

/* ===== Sections General ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.breadcrumbs {
    position: relative;
    z-index: 2;
    padding: 18px 0 0;
    background: color-mix(in srgb, var(--bg-secondary) 76%, transparent);
}

.breadcrumbs .container {
    display: flex;
    justify-content: flex-start;
    max-width: 1200px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 14px 18px;
    border: 1px solid var(--breadcrumb-border);
    border-radius: 16px;
    background-color: var(--breadcrumb-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-list li + li::before {
    content: "/";
    color: var(--text-secondary);
    opacity: 0.7;
}

.breadcrumb-list a {
    color: var(--text-primary);
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-list a:hover {
    color: var(--accent-primary);
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-secondary);
    font-weight: 500;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== About Section ===== */
.about {
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
    border-color: var(--accent-primary);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.stat p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== Services Section ===== */
.services {
    position: relative;
    z-index: 1;
}

.services-groups {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.service-group {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.service-group-heading {
    max-width: 760px;
}

.service-group-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-group-heading h3 {
    margin-bottom: 10px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.service-group-heading h3 span {
    color: var(--accent-primary);
}

.service-group-heading p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.service-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background-color: var(--bg-secondary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px var(--shadow);
}

.service-card h4 {
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-list li::marker {
    color: var(--accent-primary);
}

/* ===== Contacts Section ===== */
.contacts {
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.contacts-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 70px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    padding: 22px 0;
    border-top: 1px solid var(--border-color);
}

.contact-item:hover {
    border-color: var(--accent-primary);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.contact-item a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.feedback-form {
    padding: 36px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background-color: var(--bg-primary);
    box-shadow: 0 18px 50px var(--shadow);
}

.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-heading h3,
.contact-intro h3 {
    font-size: 1.65rem;
    margin-bottom: 10px;
}

.form-heading p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.form-field {
    display: block;
    margin-bottom: 18px;
}

.form-field span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font: inherit;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary) 20%, transparent);
}

.personal-data-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.personal-data-consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--accent-primary);
}

.personal-data-consent a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--accent-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.form-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.form-status {
    min-height: 20px;
    margin-top: 14px;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.telegram-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--accent-primary) 10%, var(--bg-primary));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.telegram-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow);
}

.telegram-icon {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #fff;
    font-size: 1.25rem;
}

.telegram-card strong,
.telegram-card small {
    display: block;
}

.telegram-card small {
    margin-top: 5px;
    color: var(--text-secondary);
}

.telegram-arrow {
    margin-left: auto;
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 2;
    padding: 32px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--back-to-top-border);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    background-color: var(--back-to-top-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.4rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease,
        color 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-primary);
    color: #fff;
}

.back-to-top:focus-visible {
    outline: 3px solid var(--accent-secondary);
    outline-offset: 3px;
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contacts-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .feedback-form {
        padding: 26px 22px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .back-to-top {
        right: 20px;
        bottom: 92px;
    }
}

@media (max-width: 480px) {
    .hero:not(.service-hero) {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        padding: 72px 20px 96px;
        box-sizing: border-box;
    }

    .hero:not(.service-hero) > .hero-content {
        width: 100%;
    }

    .hero:not(.service-hero) > .hero-content .hero-logo-container {
        margin-bottom: 16px;
    }

    .hero:not(.service-hero) > .hero-content .hero-logo {
        width: clamp(64px, 18vw, 80px);
        height: auto;
    }

    .hero:not(.service-hero) > .hero-content .hero-title {
        margin-bottom: 10px;
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.05;
    }

    .hero:not(.service-hero) > .hero-content .hero-subtitle {
        max-width: 28rem;
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        line-height: 1.5;
    }

    .hero-content-services {
        padding: 24px 0 64px;
    }

    .hero-content-services .hero-logo-container {
        margin-bottom: 24px;
    }

    .hero-content-services .hero-title {
        font-size: clamp(2.3rem, 11vw, 3.4rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-action {
        width: 100%;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) and (max-height: 500px) {
    .hero:not(.service-hero) {
        padding-top: 48px;
        padding-bottom: 24px;
    }

    .hero:not(.service-hero) .scroll-indicator {
        display: none;
    }
}

/* ===== PC Repair Service Page ===== */
.not-found-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.not-found-code {
    margin-bottom: 12px;
    color: var(--accent-primary);
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.08em;
    text-shadow: 0 18px 60px color-mix(in srgb, var(--accent-primary) 24%, transparent);
}

.not-found-content .hero-title {
    margin-bottom: 16px;
    font-size: clamp(2rem, 6vw, 4rem);
}

.not-found-content .hero-subtitle {
    margin: 0 auto;
    line-height: 1.6;
}

.not-found-actions {
    justify-content: center;
}

.service-hero {
    height: 100vh;
    min-height: 100vh;
}

.service-hero .hero-content-services {
    padding: 18px 0 48px;
}

.service-hero .hero-content-services .hero-logo-container {
    margin-bottom: 18px;
}

.service-hero .hero-content-services .hero-logo {
    width: 88px;
    height: 88px;
}

.service-hero .hero-content-services .hero-title {
    max-width: 820px;
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    line-height: 1.04;
}

.service-hero .hero-content-services .hero-subtitle {
    max-width: 640px;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    line-height: 1.45;
}

.service-hero .hero-actions {
    gap: 12px;
    margin-top: 22px;
}

.service-hero .hero-action {
    min-height: 46px;
    padding: 11px 16px;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.service-section-muted {
    background: color-mix(in srgb, var(--bg-secondary) 72%, transparent);
}

.service-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
    gap: 70px;
    align-items: start;
}

.service-copy {
    max-width: 720px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.service-copy + .service-copy {
    margin-top: 18px;
}

.service-about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 40px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .service-about-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.service-about-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-check-list,
.service-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.service-check-list {
    margin-top: 28px;
}

.service-check-list li,
.service-highlight-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-check-list li::before,
.service-highlight-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

.service-about-panel {
    display: flex;
}

.service-about-highlight {
    width: 100%;
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
}

.service-about-highlight .eyebrow {
    margin-bottom: 18px;
}

.service-about-highlight .service-highlight-list {
    gap: 16px;
}

.service-price-card,
.service-price-list {
    padding: 30px;
    border: 1px solid var(--accent-primary);
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent-primary) 10%, var(--bg-primary));
}

.service-price-card > span {
    color: var(--text-secondary);
}

.service-price-card strong {
    display: block;
    margin: 8px 0 18px;
    color: var(--accent-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.service-price-card p,
.service-price-list p,
.service-info-card p,
.service-step p,
.service-review p,
.service-faq p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.service-card-grid,
.service-steps-grid,
.service-review-grid {
    display: grid;
    gap: 18px;
}

.service-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-info-card,
.service-step,
.service-review {
    padding: 26px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
}

.service-info-card h3,
.service-step h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.service-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--accent-primary);
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-more-link:hover {
    color: var(--accent-secondary);
    transform: translateX(2px);
}

.service-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-step b {
    display: block;
    margin-bottom: 26px;
    color: var(--accent-primary);
    font-size: 2rem;
}

.service-price-list {
    display: grid;
    gap: 0;
}

.service-price-list p {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-price-list p:first-child {
    padding-top: 0;
}

.service-price-list p:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.service-price-list strong,
.service-review strong {
    color: var(--accent-primary);
    white-space: nowrap;
}

.service-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-review {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.service-review strong {
    margin-top: auto;
}

.service-faq {
    max-width: 900px;
}

.service-faq details {
    border-top: 1px solid var(--border-color);
}

.service-faq details:last-child {
    border-bottom: 1px solid var(--border-color);
}

.service-faq summary {
    position: relative;
    padding: 22px 36px 22px 0;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    list-style: none;
}

.service-faq summary::-webkit-details-marker {
    display: none;
}

.service-faq summary::after {
    position: absolute;
    right: 4px;
    content: '+';
    color: var(--accent-primary);
    font-size: 1.4rem;
    font-weight: 400;
}

.service-faq details[open] summary::after {
    content: '\2212';
}

.service-faq p {
    max-width: 760px;
    padding: 0 36px 22px 0;
}

@media (max-width: 768px) {
    .service-hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        padding: 72px 0 96px;
        box-sizing: border-box;
    }

    .service-hero .hero-content-services {
        padding: 0;
    }

    .service-section {
        padding: 70px 0;
    }

    .service-intro-grid,
    .service-review-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .service-card-grid,
    .service-steps-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .service-hero .hero-content-services .hero-logo-container {
        margin-bottom: 14px;
    }

    .service-hero .hero-content-services .hero-logo {
        width: 72px;
        height: 72px;
    }

    .service-hero .hero-content-services .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .service-hero .hero-actions {
        margin-top: 18px;
    }

    .service-card-grid,
    .service-steps-grid {
        grid-template-columns: 1fr;
    }

    .service-price-list p {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

/* ===== 4K and ultra-wide displays ===== */
@media (min-width: 1920px) {
    .header {
        max-width: 1600px;
        padding: 16px 32px;
    }

    .header-container,
    .header-nav {
        gap: 40px;
    }

    .container,
    .breadcrumbs .container {
        max-width: 1460px;
        padding-left: 56px;
        padding-right: 56px;
    }

    section,
    .service-section {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .hero-content-services {
        padding-top: 48px;
        padding-bottom: 96px;
    }

    .hero-content-services .hero-title {
        max-width: 1180px;
    }

    .hero-content-services .hero-subtitle {
        max-width: 860px;
    }

    .about-content,
    .contacts-content,
    .service-intro-grid,
    .service-about-layout {
        gap: 88px;
    }

    .services-groups {
        gap: 88px;
    }

    .services-grid {
        gap: 40px;
    }

    .service-card-grid,
    .service-steps-grid,
    .service-review-grid {
        gap: 24px;
    }

    .feedback-form {
        padding: 44px;
    }

    .service-card,
    .stat,
    .service-info-card,
    .service-step,
    .service-review {
        padding: 36px;
    }

    .service-about-highlight {
        padding: 36px 32px;
    }
}

@media (min-width: 2560px) {
    .header {
        max-width: 1760px;
        padding: 18px 36px;
    }

    .container,
    .breadcrumbs .container {
        max-width: 1600px;
        padding-left: 72px;
        padding-right: 72px;
    }

    section,
    .service-section {
        padding-top: 140px;
        padding-bottom: 140px;
    }

    .hero-content-services {
        padding-top: 60px;
        padding-bottom: 120px;
    }

    .hero-content-services .hero-title {
        max-width: 1280px;
        font-size: clamp(4rem, 4vw, 7rem);
    }

    .hero-content-services .hero-subtitle {
        max-width: 960px;
        font-size: clamp(1.1rem, 1.2vw, 1.8rem);
    }

    .section-title {
        font-size: clamp(2.6rem, 3vw, 4.8rem);
    }

    .about-text p,
    .service-copy,
    .service-card p,
    .service-info-card p,
    .service-step p,
    .service-review p {
        font-size: 1.08rem;
    }

    .services-grid {
        gap: 48px;
    }

    .service-card,
    .service-info-card,
    .service-step,
    .service-review,
    .stat,
    .feedback-form {
        padding: 40px;
    }
}

@media (min-width: 3840px) {
    .header {
        max-width: 1880px;
    }

    .container,
    .breadcrumbs .container {
        max-width: 1760px;
        padding-left: 88px;
        padding-right: 88px;
    }

    .hero-content-services .hero-title {
        max-width: 1400px;
        font-size: clamp(4.5rem, 3.4vw, 8rem);
    }

    .hero-content-services .hero-subtitle {
        max-width: 1100px;
    }

    .service-card-grid,
    .service-steps-grid,
    .service-review-grid {
        gap: 28px;
    }
}