/* --- ZBS ADMIN: SWISS PRECISION DESIGN SYSTEM --- */

:root {
    --bg: #ffffff;
    --text: #000000;
    --accent: #FF4500; /* International Orange */
    --border: 2px solid #000000;
    --container: 1280px;
    --font: 'Inter', sans-serif;
}

/* 1. RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img, svg { display: block; }
ul { list-style: none; }

/* 2. UTILITIES */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.border-b { border-bottom: var(--border); }
.border-t { border-top: var(--border); }
.border-l { border-left: var(--border); }
.border-r { border-right: var(--border); }
.color-accent { color: var(--accent); }
.underline { text-decoration: underline; }
.color-gray { color: #666; }
/* SEO & ACCESSIBILITY */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* КЛАССЫ ДЛЯ СТРАНИЦЫ 404 (Вместо inline-стилей) */
.hero-full { min-height: 60vh; display: flex; align-items: center; }
.hero-center { padding: 0; text-align: center; align-items: center; width: 100%; }
.code-404 { font-size: clamp(6rem, 20vw, 15rem); line-height: 0.8; margin-bottom: 20px; }
.title-404 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 1px; }
.desc-404 { margin: 0 auto 40px; max-width: 500px; }

/* КЛАССЫ ДЛЯ КОНТАКТОВ */
.phone-hero { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; letter-spacing: -2px; display: block; margin-top: auto; margin-bottom: 20px; line-height: 1; }
.contact-link { font-size: 2rem; font-weight: 900; display: block; margin-bottom: 10px; text-decoration: underline; }
.email-link { font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: 10px; }
.legal-block { max-width: 600px; }

/* 3. HEADER */
.header { height: 80px; display: flex; align-items: center; position: sticky; top: 0; background: var(--bg); z-index: 100; }
.header-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: -1px; }
.dot { color: var(--accent); }

.nav-desktop { display: flex; gap: 30px; margin: 0 30px; }
.nav-item { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #000; }
.nav-item:hover { color: var(--accent); }

.header-actions { display: flex; gap: 20px; align-items: center; }
.desktop-actions { display: flex; gap: 20px; align-items: center; }

.phone-btn { font-weight: 600; font-size: 0.9rem; }
.phone-btn:hover { color: var(--accent); }

/* КНОПКИ (CTA) - Оранжевые по умолчанию */
.cta-btn { 
    background: var(--accent); 
    color: #fff; 
    padding: 12px 24px; 
    font-weight: 700; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
    transition: 0.3s;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content; /* Чтобы не растягивалась */
}
/* Черная кнопка в шапке (исключение) */
.header .cta-btn { background: #000; } 

.cta-btn:hover { 
    background: #000; 
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.3);
}

/* 4. HERO SECTION */
.hero-grid { display: flex; min-height: 550px; }
.hero-content { flex: 1; padding: 80px 40px 80px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-stat { width: 320px; padding: 40px; display: flex; flex-direction: column; justify-content: center; background: #f4f4f4; }

h1 { font-weight: 900; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.9; letter-spacing: -2px; margin-bottom: 30px; text-transform: uppercase; }
.subtitle { font-size: 1.2rem; line-height: 1.5; max-width: 600px; font-weight: 500; color: #333; margin-bottom: 40px; }
.stat-val { font-size: 4.5rem; font-weight: 900; line-height: 1; display: block; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-top: 10px; display: block; }

/* 5. SERVICES GRID */
.section-label { padding: 20px 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }

.card { 
    padding: 40px 24px 40px 0; 
    min-height: 350px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; /* Исправлена "дыра" */
    gap: 20px; /* Отступ между элементами */
    transition: 0.2s; 
}
.card:not(:first-child) { padding-left: 24px; }
.card:hover { background: #f9f9f9; }
.card:hover .icon-box { color: var(--accent); transform: scale(1.1); }

.icon-box { width: 48px; height: 48px; color: var(--text); transition: 0.2s; }
.card h3 { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; letter-spacing: -0.5px; }
.card p { font-size: 0.95rem; line-height: 1.5; color: #444; }

/* 6. FAT FOOTER */
.footer-top { padding: 0; }
.footer-grid-3 { display: grid; grid-template-columns: 1fr 1.5fr 1fr; }
.f-col { padding: 60px 40px 60px 0; display: flex; flex-direction: column; justify-content: flex-start; }
.footer-grid-3 .f-col:first-child { padding-left: 0; } 
.footer-grid-3 .f-col:nth-child(2) { padding-left: 40px; padding-right: 40px; }
.footer-grid-3 .f-col:last-child { padding-left: 40px; padding-right: 0; }

.f-label { display: block; font-size: 0.7rem; font-weight: 800; color: #888; margin-bottom: 24px; letter-spacing: 1px; }
.f-nav a { display: block; font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.f-nav a:hover { color: var(--accent); }
.f-big-link { display: block; font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; letter-spacing: -1px; }
.f-big-link:hover { color: var(--accent); }
.f-link { display: block; font-size: 1rem; margin-bottom: 15px; font-weight: 500; }
.f-text { font-size: 0.9rem; line-height: 1.6; color: #111; margin-bottom: 5px; }
.f-docs-group { margin-bottom: 20px; }
.f-text.bold { font-weight: 700; color: #000; margin-bottom: 4px; font-size: 0.95rem; }

/* --- MOBILE MENU --- */
.burger-btn { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 24px; flex-direction: column; justify-content: space-between; padding: 0; }
.line { display: block; width: 100%; height: 3px; background: #000; }
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #fff; z-index: 999; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); display: flex; flex-direction: column; }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-head { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.close-btn { background: none; border: none; font-size: 2.5rem; line-height: 1; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; margin-top: 20px; }
.mobile-link { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; padding: 20px 0; letter-spacing: -1px; }
.mobile-contacts { margin-top: 40px; }
.mobile-phone { font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: 20px; }

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 900px) {
    .header { height: 70px; }
    .logo { font-size: 1.2rem; }
    .nav-desktop, .desktop-actions { display: none; }
    .burger-btn { display: flex; }
    .hero-grid { flex-direction: column; min-height: auto; }
    .hero-content { padding: 40px 0 50px; text-align: left; }
    h1 { font-size: 3.2rem; margin-bottom: 20px; }
    .hero-stat { width: 100%; border-left: none; border-top: var(--border); padding: 30px 0; background: #f4f4f4; align-items: flex-start; }
    .stat-val { font-size: 3.5rem; }
    .grid-4 { grid-template-columns: 1fr; }
    .card { border-right: none; border-bottom: var(--border); padding: 30px 0 !important; min-height: auto; }
    .card:last-child { border-bottom: none; }
    .border-l { border-left: none; } /* Сбрасываем стенку на мобильном */
    .footer-grid-3 { grid-template-columns: 1fr; }
    .f-col { padding: 40px 0 !important; border-right: none; border-bottom: var(--border); }
    .f-col:last-child { border-bottom: none; }
}