:root {
    color-scheme: dark;
    --bg: #08091a;
    --bg-soft: #0e1028;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --text: #edf2fb;
    --muted: #9ca3b8;
    --accent: #8b5cf6;
    --accent-strong: #7c3aed;
    --accent-rgb: 139, 92, 246;
    --border: rgba(255, 255, 255, 0.12);
    --radius: 0px;
}

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

html {
    background-color: #08091a;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(160deg, #0a0d14 0%, #0e1320 55%, #0a0d14 100%);
    line-height: 1.55;
    position: relative;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -2;
    border-radius: 50%;
    filter: blur(90px);
}

body::before {
    width: 36vw;
    height: 36vw;
    top: -14vw;
    right: -10vw;
    background: rgba(109, 40, 217, 0.18);
}

body::after {
    width: 32vw;
    height: 32vw;
    bottom: -14vw;
    left: -10vw;
    background: rgba(91, 33, 182, 0.16);
}

main::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.42), transparent 76%);
    opacity: 0.05;
}

a {
    color: inherit;
}

.container {
    width: min(1140px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(139, 92, 246, 0.18);
    background:
        linear-gradient(180deg, rgba(8, 9, 26, 0.97) 0%, rgba(8, 9, 26, 0.9) 100%),
        linear-gradient(90deg, rgba(139, 92, 246, 0.08), rgba(99, 197, 222, 0.04), rgba(139, 92, 246, 0.08));
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(139, 92, 246, 0.25);
    overflow: clip;
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.7), rgba(196, 181, 253, 0.95), rgba(139, 92, 246, 0.7), transparent);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.45);
    pointer-events: none;
}

.site-header__inner {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.site-header__topline {
    min-height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.18);
}

.lab-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #bdd1e9;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lab-status__dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    animation: dotPulse 1.9s ease-in-out infinite;
}

.quick-links {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-links a {
    text-decoration: none;
    color: rgba(196, 181, 253, 0.72);
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.quick-links a:hover {
    color: #e9e4ff;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.45);
}

.logo {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    gap: 0.16rem;
}


.logo__title {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #f0ecff 0%, #c4b5fd 45%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.logo__sub {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.58rem;
    font-weight: 700;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(124, 58, 237, 0.95));
    padding: 0.16rem 0.45rem;
    line-height: 1.5;
    width: fit-content;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 16px rgba(139, 92, 246, 0.35);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-nav {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.25rem;
}

.top-nav a {
    text-decoration: none;
    color: rgba(196, 181, 253, 0.82);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.38rem 0.72rem;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease, text-shadow 0.2s ease;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.top-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0.65rem;
    right: 0.65rem;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.top-nav a:hover {
    color: #e9e4ff;
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.45);
}

.top-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.header-phone {
    text-decoration: none;
    white-space: nowrap;
    color: #d4c6ff;
    font-size: 0.83rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.08);
    padding: 0.38rem 0.62rem;
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-phone__label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(196, 181, 253, 0.78);
}

.header-phone__number {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ede8ff;
}

.header-phone:hover {
    color: #f3efff;
    border-color: rgba(139, 92, 246, 0.58);
    background: rgba(139, 92, 246, 0.14);
}

.header-cta {
    padding: 0.57rem 1.1rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: headerCtaPulse 3s ease-in-out infinite;
}

@keyframes headerCtaPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 16px rgba(139,92,246,0.35), 0 4px 14px rgba(0,0,0,0.3); }
    50%       { box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 0 28px rgba(139,92,246,0.6),  0 4px 14px rgba(0,0,0,0.3); }
}

section {
    padding: 4.4rem 0;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.22;
    text-wrap: balance;
    word-break: normal;
    hyphens: none;
}

p {
    margin-top: 0;
    text-wrap: pretty;
    word-break: normal;
    hyphens: none;
}

.hero {
    padding-top: 5.4rem;
}

.hero__box {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 40px rgba(0, 0, 0, 0.38);
    padding: clamp(1.4rem, 3.5vw, 2.8rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.08fr) minmax(280px, 0.92fr);
    gap: clamp(1.2rem, 2.6vw, 2.3rem);
    align-items: center;
}

.hero-copy {
    max-width: 620px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(132, 173, 203, 0.38);
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bdd1e9;
    background: rgba(80, 40, 160, 0.18);
    margin-bottom: 0.95rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -0.015em;
    line-height: 1.11;
    margin-bottom: 1rem;
}

.hero-accent {
    color: #a78bfa;
}

.hero p {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 54ch;
    margin-bottom: 1.5rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.72rem 1.1rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
    background: linear-gradient(180deg, #9061f9, #7c3aed);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 16px rgba(109, 40, 217, 0.35);
}

.btn--primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #9b6ff6, #8b5cf6);
}

.btn--ghost {
    border-color: var(--border);
    color: #d8e0ef;
    background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.23);
    background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(140, 176, 212, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 176, 212, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.14;
}

.hero-orb {
    position: absolute;
    width: 76%;
    height: 66%;
    left: 12%;
    top: 13%;
    border-radius: 42% 58% 56% 44% / 45% 38% 62% 55%;
    background: radial-gradient(circle at 48% 42%, rgba(167, 139, 250, 0.42) 0%, rgba(109, 40, 217, 0.2) 38%, rgba(40, 20, 80, 0.08) 68%, transparent 100%);
    filter: blur(0.3px);
}

.hero-vis-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: clamp(0.9rem, 2vw, 1.2rem);
    flex: 1;
}

.hero-vis-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(9, 15, 26, 0.62);
    backdrop-filter: blur(8px);
    border-radius: 9px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #d8e3f1;
}

.hero-panel--main {
    padding: 0.9rem 0.95rem;
}

.hero-panel--main p {
    margin-bottom: 0.2rem;
    font-size: 0.77rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9fb3cc;
}

.hero-panel--main strong {
    font-size: 0.97rem;
    font-weight: 600;
}

.hero-panel--small {
    padding: 0.62rem 0.8rem;
}

.hero-panel--right-align {
    text-align: right;
}

.hero-panel--small span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9fb3cc;
    margin-bottom: 0.18rem;
}

.hero-panel--small strong {
    font-size: 0.87rem;
}

.hero-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(162, 199, 228, 0.62), transparent);
    opacity: 0.55;
    flex-shrink: 0;
}

.hero-enum {
    display: grid;
    gap: 0.3rem;
    flex: 1;
}

.hero-enum__item {
    display: grid;
    grid-template-columns: 2.1rem 1fr;
    align-items: center;
    gap: 0.56rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 16, 27, 0.46);
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    min-height: 1.95rem;
    opacity: 0.54;
    transform: translateY(3px);
    transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.hero-enum__item span {
    font-size: 0.7rem;
    color: #8ea6c1;
    letter-spacing: 0.08em;
    text-align: center;
}

.hero-enum__item p {
    margin: 0;
    font-size: 0.79rem;
    color: #b7c8db;
}

.hero-enum__item.is-active {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(160, 207, 222, 0.48);
    background: rgba(13, 23, 36, 0.75);
}

.hero-enum__item.is-active span {
    color: #d7e7f7;
}

.hero-enum__item.is-active p {
    color: #e1ecf9;
}

.hero-enum__progress {
    margin-top: 0.2rem;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
}

.hero-enum__progress::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 35%;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0), rgba(139, 92, 246, 0.95), rgba(139, 92, 246, 0));
    animation: enumScan 2.8s linear infinite;
}

@keyframes enumScan {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(320%);
    }
}

.trust-row {
    padding-top: 0;
    padding-bottom: 2rem;
}

.trust-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.trust-stat {
    padding: 1.3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trust-stat__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.trust-stat__label {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.35;
}

.trust-sep {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.section-subtitle {
    color: var(--muted);
    max-width: 78ch;
    margin-bottom: 1.1rem;
    font-size: 1rem;
}

#gallery .section-subtitle {
    max-width: 92ch;
}

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

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.card {
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.15rem;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(141, 188, 217, 0.42);
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.04rem;
}

.service-card,
.gallery-card {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.service-card .muted {
    margin-bottom: 0;
    font-size: 0.93rem;
    line-height: 1.5;
    color: rgba(156, 163, 184, 0.72);
}

.service-card h3 {
    margin: 0.08rem 0 0.18rem;
    font-size: 1.05rem;
}

.service-media,
.gallery-media {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    background: #0d121d;
}

.service-media::after,
.gallery-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 8, 14, 0.48), rgba(5, 8, 14, 0.08));
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

.service-media::before,
.gallery-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 8%, rgba(196, 223, 239, 0.2) 20%, rgba(255, 255, 255, 0) 34%),
        rgba(18, 28, 43, 0.95);
    transform: translateX(-100%);
    animation: mediaShimmer 1.5s infinite;
    z-index: 1;
}

.service-media img,
.gallery-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
    opacity: 0;
    filter: blur(8px);
    position: relative;
    z-index: 2;
}

.gallery-media {
    aspect-ratio: 4 / 3;
}

.gallery-media img {
    height: 100%;
    object-fit: contain;
    object-position: center top;
    background: #090d15;
}

.service-media:hover::after,
.gallery-media:hover::after {
    opacity: 0.62;
}

.service-media:hover img,
.gallery-media:hover img {
    transform: scale(1.04);
}

.service-media__ref,
.service-media__label {
    position: absolute;
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-media__ref {
    top: 0.52rem;
    right: 0.62rem;
    font-size: 0.53rem;
    color: rgba(221, 229, 240, 0.42);
}

.service-media__label {
    left: 0.52rem;
    bottom: 0.52rem;
    font-size: 0.52rem;
    color: rgba(222, 231, 245, 0.9);
    background: rgba(4, 8, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.15rem 0.38rem;
    max-width: calc(100% - 1rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-media.is-loaded::before,
.gallery-media.is-loaded::before {
    display: none;
}

.service-media.is-loaded img,
.gallery-media.is-loaded img {
    opacity: 1;
    filter: blur(0);
}

.service-card:hover,
.gallery-card:hover {
    border-color: rgba(123, 182, 214, 0.5);
}

.service-meta {
    margin-top: auto;
    padding-top: 0.62rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.service-meta span {
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(156, 163, 184, 0.7);
}

.service-meta__arrow {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: rgba(196, 181, 253, 0.8);
    flex-shrink: 0;
}

.gallery-card h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
}

#gallery {
    padding-top: 2.4rem;
}

#gallery .container {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.gallery-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.gallery-head h2 {
    margin-bottom: 0;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.gallery-head h2 em {
    font-style: normal;
    font-weight: 400;
    color: #d5ddea;
    opacity: 0.95;
}

.gallery-head__meta {
    margin: 0;
    text-align: right;
    white-space: nowrap;
    color: rgba(156, 163, 184, 0.72);
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.5;
}

#gallery .gallery-carousel {
    display: block;
}

#gallery .gallery-nav {
    display: none;
}

.gallery-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    align-items: center;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.15rem 0.1rem 0.25rem;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 calc((100% - 2rem) / 3);
    scroll-snap-align: start;
}

#gallery .gallery-track {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.5rem;
    grid-auto-flow: row;
    grid-auto-rows: minmax(118px, auto);
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
}

#gallery .gallery-slide {
    grid-column: span 4;
    min-height: 118px;
}

#gallery .gallery-slide--hidden {
    display: none;
}

#gallery .gallery-slide:nth-child(1) {
    grid-column: 1 / span 6;
    grid-row: 1 / span 2;
    min-height: 244px;
}

#gallery .gallery-slide:nth-child(2) { grid-column: 7 / span 3; grid-row: 1; }
#gallery .gallery-slide:nth-child(3) { grid-column: 10 / span 3; grid-row: 1; }
#gallery .gallery-slide:nth-child(4) { grid-column: 7 / span 3; grid-row: 2; }
#gallery .gallery-slide:nth-child(5) { grid-column: 10 / span 3; grid-row: 2; }
#gallery .gallery-slide:nth-child(6) { grid-column: 1 / span 4; grid-row: 3; }
#gallery .gallery-slide:nth-child(7) { grid-column: 5 / span 4; grid-row: 3; }
#gallery .gallery-slide:nth-child(8) { grid-column: 9 / span 4; grid-row: 3; }

#gallery .gallery-card {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 0;
    overflow: hidden;
}

#gallery .gallery-media {
    width: 100%;
    height: 100%;
    min-height: inherit;
    aspect-ratio: auto;
    position: relative;
    border: 0;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 8px, rgba(255, 255, 255, 0.045) 8px 16px),
        #0d111a;
}

#gallery .gallery-media::before {
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 10%, rgba(196, 223, 239, 0.15) 21%, rgba(255, 255, 255, 0) 35%);
    z-index: 2;
}

#gallery .gallery-media::after {
    z-index: 3;
    background: linear-gradient(to top, rgba(2, 5, 10, 0.82) 0%, rgba(2, 5, 10, 0.12) 55%, rgba(2, 5, 10, 0.36) 100%);
}

#gallery .gallery-media img {
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center;
}

#gallery .gallery-media__ref {
    position: absolute;
    top: 0.58rem;
    right: 0.72rem;
    z-index: 4;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(220, 227, 239, 0.5);
}

#gallery .gallery-media__label {
    position: absolute;
    left: 0.58rem;
    bottom: 0.58rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 1.25rem;
    padding: 0.1rem 0.36rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 8, 16, 0.85);
    color: rgba(226, 233, 245, 0.9);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    max-width: calc(100% - 1.2rem);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gallery-more {
    margin-top: 0.7rem;
    display: flex;
    justify-content: center;
}

.gallery-more__btn {
    min-width: 190px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-color: rgba(139, 92, 246, 0.34);
    color: #d9cfff;
    background: rgba(139, 92, 246, 0.08);
}

.gallery-more__btn:hover {
    border-color: rgba(139, 92, 246, 0.58);
    background: rgba(139, 92, 246, 0.15);
}

.gallery-nav {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(12, 19, 30, 0.72);
    color: #dbe8f5;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-nav:hover {
    border-color: rgba(147, 191, 218, 0.5);
}

.gallery-nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.feature-card {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 0.44rem;
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    padding: 0.92rem 1rem 0.82rem;
    min-height: 100%;
}

.feature-card::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 2.15rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(145, 193, 217, 0.52), transparent);
    opacity: 0.52;
}

.feature-ref {
    position: static;
    display: block;
    margin: 0 0 0.1rem;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(220, 227, 239, 0.42);
}

.feature-card h3 {
    margin: 0.32rem 0 0.24rem;
    font-size: 1.02rem;
    line-height: 1.28;
}

.feature-card .muted {
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(156, 163, 184, 0.72);
}

.feature-meta {
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.feature-meta span {
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(156, 163, 184, 0.7);
}

.feature-meta__arrow {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: rgba(196, 181, 253, 0.8);
    flex-shrink: 0;
}

.muted {
    color: var(--muted);
}

.contact-map {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 11px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.contact-map__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.contact-map__head h3 {
    margin-bottom: 0.28rem;
}

.contact-map__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
}

.contact-map__meta span {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 0.3rem 0.62rem;
    color: #c9d6e8;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.84rem;
}

.contact-map__frame {
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: #0b101a;
    min-height: 320px;
}

.contact-map__frame iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

.lightbox {
    width: min(94vw, 1100px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 0;
    background: rgba(7, 11, 18, 0.96);
    color: var(--text);
}

.lightbox::backdrop {
    background: rgba(2, 4, 9, 0.78);
    backdrop-filter: blur(3px);
}

.lightbox__backdrop {
    margin: 0;
    position: relative;
    padding: 0.9rem;
    border: 0;
    background: transparent;
}

.lightbox__close {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(8, 13, 22, 0.78);
    color: #e7eefb;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__figure {
    margin: 0;
}

.lightbox__figure img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.lightbox__figure figcaption {
    margin-top: 0.55rem;
    color: #c4d0e3;
    font-size: 0.92rem;
}

@keyframes mediaShimmer {
    100% {
        transform: translateX(100%);
    }
}

.steps {
    counter-reset: orderStep;
    display: grid;
    gap: 1rem;
}

.step {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1rem;
    padding-left: 3rem;
    position: relative;
}

.step::before {
    counter-increment: orderStep;
    content: counter(orderStep);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 1.5rem;
    text-align: center;
    color: #09141a;
    background: linear-gradient(180deg, #a78bfa, #8b5cf6);
}

/* ── FUTURISTIC FORM ── */
.form {
    border: 1px solid rgba(139, 92, 246, 0.22);
    background: rgba(6, 5, 20, 0.88);
    padding: 0;
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

/* Scan beam */
@keyframes formScan {
    0%   { top: 0;    opacity: 0; }
    6%   {            opacity: 1; }
    94%  {            opacity: 0.4; }
    100% { top: 100%; opacity: 0; }
}
.form::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(var(--accent-rgb), 0.75) 50%, transparent 95%);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
    animation: formScan 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

/* Tech top bar */
.form-topbar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1.4rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
    background: rgba(139, 92, 246, 0.04);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(196, 181, 253, 0.5);
    user-select: none;
}
.form-topbar__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}
.form-topbar__label { color: rgba(196, 181, 253, 0.65); }
.form-topbar__status { margin-left: auto; color: #4ade80; }

/* Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* Field cell */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 1px solid rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    padding: 1rem 1.2rem;
    position: relative;
    transition: background 0.2s ease;
}
.form-field:nth-child(3n) { border-right: none; }
.form-field:focus-within {
    background: rgba(139, 92, 246, 0.04);
}
.form-field:focus-within::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.7);
}

.form-field__label {
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(196, 181, 253, 0.55);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    white-space: nowrap;
}
.form-field__hint {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
    color: rgba(139, 92, 246, 0.45);
    text-transform: none;
    font-weight: 400;
    white-space: normal;
}

/* Global form inputs — reset defaults */
label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 500;
}

input:not([type="hidden"]):not([type="file"]),
select,
textarea {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.97rem;
    color: var(--text);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(156, 163, 184, 0.3);
}

select {
    appearance: none;
    cursor: pointer;
}
select option {
    background: #0e0b2a;
    color: var(--text);
}

textarea {
    min-height: 95px;
    resize: vertical;
    line-height: 1.55;
}

/* File input */
.form-field--file { grid-column: span 1; }

.form-file-input {
    width: 100% !important;
    cursor: pointer;
    font-size: 0.83rem !important;
    color: rgba(196, 181, 253, 0.65) !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
.form-file-input::file-selector-button {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    padding: 0.32rem 0.75rem;
    margin-right: 0.65rem;
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}
.form-file-input::file-selector-button:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.65);
}

/* Form footer */
.form-footer {
    padding: 1.1rem 1.4rem;
    border-top: 1px solid rgba(139, 92, 246, 0.12);
    background: rgba(139, 92, 246, 0.03);
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.form-submit {
    padding: 0.82rem 2.4rem;
    font-size: 0.93rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* Focus states for enhanced fields override */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.note {
    font-size: 0.8rem;
    color: rgba(156, 163, 184, 0.5);
    margin: 0;
}
.note a {
    color: rgba(196, 181, 253, 0.65);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq {
    display: grid;
    gap: 0.8rem;
}

.faq details {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: var(--surface);
    padding: 0.9rem 1rem;
}

.faq summary {
    font-weight: 600;
    cursor: pointer;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.4rem 0 2rem;
    background: rgba(10, 13, 20, 0.78);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.hidden-trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.has-scroll-anim .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.has-scroll-anim .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .has-scroll-anim .reveal-on-scroll,
    .has-scroll-anim .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-enum__item {
        opacity: 1;
        transform: none;
    }

    .hero-enum__progress::before {
        animation: none;
        transform: translateX(0);
        width: 100%;
        opacity: 0.6;
    }
}

@media (max-width: 980px) {
    .site-header__inner {
        min-height: 66px;
    }

    .top-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .top-nav::-webkit-scrollbar {
        display: none;
    }

    .site-header__topline {
        min-height: 33px;
    }

    .quick-links {
        display: none;
    }

    .lab-status {
        font-size: 0.68rem;
    }

    .header-phone,
    .header-cta {
        display: none;
    }

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

    .hero-visual {
        min-height: 0;
    }

    .trust-strip {
        grid-template-columns: 1fr 1fr;
    }
    .trust-sep {
        display: none;
    }
    .trust-stat {
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

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

    .gallery-slide {
        flex-basis: calc((100% - 1rem) / 2);
    }

    .gallery-head {
        flex-direction: column;
        gap: 0.6rem;
    }

    .gallery-head__meta {
        text-align: left;
    }

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

    #gallery .gallery-slide,
    #gallery .gallery-slide:nth-child(1) {
        grid-column: auto;
        grid-row: auto;
        min-height: 190px;
    }
}

@media (max-width: 780px) {
    .gallery-carousel {
        grid-template-columns: 1fr;
    }

    .gallery-nav {
        display: none;
    }
}

@media (max-width: 700px) {
    section {
        padding: 2.6rem 0;
    }

    /* Header stays single row on mobile */
    .site-header__inner {
        flex-wrap: nowrap;
        min-height: 60px;
        padding: 0;
        gap: 0.5rem;
    }

    .site-header__topline {
        min-height: 30px;
    }

    .header-right {
        gap: 0.4rem;
    }

    .top-nav {
        display: none;
    }

    .header-phone {
        display: none;
    }

    /* Hide desktop phone and CTA — both live in mobile-nav */
    .header-phone,
    .header-cta {
        display: none;
    }

    /* Mobile nav: show phone + CTA */
    .mobile-nav {
        top: 90px;
    }

    /* Hero */
    .hero {
        padding-top: 3.8rem;
    }

    .hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .hero p {
        font-size: 0.95rem;
    }

    .actions--hero .btn {
        flex: 1 1 100%;
    }

    .hero-vis-stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero-enum__item p {
        font-size: 0.73rem;
    }

    /* Trust */
    .trust-strip {
        grid-template-columns: 1fr;
    }

    /* Grids */
    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
    }

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

    /* Gallery */
    .gallery-slide {
        flex-basis: 100%;
    }

    #gallery .gallery-track {
        grid-template-columns: 1fr;
    }

    #gallery .gallery-slide,
    #gallery .gallery-slide:nth-child(1) {
        min-height: 180px;
    }

    .service-media img,
    .gallery-media img {
        height: 200px;
    }

    /* Contacts */
    .contact-map__head {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-map__head .actions .btn {
        flex: 1 1 100%;
    }

    /* Steps */
    .steps::after {
        display: none;
    }
}

/* ============================================================
   NO BORDER RADIUS — sharp corners everywhere
   ============================================================ */
.hero__box,
.hero-visual,
.hero-vis-content,
.hero-panel,
.hero-label,
.hero-enum__item,
.hero-enum__progress,
.trust-item,
.card,
.service-media,
.gallery-media,
.gallery-nav,
.btn,
.lightbox,
.lightbox__close,
.lightbox__figure img,
.step,
.feature-icon,
.contact-map,
.contact-map__frame,
.contact-map__frame iframe,
.contact-map__meta span,
.faq details,
.menu-toggle,
input,
select,
textarea,
.mobile-nav,
.form {
    border-radius: 0 !important;
}

/* step counter badge stays circular for readability */
.step::before {
    border-radius: 2px !important;
}

/* ============================================================
   TECH WOW ENHANCEMENTS
   ============================================================ */

/* --- Particle canvas --- */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

/* --- Cursor glow (desktop) --- */
.cursor-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.055) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: left 0.08s linear, top 0.08s linear;
}

@media (hover: none) {
    .cursor-glow { display: none; }
}

/* --- Hero orb morphing + pulse --- */
@keyframes orbMorph {
    0%, 100% { border-radius: 42% 58% 56% 44% / 45% 38% 62% 55%; }
    25%       { border-radius: 58% 42% 40% 60% / 60% 55% 45% 40%; }
    50%       { border-radius: 38% 62% 65% 35% / 50% 40% 60% 50%; }
    75%       { border-radius: 55% 45% 50% 50% / 38% 62% 38% 62%; }
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.76; transform: scale(1); }
    50%       { opacity: 1;    transform: scale(1.03); }
}

.hero-orb {
    animation: orbMorph 12s ease-in-out infinite, orbPulse 5s ease-in-out infinite;
}

/* --- Hero visual scanning beam --- */
@keyframes heroScan {
    0%   { transform: translateY(0);    opacity: 0; }
    8%   {                              opacity: 1; }
    92%  {                              opacity: 0.5; }
    100% { transform: translateY(600px); opacity: 0; }
}

.hero-scan-beam {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, rgba(var(--accent-rgb), 0.85) 50%, transparent 95%);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
    animation: heroScan 4.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

/* --- Hero label — pulsing dot --- */
.hero-label::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.45rem;
    vertical-align: middle;
    margin-top: -1px;
    animation: labelDot 2s ease-in-out infinite;
}

@keyframes labelDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55); opacity: 1; }
    50%       { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0);   opacity: 0.7; }
}

/* --- Hero main panel — accent border + glow --- */
.hero-panel--main {
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 18px rgba(var(--accent-rgb), 0.1);
}

/* --- Logo glitch on hover --- */
@keyframes glitchTop {
    0%, 88%, 100% { clip-path: none; transform: translate(0); filter: none; }
    89% { clip-path: inset(15% 0 70% 0); transform: translate(-3px, 0); filter: hue-rotate(50deg) brightness(1.3); }
    90% { clip-path: inset(58% 0 8% 0);  transform: translate(3px, 0);  filter: hue-rotate(-40deg); }
    91% { clip-path: inset(30% 0 42% 0); transform: translate(-2px, 0); filter: none; }
    92% { clip-path: none; transform: translate(0); }
}

.logo:hover .logo__title {
    animation: glitchTop 3.5s steps(1) infinite;
}

/* --- Cards: enhanced hover glow + scan lines --- */
.card {
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: rgba(var(--accent-rgb), 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(var(--accent-rgb), 0.04),
        0 0 0 1px rgba(var(--accent-rgb), 0.06),
        0 0 28px rgba(var(--accent-rgb), 0.14),
        0 18px 40px rgba(0, 0, 0, 0.38);
}

/* Scan sweep on .card::after */
.card::after {
    content: "";
    position: absolute;
    inset: -20% 0;
    width: 100%;
    height: 140%;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0) 0 7px,
            rgba(var(--accent-rgb), 0.08) 7px 8px
        ),
        linear-gradient(
            95deg,
            transparent 10%,
            rgba(var(--accent-rgb), 0.2) 48%,
            transparent 86%
        );
    opacity: 0;
    transform: translateX(-35%);
    pointer-events: none;
    z-index: 1;
}

@keyframes cardScan {
    0% {
        opacity: 0;
        transform: translateX(-35%);
    }
    18% {
        opacity: 0.55;
    }
    100% {
        opacity: 0;
        transform: translateX(35%);
    }
}

.card:hover::after {
    animation: cardScan 0.9s ease;
}

/* Ensure card children are above shimmer */
.card > * {
    position: relative;
    z-index: 2;
}

/* --- Feature icon: just a colored glyph, no frame --- */
.feature-icon {
    transition: transform 0.25s ease, color 0.25s ease;
}

.feature-card:hover .feature-icon {
    color: #c4b5fd;
    transform: scale(1.15);
}

/* --- Primary button: shimmer + neon glow --- */
.btn--primary {
    position: relative;
    overflow: hidden;
}

.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    transform: translateX(-150%);
    pointer-events: none;
    z-index: 1;
}

@keyframes btnShimmer {
    to { transform: translateX(250%); }
}

.btn--primary:hover::after {
    animation: btnShimmer 0.55s ease forwards;
}

.btn--primary:hover {
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 0 22px rgba(var(--accent-rgb), 0.35),
        0 8px 22px rgba(109, 40, 217, 0.45);
}

/* --- Trust strip hover --- */
.trust-stat {
    transition: background 0.2s ease;
}

.trust-stat:hover {
    background: rgba(var(--accent-rgb), 0.04);
}

.trust-stat:hover .trust-stat__value {
    color: #c4b5fd;
}

/* --- Steps: vertical connector + hover shift --- */
.steps {
    position: relative;
}

.steps::after {
    content: "";
    position: absolute;
    left: 1.73rem;
    top: 3rem;
    bottom: 3rem;
    width: 1px;
    background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0.55) 0%, rgba(var(--accent-rgb), 0.08) 100%);
    pointer-events: none;
}

.step {
    position: relative;
    transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.step:hover {
    border-color: rgba(var(--accent-rgb), 0.42);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 1px rgba(var(--accent-rgb), 0.1);
}

.step::before {
    background: linear-gradient(135deg, #c4b5fd, var(--accent));
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15), 0 0 14px rgba(var(--accent-rgb), 0.35);
    font-weight: 700;
}

/* --- FAQ: left bar + +/- toggle --- */
.faq details {
    transition: border-color 0.3s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.faq details::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.faq details[open] {
    border-color: rgba(var(--accent-rgb), 0.32);
    background: rgba(var(--accent-rgb), 0.03);
}

.faq details[open]::before {
    opacity: 1;
}

.faq summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
    line-height: 1;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
    color: #a78bfa;
}

/* --- Material cards: colored top border --- */
.material-zr    { border-top: 2px solid rgba(99, 197, 222, 0.55); }
.material-pmma  { border-top: 2px solid rgba(168, 130, 220, 0.5); }
.material-cocr  { border-top: 2px solid rgba(185, 185, 200, 0.5); }
.material-titan { border-top: 2px solid rgba(120, 165, 225, 0.5); }
.material-wax   { border-top: 2px solid rgba(240, 200,  90, 0.45); }
.material-emax  { border-top: 2px solid rgba(220, 130, 130, 0.5); }

/* form styles moved to main form block above */

/* --- Staggered reveal for grid cards --- */
.has-scroll-anim .reveal-on-scroll {
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.grid--3 .card:nth-child(1)      { transition-delay: 0.05s; }
.grid--3 .card:nth-child(2)      { transition-delay: 0.17s; }
.grid--3 .card:nth-child(3)      { transition-delay: 0.29s; }
.grid--3 .card:nth-child(4)      { transition-delay: 0.41s; }
.grid--3 .card:nth-child(5)      { transition-delay: 0.53s; }
.grid--3 .card:nth-child(6)      { transition-delay: 0.65s; }
.grid--3 .card:nth-child(7)      { transition-delay: 0.77s; }
.grid--3 .card:nth-child(8)      { transition-delay: 0.89s; }
.services-grid .card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .card:nth-child(2) { transition-delay: 0.12s; }
.services-grid .card:nth-child(3) { transition-delay: 0.19s; }
.services-grid .card:nth-child(4) { transition-delay: 0.26s; }
.services-grid .card:nth-child(5) { transition-delay: 0.33s; }
.services-grid .card:nth-child(6) { transition-delay: 0.4s;  }

/* --- Custom scrollbar --- */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), 0.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.5); }

/* --- Mobile hamburger menu --- */
.menu-toggle {
    display: none;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 7px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.06);
}

.menu-toggle span {
    display: block;
    width: 1.1rem;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.26s ease, opacity 0.26s ease, width 0.26s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: 98px;
    left: 0;
    right: 0;
    background: rgba(8, 11, 20, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 39;
    transform: translateY(-110%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

@media (min-width: 701px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav.is-open {
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav a:not(.btn) {
    text-decoration: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav a:not(.btn)::before {
    content: "›";
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
}

.mobile-nav a:not(.btn):hover {
    color: var(--accent);
    padding-left: 0.3rem;
}

.mobile-nav a:last-of-type:not(.btn):not(.mobile-nav__phone) {
    border-bottom: 0;
}

.mobile-nav__contacts {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-top: 0.8rem;
    margin-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__phone {
    text-decoration: none;
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    border-bottom: 0 !important;
    padding: 0 !important;
}

.mobile-nav__phone::before {
    content: none !important;
}

@media (max-width: 980px) {
    .menu-toggle { display: none; }

    /* Disable pulsing CTA animation on mobile (it's hidden anyway) */
    .header-cta { animation: none; }

    /* Form 2 columns on tablet */
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-field:nth-child(3n) { border-right: 1px solid rgba(139, 92, 246, 0.1); }
    .form-field:nth-child(2n) { border-right: none; }

    /* Disable particle canvas on tablet too */
    #particle-canvas { display: none; }

    /* Services 2-col on tablet */
    .hero-panel--main strong { font-size: 0.92rem; }
}

@media (max-width: 700px) {
    .mobile-nav {
        display: flex;
    }

    .menu-toggle { display: flex; }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 1.4rem);
    }

    .hero__box {
        padding: 1.1rem;
    }

    .hero-vis-stats {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .trust-stat {
        padding: 1rem 1.1rem;
    }

    .trust-stat__value {
        font-size: 0.9rem;
    }

    .step {
        padding-left: 2.6rem;
    }

    .card {
        padding: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-field {
        border-right: none;
    }
    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .form-submit {
        width: 100%;
        justify-content: center;
    }
}

/* --- Reduced motion overrides for new animations --- */
@media (prefers-reduced-motion: reduce) {
    .hero-orb            { animation: none; }
    .hero-scan-beam      { animation: none; display: none; }
    .hero-label::before  { animation: none; }
    .btn--primary::after { animation: none !important; }
    .card::after         { animation: none !important; }
    .logo:hover .logo__title { animation: none; }
    .trust-item:hover    { transform: none; }
    .step:hover          { transform: none; }
}
