:root {
    --theme: #db432c;
    --theme-dark: #b83422;
    --theme-soft: rgba(219, 67, 44, 0.1);
    --bg: #ffffff;
    --bg-alt: #f5f6f8;
    --text: #222222;
    --muted: #6b7280;
    --border: #e5e7eb;
    --footer-bg: #1f2329;
    --footer-text: #d1d5db;
    --font: "Montserrat", sans-serif;
    --container: 1140px;
    --header-h: 118px;
    --radius: 4px;
    --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--theme); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--theme-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.mono { font-variant-numeric: tabular-nums; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; min-height: 44px; padding: 0 22px; border: 0;
    border-radius: var(--radius); font: inherit; font-weight: 600;
    font-size: 0.92rem; cursor: pointer; text-decoration: none; transition: 0.2s ease;
}
.btn--primary { background: var(--theme); color: #fff; }
.btn--primary:hover { background: var(--theme-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--outline:hover { border-color: var(--theme); color: var(--theme); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.85rem; }
.btn--lg { min-height: 50px; padding: 0 28px; }

.header {
    position: sticky; top: 0; z-index: 50; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.header__top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; min-height: 72px;
}
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 700; font-size: 1.15rem;
}
.logo:hover { color: var(--theme); }
.logo__mark {
    width: 28px; height: 28px; border-radius: 6px;
    background: linear-gradient(145deg, var(--theme), var(--theme-dark));
}
.header__contacts {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end;
}
.header__phone { color: var(--text); font-weight: 600; font-size: 0.92rem; }
.header__phone:hover { color: var(--theme); }

.nav { background: var(--theme); }
.nav__inner {
    display: flex; flex-wrap: wrap; gap: 4px 8px; min-height: 46px; align-items: center;
}
.nav a {
    color: #fff; font-size: 0.88rem; font-weight: 500;
    padding: 10px 12px; border-radius: var(--radius);
}
.nav a:hover, .nav a.is-active { background: rgba(255,255,255,.14); color: #fff; }
.nav__dropdown { position: relative; }
.nav__dropdown > a { display: inline-block; }
.nav__menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 260px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 8px; z-index: 20;
}
.nav__dropdown:hover .nav__menu, .nav__dropdown:focus-within .nav__menu { display: grid; }
.nav__menu a {
    color: var(--text); padding: 10px 12px; border-radius: var(--radius);
}
.nav__menu a:hover { background: var(--bg-alt); color: var(--theme); }

.burger {
    display: none; width: 42px; height: 42px; border: 1px solid var(--border);
    border-radius: var(--radius); background: #fff; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); }

.page-title {
    padding: 36px 0 22px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.page-title h1 {
    font-size: clamp(1.55rem, 2.4vw, 2.1rem); line-height: 1.25; font-weight: 700;
}
.page-title__lead { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.breadcrumbs {
    display: flex; gap: 8px; align-items: center; margin-bottom: 12px;
    color: var(--muted); font-size: 0.85rem; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--theme); }

.hero {
    padding: 56px 0 48px;
    background:
        radial-gradient(circle at 90% 10%, rgba(219,67,44,.12), transparent 40%),
        linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}
.hero__grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center;
}
.hero__brand {
    color: var(--theme); font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px;
}
.hero h1 {
    font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.2; margin-bottom: 16px;
}
.hero__subtitle { color: var(--muted); max-width: 52ch; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__panel { display: grid; gap: 12px; }
.hero__panel-card {
    background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--theme);
    border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.hero__panel-card span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 4px; }
.hero__panel-card strong { font-size: 1.05rem; }

.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 28px; }
.section__label {
    display: inline-block; color: var(--theme); font-weight: 700;
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.section__title { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 700; }

.stats { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.stats--hero { margin-top: 8px; }
.stats--page { justify-content: space-between; }
.stats__value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--theme); line-height: 1.1; }
.stats__label { color: var(--muted); font-size: 0.85rem; }

.cards { display: grid; gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow);
}
.card--link { color: inherit; transition: border-color .2s ease, transform .2s ease; }
.card--link:hover { border-color: color-mix(in srgb, var(--theme) 45%, white); transform: translateY(-2px); color: inherit; }
.card--accent { border-top: 3px solid var(--theme); }
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card__more { display: inline-block; margin-top: 14px; color: var(--theme); font-weight: 600; font-size: 0.88rem; }
.card__icon {
    width: 44px; height: 44px; margin-bottom: 14px; border-radius: 8px;
    background: var(--theme-soft); position: relative;
}
.card__icon::before {
    content: ""; position: absolute; inset: 12px;
    border: 2px solid var(--theme); border-radius: 3px;
}
.card__icon--fire::before { border-radius: 50% 50% 40% 40%; }
.card__icon--shield::before { clip-path: polygon(50% 0, 100% 25%, 100% 70%, 50% 100%, 0 70%, 0 25%); border: 0; background: var(--theme); inset: 10px; }
.card__icon--gate::before { width: 8px; left: 50%; transform: translateX(-50%); inset: 10px auto; height: calc(100% - 20px); background: var(--theme); border: 0; }
.card__icon--electro::before { border: 0; background: var(--theme); clip-path: polygon(40% 0, 70% 0, 45% 45%, 75% 45%, 25% 100%, 40% 55%, 15% 55%); inset: 10px; }
.card__icon--project::before { border-style: dashed; }

.works { position: relative; }
.works__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; scrollbar-width: thin;
}
.work {
    scroll-snap-align: start; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0 0 18px; overflow: hidden;
}
.work__visual { height: 140px; background: linear-gradient(135deg, #2c3340, #db432c); }
.work__visual--1 { background: linear-gradient(135deg, #1f3a5f, #db432c); }
.work__visual--2 { background: linear-gradient(135deg, #3d2c2c, #db432c); }
.work__visual--3 { background: linear-gradient(135deg, #243528, #db432c); }
.work h3, .work p { padding: 0 18px; }
.work h3 { margin: 14px 0 8px; }
.work p { color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }
.works__nav { display: flex; gap: 8px; margin-top: 14px; }
.works__btn {
    width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius);
    background: #fff; cursor: pointer; font-size: 1.1rem;
}
.works__btn:hover { border-color: var(--theme); color: var(--theme); }

.timeline {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
}
.timeline li {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 12px; text-align: center;
}
.timeline__num {
    display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 10px;
    border-radius: 50%; background: var(--theme); color: #fff; font-weight: 700;
}
.timeline__text { font-size: 0.88rem; font-weight: 600; }

.order {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
}
.order__form {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); display: grid; gap: 14px;
}
.order__form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; }
.order__form input, .order__form textarea {
    width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 14px; font: inherit; font-weight: 400;
}
.order__form input:focus, .order__form textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--theme) 35%, white); border-color: var(--theme);
}
.form-note { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.form-alert { padding: 12px 14px; border-radius: var(--radius); font-size: 0.92rem; }
.form-alert--ok { background: #ecfdf3; color: #166534; }
.form-alert--err { background: #fef2f2; color: #991b1b; }

.content { max-width: 820px; }
.content--wide { max-width: 900px; }
.content p + p { margin-top: 14px; }
.muted { color: var(--muted); font-size: 0.92rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split__card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.split__card h2 { font-size: 1.25rem; margin-bottom: 14px; }

.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.check-list--single { grid-template-columns: 1fr; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 0.35em;
    width: 16px; height: 16px; border-radius: 3px; background: var(--theme);
    box-shadow: inset 0 0 0 3px #fff;
}

.tech, .pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tech__tag {
    display: inline-flex; align-items: center; padding: 8px 14px;
    border: 1px solid var(--border); border-radius: 999px; background: #fff;
    font-weight: 600; font-size: 0.88rem;
}

.team-card__photo {
    height: 140px; margin: -22px -22px 16px; border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(135deg, #2c3340, #db432c88);
}
.team-card__role { color: var(--theme); font-weight: 600; margin-bottom: 8px; }

.service-layout {
    display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 28px; align-items: start;
}
.service-layout__main h2 { margin: 28px 0 14px; font-size: 1.25rem; }
.service-layout__main h2:first-child { margin-top: 0; }
.side-card {
    position: sticky; top: calc(var(--header-h) + 16px);
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow);
}
.side-card h3 { margin-bottom: 12px; }
.side-nav { display: grid; gap: 6px; margin-bottom: 18px; }
.side-nav a {
    display: block; padding: 8px 10px; border-radius: var(--radius); color: var(--text); font-size: 0.9rem;
}
.side-nav a:hover, .side-nav a.is-active { background: var(--theme-soft); color: var(--theme); }

.footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 24px; }
.footer a { color: #fff; }
.footer a:hover { color: #ffb4a8; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 28px; margin-bottom: 28px; }
.footer h3 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer__tagline, .footer__domain { margin-top: 10px; font-size: 0.92rem; max-width: 40ch; }
.footer__list { display: grid; gap: 8px; font-size: 0.92rem; }
.footer__bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.85rem;
}

@media (max-width: 960px) {
    .hero__grid, .cards--3, .cards--4, .order, .split, .service-layout, .footer__grid, .timeline {
        grid-template-columns: 1fr 1fr;
    }
    .cards--4 { grid-template-columns: 1fr 1fr; }
    .timeline { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
    :root { --header-h: 72px; }
    .header__contacts { display: none; }
    .burger { display: inline-block; }
    .nav { display: none; }
    body.nav-open .nav { display: block; }
    .nav__inner { flex-direction: column; align-items: stretch; padding: 10px 0 16px; }
    .nav__menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; }
    .nav__menu a { color: #fff; }
    .hero__grid, .cards--2, .cards--3, .cards--4, .order, .split, .service-layout, .footer__grid, .check-list, .timeline {
        grid-template-columns: 1fr;
    }
    .section { padding: 40px 0; }
}
