:root {
    --bg: #050505;
    --bg-2: #0b0b0b;
    --text: #f3f3f3;
    --muted: #8d8d8d;
    --red: #e10600;
    --red-2: #ff2a1f;
    --red-dim: rgba(225, 6, 0, 0.16);
    --line: rgba(255, 255, 255, 0.09);
    --font: "Manrope", system-ui, sans-serif;
    --display: "Bricolage Grotesque", "Manrope", sans-serif;
}

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

html { scroll-behavior: smooth; }

html,
body { min-height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    width: 70vmax;
    height: 70vmax;
    top: -28vmax;
    right: -22vmax;
    background: radial-gradient(circle, rgba(225, 6, 0, 0.28), transparent 68%);
    pointer-events: none;
    z-index: 0;
    animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
    to { transform: translate(-8%, 10%) scale(1.08); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection {
    background: var(--red);
    color: #fff;
}

.skip {
    position: absolute;
    left: -999px;
    top: 0;
}
.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 80;
    background: var(--red);
    color: #fff;
    padding: 8px 12px;
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site {
    position: relative;
    z-index: 1;
    padding-bottom: 92px;
}

.fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@media (min-width: 860px) {
    .site { padding-bottom: 0; }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.header.is-on {
    background: rgba(5, 5, 5, 0.86);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
}
.header__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.04em;
    font-size: 1.15rem;
}
.logo__mark {
    width: 10px;
    height: 10px;
    background: var(--red);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.82); opacity: 0.7; }
}

.nav-desk {
    display: none;
    gap: 28px;
}
.nav-desk a {
    position: relative;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}
.nav-desk a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.25s ease;
}
.nav-desk a:hover,
.nav-desk a.is-on { color: var(--text); }
.nav-desk a:hover::after,
.nav-desk a.is-on::after { width: 100%; }

@media (min-width: 860px) {
    .nav-desk { display: flex; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
    background: var(--red-2);
    box-shadow: 0 0 0 1px var(--red-2), 0 10px 30px rgba(225, 6, 0, 0.28);
}
.btn:active { transform: translateY(1px); }
.btn--ghost {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--red);
    color: #fff;
}
.header .btn { min-height: 40px; padding-inline: 14px; }
.header .btn--desk { display: none; }
@media (min-width: 860px) {
    .header .btn--mob { display: none; }
    .header .btn--desk { display: inline-flex; }
}

/* Hero */
.hero {
    padding: 48px 0 64px;
    min-height: calc(100svh - 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    animation: fade 0.8s ease forwards;
}
.kicker__dot {
    width: 6px;
    height: 6px;
    background: var(--red);
}

.hero h1 {
    margin: 18px 0 0;
    font-family: var(--display);
    font-size: clamp(2.6rem, 9vw, 6.4rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.92;
}
.line {
    display: block;
    overflow: hidden;
}
.line > span {
    display: block;
    transform: translateY(110%);
    animation: rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.line:nth-child(2) > span { animation-delay: 0.1s; }
.red { color: var(--red); }

@keyframes rise {
    to { transform: translateY(0); }
}
@keyframes fade {
    to { opacity: 1; }
}

.hero__lead {
    max-width: 34rem;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    opacity: 0;
    animation: fade 0.8s ease 0.35s forwards;
}
.hero__lead strong {
    color: var(--text);
    font-weight: 700;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    opacity: 0;
    animation: fade 0.8s ease 0.5s forwards;
}

.stat {
    margin-top: 48px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    opacity: 0;
    animation: fade 0.8s ease 0.62s forwards;
}
.stat__n {
    font-family: var(--display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--red);
}
.stat__t {
    color: var(--muted);
    font-size: 0.95rem;
}
.stat__n--phone {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    letter-spacing: -0.04em;
    text-decoration: none;
}

.rule {
    height: 2px;
    width: 0;
    background: var(--red);
    margin-top: 40px;
    animation: grow 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
@keyframes grow {
    to { width: min(140px, 40%); }
}

/* Services list */
.block {
    padding: 20px 0 80px;
}
.block h2 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    letter-spacing: -0.04em;
}
.slist { border-top: 1px solid var(--line); }
.slist a {
    display: grid;
    grid-template-columns: 2.2rem 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 20px 4px;
    border-bottom: 1px solid var(--line);
    transition: padding-left 0.25s ease, background 0.25s;
}
.slist a:hover {
    padding-left: 12px;
    background: linear-gradient(90deg, var(--red-dim), transparent 60%);
}
.slist__n {
    font-family: var(--display);
    color: var(--red);
    font-weight: 700;
    font-size: 0.85rem;
}
.slist__t {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}
.slist__s {
    display: none;
    color: var(--muted);
    font-size: 0.9rem;
}
.slist__go {
    color: var(--red);
    font-size: 1.2rem;
    transform: translateX(-4px);
    transition: transform 0.25s ease;
}
.slist a:hover .slist__go { transform: translateX(0); }

@media (min-width: 720px) {
    .slist a { grid-template-columns: 2.2rem 1fr 1fr auto; }
    .slist__s { display: block; }
}

/* Inner pages */
.page {
    padding: 36px 0 88px;
}
.page h1 {
    margin: 12px 0 0;
    font-family: var(--display);
    font-size: clamp(2.2rem, 7vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
}
.lead {
    max-width: 38rem;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}
.prose {
    max-width: 40rem;
    margin-top: 28px;
    color: #cfcfcf;
}
.prose p { margin: 0 0 1rem; }

.cards {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 36px;
}
.card {
    background: var(--bg);
    padding: 28px 24px;
}
.card h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}
.card p { margin: 10px 0 0; color: var(--muted); }
.card__out { color: var(--text) !important; }
.card__meta {
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (min-width: 800px) {
    .cards { grid-template-columns: 1fr 1fr 1fr; }
    .cards--2 { grid-template-columns: 1fr 1fr; }
}

.note {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.note__k {
    margin: 0 0 8px;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.note p {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
    line-height: 1.55;
}

.empty {
    margin-top: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.page .hero__actions { margin-top: 36px; opacity: 1; animation: none; }
.page .stat { animation-delay: 0.15s; }

.svc-list { margin-top: 40px; }

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: show 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal.is-in,
.js-off .reveal { opacity: 1; transform: none; animation: none; }
@keyframes show {
    to { opacity: 1; transform: none; }
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding: 28px 0 36px;
}
.footer__in {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.88rem;
}
.footer a:hover { color: var(--text); }

/* Bottom nav */
.dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.dock a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 2px 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    position: relative;
}
.dock a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}
.dock a.is-on { color: var(--text); }
.dock a.is-on::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 2px;
    background: var(--red);
    animation: grow 0.35s ease;
}
.dock a.is-on svg { color: var(--red); }

@media (min-width: 860px) {
    .dock { display: none; }
}

.wa-float {
    display: none;
}
@media (min-width: 860px) {
    .wa-float {
        display: grid;
        place-items: center;
        position: fixed;
        right: 22px;
        bottom: 22px;
        z-index: 45;
        width: 54px;
        height: 54px;
        background: var(--red);
        color: #fff;
        box-shadow: 0 10px 30px rgba(225, 6, 0, 0.35);
        transition: transform 0.2s, background 0.2s;
    }
    .wa-float:hover {
        background: var(--red-2);
        transform: translateY(-3px);
    }
    .wa-float svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .line > span,
    .kicker,
    .hero__lead,
    .hero__actions,
    .stat,
    .reveal {
        opacity: 1;
        transform: none;
    }
    .rule { width: 140px; }
    body::before { animation: none; }
    .fx { display: none; }
}
