/* Tehniķis 96 — visual theme (inspired by tehnikis96.lv2) */

:root {
    --brand-2: #ffffff;
    --brand-glow: rgba(227, 53, 37, 0.32);
    --brand-2-glow: rgba(255, 255, 255, 0.14);
    --surface-dark: #0a0a0a;
    --surface-dark-2: #171717;
    --bg-muted: #f3f3f3;
    --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --topbar-h: 2.5rem;
    --header-h: 4.75rem;
    --radius-xl: 2rem;
}

html {
    scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 1rem);
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    z-index: 10002;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transition: width 0.1s linear;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Topbar ── */

.topbar {
    position: relative;
    z-index: 101;
    background: var(--brand);
    color: #fff;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--topbar-h);
}

.topbar__phones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.topbar__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.topbar__phone:hover {
    color: #fff;
    opacity: 0.85;
}

.topbar__sep {
    opacity: 0.35;
}

.lang-switch--topbar {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lang-switch--topbar::before {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.lang-switch--topbar .lang-switch__btn {
    color: rgba(255, 255, 255, 0.72);
}

.lang-switch--topbar .lang-switch__btn:hover,
.lang-switch--topbar .lang-switch__btn.is-active {
    color: var(--brand);
}

.lang-switch--topbar .lang-switch__btn:focus-visible {
    outline-color: #fff;
}

@media (max-width: 899px) {
    .topbar .lang-switch--topbar {
        display: none;
    }
}

.phone-links {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.phone-links__call {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.phone-links__call:hover {
    opacity: 0.85;
}

.phone-links__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    opacity: 0.9;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.phone-links__wa:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.phone-links--topbar .phone-links__wa {
    background: rgba(255, 255, 255, 0.14);
}

.phone-links--topbar .phone-links__wa:hover {
    background: rgba(255, 255, 255, 0.24);
}

.phone-links--footer .phone-links__wa {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.phone-links--footer .phone-links__wa:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.phone-links--contact .phone-links__wa {
    background: var(--brand-soft);
    color: var(--brand);
}

.phone-links--contact .phone-links__wa:hover {
    background: rgba(227, 53, 37, 0.14);
    color: var(--brand-dark);
}

.btn--whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* ── Header ── */

.site-header {
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    border-bottom-color: transparent;
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
    min-height: var(--header-h);
    align-items: center;
    gap: 1rem;
}

.site-logo {
    gap: 0.7rem;
    font-weight: 700;
}

.site-logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.875rem;
    height: 2.875rem;
    background: var(--brand);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
    border: 2px solid #fff;
    border-radius: 0.75rem;
    box-shadow:
        0 0 0 1px var(--ink),
        0 4px 16px var(--brand-glow);
    flex-shrink: 0;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.site-logo__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.site-logo__year {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-header__drawer {
    padding: 0 0 1rem;
}

@media (max-width: 899px) {
    .site-header {
        z-index: 200;
    }

    .site-header__inner {
        flex-wrap: wrap;
        row-gap: 0;
    }

    .site-logo {
        flex-shrink: 0;
        min-width: 0;
        max-width: calc(100% - 7.5rem);
    }

    .site-header__actions {
        flex-shrink: 0;
        margin-left: auto;
        gap: 0.5rem;
    }

    .nav-toggle {
        width: 2.875rem;
        height: 2.875rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .site-header__drawer {
        display: none;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0.65rem 0 1rem;
        border-top: 1px solid var(--border);
        background: #fff;
        max-height: calc(100vh - var(--topbar-h) - var(--header-h) - 0.75rem);
        max-height: calc(100dvh - var(--topbar-h) - var(--header-h) - 0.75rem);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .site-header.is-nav-open .site-header__drawer {
        display: block;
    }

    .site-header.is-nav-open {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    }

    .site-header__drawer .site-tagline {
        display: none;
    }

    .site-nav__list {
        gap: 0.25rem;
    }

    .site-nav__link {
        display: flex;
        align-items: center;
        min-height: 2.875rem;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 0.85rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .site-nav__link--cta {
        justify-content: center;
        margin-top: 0.35rem;
    }
}

.site-tagline {
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.85rem;
    margin-bottom: 0.75rem;
}

.site-nav__link {
    border-radius: 999px;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.site-nav__link--cta {
    background: var(--brand);
    color: #fff !important;
    font-weight: 600;
}

.site-nav__link--cta:hover,
.site-nav__link--cta.is-active {
    background: var(--brand-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.nav-toggle {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.05);
}

/* ── Hero (home — lv2 split layout) ── */

.hero--home {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: max(34rem, calc(100vh - var(--topbar-h) - var(--header-h)));
    min-height: max(34rem, calc(100dvh - var(--topbar-h) - var(--header-h)));
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
    color: #fff;
    overflow: hidden;
    background: var(--surface-dark);
}

.hero__banners {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__banner {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero__banner.is-active {
    opacity: 1;
    visibility: visible;
}

.hero__banner picture,
.hero__banner-image,
.hero__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.06);
    transition: transform 8s ease;
}

.hero__banner.is-active picture img,
.hero__banner.is-active .hero__banner-image,
.hero__banner.is-active img {
    transform: scale(1);
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 90% 80% at 50% 45%, rgba(6, 6, 8, 0.82) 0%, rgba(6, 6, 8, 0.45) 55%, rgba(6, 6, 8, 0.65) 100%),
        linear-gradient(180deg, rgba(6, 6, 8, 0.35) 0%, rgba(6, 6, 8, 0.55) 100%);
    pointer-events: none;
}

.hero__mesh {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.55;
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: hero-float 12s ease-in-out infinite;
}

.hero__blob--1 {
    width: min(500px, 70vw);
    height: min(500px, 70vw);
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, var(--brand-glow), transparent 70%);
}

.hero__blob--2 {
    width: min(400px, 60vw);
    height: min(400px, 60vw);
    bottom: 0;
    left: -10%;
    background: radial-gradient(circle, var(--brand-2-glow), transparent 70%);
    animation-delay: -4s;
}

@keyframes hero-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero__layout {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero__copy {
    width: 100%;
    max-width: 42rem;
    margin-inline: auto;
    min-width: 0;
    text-align: center;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem 0.4rem 0.7rem;
    margin: 0 auto 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(12px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--brand);
    animation: hero-pulse 2s ease-in-out infinite;
}

@keyframes hero-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.88); }
}

.hero__title {
    margin: 0 auto 1.1rem;
    font-size: clamp(2.15rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    max-width: 16ch;
}

.hero__lead {
    margin: 0 auto 1.65rem;
    max-width: 32rem;
    font-size: clamp(1rem, 1.9vw, 1.125rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
}

.hero__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 auto;
    padding: 0.35rem;
    width: 100%;
    max-width: 36rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0.85rem 1rem;
}

.hero-metric:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metric__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
}

.hero-metric__icon .site-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-metric__body {
    min-width: 0;
}

.hero-metric__value {
    margin: 0 0 0.15rem;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero-metric__label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.btn--outline {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn--dark {
    background: var(--surface-dark);
    color: #fff;
}

.btn--dark:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn--full {
    width: 100%;
}

/* ── Marquee ── */

.marquee {
    overflow: hidden;
    padding: 1.1rem 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.marquee__item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.marquee__dot {
    color: var(--brand);
    font-size: 0.45rem;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Categories ── */

.categories {
    background: var(--bg-muted);
    padding: 3.5rem 0 2.5rem;
}

/* ── Contact CTA (home) ── */

.contact-cta {
    padding: 0 0 3.5rem;
    background: var(--bg-muted);
}

.contact-cta__card {
    display: grid;
    gap: 1.75rem;
    align-items: center;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: var(--radius-xl);
    color: #fff;
    box-shadow: 0 20px 50px var(--brand-glow);
}

.contact-cta__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.contact-cta__lead {
    margin: 0;
    max-width: 36rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.contact-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.contact-cta .btn--primary {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-cta .btn--primary:hover {
    background: #fff;
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn--light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
    .contact-cta__card {
        grid-template-columns: 1fr auto;
        gap: 2rem;
    }

    .contact-cta__actions {
        justify-content: flex-end;
    }
}

.section-head__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand);
}

.section-head__title {
    letter-spacing: -0.02em;
}

.category-card {
    position: relative;
    border: 1px solid var(--border);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card__glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--brand-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.category-card:hover .category-card__glow {
    opacity: 1;
}

.category-card__body {
    position: relative;
    z-index: 2;
    padding: 0 1rem 1rem;
}

.site-icon {
    display: block;
    object-fit: contain;
}

.site-icon--metric {
    width: 1.15rem;
    height: 1.15rem;
}

.category-card__title {
    padding: 0;
    margin: 0 0 0.3rem;
}

.category-card__cta {
    padding: 0;
    font-size: 0.8125rem;
}

/* ── Buttons ── */

.btn--primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 8px 28px var(--brand-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px var(--brand-glow);
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-darker));
}

/* ── Footer ── */

.site-footer {
    padding: 0 0 2rem;
    background: var(--surface-dark);
    color: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
    padding: 2.75rem 0 2.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__title {
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.site-footer__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.site-footer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-top: 0.05rem;
    color: var(--brand);
}

.site-footer__text {
    font-size: 0.9375rem;
    line-height: 1.55;
}

.site-footer__text strong {
    color: #fff;
    font-weight: 700;
}

.site-footer__text a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.site-footer__text a:hover {
    color: var(--brand-2);
}

.site-footer__map {
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
}

.site-footer__map iframe {
    display: block;
    width: 100%;
    min-height: 280px;
    filter: grayscale(1) invert(92%) contrast(88%);
}

.site-footer__bar {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding-top: 1.75rem;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo__mark--sm {
    width: 2.125rem;
    height: 2.125rem;
    font-size: 0.7rem;
    border-radius: 0.55rem;
}

.site-footer__brand strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.site-footer__brand span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__copy {
    margin: 0;
    font-size: 0.8125rem;
    text-align: center;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    justify-content: center;
    align-items: center;
}

.site-footer__links a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--brand-2);
}

.fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 12px 32px var(--brand-glow);
    text-decoration: none;
    transition: transform 0.25s var(--ease);
}

.fab:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* ── Sections ── */

.section {
    padding: 4rem 0;
}

.section--about,
.section--works,
.section--guides,
.section--insect {
    background: #fff;
}

.section--catalog,
.section--contact,
.categories {
    background: var(--bg-muted);
}

.page-content {
    background: transparent;
    min-height: auto;
    padding-top: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand);
}

.eyebrow--light {
    color: var(--brand-2);
}

.heading {
    margin: 0 0 0.85rem;
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.heading--light {
    color: #fff;
}

.section-intro {
    margin-bottom: 2.5rem;
    max-width: 40rem;
}

.catalog-page .section-intro {
    margin-bottom: 1.75rem;
}

.catalog-page .eyebrow {
    margin-bottom: 0.65rem;
}

.section-intro--center {
    margin-inline: auto;
    text-align: center;
}

.section-sub {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.about-bento {
    display: grid;
    gap: 1.25rem;
    position: relative;
}

.bento-main {
    padding: 2.5rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.bento-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(227, 53, 37, 0.08);
    pointer-events: none;
}

.about-lead {
    margin: 1.25rem 0 1rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.about-text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.bento-highlights {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bento-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bento-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.625rem;
    height: 2.625rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(227, 53, 37, 0.12), rgba(227, 53, 37, 0.05));
    border-radius: 0.7rem;
}

.bento-card h2 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.bento-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.works-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.work-tile {
    position: relative;
    padding: 2rem 1.75rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s var(--ease);
}

.work-tile:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-color: transparent;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--brand-glow);
}

.work-tile h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.work-tile-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
    transition: width 0.4s var(--ease);
}

.work-tile:hover .work-tile-line {
    width: 100%;
}

.portfolio-gallery__title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
}

.guides-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.guides-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.guide-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.35rem 1.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.guide-row--expandable {
    display: block;
    padding: 0;
    overflow: hidden;
}

.guide-row__trigger {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 1.35rem 1.75rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.guide-row--expandable:hover,
.guide-row--expandable.is-open {
    border-color: rgba(227, 53, 37, 0.25);
    box-shadow: var(--shadow-md);
}

.guide-row--expandable.is-open {
    transform: none;
}

.guide-row:hover:not(.guide-row--expandable) {
    border-color: rgba(227, 53, 37, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.guide-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--text);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.guide-row--expandable.is-open .guide-chevron {
    transform: rotate(180deg);
    background: var(--brand);
    color: #fff;
}

.guide-panel {
    padding: 0 1.75rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-muted);
}

.guide-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
    padding-top: 1.25rem;
}

.guide-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 3 / 4;
}

.guide-gallery__item picture,
.guide-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.guide-gallery__item:hover img {
    transform: scale(1.03);
}

.guide-gallery__step {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.guide-content h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.guide-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--text);
    transition: all 0.3s;
}

.guide-row:hover .guide-arrow {
    background: var(--brand);
    color: #fff;
    transform: rotate(-45deg);
}

.insect-bento {
    display: grid;
    gap: 1.25rem;
    padding: 3rem;
    background: linear-gradient(145deg, var(--surface-dark), var(--surface-dark-2));
    border-radius: var(--radius-xl);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.insect-bento::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, var(--brand-glow), transparent 50%);
    pointer-events: none;
}

.insect-main {
    position: relative;
    z-index: 1;
}

.insect-main p {
    margin: 1rem 0 2rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.insect-steps {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.insect-steps li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.insect-steps li span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-2);
    flex-shrink: 0;
}

.insect-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insect-image {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-bento {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.contact-tile {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-tile--office,
.contact-tile--legal {
    grid-column: 1 / -1;
}

.contact-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    background: var(--bg-muted);
    color: var(--brand);
    border-radius: 0.65rem;
}

.contact-tile h2 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.contact-tile p,
.contact-tile a {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-tile a {
    color: var(--text);
    font-weight: 500;
}

.contact-tile a:hover {
    color: var(--brand);
}

.contact-hours {
    font-size: 0.78rem !important;
}

.contact-iban {
    font-family: monospace;
    font-size: 0.78rem !important;
}

.contact-form-panel {
    position: relative;
    padding: 2.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--brand-glow), transparent 70%);
    pointer-events: none;
}

.contact-form-panel h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    position: relative;
}

.contact-form-panel .form-note {
    margin: 0 0 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    position: relative;
}

.contact-form--panel {
    display: grid;
    gap: 1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid transparent;
    border-radius: 0.75rem;
    background: var(--bg-muted);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(227, 53, 37, 0.15);
}

.contacts-map--page {
    margin-top: 1.25rem;
    min-height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ── Desktop layout ── */

@media (min-width: 900px) {
    .site-header__inner {
        flex-wrap: nowrap;
        align-items: center;
        min-height: var(--header-h);
        padding-top: 0;
    }

    .nav-toggle {
        display: none;
    }

    .site-header__drawer {
        display: flex !important;
        flex: 1;
        align-items: center;
        justify-content: flex-end;
        gap: 1.5rem;
        padding: 0;
        border-top: 0;
        background: transparent;
    }

    .site-tagline {
        display: none;
    }

    .site-nav__list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.15rem;
        padding: 0;
        border-top: 0;
    }

    .site-nav__link {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
        font-weight: 500;
        text-transform: none;
        letter-spacing: normal;
    }

    .site-nav__link--cta {
        margin-left: 0.35rem;
        padding: 0.55rem 1rem;
    }

    .hero__title {
        max-width: 20ch;
    }

    .about-bento {
        grid-template-columns: 1.2fr 1fr;
        grid-template-rows: auto auto;
    }

    .bento-main {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .bento-highlights {
        grid-column: 2;
        grid-row: 1 / 3;
        grid-template-columns: 1fr 1fr;
    }

    .contact-bento {
        grid-template-columns: 1fr;
    }

    .insect-bento {
        grid-template-columns: 1.5fr 1fr;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        align-items: stretch;
        gap: 2.5rem;
    }

    .site-footer__map,
    .site-footer__map iframe {
        min-height: 320px;
    }

    .site-footer__bar {
        grid-template-columns: 1fr auto 1fr;
    }

    .site-footer__links {
        justify-content: flex-end;
    }
}

@media (max-width: 899px) {
    .guides-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .guide-row:not(.guide-row--expandable) {
        grid-template-columns: 1fr auto;
    }

    .guide-row__trigger {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        padding: 1.1rem 1.15rem;
    }

    .guide-panel {
        padding: 0 1.15rem 1.15rem;
    }

    .guide-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-arrow {
        grid-column: 2;
        justify-self: end;
    }

    .insect-bento {
        padding: 2rem;
    }

    .hero__metrics {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem;
    }

    .hero-metric {
        padding: 0.75rem 0.85rem;
    }

    .hero-metric:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-metric__value {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee__track,
    .hero__blob,
    .hero__badge-dot {
        animation: none;
    }

    .hero__banner picture img,
    .hero__banner .hero__banner-image,
    .hero__banner img {
        transform: none;
        transition: none;
    }
}
