﻿:root {
    --color-bg: #050b14;
    --color-surface: #0a192f;
    --color-surface-light: #112240;
    --color-text: #ccd6f6;
    --color-text-muted: #8892b0;
    --color-accent: #ff6b00;
    --color-accent-hover: #e65c00;
    --font-head: 'Space Grotesk', sans-serif;
    --font-base: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-base);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Уникальный графический элемент: Анимированная инженерная сетка (Blueprint) */
.blueprint-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}
.blueprint-glow {
    position: fixed;
    width: 50vw; height: 50vh;
    background: radial-gradient(circle, rgba(10,25,47,0.8) 0%, rgba(5,11,20,0) 70%);
    top: 20%; left: 25%;
    z-index: -1;
    pointer-events: none;
}

.xh-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 6%;
    background: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-surface-light);
    position: sticky; top: 0; z-index: 1000;
}
.xh-logo {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
    color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 1px;
}
.xh-logo img { width: 32px; height: 32px; }
.xh-nav { display: flex; gap: 2rem; }
.xh-nav a {
    color: var(--color-text-muted); text-decoration: none;
    font-weight: 500; font-size: 0.9rem; letter-spacing: 0.5px;
    transition: color 0.3s;
}
.xh-nav a:hover { color: var(--color-accent); }

.xh-section { padding: 6rem 6%; max-width: 1400px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-head); color: #e2e8f0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; position: relative; }
h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--color-accent); margin-top: 15px;
}

.xh-hero {
    display: flex; align-items: center; gap: 4rem; min-height: 80vh;
}
.xh-hero-content { flex: 1; }
.xh-hero-content p {
    font-size: 1.25rem; color: var(--color-text-muted);
    margin-bottom: 2.5rem; max-width: 550px;
}
.xh-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-accent); color: #fff;
    padding: 1rem 2.5rem; border-radius: 4px; border: none;
    font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
    text-decoration: none; cursor: pointer; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 1px;
}
.xh-btn:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.xh-btn:disabled { background: var(--color-surface-light); color: var(--color-text-muted); cursor: not-allowed; transform: none; }
.xh-hero-img { flex: 1; position: relative; }
.xh-hero-img img {
    width: 100%; height: 600px; object-fit: cover;
    border-radius: 8px; filter: grayscale(20%) contrast(110%);
    border: 1px solid var(--color-surface-light);
}

.xh-services { background: var(--color-surface); border-top: 1px solid var(--color-surface-light); border-bottom: 1px solid var(--color-surface-light); }
.xh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.xh-card {
    background: var(--color-bg); padding: 2.5rem; border-radius: 6px;
    border: 1px solid var(--color-surface-light); transition: border-color 0.3s;
}
.xh-card:hover { border-color: var(--color-accent); }
.xh-card i { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 1.5rem; }
.xh-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }

.xh-form-wrapper {
    display: flex; gap: 4rem; align-items: flex-start;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}
.xh-form-info { flex: 1; }
.xh-form-container {
    flex: 1; background: var(--color-surface-light); padding: 3rem;
    border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}
.xh-input-group { margin-bottom: 1.5rem; }
.xh-input-group label {
    display: block; margin-bottom: 0.5rem; color: var(--color-text-muted);
    font-size: 0.9rem; font-family: var(--font-head);
}
.xh-input-group input, .xh-input-group textarea {
    width: 100%; padding: 1rem; background: var(--color-bg);
    border: 1px solid var(--color-surface); color: var(--color-text);
    border-radius: 4px; font-family: var(--font-base); font-size: 1rem;
    transition: all 0.3s;
}
.xh-input-group input:focus { outline: none; border-color: var(--color-accent); }
.xh-checkbox { display: flex; gap: 1rem; margin: 2rem 0; }
.xh-checkbox input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--color-accent); }
.xh-checkbox label { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.5; }
.xh-checkbox a { color: var(--color-accent); }

#xh-success-msg { display: none; text-align: center; padding: 2rem 0; }
#xh-success-msg i { font-size: 4rem; color: var(--color-accent); margin-bottom: 1rem; }

.xh-faq { max-width: 800px; margin: 0 auto; }
.xh-accordion { background: var(--color-surface); margin-bottom: 1rem; border-radius: 4px; border: 1px solid var(--color-surface-light); }
.xh-accordion summary {
    padding: 1.5rem; font-family: var(--font-head); font-weight: 600;
    font-size: 1.1rem; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; color: #fff;
}
.xh-accordion summary::-webkit-details-marker { display: none; }
.xh-accordion summary::after { content: '+'; color: var(--color-accent); font-size: 1.5rem; line-height: 1; transition: transform 0.3s; }
.xh-accordion[open] summary::after { transform: rotate(45deg); }
.xh-accordion p { padding: 0 1.5rem 1.5rem; color: var(--color-text-muted); }

.xh-footer {
    background: #02050a; padding: 4rem 6% 2rem; text-align: center;
    border-top: 1px solid var(--color-surface-light);
}
.xh-footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.xh-footer-links a { color: var(--color-text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.xh-footer-links a:hover { color: var(--color-accent); }

/* Плавающий Cookie Banner в правом нижнем углу */
.xh-cookie-toast {
    position: fixed; bottom: 30px; right: -400px; width: 350px;
    background: var(--color-surface-light); border-left: 4px solid var(--color-accent);
    padding: 1.5rem; border-radius: 4px; box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    z-index: 9999; transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.xh-cookie-toast.show { right: 30px; }
.xh-cookie-toast p { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.xh-cookie-btns { display: flex; gap: 10px; }
.xh-cookie-btns button {
    flex: 1; padding: 0.6rem; border: none; border-radius: 4px; cursor: pointer;
    font-family: var(--font-head); font-size: 0.85rem; font-weight: 600;
}
.xh-btn-accept { background: var(--color-accent); color: #fff; }
.xh-btn-decline { background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-surface); }

/* Юридические страницы */
.xh-legal-wrap {
    max-width: 900px; margin: 4rem auto; padding: 4rem;
    background: var(--color-surface); border-radius: 8px;
    border: 1px solid var(--color-surface-light);
}
.xh-legal-wrap h1 { font-size: 2.2rem; border-bottom: 1px solid var(--color-surface-light); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.xh-legal-wrap h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: #fff; }
.xh-legal-wrap h2::after { display: none; }
.xh-legal-wrap p, .xh-legal-wrap ul { margin-bottom: 1.2rem; color: var(--color-text-muted); }
.xh-legal-wrap ul { padding-left: 1.5rem; }
.xh-legal-wrap a { color: var(--color-accent); }

@media (max-width: 900px) {
    .xh-hero, .xh-form-wrapper { flex-direction: column; gap: 2rem; }
    .xh-header { flex-direction: column; gap: 1rem; }
    .xh-cookie-toast { width: 90%; right: -100%; bottom: 20px; }
    .xh-cookie-toast.show { right: 5%; }
    .xh-legal-wrap { padding: 2rem; margin: 2rem 5%; }
}
