/* ===== Переменные ===== */
:root {
    --bg: #09090b;
    --surface: #121215;
    --surface-hover: #1c1c21;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #ccff00;
    --accent-hover: #b3e600;
    --border: #27272a;
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 24px;
}

/* ===== Сброс ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; cursor: none; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font-family: inherit; border: none; background: none; }

.container { width: min(1360px, 92%); margin-inline: auto; }

/* ===== КАСТОМНЫЙ КУРСОР ===== */
.cursor {
    position: fixed;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px; height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
    opacity: 0.5;
}

body.hovering .cursor { width: 16px; height: 16px; background: var(--text); }
body.hovering .cursor-follower { width: 60px; height: 60px; border-color: var(--text); opacity: 0.8; }

/* ===== Типографика ===== */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
    transition: var(--transition);
}
.bento-item:hover .text-outline {
    -webkit-text-stroke-color: var(--accent);
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.8rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg);
}
.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(204, 255, 0, 0.2);
}

.btn--outline {
    border: 1px solid var(--border);
    color: var(--text);
}
.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; border-radius: 8px; }

/* ===== Шапка ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 4px;
}
.logo__dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.nav { display: flex; gap: 2.5rem; }
.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav__link:hover { color: var(--accent); }

/* ===== BENTO GRID ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1rem;
}

.bento-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), background var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-item::before,
.bento-item::after {
    content: '+';
    position: absolute;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.5;
    transition: var(--transition);
}
.bento-item::before { top: 1rem; left: 1rem; }
.bento-item::after { bottom: 1rem; right: 1rem; }

.bento-item:hover::before,
.bento-item:hover::after {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.2);
}

.bento-item .spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(204, 255, 0, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}
.bento-item:hover .spotlight { opacity: 1; }

.bento-item > *:not(.spotlight) { position: relative; z-index: 1; }

/* ===== HERO GRID ===== */
.hero {
    padding: 8rem 0 4rem;
}

.hero .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
}

.bento-item--hero {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    justify-content: space-between;
    padding: 3rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 2rem;
}

.pulse {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(204, 255, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); }
}

.hero__title {
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: 0.95;
    margin-bottom: 2rem;
}

.hero__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.hero__desc {
    max-width: 400px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.bento-item--stat {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--accent);
    color: var(--bg);
    border: none;
}
.bento-item--stat:hover { background: var(--accent-hover); }
.bento-item--stat::before, .bento-item--stat::after { color: var(--bg); opacity: 0.3; }
.bento-item--stat:hover::before, .bento-item--stat:hover::after { color: var(--bg); opacity: 0.8; }

.stat__value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}
.stat__value span { font-size: 1.5rem; }
.stat__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.bento-item--feature {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    justify-content: center;
    gap: 1rem;
}
.feature__icon { color: var(--accent); }
.feature__text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
}

.bento-item--quote {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    justify-content: center;
}
.quote__text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.quote__author {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bento-item--messenger {
    grid-column: 3 / 5;
    grid-row: 3 / 4;
    justify-content: space-between;
}
.messenger__text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.messenger__actions { display: flex; gap: 1rem; }
.messenger__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}
.messenger__btn:hover {
    background: var(--accent);
    color: var(--bg);
    transform: scale(1.1);
}

/* ===== MARQUEE ===== */
.marquee {
    background: var(--accent);
    color: var(--bg);
    overflow: hidden;
    padding: 1rem 0;
    white-space: nowrap;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    transform: rotate(-1.5deg) scale(1.02);
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.marquee__track {
    display: inline-flex;
    gap: 2rem;
    animation: marquee 20s linear infinite;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    align-items: center;
}

.marquee__track .star { font-size: 1.5rem; }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== СЕКЦИИ ===== */
.section { padding: 6rem 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__head { margin-bottom: 4rem; }
.section__title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.section__desc { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; }

/* ===== УСЛУГИ (ЖЕСТКАЯ СЕТКА 3x2) ===== */
.bento-grid--services {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: 1fr !important;
}

.service-card {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-content: space-between;
    cursor: pointer;
    min-height: 240px;
}

.service-card:hover .service__name { color: var(--accent); }
.service-card:hover .service__icon { color: var(--accent); transform: scale(1.1); }

.service__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.service__num {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}
.service__icon {
    color: var(--text-muted);
    transition: var(--transition);
}

.service__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color var(--transition);
}

.service__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== ПРОЦЕСС ===== */
.process-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.process-step {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: var(--transition);
}
.process-step:hover {
    padding-left: 1rem;
    background: var(--surface-hover);
}

.process-step__num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
    line-height: 1;
}

.process-step__content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.process-step__content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
}

/* ===== КОНТАКТЫ ===== */
.contact { padding: 6rem 0; }

.bento-grid--contact {
    grid-template-columns: 1.2fr 0.8fr;
}

.contact-card {
    justify-content: center;
    padding: 3rem;
}

.contact__title { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.05; margin-bottom: 2rem; }

.contact__phone {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    transition: var(--transition);
}
.contact__phone:hover { color: #fff; }

.contact__hours { font-size: 0.85rem; color: var(--text-muted); }

.contact-card--messenger h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.contact-card--messenger p { color: var(--text-muted); margin-bottom: 2rem; }

/* ===== ПОДВАЛ ===== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer__brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}
.footer__copy { font-size: 0.85rem; color: var(--text-muted); }
.footer__links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.footer__links a:hover { color: var(--accent); border-color: var(--accent); }

/* ===== ПЛАВАЮЩАЯ КНОПКА SOS ===== */
.floating-sos {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--accent);
    color: var(--bg);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 30px rgba(204, 255, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    cursor: none;
}

.floating-sos.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-sos:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(204, 255, 0, 0.5);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 95%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 3000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.8rem; flex-shrink: 0; }

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .hero .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-item--hero { grid-column: 1 / 3; }
    .bento-item--stat, .bento-item--feature { grid-column: span 1; }
    .bento-item--quote { grid-column: 1 / 3; }
    .bento-item--messenger { grid-column: 1 / 3; }

    .bento-grid--services { grid-template-columns: repeat(2, 1fr) !important; }

    .bento-grid--contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { cursor: auto; }
    a, button { cursor: pointer; }
    .cursor, .cursor-follower { display: none; }

    .nav { display: none; }
    
    .hero { padding: 6rem 0 2rem; }
    .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero__bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .hero .bento-grid { display: flex; flex-direction: column; }
    .bento-item { padding: 1.5rem; }
    
    .marquee { transform: rotate(0); margin: 1rem 0; }
    .marquee__track { font-size: 1rem; }

    .bento-grid--services { display: flex !important; flex-direction: column; }
    .section { padding: 4rem 0; }

    .process-step { grid-template-columns: 60px 1fr; gap: 1rem; padding: 1.5rem 0; }
    .process-step__num { font-size: 1.8rem; }

    .contact { padding: 4rem 0; }
    .contact-card { padding: 2rem; }
    .contact__phone { font-size: 2rem; }
    .contact-card--messenger .messenger__actions { flex-direction: column; width: 100%; }
    .contact-card--messenger .btn { width: 100%; }

    .footer__inner { flex-direction: column; text-align: center; gap: 1rem; }
    
    .cookie-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__actions .btn { flex: 1; }

    .floating-sos { bottom: 20px; right: 20px; padding: 0.8rem 1.2rem; }
    .floating-sos span { display: none; }
}