/* ============================================
   1. RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e1e2a;
    background: #fafafa;
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ============================================
   2. TYPOGRAPHY & BUTTONS
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: #0055b7;
    color: #fff;
    position: relative;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: #003f8a;
    transform: translateY(-2px);
}

.btn--primary::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    border: 2px solid rgba(0, 85, 183, 0.3);
    opacity: 0;
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.05); opacity: 0; }
}

.btn--secondary {
    background: #e30613;
    color: #fff;
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    background: #b8050f;
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: #0055b7;
    border: 2px solid #0055b7;
}

.btn--outline:hover {
    background: #0055b7;
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   3. HEADER & NAVIGATION
   ============================================ */
.header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.logo-link {
    display: block;
    line-height: 0;
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}

.logo-img:hover {
    opacity: 0.85;
}

.nav {
    display: flex;
    gap: 1.8rem;
}

.nav-link {
    text-decoration: none;
    color: #1e1e2a;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 0.3rem 0;
    position: relative;
}

.nav-link:hover {
    color: #0055b7;
}

.nav-link--active {
    color: #0055b7;
    font-weight: 700;
    cursor: default;
}

.nav-link--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0055b7;
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    transition: all 0.3s;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #1e1e2a;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   4. HERO SECTION
   ============================================ */
.hero {
    padding: 4rem 0 5rem;
    background: linear-gradient(135deg, #f0f5ff 0%, #e6eeff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 85, 183, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-block;
    background: rgba(0, 85, 183, 0.12);
    color: #0055b7;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.hero__title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #003f8a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero__highlight {
    color: #0055b7;
    position: relative;
}

.hero__highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(0, 85, 183, 0.2);
    border-radius: 2px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 1rem 0 1.5rem;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.hero__stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hero__stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #5a6a7a;
}

.hero__stats span::before {
    content: '✓';
    color: #0055b7;
    font-weight: 700;
    font-size: 1.1rem;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__illustration {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(0, 85, 183, 0.08), rgba(0, 85, 183, 0.02));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

/* Hero Image */
.hero__image-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 85, 183, 0.15);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__image-img:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 70px rgba(0, 85, 183, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero__image-img {
        max-width: 350px;
        margin: 0 auto;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .hero__image-img {
        max-width: 280px;
        border-radius: 12px;
    }
}

/* ============================================
   5. SERVICES
   ============================================ */
.services {
    padding: 4rem 0;
    background: #fff;
}

.services__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.2rem;
    margin-bottom: 2rem;
}

.service-item {
    display: inline-block;
    background: #f4f7fc;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e2a3a;
    border: 1px solid #e0e7ef;
    transition: background 0.2s, transform 0.2s;
    word-break: break-word;
    white-space: normal;
    flex: 0 1 auto;
    max-width: 100%;
}

.service-item:hover {
    background: #dce5f0;
    transform: translateY(-2px);
}

.services__note {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0055b7;
    margin-top: 0.5rem;
}

/* ============================================
   6. REGION
   ============================================ */
.region {
    padding: 4rem 0;
    background: #f8faff;
}

.region__content {
    max-width: 900px;
    margin: 0 auto;
    color: #344454;
    font-size: 1.08rem;
}

.region__content p {
    margin-bottom: 1.2rem;
}

.region__content p:last-child {
    margin-bottom: 0;
}

.region__content strong {
    color: #1e2a3a;
}

/* ============================================
   7. PORTFOLIO
   ============================================ */
.portfolio {
    padding: 4rem 0;
    background: #fff;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.portfolio__item {
    background: #eef2f7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio__item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.portfolio__item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio__item:hover .portfolio__media {
    transform: scale(1.05);
}

.portfolio__item video {
    background: #111;
}

.portfolio__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__title {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.portfolio__category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.portfolio__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
    background: #f0f4fa;
    border-radius: 20px;
}

/* ============================================
   8. CONTACT
   ============================================ */
.contact {
    padding: 4rem 0;
    background: #1e2a3a;
    color: #fff;
    text-align: center;
}

.contact .section-title {
    color: #fff;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact__info {
    text-align: left;
}

.contact__info .section-title {
    text-align: left;
}

.contact__text {
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
}

.contact__text--secondary {
    margin-top: 1rem;
}

.contact-link {
    color: #fff;
    text-decoration: underline;
}

.contact-link:hover {
    color: #4a90d9;
}

.contact__hint {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.contact__map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact__map iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
    background: #141c28;
    color: #ccc;
    padding: 3rem 0 1.5rem;
    font-size: 0.95rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a3a4a;
}

.footer__col {
    display: flex;
    flex-direction: column;
}

.footer__col:not(:first-child) {
    align-items: flex-start;
}

.footer__title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer__title-small {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 1rem;
}

.footer__social {
    display: flex;
    gap: 0.8rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    transition: all 0.3s;
}

.footer__social-link:hover {
    background: #0055b7;
    color: #fff;
    transform: translateY(-3px);
}

.footer__social-link svg {
    width: 20px;
    height: 20px;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a,
.footer__link--clickable {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    display: inline-block;
    font-size: 0.95rem;
}

.footer__links a:hover,
.footer__link--clickable:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    color: #aaa;
    font-size: 0.95rem;
}

.footer__contact a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__contact a:hover {
    color: #fff;
}

.footer__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copy {
    font-size: 0.85rem;
    color: #666;
}

.footer__badge {
    font-size: 0.85rem;
    color: #555;
}

/* ============================================
   10. COOKIE BANNER & MODAL
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    color: #fff;
    animation: cookieSlideUp 0.5s ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cookie-banner__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.cookie-banner__text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: #e0e0e0;
}

.cookie-banner__text strong {
    color: #fff;
}

.cookie-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.cookie-banner__small {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0.5rem 0 0;
}

.cookie-banner__small a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner__small a:hover {
    color: #0055b7;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-btn--accept {
    background: #0055b7;
    color: #fff;
}

.cookie-btn--accept:hover {
    background: #003f8a;
}

.cookie-btn--decline {
    background: #6c757d;
    color: #fff;
}

.cookie-btn--decline:hover {
    background: #5a6268;
}

.cookie-btn--settings {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn--settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn--save {
    background: #28a745;
    color: #fff;
}

.cookie-btn--save:hover {
    background: #218838;
}

.cookie-btn--close {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn--close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cookie-modal__inner {
    background: #1e2a3a;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: cookieModalIn 0.3s ease-out;
}

@keyframes cookieModalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.cookie-modal__content {
    padding: 2rem;
    color: #fff;
}

.cookie-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: #fff;
}

.cookie-modal__option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal__option--disabled {
    opacity: 0.6;
}

.cookie-modal__label {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    cursor: pointer;
}

.cookie-modal__checkbox {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #0055b7;
}

.cookie-modal__checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cookie-modal__description {
    font-size: 0.85rem;
    color: #b0b0b0;
    line-height: 1.4;
}

.cookie-modal__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

/* ============================================
   11. PORTFOLIO LIGHTBOX
   ============================================ */

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lightbox.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(30, 42, 58, 0.32), rgba(5, 9, 15, 0.96)),
        rgba(5, 9, 15, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1400px, 96vw);
    height: min(900px, 94vh);
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(0.35rem, 1vw, 1rem);
    padding: 3.75rem 1rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    background: rgba(12, 18, 27, 0.55);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
    transform: translateY(14px) scale(0.985);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.is-open .lightbox__dialog {
    transform: translateY(0) scale(1);
}

.lightbox__media-wrap {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /*overflow: hidden;*/
    touch-action: pan-y;
}

.lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.985);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.18s ease, transform 0.22s ease;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.lightbox__image.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox__loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 3px solid rgba(255, 255, 255, 0.20);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lightboxSpin 0.75s linear infinite;
}

.lightbox__loader[hidden] {
    display: none;
}

@keyframes lightboxSpin {
    to { transform: rotate(360deg); }
}

.lightbox__close,
.lightbox__nav {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        opacity 0.18s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.19);
    border-color: rgba(255, 255, 255, 0.28);
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
}

.lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox__close span {
    display: block;
    margin-top: -2px;
    font-weight: 300;
}

.lightbox__nav {
    position: relative;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.35rem;
    line-height: 1;
}

.lightbox__nav--prev {
    grid-column: 1;
    grid-row: 1;
}

.lightbox__nav--next {
    grid-column: 3;
    grid-row: 1;
}

.lightbox__nav[hidden] {
    visibility: hidden;
}

.lightbox__footer {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0.25rem 0;
    color: #fff;
}

.lightbox__caption {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lightbox__caption strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
}

.lightbox__caption span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
}

.lightbox__counter {
    flex: 0 0 auto;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 0;
    }

    .lightbox__dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        grid-template-rows: minmax(0, 1fr) auto;
        padding: 4rem 0.35rem 1rem;
        border: 0;
        border-radius: 0;
        background: rgba(8, 13, 20, 0.48);
        box-shadow: none;
    }

    .lightbox__image {
        max-width: 100%;
        max-height: 100%;
        border-radius: 8px;
    }

    .lightbox__close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }

    .lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .lightbox__footer {
        padding: 0.85rem 0.25rem 0;
    }
}

@media (max-width: 480px) {
    .lightbox__dialog {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    .lightbox__nav {
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.28);
    }

    .lightbox__caption strong {
        font-size: 0.9rem;
    }

    .lightbox__caption span {
        font-size: 0.75rem;
    }

    .lightbox__counter {
        font-size: 0.72rem;
        padding: 0.3rem 0.55rem;
    }
}

/* ============================================
   12. ANCHOR OFFSET
   ============================================ */
#leistungen,
#region,
#portfolio,
#kontakt,
#hero,
#impressum {
    scroll-margin-top: 80px;
}

/* ============================================
   13. RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header__inner {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        gap: 0.8rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eaeaea;
        z-index: 100;
        width: 100%;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-link--active::after {
        bottom: 0;
    }

    .logo-img {
        max-height: 45px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1.05rem;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero__illustration {
        max-width: 300px;
        font-size: 4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.7rem 1.6rem;
        font-size: 1rem;
    }

    .service-item {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .portfolio__grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact__info {
        text-align: center;
    }

    .contact__info .section-title {
        text-align: center;
    }

    .contact__text {
        font-size: 1.1rem;
    }

    .contact__map iframe {
        height: 250px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer__col:not(:first-child) {
        align-items: center;
        text-align: center;
    }

    .footer__links li {
        text-align: center;
    }

    .footer__contact li {
        justify-content: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .cookie-banner__buttons {
        flex-direction: column;
    }

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

    .cookie-modal__content {
        padding: 1.5rem;
    }

    .cookie-modal__option {
        padding: 0.75rem;
    }

    #leistungen,
    #region,
    #portfolio,
    #kontakt,
    #hero,
    #impressum {
        scroll-margin-top: 120px;
    }

    /* Lightbox Mobile */
    #customLightbox {
        padding: 0.8rem;
    }

    #lightboxImg {
        max-width: 98vw;
        max-height: 80vh;
    }

    .lb-nav {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        background: rgba(0, 0, 0, 0.4);
    }

    .lb-prev {
        left: 4px;
    }

    .lb-next {
        right: 4px;
    }

    .lb-close {
        top: -42px;
        right: 0;
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .lb-counter {
        font-size: 0.8rem;
        bottom: -38px;
        padding: 3px 12px;
    }

    .lb-progress {
        width: 120px;
        bottom: -55px;
        height: 2px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo-img {
        max-height: 36px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__stats {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .services__grid {
        gap: 0.5rem;
    }

    .service-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .portfolio__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .portfolio__item {
        aspect-ratio: 1/1;
    }

    .nav {
        gap: 0.8rem 1.2rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .contact__map iframe {
        height: 200px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer__col {
        align-items: center !important;
        text-align: center;
    }

    .footer__links li {
        text-align: center;
    }

    .footer__contact li {
        justify-content: center;
    }

    .cookie-banner {
        padding: 1rem 0;
    }

    .cookie-banner__title {
        font-size: 1.2rem;
    }

    .cookie-banner__text {
        font-size: 0.85rem;
    }

    .cookie-modal__title {
        font-size: 1.2rem;
    }

    #leistungen,
    #region,
    #portfolio,
    #kontakt,
    #hero,
    #impressum {
        scroll-margin-top: 130px;
    }

    /* Lightbox Small Mobile */
    #lightboxImg {
        max-width: 99vw;
        max-height: 75vh;
        border-radius: 4px;
    }

    .lb-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .lb-prev {
        left: 2px;
    }

    .lb-next {
        right: 2px;
    }

    .lb-close {
        top: -36px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* Extra Small */
@media (max-width: 400px) {
    .portfolio__grid {
        grid-template-columns: 1fr;
    }

    .lb-nav {
        font-size: 1rem;
        width: 28px;
        height: 28px;
    }

    .lb-prev {
        left: 2px;
    }

    .lb-next {
        right: 2px;
    }

    #lightboxImg {
        max-width: 99vw;
        max-height: 72vh;
    }
}

/* ============================================
   14. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .btn--primary::after {
        animation: none !important;
    }

    .portfolio__item:hover .portfolio__media {
        transform: none !important;
    }

    .portfolio__overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%);
    }

    .cookie-banner {
        animation: none !important;
    }

    .cookie-modal {
        animation: none !important;
    }

    #customLightbox {
        transition: none !important;
    }

    #lightboxImg {
        transition: none !important;
    }

    .lb-close,
    .lb-nav {
        transition: none !important;
    }
}
/* ============================================
   NAVIGATION / FOOTER REFINEMENTS
   ============================================ */
.footer__link-button {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #aaa;
    font: inherit;
    font-size: 0.95rem;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer__link-button:hover,
.footer__link-button:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.footer__link-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

.nav-link--active {
    cursor: default;
}

/* ============================================
   BENEFITS (Warum wir)
   ============================================ */
.benefits {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 85, 183, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.benefits__subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #4a5a6a;
    max-width: 700px;
    margin: -1.5rem auto 3rem;
    line-height: 1.7;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefits__item {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.8rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 85, 183, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.benefits__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 85, 183, 0.10);
    border-color: rgba(0, 85, 183, 0.15);
}

.benefits__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.benefits__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e2a3a;
    margin-bottom: 0.75rem;
}

.benefits__text {
    font-size: 0.95rem;
    color: #5a6a7a;
    line-height: 1.6;
    margin: 0;
}

.benefits__cta {
    text-align: center;
    margin-top: 1rem;
}

.benefits__cta .btn {
    font-size: 1.1rem;
    padding: 1rem 2.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .benefits {
        padding: 3.5rem 0;
    }

    .benefits__subtitle {
        font-size: 1.05rem;
        margin: -1rem 0 2rem;
    }

    .benefits__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .benefits__item {
        padding: 1.5rem 1.2rem;
    }

    .benefits__icon {
        font-size: 2.5rem;
    }

    .benefits__title {
        font-size: 1.1rem;
    }

    .benefits__text {
        font-size: 0.9rem;
    }
}

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

    .benefits__item {
        padding: 1.5rem;
    }

    .benefits__cta .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .benefits__item {
        transition: none !important;
    }

    .benefits__item:hover {
        transform: none !important;
    }
}