:root {
    --red: #e51f2a;
    --red-dark: #c90000;
    --ink: #101216;
    --muted: #6d7480;
    --line: #dfe1e4;
    --bg: #f5f6f8;
    --white: #ffffff;
    --header: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header);
    background: #0c0e12;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.logo-img {
    width: 52px;
    height: 56px;
    flex: 0 0 52px;
    object-fit: contain;
    display: block;
}
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-text strong {
    letter-spacing: 1.4px;
    font-size: 15px;
    white-space: nowrap;
}
.logo-text small {
    color: #7f858e;
    font-size: 8px;
    letter-spacing: 1px;
}
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}
.nav a {
    color: #aeb3ba;
    font-size: 14px;
    transition: color .2s;
}
.nav a:hover { color: var(--white); }
.nav-phone { display: none; }
.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 8px;
}
.header-phone span { color: #707780; font-size: 11px; }
.header-phone a { font-weight: 700; font-size: 16px; }
.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}
.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: white;
    transition: .2s;
}
.menu-button.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button.is-open span:nth-child(2) { opacity: 0; }
.menu-button.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 75% 45%, rgba(229,31,42,.18), transparent 34%),
        linear-gradient(120deg, #080a0d 0%, #0d1015 55%, #080a0d 100%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.hero-content {
    position: relative;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 40px;
    padding: 72px 0;
}
.hero-label, .section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-size: 12px;
    letter-spacing: 1.6px;
    font-weight: 700;
}
.hero-label span {
    width: 28px;
    height: 2px;
    background: var(--red);
}
.hero h1, .section-heading h2, .about h2, .security h2, .cta h2, .contacts h2 {
    margin: 12px 0 16px;
    font-size: 56px;
    line-height: 1.02;
    letter-spacing: -1.5px;
}
.hero h1 strong, h2 strong { color: var(--red); font-weight: 700; }
.hero-text > p { max-width: 540px; color: #c5cad1; font-size: 18px; }
.hero-buttons, .btn { display: flex; }
.hero-buttons { gap: 12px; margin: 28px 0; flex-wrap: wrap; }
.btn {
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 700;
}
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border: 1px solid rgba(255,255,255,.3); color: white; }
.btn-white { background: white; color: var(--ink); }
.hero-info { display: flex; gap: 28px; }
.hero-info strong { display: block; font-size: 22px; }
.hero-info span { color: #8d949e; font-size: 13px; }
.hero-visual { display: grid; place-items: center; }
.hero-shield {
    width: min(100%, 320px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: rgba(255,255,255,.03);
}
.hero-shield img {
    width: min(220px, 70%);
    height: auto;
    display: block;
    margin: 0 auto 8px;
}
.hero-shield p { margin: 8px 0 0; color: #b7bec7; }

.services, .about, .security, .contacts, .vacancies { padding: 92px 0; }
.services, .security, .vacancies { background: var(--bg); }
.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: end;
    margin-bottom: 36px;
}
.section-heading h2, .about h2, .security h2, .cta h2, .contacts h2 { font-size: 42px; }
.section-heading p { max-width: 360px; color: var(--muted); margin: 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.service-card {
    position: relative;
    min-height: 240px;
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}
.service-main {
    background: #111318;
    color: white;
    border-color: #111318;
}
.service-number { color: #b0b6be; font-size: 13px; }
.service-icon { margin: 18px 0; font-size: 28px; color: var(--red); }
.service-card h3 { margin: 0 0 8px; font-size: 22px; }
.service-card p { margin: 0 0 18px; color: var(--muted); }
.service-main p { color: #c5cad1; }
.service-card a { margin-top: auto; color: var(--red); font-weight: 700; }

.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: center;
}
.about-visual {
    position: relative;
    height: 460px;
    border-radius: 20px;
    background:
        linear-gradient(160deg, rgba(229,31,42,.18), transparent 40%),
        #111318;
}
.about-box {
    position: absolute;
    left: 36px;
    top: 48px;
    width: 230px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: transparent;
}
.about-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.about-number {
    position: absolute;
    right: 28px;
    bottom: 28px;
    color: white;
    font-size: 64px;
    font-weight: 700;
}
.about-number span { color: var(--red); }
.about-line {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 90px;
    height: 1px;
    background: rgba(255,255,255,.15);
}
.lead { font-size: 18px; }
.about-content p { color: #3d4450; }
.advantages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
}
.advantage {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.advantage b { color: var(--red); font-size: 20px; }
.advantage strong, .advantage span { display: block; }
.advantage span { color: var(--muted); font-size: 14px; }

.security-header { margin-bottom: 28px; }
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.security-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 210px;
    padding: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.security-item > span {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}
.security-mark {
    width: 56px;
    height: 56px;
    color: var(--red-dark);
}
.security-item b { font-size: 20px; }
.security-item p { margin: 4px 0 0; color: var(--muted); }

.cta { padding: 72px 0; background: #111318; color: white; }
.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.cta p { color: #c5cad1; max-width: 520px; }
.cta h2 { margin-bottom: 8px; }

.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.vacancy-card {
    padding: 22px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--line);
}
.vacancy-card h3 { margin: 0 0 8px; }
.vacancy-card p { margin: 0; color: var(--muted); }

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 40px;
    align-items: start;
}
.contact-facts { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-facts li { margin: 0 0 12px; }
.contact-facts span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.contact-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 12px 30px rgba(16,18,22,.05);
}
.contact-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.contact-row span { color: var(--muted); }
.contact-row a { color: var(--red-dark); font-weight: 700; }
.contact-form { display: grid; gap: 12px; margin-top: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: #fafbfc;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid rgba(229,31,42,.25);
    border-color: var(--red);
}
.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 10px;
    background: var(--red);
    color: white;
    font-weight: 700;
    cursor: pointer;
}
.contact-button:hover { background: var(--red-dark); }
.form-note { margin: 0; font-size: 14px; }
.form-note.is-ok { color: #1d7a3a; }
.form-note.is-error { color: #c90000; }
.honey {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
}

.footer { background: #0c0e12; color: #c5cad1; padding-top: 56px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr .7fr .8fr;
    gap: 28px;
}
.footer .logo { margin-bottom: 14px; }
.footer p, .footer span { color: #8d949e; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong, .footer-contact strong { color: white; margin-bottom: 6px; }
.footer a:hover { color: white; }
.footer-bottom { margin-top: 36px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .nav {
        display: none;
        position: absolute;
        top: var(--header);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 16px 18px;
        background: #0c0e12;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .nav.is-open { display: flex; }
    .nav a {
        padding: 14px 6px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        font-size: 16px;
    }
    .nav-phone { display: block; color: white; font-weight: 700; }
    .menu-button { display: block; }
    .hero-content, .hero { min-height: auto; }
    .hero-content { grid-template-columns: 1fr; padding: 64px 0; }
    .hero-visual { display: none; }
    .services-grid, .vacancy-grid { grid-template-columns: 1fr 1fr; }
    .about-grid, .contacts-grid, .cta-inner { grid-template-columns: 1fr; display: grid; }
    .security-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-visual { max-width: 560px; height: 400px; }
}

@media (max-width: 700px) {
    .container { width: calc(100% - 28px); }
    .header { height: 68px; }
    .header-phone { display: none; }
    .logo-text strong { font-size: 13px; letter-spacing: .6px; }
    .logo-text small { display: none; }
    .hero h1 { font-size: 38px; letter-spacing: -1px; }
    .section-heading h2, .about h2, .security h2, .cta h2, .contacts h2 { font-size: 32px; }
    .hero-text > p { font-size: 16px; }
    .hero-buttons, .cta-inner { display: grid; }
    .btn, .contact-button { width: 100%; }
    .hero-info { flex-wrap: wrap; gap: 16px 20px; }
    .hero-info div { width: calc(50% - 12px); }
    .section-heading { display: block; }
    .section-heading p { margin-top: 12px; }
    .services, .about, .security, .contacts, .vacancies { padding: 64px 0; }
    .services-grid, .security-grid, .vacancy-grid, .footer-grid { grid-template-columns: 1fr; }
    .service-card, .security-item { min-height: 0; }
    .about-visual { height: 320px; }
    .about-box { width: 180px; height: 220px; left: 20px; top: 28px; }
    .about-number { font-size: 46px; }
    .contact-row { flex-direction: column; gap: 2px; }
    .footer-bottom .container { flex-direction: column; }
}
