/*
Theme Name: Horizon Marketing
Description: Egyoldalas, letisztult ügynökségi sablon lebegő kapszula navigációval.
Version: 1.7

*/

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --neon-purple: #b026ff;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    padding-top: 120px;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.05;
    text-transform: none;
    letter-spacing: -0.05em;
    margin-bottom: 30px;
}

.highlight {
    color: var(--neon-purple);
}

.hero-title .highlight {
    display: inline-block;
    background: linear-gradient(90deg, #dcc0ff 0%, #b026ff 55%, #8a00e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(176, 38, 255, 0.35));
    clip-path: inset(-10% 100% -10% 0);
    opacity: 0;
}

.hero-container.visible .hero-title .highlight {
    animation: highlightReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

@keyframes highlightReveal {
    0%   { opacity: 0; clip-path: inset(-10% 100% -10% 0); transform: translateY(14px); letter-spacing: 0.08em; }
    100% { opacity: 1; clip-path: inset(-10% -5% -10% 0); transform: translateY(0); letter-spacing: -0.05em; }
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(ellipse at center, rgba(176, 38, 255, 0.12) 0%, transparent 55%),
        var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.intro-content {
    text-align: center;
    position: relative;
    animation: introExit 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.25s;
}

.intro-horizon {
    display: flex;
    justify-content: center;
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-color);
}

.intro-horizon .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) scale(1.4);
    filter: blur(10px);
    animation: letterIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--i) * 55ms);
}

.intro-horizon .purple-o {
    text-shadow: none;
    filter: none;
    animation: oIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               oFlash 0.7s ease-out forwards 0.55s;
    animation-delay: calc(var(--i) * 55ms), 0.83s;
}

.intro-line {
    height: 2px;
    width: 100%;
    margin: 6px auto 4px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), #fff, var(--neon-purple), transparent);
    box-shadow: 0 0 16px rgba(176, 38, 255, 0.8);
    transform: scaleX(0);
    opacity: 0;
    animation: lineSweep 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards 0.35s;
}

.intro-marketing {
    font-size: clamp(1rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.4em;
    color: #cfcfcf;
    margin-top: 6px;
    padding-left: 0.4em;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    animation: marketingReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

.purple-o {
    color: var(--neon-purple);
    text-shadow: 0 0 30px rgba(176, 38, 255, 0.8);
}

@keyframes letterIn {
    0%   { opacity: 0; transform: translateY(60px) scale(1.4); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: none; }
}

@keyframes oIn {
    0%   { opacity: 0; transform: translateY(60px) scale(1.4); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes oFlash {
    0%   { text-shadow: 0 0 30px rgba(176, 38, 255, 0.8); }
    40%  { text-shadow: 0 0 20px #fff, 0 0 60px var(--neon-purple), 0 0 120px var(--neon-purple); transform: scale(1.12); }
    100% { text-shadow: 0 0 30px rgba(176, 38, 255, 0.8); transform: scale(1); }
}

@keyframes lineSweep {
    0%   { transform: scaleX(0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: scaleX(1); opacity: 0.9; }
}

@keyframes marketingReveal {
    0%   { opacity: 0; clip-path: inset(0 100% 0 0); letter-spacing: 0.9em; filter: blur(6px); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); letter-spacing: 0.4em; filter: none; }
}

@keyframes introExit {
    from { opacity: 1; transform: scale(1); filter: blur(0); }
    to   { opacity: 0; transform: scale(1.12); filter: blur(8px); }
}

.neon-streak {
    position: fixed;
    top: 0;
    left: 50%;
    width: 4px;
    height: 130px;

    background: linear-gradient(to top, transparent 0%, rgba(176, 38, 255, 0.5) 55%, #d98cff 90%, #fff 100%);
    box-shadow: 0 0 12px rgba(176, 38, 255, 0.9), 0 0 30px rgba(176, 38, 255, 0.5);
    border-radius: 4px 4px 0 0;
    transform: translate(-50%, 110vh);
    transform-origin: 50% 0;

    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
}

.impact-ring {
    position: fixed;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 20px var(--neon-purple), inset 0 0 12px var(--neon-purple);
    z-index: 1002;
    pointer-events: none;
}

.impact-spark {
    position: fixed;
    width: 3px;
    height: 3px;
    margin: -1.5px 0 0 -1.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px var(--neon-purple), 0 0 16px var(--neon-purple);
    z-index: 1002;
    pointer-events: none;
}

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000;
}

.scroll-progress-bar {

    width: 100%;
    height: 100%;
    background: var(--neon-purple);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.8);
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
}

.floating-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -30px);
    z-index: 1000;
    width: 90%;
    max-width: 800px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.floating-header.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.capsule-nav {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    padding: 12px 25px;
    position: relative;
    border: 1px solid transparent;
}

.nav-glow-ring {
    position: absolute;
    top: -1px;
    left: -1px;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
}

.nav-glow-ring .ring-trail {
    fill: none;
    stroke: var(--neon-purple);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(176, 38, 255, 0.9)) drop-shadow(0 0 12px rgba(176, 38, 255, 0.6));
}

.nav-glow-ring .ring-head {
    fill: #fff;
    filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px var(--neon-purple));
}

.nav-glow-ring.settled { animation: ringFadeOut 0.9s ease-out forwards; }

@keyframes ringFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.capsule-nav { transition: border-color 0.9s ease; }
.capsule-nav.pulsing { border-color: rgba(176, 38, 255, 0.3); }

.capsule-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.capsule-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.capsule-nav a:hover {
    background: transparent;
    color: #c58bff;
}

.capsule-nav a.brand {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.capsule-nav a.brand:hover {
    color: #c58bff;
}

.hidden-initially {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hidden-initially.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-section {

    min-height: calc(100vh + 90px);
    min-height: calc(100svh + 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    margin-top: -120px;
    padding-top: 120px;
    padding-bottom: 90px;
    position: relative;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -120px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(176, 38, 255, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(176, 38, 255, 0.16) 0%, transparent 70%),
        radial-gradient(ellipse 35% 60% at 0% 50%, rgba(176, 38, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 35% 60% at 100% 50%, rgba(176, 38, 255, 0.12) 0%, transparent 70%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    gap: 50px;
}

.hero-left { flex: 1; }
.hero-right {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--neon-purple);
    color: #fff;
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.5);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.8);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.phone-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.phone-container::before {
    content: '';
    position: absolute;
    top: 1.2%;
    bottom: 1.2%;
    left: 4.5%;
    right: 4.5%;
    background-color: #000000;
    border-radius: 38px;
    z-index: -1;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.3), 0 20px 40px rgba(0, 0, 0, 0.8);
}

.phone-container::after {
    content: '';
    position: absolute;
    top: 1.2%;
    bottom: 1.2%;
    left: 4.5%;
    right: 4.5%;
    border-radius: 38px;
    z-index: -1;
    box-shadow: 0 0 40px rgba(176, 38, 255, 0.85);
    animation: softPulse 3.5s infinite alternate ease-in-out;
    will-change: opacity;
    pointer-events: none;
}

.phone-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.phone-video {
    position: absolute;
    left: 6.13%;
    top: 1.5%;
    width: 87.6%;
    height: 97%;
    object-fit: cover;
    border-radius: 12.5% / 5.8%;
    background: #000;
    z-index: 0;
    pointer-events: none;
}

html { scroll-behavior: smooth; }

.team-section {
    position: relative;
    z-index: 2;
    margin-top: -90px;
    padding: 140px 5% 130px;
    border-radius: 48px 48px 0 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(140, 70, 255, 0.16) 0%, transparent 70%),
        linear-gradient(180deg, #120a24 0%, #0c0818 45%, #09060f 100%);
    box-shadow:
        0 -40px 100px rgba(0, 0, 0, 0.75),
        0 -1px 0 rgba(176, 38, 255, 0.45),
        inset 0 1px 0 rgba(200, 140, 255, 0.18);
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20%;
    width: min(900px, 120vw);
    height: 600px;
    margin-left: calc(min(900px, 120vw) / -2);
    background: radial-gradient(ellipse at center, rgba(176, 38, 255, 0.10) 0%, transparent 65%);
    transform: translate3d(0, calc(var(--tp, 0) * 1px), 0);
    pointer-events: none;
    will-change: transform;
}

.team-inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.team-section .section-header {
    text-align: center;
}

.team-section .section-header h2 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.team-section .section-header .highlight {
    background: linear-gradient(90deg, #dcc0ff 0%, #b026ff 60%, #8a00e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgba(176, 38, 255, 0.3));
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--d, 0) * 90ms);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.capsule-nav a.active {
    color: #c58bff;
}

.team-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    max-width: 1180px;
    margin: 70px auto 0;
}

.team-card {
    grid-column: span 2;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(176, 38, 255, 0.10) 0%, transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%),
        #0b0814;
    border: 1px solid rgba(176, 38, 255, 0.14);
    border-radius: 28px;
    padding: 56px 28px 48px;
    text-align: center;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.45s ease,
                box-shadow 0.45s ease;
    position: relative;
    overflow: hidden;
}

.team-card:nth-child(4) { grid-column: 2 / span 2; }
.team-card:nth-child(5) { grid-column: 4 / span 2; }

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 140, 255, 0.7), transparent);
    opacity: 0.6;
    transition: opacity 0.45s ease, left 0.45s ease, right 0.45s ease;
}

.team-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px auto;
    background: radial-gradient(circle at 30% 25%, #1c1430 0%, #0e0a18 70%);
    border: 2px solid rgba(176, 38, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-color);
    box-shadow: 0 0 0 8px rgba(176, 38, 255, 0.04), 0 0 30px rgba(176, 38, 255, 0.15);
    transition: all 0.45s ease;
}

.team-card h3 {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.team-role {
    color: var(--neon-purple);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(176, 38, 255, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8),
                0 0 35px rgba(176, 38, 255, 0.25);
}

.team-card:hover::before { opacity: 1; left: 5%; right: 5%; }

.team-card:hover .team-avatar {
    border-color: var(--neon-purple);
    background: rgba(176, 38, 255, 0.12);
    box-shadow: 0 0 0 10px rgba(176, 38, 255, 0.08), 0 0 40px rgba(176, 38, 255, 0.55);
    color: #e2c4ff;
    transform: scale(1.04);
}

@media (max-width: 992px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .team-card,
    .team-card:nth-child(4) { grid-column: span 1; }

    .team-card:nth-child(5) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
    .team-avatar { width: 130px; height: 130px; font-size: 2rem; }
}

@media (max-width: 600px) {
    .team-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 50px; }
    .team-card:nth-child(5) { width: 100%; }
    .team-card { padding: 44px 22px 38px; }
    .team-avatar { width: 120px; height: 120px; }
    .team-card h3 { font-size: 1.4rem; }
}

.team-card {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.team-card h3,
.team-card .team-role {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-avatar { transition: all 0.45s ease, opacity 0.25s ease; }

.team-photo {
    position: absolute;
    left: var(--av-x, calc(50% - 75px));
    top: var(--av-y, 56px);
    width: var(--av-s, 150px);
    height: var(--av-s, 150px);
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease 0.4s;
}

.team-photo picture,
.team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 5, 15, 0.35) 62%, rgba(8, 5, 15, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .team-card.has-photo:hover .team-photo {
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        opacity: 1;
        transition:
            left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.1s ease 0s;
    }

    .team-card.has-photo:hover .team-photo-shade { opacity: 1; transition-delay: 0.15s; }
    .team-card.has-photo:hover .team-avatar { opacity: 0; }

    .team-card.has-photo:hover h3,
    .team-card.has-photo:hover .team-role { transform: translateY(var(--txt-drop, 40px)); }
    .team-card.has-photo:hover h3 { color: #fff; }
    .team-card.has-photo:hover .team-role { color: #e7ccff; }

    html[data-theme="light"] .team-card.has-photo:hover h3 { color: #fff; }
    html[data-theme="light"] .team-card.has-photo:hover .team-role { color: #e7ccff; }
}

.ref-section {
    position: relative;
    z-index: 2;
    padding: 120px 5% 140px;

    background:
        radial-gradient(ellipse 75% 55% at 50% 58%, rgba(176, 38, 255, 0.20) 0%, rgba(176, 38, 255, 0.07) 55%, transparent 100%),
        radial-gradient(ellipse 45% 50% at 0% 50%, rgba(140, 60, 255, 0.14) 0%, transparent 100%),
        radial-gradient(ellipse 45% 50% at 100% 55%, rgba(176, 38, 255, 0.14) 0%, transparent 100%),
        var(--bg-color);
    overflow: hidden;
}

.ref-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ref-section .section-header { text-align: center; }

.ref-section .section-header h2 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.ref-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 40px auto 50px;
    padding: 6px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(176, 38, 255, 0.25);
}

.ref-tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: #bdbdbd;
    background: transparent;
    padding: 12px 24px;
    border-radius: 40px;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.ref-tab:hover { color: #fff; }

.ref-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(176, 38, 255, 0.55), rgba(110, 30, 200, 0.55));
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.45);
}

.ref-stage { display: none; }
.ref-stage.active { display: block; animation: stageIn 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes stageIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.laptop {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    container-type: inline-size;
}

.laptop::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 4%;
    height: 14%;
    background: radial-gradient(ellipse at center, rgba(176, 38, 255, 0.5) 0%, transparent 70%);
    pointer-events: none;
}

.laptop::after {
    content: '';
    position: absolute;
    inset: -20% -25%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 50% at 50% 48%, rgba(176, 38, 255, 0.22) 0%, transparent 100%);
    animation: laptopGlow 6s ease-in-out infinite alternate;
    will-change: opacity;
}

@keyframes laptopGlow {
    from { opacity: 0.7; }
    to   { opacity: 1; }
}

.laptop-screen {
    position: absolute;
    left: 8.667%;
    top: 11%;
    width: 81.75%;
    height: 70.33%;
    overflow: hidden;

    border-radius: 1cqw 1cqw 0.6cqw 0.6cqw;

    clip-path: inset(0.12cqw 0.12cqw 0.12cqw 0.12cqw round 1cqw 1cqw 0.6cqw 0.6cqw);
    background: #000;
    cursor: pointer;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1;
    outline: none;
}

.laptop-screen:focus-visible { box-shadow: 0 0 0 2px var(--neon-purple); }

.laptop-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

.laptop-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    filter:
        drop-shadow(0 0 2px rgba(220, 170, 255, 0.6))
        drop-shadow(0 0 18px rgba(176, 38, 255, 0.55))
        drop-shadow(0 0 48px rgba(176, 38, 255, 0.30));
}

.ref-track {
    display: flex;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ref-track.dragging { transition: none; cursor: grabbing; }

.ref-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1030, #0b0816);
}
.ref-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 2;
}

.ref-slide img,
.ref-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, 50% 0);
    pointer-events: none;
}

.ref-slide:has(img) { background: #000; }
.ref-slide:has(img) .ref-placeholder { display: none; }
.ref-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
}

.ref-nav {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(11, 8, 22, 0.85);
    border: 1px solid rgba(176, 38, 255, 0.5);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ref-nav:hover {
    background: var(--neon-purple);
    border-color: var(--neon-purple);
    transform: translateY(-50%) scale(1.1);
}
.ref-prev { left: 10px; }
.ref-next { right: 10px; }

.ref-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.ref-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c9c9c9;
    font-size: 0.95rem;
    text-align: center;
}

.ref-hint-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-purple);
    box-shadow: 0 0 0 0 rgba(176, 38, 255, 0.7);
    animation: hintPulse 1.8s infinite;
}

@keyframes hintPulse {
    0%   { box-shadow: 0 0 0 0 rgba(176, 38, 255, 0.7); }
    70%  { box-shadow: 0 0 0 12px rgba(176, 38, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(176, 38, 255, 0); }
}

.ref-dots { display: flex; gap: 10px; }

.ref-dot {
    appearance: none;
    border: 0;
    cursor: pointer;
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    transition: width 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.ref-dot.active {
    width: 32px;
    background: var(--neon-purple);
    box-shadow: 0 0 12px rgba(176, 38, 255, 0.8);
}

.ref-counter {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #8a8a8a;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.services-section {
    position: relative;
    z-index: 2;
    padding: 120px 5% 140px;
    background: var(--bg-color);
}

.services-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.services-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-section .section-header h2 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.svc-intro {
    max-width: 560px;
    margin: 18px auto 0;
    color: #a3a3a3;
    font-size: 1.05rem;
    line-height: 1.6;
}

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

.svc--ads,
.svc--web { grid-column: span 2; }

.svc {
    position: relative;
    overflow: hidden;
    padding: 40px 36px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%),
        #0b0814;
    border: 1px solid rgba(176, 38, 255, 0.14);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.45s ease,
                box-shadow 0.45s ease;
}

.svc.reveal { transition-delay: calc(var(--d, 0) * 90ms); }

.svc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 140, 255, 0.7), transparent);
    opacity: 0.6;
}

@media (hover: hover) and (pointer: fine) {
    .svc:hover {
        transform: translateY(-6px);
        border-color: rgba(176, 38, 255, 0.5);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(176, 38, 255, 0.18);
    }
}

.svc h3 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.svc-sub {
    margin: -6px 0 12px;
    color: var(--neon-purple);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.svc-lead {
    color: #a3a3a3;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 60ch;
}

.svc-platforms {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.svc-platforms li {
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.svc-platforms li:hover {
    border-color: rgba(176, 38, 255, 0.4);
    background: rgba(176, 38, 255, 0.06);
}

.svc-platforms li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.svc-platforms h4 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.svc-platforms small {
    font-size: 0.85rem;
    font-weight: 400;
    color: #8f8f8f;
    margin-left: 4px;
}

.svc-platforms p {
    color: #a3a3a3;
    font-size: 0.92rem;
    line-height: 1.55;
}

.svc-list {
    list-style: none;
    margin-top: 24px;
}

.svc-list li {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.svc-list li:last-child { padding-bottom: 0; }

.svc-list strong {
    font-size: 1rem;
    color: #fff;
}

.svc-list span {
    color: #a3a3a3;
    font-size: 0.92rem;
    line-height: 1.55;
}

.svc-steps {
    list-style: none;
    counter-reset: step;
    margin-top: 24px;
}

.svc-steps li {
    counter-increment: step;
    position: relative;
    padding: 14px 0 14px 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #cfcfcf;
    font-size: 0.93rem;
    line-height: 1.55;
}

.svc-steps li:last-child { padding-bottom: 0; }

.svc-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 13px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(176, 38, 255, 0.5);
    color: #d9a6ff;
    font-size: 0.8rem;
    font-weight: 700;
}

.svc--web {
    display: flex;
    gap: 48px;
    align-items: center;
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(176, 38, 255, 0.16) 0%, transparent 70%),
        linear-gradient(180deg, #120a24 0%, #0b0814 100%);
    border-color: rgba(176, 38, 255, 0.3);
}

.svc-web-left {
    flex: 0 0 40%;
}

.price {
    margin: 26px 0 24px;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
}

.price span {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
    color: #d9a6ff;
}

.svc-list--web {
    flex: 1;
    margin-top: 0;
}

.svc-list--web li:first-child { border-top: 0; padding-top: 0; }

@media (max-width: 1100px) {
    .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc--ads,
    .svc--web { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .svc--web { flex-direction: column; align-items: stretch; gap: 28px; }
    .svc-web-left { flex: none; }
    .svc-list--web li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; }
}

@media (max-width: 700px) {
    .services-section { padding: 90px 4% 100px; }
    .services-section .section-header { margin-bottom: 40px; }
    .svc-grid { grid-template-columns: 1fr; gap: 18px; }
    .svc { padding: 32px 22px; border-radius: 24px; }
    .svc-platforms { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .ref-section { padding: 90px 4% 100px; }
    .ref-tab { padding: 10px 14px; font-size: 0.8rem; }
    .ref-tabs { margin: 30px auto 36px; }
}

@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; margin-top: 20px; }
    .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }
    .hero-buttons { justify-content: center; flex-wrap: wrap; }
    .capsule-nav ul { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
    .capsule-nav a { padding: 5px 8px; font-size: 0.85rem; white-space: nowrap; }
    .hero-right { margin-top: 40px; margin-bottom: 40px; }
}

@media (max-width: 600px) {
    .floating-header { width: calc(100% - 20px); top: 12px; }
    .capsule-nav { padding: 10px 8px; }
    .capsule-nav a { padding: 4px 4px; font-size: clamp(0.62rem, 3.1vw, 0.8rem); letter-spacing: -0.02em; }
}

.contact-section {
    position: relative;
    z-index: 2;
    padding: 120px 5% 140px;
    background:
        radial-gradient(ellipse 60% 50% at 0% 40%, rgba(176, 38, 255, 0.12) 0%, transparent 100%),
        radial-gradient(ellipse 50% 45% at 100% 90%, rgba(140, 60, 255, 0.08) 0%, transparent 100%),
        var(--bg-color);
    border-top: 1px solid rgba(176, 38, 255, 0.12);
}

.contact-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
}

.contact-info { padding-top: 12px; }

.contact-info h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.contact-info .highlight {
    background: linear-gradient(90deg, #dcc0ff 0%, #b026ff 60%, #8a00e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-lead {
    margin-top: 24px;
    max-width: 52ch;
    color: #a3a3a3;
    font-size: 1.05rem;
    line-height: 1.65;
}

.contact-list {
    list-style: none;
    margin-top: 44px;
    display: grid;
    gap: 28px;
}

.contact-list li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.contact-icon {
    flex: none;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #0b0814;
    border: 1px solid rgba(176, 38, 255, 0.25);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #d9a6ff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-list div { display: grid; gap: 4px; padding-top: 3px; }

.contact-label {
    color: #8f8f8f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-list a,
.contact-value {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover { color: #d9a6ff; }

.contact-list small { color: #8f8f8f; font-size: 0.85rem; }

.contact-card {
    position: relative;
    overflow: hidden;
    padding: 44px 40px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%),
        #0b0814;
    border: 1px solid rgba(176, 38, 255, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 140, 255, 0.7), transparent);
    opacity: 0.7;
}

.contact-card h3 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    letter-spacing: -0.03em;
}

.contact-card-lead {
    margin: 8px 0 30px;
    color: #a3a3a3;
    font-size: 0.95rem;
    line-height: 1.55;
}

.contact-form { display: grid; gap: 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field { display: grid; gap: 8px; }

.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #dcdcdc;
}

.form-field .req { color: #d9a6ff; margin-left: 2px; }

.form-field input,
.form-field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }

.form-field input:hover,
.form-field textarea:hover { border-color: rgba(176, 38, 255, 0.35); }

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--neon-purple);
    background: rgba(176, 38, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(176, 38, 255, 0.18);
}

.form-field.has-error input,
.form-field.has-error textarea { border-color: #ff5d7a; }

.field-error {
    color: #ff8aa0;
    font-size: 0.82rem;
}

.form-field input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #160f26 inset;
    caret-color: #fff;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-submit {
    width: 100%;
    margin-top: 6px;
    padding: 17px 35px;
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.contact-submit:disabled { opacity: 0.6; cursor: wait; }

.form-status {
    min-height: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-status:empty { display: none; }

.form-status.is-ok {
    padding: 14px 16px;
    border-radius: 12px;
    color: #e9d4ff;
    background: rgba(176, 38, 255, 0.12);
    border: 1px solid rgba(176, 38, 255, 0.4);
}

.form-status.is-error {
    padding: 14px 16px;
    border-radius: 12px;
    color: #ffc2cd;
    background: rgba(255, 93, 122, 0.08);
    border: 1px solid rgba(255, 93, 122, 0.35);
}

.form-legal {
    text-align: center;
    color: #7d7d7d;
    font-size: 0.8rem;
}

.form-legal a { color: #b9a6d6; }

@media (max-width: 960px) {
    .contact-inner { grid-template-columns: 1fr; gap: 48px; }
    .contact-info { text-align: center; padding-top: 0; }
    .contact-lead { margin-left: auto; margin-right: auto; }
    .contact-list { justify-items: center; gap: 26px; }
    .contact-list li { flex-direction: column; align-items: center; gap: 10px; }
    .contact-list div { justify-items: center; padding-top: 0; }
    .contact-card h3,
    .contact-card-lead { text-align: center; }
}

@media (max-width: 600px) {
    .contact-section { padding: 90px 4% 100px; }
    .contact-card { padding: 32px 22px; border-radius: 24px; }
    .form-row { grid-template-columns: 1fr; }
}

.logo-strip {
    position: relative;
    z-index: 2;
    padding: 56px 0 64px;
    background: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.logo-marquee {
    display: flex;
    width: max-content;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.logo-track {
    flex: none;
    display: flex;
    align-items: center;
    gap: 80px;
    padding-right: 80px;
    list-style: none;
    animation: logoScroll 38s linear infinite;
    will-change: transform;
}

.logo-marquee:hover .logo-track { animation-play-state: paused; }

@keyframes logoScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

.logo-track li { flex: none; display: flex; }

.logo-track img {
    display: block;
    height: auto;
    max-width: none;
    user-select: none;

    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-track img:hover { opacity: 1; }

html[data-theme="light"] .logo-strip { border-top-color: rgba(20, 16, 28, 0.07); }
html[data-theme="light"] .logo-track img { filter: grayscale(1); opacity: 0.65; }
html[data-theme="light"] .logo-track img:hover { filter: none; opacity: 1; }

@media (max-width: 600px) {
    .logo-strip { padding: 44px 0 50px; }
    .logo-track { gap: 48px; padding-right: 48px; animation-duration: 28s; }
    .logo-track img { width: auto; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee { width: auto; flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; padding: 0 5%; }
    .logo-track { animation: none !important; flex-wrap: wrap; justify-content: center; gap: 36px 56px; padding: 0; }
    .logo-track[aria-hidden="true"] { display: none; }
}

.site-footer {
    position: relative;
    z-index: 2;
    padding: 90px 5% 36px;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(176, 38, 255, 0.10) 0%, transparent 100%),
        #07050c;
    border-top: 1px solid rgba(176, 38, 255, 0.18);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.footer-kicker {
    color: #8f8f8f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 48px;
}

.footer-contacts a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    transition: color 0.3s ease;
}

.footer-contacts a:hover { color: #d9a6ff; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 80px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
    color: #8f8f8f;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.footer-links a {
    color: #bdbdbd;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: #d9a6ff; }

@media (max-width: 600px) {
    .site-footer { padding: 64px 6% 88px; text-align: center; }
    .footer-contacts { flex-direction: column; align-items: center; gap: 6px; }
    .footer-contacts a { font-size: clamp(1.35rem, 6.4vw, 1.9rem); }
    .footer-bottom { margin-top: 48px; flex-direction: column-reverse; align-items: center; gap: 14px; }
    .footer-links { justify-content: center; }
}

.legal-page {

    margin-top: -120px;
    padding: 160px 5% 120px;
    background:
        radial-gradient(ellipse 60% 30% at 50% 0%, rgba(176, 38, 255, 0.10) 0%, transparent 100%),
        var(--bg-color);
}

.legal-inner {
    max-width: 820px;
    margin: 0 auto;
    color: #cfcfcf;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-back {
    display: inline-block;
    margin-bottom: 36px;
    color: #b9a6d6;
    font-size: 0.9rem;
    text-decoration: none;
}

.legal-back:hover { color: #fff; }

.legal-head {
    padding-bottom: 32px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(176, 38, 255, 0.2);
}

.legal-head h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.legal-date {
    margin-top: 14px;
    color: #d9a6ff;
    font-size: 0.95rem;
}

.legal-intro { margin-top: 24px; }

.legal-inner section { padding-top: 40px; }

.legal-inner h2 {
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.legal-inner h3 {
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    margin: 26px 0 10px;
}

.legal-inner p + p { margin-top: 12px; }

.legal-inner .num {
    color: #d9a6ff;
    font-weight: 700;
    margin-right: 4px;
}

.legal-inner ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.legal-inner ul li {
    position: relative;
    padding-left: 22px;
}

.legal-inner ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-purple);
}

.legal-inner strong { color: #fff; }

.legal-inner a { color: #d9a6ff; text-underline-offset: 3px; }

.legal-inner a:hover { color: #fff; }

.legal-data {
    display: grid;
    grid-template-columns: minmax(160px, 0.4fr) 1fr;
    margin-top: 14px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(176, 38, 255, 0.16);
    background: #0b0814;
}

.legal-data dt,
.legal-data dd {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-data dt:first-of-type,
.legal-data dt:first-of-type + dd { border-top: 0; }

.legal-data dt {
    color: #8f8f8f;
    font-size: 0.9rem;
}

.legal-data dd { color: #fff; }

@media (max-width: 600px) {
    .legal-data { grid-template-columns: 1fr; }
    .legal-data dt { padding-bottom: 0; }
    .legal-data dd { border-top: 0; padding-top: 2px; }
}

.theme-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 990;
    appearance: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(176, 38, 255, 0.28);
    background: rgba(15, 12, 22, 0.82);
    color: #f1e6ff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.4s ease;
}

@media (hover: hover) {
    .theme-fab:hover {
        transform: translateY(-3px) rotate(-12deg);
        border-color: rgba(176, 38, 255, 0.55);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(176, 38, 255, 0.2);
    }
}

.theme-fab:active { transform: scale(0.94); }
.theme-fab:focus-visible { outline: 2px solid #d9a6ff; outline-offset: 3px; }

.theme-fab svg {
    grid-area: 1 / 1;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-fab .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
html[data-theme="light"] .theme-fab .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
html[data-theme="light"] .theme-fab .icon-moon { opacity: 1; transform: none; }

html[data-theme="light"] .theme-fab {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(176, 38, 255, 0.22);
    color: #5e00a8;
    box-shadow: 0 10px 26px rgba(60, 20, 110, 0.14);
}

.perf-lite .theme-fab { backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (max-width: 600px) {
    .theme-fab { right: 14px; bottom: 14px; width: 42px; height: 42px; }
    .theme-fab svg { width: 18px; height: 18px; }
}

.footer-bottom { padding-right: 64px; }
@media (max-width: 600px) { .footer-bottom { padding-right: 0; } }

@media (min-width: 900px) {
    .svc--ads .svc-lead,
    .svc--web .svc-lead,
    .contact-lead,
    .contact-card-lead,
    .legal-inner p {
        text-align: justify;
        -webkit-hyphens: manual;
        hyphens: manual;
        text-wrap: pretty;
    }
}

html.theme-anim body,
html.theme-anim body *,
html.theme-anim body *::before,
html.theme-anim body *::after {
    transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease !important;
}

html[data-theme="dark"]  { color-scheme: dark; }

html[data-theme="light"] {
    color-scheme: light;
    --bg-color: #f6f4fa;
    --text-color: #14101c;
    --l-surface: #ffffff;
    --l-muted: #5c5668;
    --l-muted-2: #7a7486;
    --l-line: rgba(20, 16, 28, 0.09);
    --l-purple: #8a14d9;
    --l-shadow: 0 14px 40px rgba(60, 20, 110, 0.07);
}

html[data-theme="light"] .hero-title .highlight,
html[data-theme="light"] .team-section .section-header .highlight,
html[data-theme="light"] .contact-info .highlight {
    background: linear-gradient(90deg, #c27bff 0%, #8a14d9 55%, #5e00a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(176, 38, 255, 0.18));
}

html[data-theme="light"] .intro-marketing { color: var(--l-muted); }

html[data-theme="light"] .capsule-nav { background: rgba(255, 255, 255, 0.78); }
html[data-theme="light"].perf-lite .capsule-nav { background: rgba(255, 255, 255, 0.97); }
html[data-theme="light"] .capsule-nav a:hover,
html[data-theme="light"] .capsule-nav a.active { color: var(--l-purple); text-shadow: none; }
html[data-theme="light"] .capsule-nav { box-shadow: 0 6px 24px rgba(60, 20, 110, 0.06); }
html[data-theme="light"] .capsule-nav.pulsing { border-color: rgba(176, 38, 255, 0.25); }

html[data-theme="light"] .btn-secondary { border-color: rgba(20, 16, 28, 0.22); }
html[data-theme="light"] .btn-secondary:hover { border-color: var(--text-color); background: rgba(20, 16, 28, 0.05); }
html[data-theme="light"] .btn-primary { box-shadow: 0 8px 24px rgba(176, 38, 255, 0.35); }
html[data-theme="light"] .btn-primary:hover { color: var(--l-purple); }

html[data-theme="light"] .phone-container::before {
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.25), 0 24px 48px rgba(60, 20, 110, 0.25);
}
html[data-theme="light"] .phone-container::after { box-shadow: 0 0 40px rgba(176, 38, 255, 0.5); }

html[data-theme="light"] .team-section {
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(176, 38, 255, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, #efe6fc 0%, #f3eefb 45%, #f6f4fa 100%);
    box-shadow:
        0 -30px 80px rgba(80, 30, 140, 0.12),
        0 -1px 0 rgba(176, 38, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-theme="light"] .team-section::before { background: radial-gradient(ellipse at center, rgba(176, 38, 255, 0.08) 0%, transparent 65%); }

html[data-theme="light"] .team-card,
html[data-theme="light"] .svc,
html[data-theme="light"] .contact-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbf9fe 100%);
    border-color: rgba(176, 38, 255, 0.16);
    box-shadow: var(--l-shadow);
}

@media (hover: hover) {
    html[data-theme="light"] .team-card:hover,
    html[data-theme="light"] .svc:hover {
        box-shadow: 0 30px 60px rgba(60, 20, 110, 0.14), 0 0 30px rgba(176, 38, 255, 0.14);
    }
}

html[data-theme="light"] .team-avatar {
    background: radial-gradient(circle at 30% 25%, #f5eefe 0%, #ebe0fb 70%);
    box-shadow: 0 0 0 8px rgba(176, 38, 255, 0.05), 0 0 24px rgba(176, 38, 255, 0.12);
}
html[data-theme="light"] .team-card:hover .team-avatar { color: var(--l-purple); background: rgba(176, 38, 255, 0.1); }
html[data-theme="light"] .team-role,
html[data-theme="light"] .svc-sub { color: var(--l-purple); }

html[data-theme="light"] .ref-section {
    background:
        radial-gradient(ellipse 75% 55% at 50% 58%, rgba(176, 38, 255, 0.14) 0%, rgba(176, 38, 255, 0.05) 55%, transparent 100%),
        radial-gradient(ellipse 45% 50% at 0% 50%, rgba(140, 60, 255, 0.08) 0%, transparent 100%),
        radial-gradient(ellipse 45% 50% at 100% 55%, rgba(176, 38, 255, 0.08) 0%, transparent 100%),
        var(--bg-color);
}
html[data-theme="light"] .ref-tabs { background: rgba(255, 255, 255, 0.8); }
html[data-theme="light"] .ref-tab { color: var(--l-muted); }
html[data-theme="light"] .ref-tab:hover { color: var(--text-color); }
html[data-theme="light"] .ref-tab.active { color: #fff; }
html[data-theme="light"] .ref-hint { color: var(--l-muted); }
html[data-theme="light"] .ref-counter { color: var(--l-muted-2); }
html[data-theme="light"] .ref-dot { background: rgba(20, 16, 28, 0.18); }
html[data-theme="light"] .ref-dot.active { background: var(--neon-purple); }
html[data-theme="light"] .ref-nav { background: rgba(255, 255, 255, 0.95); color: var(--text-color); box-shadow: 0 6px 18px rgba(60, 20, 110, 0.15); }
html[data-theme="light"] .ref-nav:hover { background: var(--neon-purple); color: #fff; }

html[data-theme="light"] .svc-intro,
html[data-theme="light"] .svc-lead,
html[data-theme="light"] .svc-platforms p,
html[data-theme="light"] .svc-list span { color: var(--l-muted); }
html[data-theme="light"] .svc-platforms li { background: #f8f5fd; border-color: var(--l-line); }
html[data-theme="light"] .svc-platforms li:hover { background: rgba(176, 38, 255, 0.06); border-color: rgba(176, 38, 255, 0.35); }
html[data-theme="light"] .svc-platforms small { color: var(--l-muted-2); }
html[data-theme="light"] .svc-list li,
html[data-theme="light"] .svc-steps li { border-top-color: var(--l-line); }
html[data-theme="light"] .svc-list strong { color: var(--text-color); }
html[data-theme="light"] .svc-steps li { color: #3a3446; }
html[data-theme="light"] .svc-steps li::before { color: var(--l-purple); }
html[data-theme="light"] .svc--web {
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(176, 38, 255, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, #f3ebfd 0%, #ffffff 100%);
    border-color: rgba(176, 38, 255, 0.3);
}
html[data-theme="light"] .price span { color: var(--l-purple); }
@media (max-width: 860px) {
    html[data-theme="light"] .svc-list--web li:first-child { border-top-color: var(--l-line); }
}

html[data-theme="light"] .contact-lead,
html[data-theme="light"] .contact-card-lead { color: var(--l-muted); }
html[data-theme="light"] .contact-icon { background: #fff; box-shadow: var(--l-shadow); }
html[data-theme="light"] .contact-icon svg { stroke: var(--l-purple); }
html[data-theme="light"] .contact-label,
html[data-theme="light"] .contact-list small { color: var(--l-muted-2); }
html[data-theme="light"] .contact-list a,
html[data-theme="light"] .contact-value { color: var(--text-color); }
html[data-theme="light"] .contact-list a:hover { color: var(--l-purple); }
html[data-theme="light"] .contact-card { box-shadow: 0 30px 80px rgba(60, 20, 110, 0.1); }
html[data-theme="light"] .form-field label { color: #2c2636; }
html[data-theme="light"] .form-field .req { color: var(--l-purple); }
html[data-theme="light"] .form-field input,
html[data-theme="light"] .form-field textarea {
    color: var(--text-color);
    background: #faf8fd;
    border-color: rgba(20, 16, 28, 0.14);
}
html[data-theme="light"] .form-field input:focus,
html[data-theme="light"] .form-field textarea:focus { background: #fff; border-color: var(--neon-purple); }
html[data-theme="light"] .form-field input:-webkit-autofill {
    -webkit-text-fill-color: var(--text-color);
    -webkit-box-shadow: 0 0 0 1000px #f3ecfd inset;
    caret-color: var(--text-color);
}
html[data-theme="light"] .field-error { color: #c81e45; }
html[data-theme="light"] .form-status.is-ok { color: #4b0a85; background: rgba(176, 38, 255, 0.08); }
html[data-theme="light"] .form-status.is-error { color: #a3123a; background: rgba(255, 93, 122, 0.08); }
html[data-theme="light"] .form-legal { color: var(--l-muted-2); }
html[data-theme="light"] .form-legal a { color: var(--l-purple); }

html[data-theme="light"] .site-footer {
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(176, 38, 255, 0.08) 0%, transparent 100%),
        #efebf6;
    border-top-color: rgba(176, 38, 255, 0.2);
}
html[data-theme="light"] .footer-kicker,
html[data-theme="light"] .footer-copy { color: var(--l-muted-2); }
html[data-theme="light"] .footer-contacts a { color: var(--text-color); }
html[data-theme="light"] .footer-contacts a:hover,
html[data-theme="light"] .footer-links a:hover { color: var(--l-purple); }
html[data-theme="light"] .footer-bottom { border-top-color: var(--l-line); }
html[data-theme="light"] .footer-links a { color: #4a4456; }

html[data-theme="light"] .legal-inner { color: #3a3446; }
html[data-theme="light"] .legal-head h1,
html[data-theme="light"] .legal-inner h2,
html[data-theme="light"] .legal-inner h3,
html[data-theme="light"] .legal-inner strong,
html[data-theme="light"] .legal-data dd { color: var(--text-color); }
html[data-theme="light"] .legal-back,
html[data-theme="light"] .legal-date,
html[data-theme="light"] .legal-inner .num,
html[data-theme="light"] .legal-inner a { color: var(--l-purple); }
html[data-theme="light"] .legal-back:hover,
html[data-theme="light"] .legal-inner a:hover { color: var(--text-color); }
html[data-theme="light"] .legal-data { background: #fff; box-shadow: var(--l-shadow); }
html[data-theme="light"] .legal-data dt,
html[data-theme="light"] .legal-data dd { border-top-color: var(--l-line); }
html[data-theme="light"] .legal-data dt { color: var(--l-muted-2); }

.team-initials {
    background: linear-gradient(135deg, #f1e2ff, #b026ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team-avatar picture { display: block; width: 100%; height: 100%; }

.anim-paused *,
.anim-paused *::before,
.anim-paused *::after,
.anim-paused::before,
.anim-paused::after { animation-play-state: paused !important; }

@media (max-width: 768px) {
    .reveal { filter: none; transform: translateY(30px); }
    .reveal.in-view { filter: none; transform: none; }
    .capsule-nav { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

.perf-lite .reveal {
    filter: none;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.perf-lite .reveal.in-view { transform: none; }

.perf-lite .capsule-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(14, 11, 22, 0.95);
}

.perf-lite-boot .intro-horizon .letter { animation-name: letterInLite; filter: none; }
.perf-lite-boot .intro-horizon .purple-o { animation-name: letterInLite, oFlash; filter: none; }
.perf-lite-boot .intro-marketing { animation-name: marketingRevealLite; }
.perf-lite-boot .intro-content { animation-name: introExitLite; }

@keyframes letterInLite {
    0%   { opacity: 0; transform: translateY(40px) scale(1.2); filter: none; }
    100% { opacity: 1; transform: none; filter: none; }
}
@keyframes marketingRevealLite {
    0%   { opacity: 0; clip-path: inset(0 100% 0 0); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes introExitLite {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(1.08); }
}

.perf-lite .hero-title .highlight,
.perf-lite .team-section .section-header .highlight { filter: none; }

.perf-lite .laptop-glow { filter: drop-shadow(0 0 16px rgba(176, 38, 255, 0.5)); }

.perf-lite .laptop::after,
.perf-lite .phone-container::after,

.perf-lite .phone-container::after,

.perf-lite .team-section::before { will-change: auto; transform: none; }
.perf-lite .ref-stage.active { animation: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
