/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --accent: #00B4FF;
    --accent-glow: #00E5FF;
    --text-primary: #F0F4FF;
    --text-muted: #8A9BB5;
    --border-color: rgba(0, 180, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

/* ===== СБРОСЫ ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scrollbar-color: var(--accent) var(--bg-primary);
    scrollbar-width: thin;
}
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-xl);
    padding: 14px 36px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    border: none;
}
/* Основная кнопка-объектив */
.btn-primary {
    background: radial-gradient(circle at 30% 30%, rgba(0,180,255,0.4), rgba(0,0,0,0.8));
    color: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(0,180,255,0.4);
    text-shadow: 0 0 8px rgba(0,229,255,0.5);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent-glow);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0,180,255,0.7);
    border-color: var(--accent-glow);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: scale(0.96); }

/* Второстепенная кнопка */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent);
    box-shadow: 0 0 5px rgba(0,180,255,0.2);
}
.btn-outline:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px rgba(0,180,255,0.4);
    color: #fff;
}

/* ===== ШАПКА ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo img { height: 38px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color 0.3s;
}
.main-nav a:hover { color: var(--accent); }
.header-phone a {
    font-weight: 700;
    color: var(--accent);
    font-size: 16px;
    white-space: nowrap;
}
.mobile-menu-btn { display: none; font-size: 28px; cursor: pointer; color: var(--text-primary); }

/* ===== ГЕРОЙ (ГЛАВНАЯ) ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-primary);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(0,180,255,0.05) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(0,180,255,0.05) 25%, transparent 25%),
                repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px);
    animation: scan 6s linear infinite;
}
@keyframes scan { 0% { background-position: 0 0, 0 0, 0 0; } 100% { background-position: 100% 100%, -100% -100%, 100% 0; } }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(32px, 6vw, 72px); font-family: var(--font-heading); font-weight: 900; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px; }
.hero .subtitle { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }
.hero .btn { margin: 10px; }

/* ===== СЕКЦИИ ===== */
section { padding: 100px 0; }
section h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 700; text-align: center; letter-spacing: 2px; margin-bottom: 60px; color: var(--text-primary); }

/* ===== КАРТОЧКИ УСЛУГ (ГЛАВНАЯ) ===== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.card {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s;
}
.card:hover {
    border-style: solid;
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0,180,255,0.2);
    transform: translateY(-5px);
}
.card img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 20px; filter: drop-shadow(0 0 8px var(--accent)); }
.card h3 { font-family: var(--font-heading); font-size: 22px; margin-bottom: 15px; }
.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.card a { color: var(--accent); font-weight: 700; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.card a:hover { border-bottom-color: var(--accent); }

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages { background: var(--bg-secondary); }
.adv-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.adv-item .icon { font-size: 48px; margin-bottom: 20px; display: block; }
.adv-item h3 { font-family: var(--font-mono); font-size: 42px; font-weight: 700; color: var(--accent); text-shadow: 0 0 20px rgba(0,180,255,0.7); margin-bottom: 10px; }
.adv-item p { color: var(--text-muted); font-size: 16px; }

/* ===== ОБЪЕКТЫ (ПОРТФОЛИО) ===== */
.object-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}
.object-card {
    position: relative;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.object-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.object-card:hover::before { background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); }
.object-card h3, .object-card p {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
    margin: 0;
}
.object-card h3 { font-family: var(--font-heading); font-size: 24px; }
.object-card p { bottom: 0px; font-size: 14px; color: var(--text-muted); }

/* ===== ЭТАПЫ ===== */
.stages { background: var(--bg-secondary); }
.stage-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.stage {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    flex: 1 1 200px;
    max-width: 240px;
}
.stage .step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent), #004466);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--accent);
}
.stage h3 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 10px; }
.stage p { color: var(--text-muted); font-size: 14px; }

/* ===== ГАРАНТИИ ===== */
.guarantees {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.guarantees ul { max-width: 600px; margin: 0 auto; font-size: 17px; }
.guarantees li { margin-bottom: 15px; padding-left: 30px; position: relative; }
.guarantees li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* ===== ФОРМА ЗАЯВКИ ===== */
.lead-form-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px;
    max-width: 500px;
    margin: 80px auto;
    text-align: center;
}
.lead-form-block h3 { font-family: var(--font-heading); margin-bottom: 30px; font-size: 28px; }
.lead-form-block input,
.lead-form-block select,
.lead-form-block textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}
.lead-form-block input:focus,
.lead-form-block select:focus,
.lead-form-block textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0,180,255,0.2);
}
.lead-form-block button { width: 100%; }

/* ===== ПОДВАЛ ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
    color: var(--text-muted);
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-contacts p { margin-bottom: 8px; }
.footer-cta .btn { font-size: 14px; }

/* ===== ОБЩИЕ СТРАНИЦЫ ===== */
.page-content {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}
.page-content h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}
.page-content p { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }

/* ===== СЕТКА УСЛУГ (ОБЩАЯ) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}
.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(0,180,255,0.15);
}
.service-card img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 20px; filter: drop-shadow(0 0 5px var(--accent)); }
.service-card h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14px; }

/* ===== СЕТКА КЕЙСОВ ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.case-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.case-card:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(0,180,255,0.2); }
.case-card img { width: 100%; height: 200px; object-fit: cover; }
.case-card h3 { font-family: var(--font-heading); font-size: 18px; margin: 20px; }
.case-card p { color: var(--text-muted); font-size: 14px; margin: 0 20px 20px; }

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-secondary); padding: 20px; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 15px; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 36px; }
    .service-cards { grid-template-columns: 1fr; }
    .btn-primary { padding: 12px 30px; font-size: 14px; }
}