/* --- НАСТРОЙКИ ДИЗАЙНА --- */
:root {
    --primary: #020617;
    --primary-light: #1e293b;
    --accent: #FACC15;
    --accent-hover: #EAB308;
    --btn-text: #0F172A;
    --bg-light: #F8FAFC;
    --text-main: #334155;
    --text-light: #64748B;
    --text-on-dark: #94a3b8;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--white);
}

h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.2;
    font-weight: 800;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; background-color: var(--accent); color: var(--btn-text); font-weight: 700; border-radius: var(--radius); border: none; cursor: pointer; gap: 10px; transition: 0.3s; }
.btn:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; }
.btn-outline:hover { background: var(--accent); color: var(--btn-text); }

/* HEADER */
header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 1000; box-shadow: 0 1px 10px rgba(0,0,0,0.05); padding: 15px 0; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-links a:hover { color: #CA8A04; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; }
.phone-link { font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--primary); margin: 5px; }

/* HERO */
.hero {
    padding-top: 200px; padding-bottom: 140px;
    /* Путь к картинке теперь относительный корня */
    background: url('img/hero.webp');
    background-color: #020617;
    background-size: cover; background-position: center; color: var(--white);
}
.hero h1 { font-size: 3.5rem; margin-bottom: 25px; color:#fff; font-weight:400; text-transform:uppercase;}
.hero p { font-size: 1.3rem; margin-bottom: 45px; color: #cbd5e1; max-width: 700px; }

/* SECTIONS COMMON */
section { padding: 100px 0; }
.section-header { margin-bottom: 50px; text-align: center; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.subtitle-line { width: 60px; height: 4px; background: var(--accent); margin: 0 auto 20px; }

/* STATS BAR */
.stats-bar {
    background: var(--white);
    margin-top: -60px; position: relative; z-index: 10;
    padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
    border-bottom: 4px solid var(--accent);
}
.stat-item h3 { font-size: 3rem; color: var(--primary); margin-bottom: 0; line-height: 1; }
.stat-item p { font-size: 0.9rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; margin-top: 5px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-cycle-title {
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 15px;
    display: block;
}
.about-text li {
    display: flex; gap: 10px;
    margin-bottom: 8px;
    font-weight: 600; color: var(--primary);
}
.about-text li::before { content: "✓"; color: var(--accent); font-weight: 900; }
.about-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* SERVICES */
.services { background: var(--primary); color: white; }
.services h2 { color: white; }
.services p { color: var(--text-on-dark); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.card {
    background: var(--primary-light);
    padding: 35px; border-radius: var(--radius); transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.card:hover { transform: translateY(-10px); background: #28364d; border-color: var(--accent); }
.card h3 { color: white; margin-bottom: 15px; }
.card p { color: #94a3b8; font-size: 0.95rem; }
.card-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.05);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; margin-bottom: 20px;
}
.card-icon svg { stroke-width: 1.5; }

/* TECH SECTION */
.tech-section { background: var(--bg-light); position: relative; }
.tech-section h2 { color: var(--primary); }
.tech-section p { color: var(--text-light); }
.tech-grid-advanced { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.tech-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 30px;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.tech-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.tech-icon {
    width: auto; height: auto;
    background: transparent;
    color: var(--primary);
    display: flex; align-items: center; justify-content: flex-start;
    margin-bottom: 20px;
}
.tech-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.25;
}
.tech-card h3 { color: var(--primary); font-size: 1.25rem; margin-bottom: 15px; }
.tech-specs { padding: 0; margin: 0 0 20px 0; list-style: none; flex-grow: 1; }
.tech-specs li { color: var(--text-main); font-size: 0.95rem; margin-bottom: 8px; padding-left: 15px; position: relative; }
.tech-specs li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.tech-brands { font-size: 0.8rem; text-transform: uppercase; font-weight: 700; color: var(--text-light); padding-top: 15px; border-top: 1px solid #e2e8f0; }

/* CONTACTS */
.contact-section { background: var(--primary); color: var(--white); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-content h2 { color: white; }
.contact-content p { color: var(--text-on-dark); }
.data-row { margin-bottom: 25px; display: flex; align-items: flex-start; gap: 15px; }
.data-icon { font-size: 1.5rem; color: var(--accent); background: rgba(255,255,255,0.05); padding: 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px;}
.data-icon svg { stroke-width: 1.5; }
.data-text h4 { color: #94a3b8; margin-bottom: 5px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.data-text div, .data-text a { color: white; font-size: 1.1rem; }
.data-text a.email-link { color: var(--accent); text-decoration: underline; }
.map-box { height: 450px; background: #1e293b; border-radius: var(--radius); overflow: hidden; border: 4px solid rgba(255,255,255,0.05); }

/* FOOTER */
footer { background: #000000; color: #94a3b8; padding: 60px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; border-bottom: 1px solid #333; padding-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: var(--accent); }

/* АДАПТИВ */
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .hero h1 { font-size: 2.5rem; } }
@media (max-width: 768px) {
    .stats-bar { grid-template-columns: 1fr 1fr; margin-top: 20px; }
    .about-grid { grid-template-columns: 1fr; }
    .burger { display: block; }
    .nav-links { position: absolute; right: 0; top: 60px; background: var(--white); width: 100%; height: calc(100vh - 60px); flex-direction: column; align-items: center; justify-content: center; transform: translateX(100%); transition: 0.3s; }
    .nav-links.active { transform: translateX(0); }
    .header-contact { display: none; }
}