@font-face {
    font-family: 'dd-symbol';
    src: url('../fonts/dd-symbol.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

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

:root {
    --orange: #fc6c00;
    --orange-hover: #e86200;
    --orange-glow: rgba(252, 108, 0, 0.12);
    --dark: #1d1d1f;
    --dark-card: #2d2d2f;
    --dark-border: #3a3a3c;
    --light: #f5f5f7;
    --light-card: #ffffff;
    --light-border: #d2d2d7;
    --text-dark: #1d1d1f;
    --text-light: #f5f5f7;
    --text-muted-dark: #5e5e63;
    --text-muted-light: #a1a1a6;
}

html {
    scroll-behavior: smooth;
    background: var(--dark);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════ NAVIGATION ═══════════ */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(29, 29, 31, 0.55);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s;
}

.nav-bar.nav-light {
    background: rgba(245, 245, 247, 0.55);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* .nav-logo removed — logo is now text-based */

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.nav-light .nav-links a { color: var(--text-muted-dark); }

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

.nav-links .nav-cta {
    color: var(--orange);
    font-weight: 600;
}

/* Mobile Nav Toggle — Hamburger to X animation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1002;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-light);
    margin: 4px auto;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-light .nav-toggle-bar { background: var(--text-dark); }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: var(--text-light);
}

@media (max-width: 768px) {
    .nav-bar { padding: 0 20px; }
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 80px 40px 40px;
        gap: 0;
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-bar.nav-open {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        height: 100vh;
        background: rgba(29, 29, 31, 0.55);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom: none;
        align-items: flex-start;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        list-style: none;
    }

    .nav-links li:last-child { border-bottom: none; }

    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 28px;
        font-weight: 600;
        color: var(--text-light) !important;
        letter-spacing: -0.5px;
        transition: color 0.2s;
    }

    .nav-links a:hover,
    .nav-links a:focus { color: var(--orange) !important; }

}

/* ═══════════ SECTIONS BASE ═══════════ */
.section-dark {
    background: var(--dark);
    color: var(--text-light);
}

.section-light {
    background: var(--light);
    color: var(--text-dark);
}

.section-padding {
    padding: 100px 40px;
}

@media (max-width: 768px) {
    .section-padding { padding: 64px 20px; }
}

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

.section-headline {
    text-align: center;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-headline .accent { color: var(--orange); }

.section-sub {
    text-align: center;
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.section-dark .section-sub { color: var(--text-muted-light); }
.section-light .section-sub { color: var(--text-muted-dark); }

/* ═══════════ HERO ═══════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: max(70px, 6vh);
    padding-bottom: 56px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(ellipse at 50% 70%, rgba(252, 108, 0, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

/* Dunkler Overscroll-Puffer zwischen Hero (dunkel) und #about (hell).

   DIAGNOSE (warum vier Versuche scheiterten):
   Der gemeldete helle Streifen ist NICHT der leere Browser-Canvas hinter der
   Seite (deshalb half Versuch 4, html-Background, nicht) und keine Frage der
   Viewport-Einheit an sich (deshalb halfen vh/svh/dvh nicht). Es ist schlicht
   die harte Farbkante am Übergang Hero -> #about. Auf echten iOS-Geräten liegt
   diese Kante nahe der Bildschirmunterkante, und beim elastischen Rubber-Band-
   Scroll wandert der Blick kurz über die Falz hinaus auf die helle Fläche.
   Beleg: Versuch 2 (svh) machte es SCHLIMMER — svh verkürzt den Hero, schiebt
   die helle Kante nach oben in den Sichtbereich, also wird mehr davon sichtbar.
   Umgekehrt gilt: je weiter die helle Kante UNTER der Falz liegt, desto weniger
   erreicht sie der Bounce.

   Lösung: ein dunkler Puffer in Hero-Farbe zwischen Hero und #about. Er hat
   dieselbe Farbe wie der Hero, erzeugt also beim normalen Scrollen keine
   sichtbare Kante/Lücke (dunkel auf dunkel), schiebt die helle #about-Kante
   aber so weit nach unten, dass der Rubber-Band-Weg sie nicht mehr erreicht.
   Robuster als overscroll-behavior, das auf iOS-Safari für Rubber-Banding
   nicht zuverlässig greift. */
.hero-overscroll-guard {
    background: var(--dark);
    height: 20vh;
}

/* overscroll-behavior-y:none stand hier früher als "sekundäre Bremse" gegen
   den Rubber-Band-Lichtblitz. Realgerätetest 2026-07-03 zeigte: unterdrückt
   dabei auch Pull-to-Refresh und den Bounce komplett — unerwünschter
   Nebeneffekt, der die eigentliche Bremse (dunkler Overscroll-Puffer oben)
   nicht braucht. Entfernt. */

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 24px;
}

.hero-pre {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted-light);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

/* Hero logo as text */
.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1;
}

.logo-text .dd {
    font-family: 'dd-symbol', monospace;
    font-style: normal;
    color: var(--orange);
}

.logo-text-hero .dd {
    margin-right: -0.12em;
}

.logo-text-hero {
    font-size: clamp(52px, 11vw, 120px);
    color: var(--text-light);
    display: block;
    text-align: center;
    margin-bottom: 40px;
}

.logo-text-nav .dd {
    font-size: 1.45em;
    vertical-align: baseline;
    margin-right: -0.35em;
    position: relative;
    top: 0.03em;
}

.logo-text-nav {
    font-size: 18px;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-bar.scrolled .logo-text-nav {
    opacity: 1;
    transform: translateY(0);
}

.nav-light .logo-text-nav { color: var(--text-dark); }

.hero h1 {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero h1 .line { display: block; }
.hero h1 .white { color: var(--text-light); }
.hero h1 .accent { color: var(--orange); }

.hero-sub {
    font-size: 18px;
    color: var(--text-muted-light);
    margin-bottom: 36px;
    font-weight: 400;
}

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

@media (max-width: 600px) {
    .hero-content { padding: 0 20px; }
    .logo-text-hero { font-size: clamp(30px, 10vw, 52px); }
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: scale(1.03);
}

.btn-ghost {
    color: var(--orange);
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(252, 108, 0, 0.4);
    transition: border-color 0.3s, background 0.3s;
}

.btn-ghost:hover {
    border-color: var(--orange);
    background: rgba(252, 108, 0, 0.08);
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-muted-light);
    font-size: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ═══════════ ABOUT ═══════════ */
.about-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.about-stat {
    text-align: center;
}

.about-stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--orange);
}

.about-stat-label {
    font-size: 12px;
    color: var(--text-muted-dark);
    margin-top: 4px;
}

.about-stat-divider {
    width: 1px;
    background: var(--light-border);
    align-self: stretch;
}

.about-more {
    text-align: center;
    margin-top: 28px;
}

.about-more a {
    color: var(--orange);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.about-more a:hover { text-decoration: underline; }

/* ═══════════ VALUES ═══════════ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.value-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid var(--dark-border);
    cursor: pointer;
    transition: border-color 0.3s, transform 0.4s ease, box-shadow 0.3s;
    transform-style: preserve-3d;
    perspective: 800px;
}

.value-card:hover {
    border-color: rgba(252, 108, 0, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(252, 108, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.value-card:active {
    transform: translateY(-2px) scale(0.98);
    transition-duration: 0.1s;
}

.value-card-label {
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.value-card h3 {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-muted-light);
    font-size: 13px;
    line-height: 1.6;
}

/* ═══════════ SERVICES ═══════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.service-card {
    background: var(--light-card);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #e5e5ea;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
    perspective: 800px;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 108, 0, 0.35);
    box-shadow: 0 12px 40px rgba(252, 108, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card:active {
    transform: translateY(-2px) scale(0.98);
    transition-duration: 0.1s;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(252, 108, 0, 0.07);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: var(--orange);
    transition: background 0.3s;
}

.service-card:hover .service-icon {
    background: var(--orange);
    color: #fff;
}

.service-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.service-card:hover h3 { color: var(--orange); }

.service-card p {
    font-size: 12px;
    color: var(--text-muted-dark);
    line-height: 1.6;
}

/* ═══════════ FAQ ═══════════ */
.faq-list { max-width: 680px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--dark-border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    cursor: pointer;
    user-select: none;
    width: 100%;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
}

.faq-question span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    flex: 1;
    padding-right: 16px;
}

.faq-toggle {
    font-size: 22px;
    color: var(--orange);
    font-weight: 300;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 22px;
}

.faq-answer p {
    color: var(--text-muted-light);
    font-size: 13px;
    line-height: 1.7;
    padding-right: 40px;
}

/* ═══════════ CONTACT ═══════════ */
.contact-wrapper {
    display: flex;
    gap: 48px;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 768px) {
    .contact-wrapper { flex-direction: column; }
}

.contact-info { flex: 0 0 200px; }

.contact-block { margin-bottom: 28px; }

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-icon-filled {
    background: var(--orange);
    color: #fff;
}

.contact-icon-outline {
    background: rgba(252, 108, 0, 0.07);
    color: var(--orange);
}

.contact-block h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-block p {
    font-size: 12px;
    color: var(--text-muted-dark);
    line-height: 1.5;
}

.contact-block a {
    color: var(--text-muted-dark);
    text-decoration: none;
}

.contact-block a:hover { color: var(--orange); }

.contact-form { flex: 1; }

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row input { flex: 1; }

.form-input {
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--light-border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    margin-bottom: 10px;
}

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-input::placeholder { color: #aaa; }

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 16px;
    font-size: 11px;
    color: var(--text-muted-dark);
    line-height: 1.5;
}

.form-checkbox input {
    margin-top: 2px;
    accent-color: var(--orange);
}

.form-checkbox a {
    color: var(--orange);
    text-decoration: none;
}

/* ═══════════ PGP STRIP ═══════════ */
.pgp-strip {
    text-align: center;
    padding: 28px 40px;
}

.pgp-strip p {
    font-size: 13px;
    color: var(--text-muted-light);
}

.pgp-strip a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.pgp-strip a:hover { text-decoration: underline; }

.pgp-strip .fingerprint {
    font-size: 12px;
    color: var(--text-muted-light);
    margin-top: 6px;
    font-family: monospace;
    letter-spacing: 1px;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
    padding: 28px 40px;
    border-top: 1px solid var(--light-border);
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-legal-links a {
    color: var(--text-muted-dark);
    text-decoration: none;
    font-size: 12px;
}

.footer-legal-links a:hover { color: var(--orange); }

.footer-bottom {
    border-top: 1px solid var(--light-border);
    padding-top: 16px;
    font-size: 11px;
    color: var(--text-muted-light);
    text-align: center;
}

/* ═══════════ SCROLL ANIMATIONS ═══════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════ SUBPAGES ═══════════ */
.subpage-hero {
    padding-top: 100px;
}

.breadcrumb-nav {
    text-align: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.breadcrumb-nav a {
    color: var(--orange);
    text-decoration: none;
}

.breadcrumb-nav a:hover { text-decoration: underline; }

.breadcrumb-nav span {
    color: var(--text-muted-dark);
}

.subpage-content {
    max-width: 720px;
    margin: 0 auto;
}

.subpage-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
    letter-spacing: -0.5px;
}

.subpage-content h2:first-child {
    margin-top: 0;
}

.subpage-content h2 .accent { color: var(--orange); }

.subpage-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 12px;
}

.subpage-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.section-dark .subpage-content p { color: var(--text-muted-light); }
.section-dark .subpage-content h2 { color: var(--text-light); }
.section-dark .subpage-content h3 { color: var(--text-light); }
.section-dark .subpage-content a { color: var(--orange); }

.section-light .subpage-content p { color: var(--text-muted-dark); }

.subpage-content ul,
.subpage-content ol {
    margin: 12px 0 12px 24px;
    font-size: 14px;
    line-height: 1.8;
}

.section-dark .subpage-content ul,
.section-dark .subpage-content ol { color: var(--text-muted-light); }

.subpage-content li {
    margin-bottom: 6px;
}

/* ═══════════ FORM STATUS MESSAGES ═══════════ */
.form-status {
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.form-loading {
    display: none;
    text-align: center;
    padding: 16px;
    color: var(--text-muted-dark);
    font-size: 14px;
}

.form-loading.active { display: block; }

/* Captcha */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 16px;
    flex-wrap: wrap;
}

.captcha-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.captcha-row .form-input {
    margin-bottom: 0;
}

/* Inline validation errors */
.form-input.invalid {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

.field-error {
    font-size: 12px;
    color: #ff3b30;
    margin: -6px 0 10px;
    display: none;
}

.field-error.show { display: block; }

.form-checkbox.invalid label {
    color: #ff3b30;
}

.required-hint {
    font-size: 11px;
    color: var(--text-muted-dark);
    margin: 4px 0 12px;
}

.required-star {
    color: #ff3b30;
    font-weight: 700;
}

/* ═══════════ CARD MODALS ═══════════ */
.card-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    transition: gap 0.2s;
}

.card-more:hover { gap: 8px; }

.modal-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: var(--light-card);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.open .modal-window {
    transform: translateY(0) scale(1);
}

.modal-window.dark {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted-dark);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover { background: rgba(0, 0, 0, 0.12); }

.modal-window.dark .modal-close {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted-light);
}

.modal-window.dark .modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-label {
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.modal-window.dark .modal-title { color: var(--text-light); }

.modal-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted-dark);
}

.modal-window.dark .modal-body { color: var(--text-muted-light); }

.modal-body p + p { margin-top: 12px; }

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ═══════════ SKIP LINK ═══════════ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--orange);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ═══════════ FOCUS STYLES ═══════════ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.value-card:focus-visible,
.service-card:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
    border-color: rgba(252, 108, 0, 0.4);
}

/* ═══════════ SCREEN READER ONLY ═══════════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
