/* ======================================================
   ВЕКТОР — системы безопасности и связи
   Палитра: светло-синий металлик + серебро, графит, оранжевый акцент
   ====================================================== */

:root {
    /* Серебро / металлик (глубже, прохладнее) */
    --silver-100: #eceff5;
    --silver-200: #dfe5ee;
    --silver-300: #ccd5e1;
    --silver-400: #adb9c9;
    --silver-500: #8d9aac;

    /* Светло-синий металлик (насыщенный стальной) */
    --blue-100: #dce9f8;
    --blue-200: #bbd4ef;
    --blue-300: #8eb5e4;
    --blue-400: #5689cb;
    --blue-500: #2a66b4;
    --blue-600: #1c4c86;

    /* Графит (как в логотипе) */
    --graphite-900: #21262e;
    --graphite-800: #2b313b;
    --graphite-700: #3a414d;
    --graphite-500: #5a6472;

    /* Оранжевый акцент (стрелка из логотипа) */
    --accent: #f07d1a;
    --accent-dark: #d96a0c;

    --text: var(--graphite-900);
    --text-soft: var(--graphite-500);
    --white: #ffffff;

    /* Металлические градиенты */
    --grad-silver: linear-gradient(135deg, #f4f7fb 0%, #dbe3ee 45%, #b5c2d4 55%, #e2e9f2 100%);
    --grad-blue-metal: linear-gradient(135deg, #dcebfb 0%, #aecbed 38%, #6f9fd8 62%, #c2dbf4 100%);
    --grad-graphite: linear-gradient(135deg, #333a45 0%, #1d222a 50%, #333a45 100%);
    --grad-accent: linear-gradient(135deg, #ff993b 0%, #f07d1a 55%, #d96a0c 100%);

    --shadow-sm: 0 2px 10px rgba(28, 34, 44, 0.10);
    --shadow-md: 0 12px 32px rgba(28, 34, 44, 0.16);
    --shadow-lg: 0 26px 64px rgba(28, 34, 44, 0.24);

    --radius: 16px;
    --radius-sm: 10px;
    --container: 1180px;
    --header-h: 92px;

    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: var(--silver-100);
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(86, 137, 203, 0.28), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(141, 154, 172, 0.26), transparent 55%);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: none;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    white-space: nowrap;
}
.btn--block { width: 100%; }

.btn--primary {
    background: var(--grad-accent);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(240, 125, 26, 0.32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(240, 125, 26, 0.40); filter: brightness(1.03); }

.btn--metal {
    background: var(--grad-silver);
    color: var(--graphite-800);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
}
.btn--metal:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost {
    background: rgba(255,255,255,0.5);
    color: var(--graphite-800);
    border: 1px solid var(--silver-400);
    backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--blue-400); color: var(--blue-600); }

/* ===== Шапка ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    background: rgba(236, 239, 245, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(173, 185, 201, 0.55);
    transition: box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(236, 239, 245, 0.94); }

.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

/* ===== Логотип-локап (знак + текст) ===== */
.logo, .header__logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}
.logo__mark { height: 50px; width: auto; display: block; }
.logo__text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.logo__name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: .03em;
    color: var(--graphite-900);
}
.logo__tag {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--graphite-500);
    margin-top: 5px;
}

.nav { display: flex; gap: 6px; flex: 1; justify-content: center; align-items: center; }
.nav__link {
    position: relative;
    white-space: nowrap;
    padding: 8px 14px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    color: var(--graphite-700);
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    background: var(--grad-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .25s ease;
}
.nav__link:hover { color: var(--blue-600); }
.nav__link:hover::after { transform: scaleX(1); }

.header__contacts { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.header__phone,
.header__email {
    font-family: 'Exo 2', var(--font-head);
    font-weight: 300;
    font-size: 15px;
    letter-spacing: .04em;
    text-align: center;
    color: var(--graphite-700);
    text-shadow: 0 1px 2px rgba(28, 34, 44, 0.22);
    transition: color .2s ease;
    white-space: nowrap;
}
.header__phone:hover,
.header__email:hover { color: var(--blue-600); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { width: 26px; height: 2px; background: var(--graphite-800); border-radius: 2px; transition: .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 80px) 0 110px;
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background: var(--grad-blue-metal);
    opacity: .85;
    z-index: -2;
}
.hero__bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, transparent 60%, var(--silver-100) 100%),
        repeating-linear-gradient(115deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 9px);
}
.hero__shield {
    position: absolute;
    right: -60px; top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    width: 460px;
    opacity: .12;
    filter: grayscale(.2);
    z-index: -1;
    pointer-events: none;
}
.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.hero__content { width: 100%; }
.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-600);
    background: rgba(255,255,255,0.65);
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.8);
    margin-bottom: 22px;
}
.hero__title {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--graphite-900);
}
.hero__subtitle {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(19px, 2.4vw, 25px);
    color: var(--graphite-800);
    margin-bottom: 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; justify-content: center; }

/* Герой — карточки под текстом */
.hero__aside {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 36px;
}
.hero__card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: 0 4px 20px rgba(28,34,44,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero__card--accent {
    background: linear-gradient(145deg, rgba(42,102,180,0.16) 0%, rgba(86,137,203,0.09) 100%);
    border-color: rgba(86,137,203,0.40);
}
.hero__card--wide { /* бывшая «широкая», теперь обычная */ }
.hero__card strong {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    color: var(--graphite-900);
    line-height: 1.1;
    margin-bottom: 6px;
}
.hero__card--accent strong {
    font-size: 44px;
    color: var(--blue-500);
    letter-spacing: -0.02em;
}
.hero__card span {
    font-size: 13px;
    color: var(--graphite-500);
    line-height: 1.45;
}

/* ===== Секции ===== */
.section { padding: 96px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--silver-200), var(--silver-100)); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__tag {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.section__title::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    margin: 18px auto 0;
    border-radius: 4px;
    background: var(--grad-accent);
}
.section__subtitle { margin-top: 18px; font-size: 17px; color: var(--graphite-500); }

/* ===== Карточки (общий стиль) ===== */
.card {
    background: var(--white);
    border: 1px solid var(--silver-300);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* ===== О компании ===== */
.about {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 64px;
    align-items: stretch;
}
.about__text { margin: 0; text-align: left; }
.about__text p { font-size: 17px; color: var(--graphite-700); margin-bottom: 20px; line-height: 1.75; }
.about__text p:last-child { margin-bottom: 0; }
.about__features { list-style: none; display: flex; flex-direction: column; justify-content: space-between; gap: 0; }
.about__features li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
    padding: 18px 16px;
    background: var(--white);
    border: 1px solid var(--silver-300);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.about__features li:hover { box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.about__ico {
    flex: none;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--grad-blue-metal);
    color: var(--blue-600);
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-sm);
}
.about__features h3 { font-size: 17px; margin-bottom: 2px; }
.about__features p { color: var(--graphite-500); font-size: 15px; }

/* ===== Услуги ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service { padding: 32px 28px; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-300); }
.service__ico {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    font-size: 30px;
    border-radius: 18px;
    background: var(--grad-silver);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--graphite-500); font-size: 15.5px; }

/* ===== Допуски ===== */
.licenses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.license {
    padding: 28px 30px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    align-items: start;
    text-align: left;
}
.license:hover { box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.license__doc {
    grid-row: 1 / 3;
    width: 64px; height: 76px;
    display: grid; place-items: center;
    font-size: 30px;
    border-radius: 10px;
    background: var(--grad-blue-metal);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-sm);
}
.license h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.3; }
.license p { color: var(--graphite-500); font-size: 14.5px; line-height: 1.6; }

/* ===== Контакты ===== */
.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 560px;
    margin: 0 auto;
}
.contacts__form { width: 100%; }
.contacts__info { width: 100%; }
.contacts__list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.contacts__list li { display: flex; gap: 18px; align-items: center; }
.contacts__ico {
    flex: none;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    font-size: 22px;
    border-radius: 14px;
    background: var(--grad-silver);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-sm);
}
.contacts__label { display: block; font-size: 13px; color: var(--graphite-500); margin-bottom: 2px; }
.contacts__list a, .contacts__list div > span:last-child { font-size: 18px; font-weight: 600; color: var(--graphite-900); font-family: var(--font-head); }
.contacts__list a:hover { color: var(--blue-600); }

.contacts__form { padding: 34px 32px; }
.contacts__form h3 { font-size: 22px; margin-bottom: 24px; }

.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea {
    width: 100%;
    padding: 18px 16px 8px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--graphite-900);
    background: var(--silver-100);
    border: 1px solid var(--silver-400);
    border-radius: var(--radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
    resize: vertical;
}
.field textarea { padding-top: 22px; }
.field label {
    position: absolute;
    left: 16px; top: 15px;
    font-size: 16px;
    color: var(--graphite-500);
    pointer-events: none;
    transition: .18s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 4px rgba(111, 163, 219, 0.18);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: 6px;
    font-size: 11.5px;
    color: var(--blue-600);
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.contacts__note { margin-top: 14px; font-size: 12.5px; color: var(--graphite-500); text-align: center; }
.form__success {
    display: none;
    margin-top: 18px;
    padding: 16px 20px;
    background: rgba(42, 102, 180, 0.08);
    border: 1px solid rgba(42, 102, 180, 0.30);
    border-radius: var(--radius-sm);
    color: var(--blue-600);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
}

/* ===== Подвал ===== */
.footer { background: var(--grad-graphite); color: rgba(255,255,255,0.8); padding-top: 56px; margin-top: 20px; }
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px 48px;
    padding-bottom: 40px;
}
.logo--footer { margin-bottom: 0; }
.logo--footer .logo__name { color: #fff; }
.logo--footer .logo__tag { color: rgba(255, 255, 255, 0.55); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer__nav a { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: rgba(255,255,255,0.75); transition: color .2s ease; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.55);
}
.footer__bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.footer__requisites {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    line-height: 1.5;
    max-width: 580px;
    padding: 6px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ===== Адаптив ===== */
@media (max-width: 980px) {
    .services { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 1fr; gap: 36px; }
    .about__text { text-align: center; }
    .about__features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .contacts { grid-template-columns: 1fr; gap: 36px; }
    .hero__shield { opacity: .08; }
    .hero__aside { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    .licenses { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .header__contacts { display: none; }
    .burger { display: flex; }
    .nav {
        position: fixed;
        top: var(--header-h); right: 0;
        width: min(80vw, 320px);
        height: calc(100vh - var(--header-h));
        flex-direction: column;
        gap: 6px;
        padding: 24px;
        background: var(--silver-100);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform .3s ease;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__link { font-size: 18px; padding: 14px; }

    .section { padding: 64px 0; }
    .hero { padding: calc(var(--header-h) + 50px) 0 70px; }
}

@media (max-width: 520px) {
    .services { grid-template-columns: 1fr; }
    .about__features { grid-template-columns: 1fr; }
    .license { grid-template-columns: 1fr; }
    .license__doc { grid-row: auto; margin-bottom: 16px; }
    .hero__actions .btn { flex: 1; }
    .header__logo .logo__tag { display: none; }
    .header__logo .logo__mark { height: 42px; }
    .header__logo .logo__name { font-size: 22px; }
    .hero__aside { grid-template-columns: 1fr 1fr; }
    .hero__card--accent { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
