@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #151515;
  --surface: #202020;
  --surface-light: #292929;
  --border: #373737;
  --text: #f7f4ef;
  --soft: #d0ccc5;
  --muted: #aaa6a0;
  --red: #d32d26;
  --red-hover: #b9231e;
  --amber: #ef9e63;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: "Manrope", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Unbounded", "Manrope", sans-serif; letter-spacing: -.035em; text-wrap: balance; }
h1, h2, h3, p, li { overflow-wrap: break-word; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; border-radius: 10px; background: #fff; color: #111; font-weight: 700; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }

.site-shell { min-height: 100vh; overflow: clip; background: radial-gradient(900px 600px at 10% -5%, rgba(255,255,255,.12), transparent 55%), radial-gradient(850px 520px at 92% 7%, rgba(211,45,38,.08), transparent 50%), linear-gradient(180deg, #242424 0%, #2c2c2b 50%, #202020 100%); }
.container { width: min(100% - 32px, 1216px); margin-inline: auto; }
.section { padding: 56px 0; }
.section-title { margin-bottom: 24px; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.2; }
.section-title.centered { text-align: center; }
.section-intro { max-width: 760px; margin-bottom: 28px; color: var(--soft); font-size: 1rem; line-height: 1.75; }

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(26,26,26,.84); backdrop-filter: blur(18px); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: .9rem; font-weight: 700; letter-spacing: .03em; transition: color .2s; }
.brand:hover { color: #e23a3a; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: #d8d8d8; box-shadow: 0 0 16px rgba(255,255,255,.32); }
.main-nav { display: flex; align-items: center; gap: 7px; }
.nav-chip { padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--soft); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; transition: .2s; }
.nav-chip:hover { border-color: #545454; background: #2c2c2c; color: var(--text); }
.nav-chip.active { border-color: rgba(195,31,31,.65); color: #e23a3a; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; background: #242424; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--text); transition: .25s; }

.hero-section { padding-top: 64px; }
.hero-panel { position: relative; overflow: hidden; min-height: min(720px, calc(100svh - 130px)); padding: clamp(32px, 6vw, 64px); border: 1px solid rgba(255,255,255,.12); border-radius: 30px; background: #171717; box-shadow: 0 30px 80px rgba(0,0,0,.42); isolation: isolate; }
.hero-panel::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(10,10,10,.97) 0%,rgba(12,12,12,.88) 37%,rgba(12,12,12,.34) 67%,rgba(12,12,12,.08) 100%), linear-gradient(0deg,rgba(12,12,12,.55),transparent 50%); }
.hero-panel::after { content: ""; position: absolute; z-index: 0; width: 440px; height: 440px; top: -270px; right: -110px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012); pointer-events: none; }
.hero-media { position: absolute; z-index: -2; inset: -8%; background: url("assets/images/fire-safety-engineer-hero.webp") 56% center / cover no-repeat; transform: translate3d(0,var(--parallax-y,0),0) scale(1.04); transition: transform .1s linear; will-change: transform; }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: min(590px, calc(100svh - 260px)); max-width: 720px; }
.eyebrow { display: inline-flex; margin-bottom: 18px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.05); color: var(--soft); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.hero-panel h1 { position: relative; z-index: 1; max-width: 720px; margin-bottom: 22px; font-size: clamp(2.25rem, 5.6vw, 4.6rem); line-height: 1.04; }
.hero-text { position: relative; z-index: 1; max-width: 760px; color: #e8e8e8; font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 21px; border: 1px solid transparent; border-radius: 999px; font-size: .86rem; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .nav-chip:focus-visible, .brand:focus-visible, .text-link:focus-visible, .call-fab:focus-visible { outline: 3px solid rgba(239,158,99,.9); outline-offset: 3px; }
.button-primary { border-color: #d52a2a; background: var(--red); color: white; }
.button-primary:hover { background: var(--red-hover); }
.button-secondary { border-color: #414141; background: #2b2b2b; color: var(--text); }
.button-secondary:hover { background: #363636; }
.hero-proof { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; max-width: 720px; padding: 0; margin: clamp(34px,6vh,62px) 0 0; list-style: none; }
.hero-proof li { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { margin-bottom: 6px; color: #fff; font-size: .8rem; }
.hero-proof span { color: rgba(255,255,255,.64); font-size: .7rem; line-height: 1.5; }

.surface-card { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg,rgba(255,255,255,.025),transparent 38%),var(--surface); box-shadow: 0 16px 36px rgba(0,0,0,.2); }
.directions-grid, .audience-grid, .advantages-grid, .cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.direction-card { position: relative; min-height: 205px; padding: 28px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s; }
.direction-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -100px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle,rgba(211,45,38,.2),transparent 70%); transition: transform .45s; }
.direction-card:hover::after { transform: scale(1.7); }
.direction-card:hover { transform: translateY(-4px); border-color: #4a4a4a; background: #252525; }
.direction-number { position: absolute; top: 24px; right: 26px; color: #555; font: 600 1.8rem "Unbounded", sans-serif; }
.direction-card h3 { max-width: calc(100% - 55px); margin-bottom: 13px; font-size: 1.25rem; }
.direction-card p { max-width: 520px; color: var(--soft); font-size: .9rem; line-height: 1.65; }
.text-link { position: absolute; left: 28px; bottom: 25px; display: inline-flex; align-items: center; gap: 8px; color: #da3030; font-size: .84rem; font-weight: 700; }
.text-link span { transition: transform .2s; }
.direction-card:hover .text-link span { transform: translateX(4px); }

.audience-card { padding: 28px; }
.audience-card h3 { font-size: 1.18rem; line-height: 1.4; }
.accent-list, .advantages-grid { padding: 0; margin: 22px 0 0; list-style: none; }
.accent-list { display: grid; gap: 16px; }
.accent-list li { position: relative; padding-left: 22px; color: #e2e2e2; font-size: .91rem; line-height: 1.65; }
.accent-list li::before { content: ""; position: absolute; top: .65em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.red-list { --accent: #c31f1f; } .orange-list { --accent: #d97a22; } .green-list { --accent: #2a8f6a; } .blue-list { --accent: #3e7bd6; }
.advantages-grid { margin-top: 0; }
.advantage { display: flex; align-items: flex-start; gap: 14px; padding: 22px; color: #e5e5e5; font-size: .91rem; line-height: 1.65; }
.check { display: grid; place-items: center; flex: 0 0 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: rgba(195,31,31,.15); color: #e23a3a; font-weight: 800; }

.cta-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; padding: clamp(30px, 6vw, 48px); border: 1px solid rgba(195,31,31,.35); border-radius: 28px; background: linear-gradient(140deg,rgba(195,31,31,.16),#252525 48%,rgba(195,31,31,.08)); box-shadow: 0 25px 60px rgba(0,0,0,.28); }
.cta-panel h2 { margin-bottom: 16px; font-size: clamp(1.7rem, 4vw, 2.65rem); line-height: 1.2; }
.cta-panel > div > p:last-child { margin: 0; color: var(--soft); line-height: 1.65; }
.lead-form { display: grid; gap: 14px; }
.lead-form label span { display: block; margin: 0 0 7px 3px; color: var(--soft); font-size: .74rem; font-weight: 600; }
.lead-form input { width: 100%; height: 46px; padding: 0 16px; outline: none; border: 1px solid #484848; border-radius: 12px; background: rgba(16,16,16,.45); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.lead-form input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(195,31,31,.15); }
.lead-form .button { width: 100%; }
.form-status { min-height: 20px; margin: 0; color: #d8d8d8; font-size: .78rem; text-align: center; }
.form-note { margin: -2px 3px 0; color: var(--muted); font-size: .66rem; line-height: 1.45; text-align: center; }

.case-card { overflow: hidden; }
.case-visual { position: relative; height: 230px; overflow: hidden; background-color: #333; }
.case-visual::before, .case-visual::after { content: ""; position: absolute; }
.warehouse { background: linear-gradient(0deg,rgba(12,12,12,.25),transparent),url("assets/images/fire-safety-engineer-hero.webp") center 42% / cover no-repeat; }
.mall { background: linear-gradient(0deg,rgba(12,12,12,.25),transparent),url("assets/images/fire-safety-mall-case.webp") center 55% / cover no-repeat; }
.case-visual { transition: background-size .7s cubic-bezier(.2,.8,.2,1), filter .4s; }
.case-card:hover .case-visual { filter: saturate(1.08) brightness(1.06); }
.case-badge { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(20,20,20,.72); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; backdrop-filter: blur(8px); }
.case-content { padding: 24px; }
.case-content h3 { margin-bottom: 12px; font-size: 1.12rem; }
.case-content p { margin: 0; color: var(--soft); font-size: .9rem; line-height: 1.65; }

.contacts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; padding: 28px; }
.contact-label { margin-bottom: 8px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.contacts-grid a, .contacts-grid div > p:last-child { margin: 0; font-size: .95rem; font-weight: 700; }
.contacts-grid a:hover { color: #e23a3a; }
.call-fab { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; min-width: 200px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.26); border-radius: 16px; background: linear-gradient(145deg,#e04747,#c31f1f 56%,#951414); color: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.35); animation: pulse 1.8s ease-out infinite; transition: transform .2s; }
.call-fab:hover { transform: translateY(-3px); }
.call-fab span { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; opacity: .86; }
.call-fab strong { margin-top: 3px; font-size: .96rem; }
.site-footer { border-top: 1px solid rgba(255,255,255,.1); background: rgba(26,26,26,.75); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 40px; }
.footer-grid p { margin: 0; color: var(--soft); font-size: .85rem; line-height: 1.65; }
.footer-grid .footer-brand { margin-bottom: 7px; color: #d92c2c; font-weight: 700; }
.footer-contacts { text-align: right; }

/* Inner section and service pages */
.inner-page { min-height: 100vh; }
.page-hero { position: relative; padding-top: 96px; padding-bottom: 84px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(90deg,rgba(20,20,20,.96),rgba(20,20,20,.72) 60%,rgba(20,20,20,.45)),url("assets/images/fire-safety-engineer-hero.webp") 70% 46% / cover no-repeat; background-attachment: fixed; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { max-width: 930px; margin-bottom: 18px; font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.14; }
.page-lead { max-width: 780px; margin: 0; color: var(--soft); font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.7; }
.breadcrumb { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--soft); font-size: .86rem; font-weight: 600; transition: color .2s; }
.breadcrumb:hover { color: #e23a3a; }
.compact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0; margin: 24px 0 0; list-style: none; }
.compact-card { position: relative; min-height: 100px; padding: 22px 22px 22px 52px; color: #e8e8e8; font-size: .92rem; line-height: 1.65; }
.compact-card::before { content: ""; position: absolute; top: 28px; left: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(195,31,31,.1); }
.services-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.services-heading .section-title { margin: 0; }
.count-pill { flex: none; padding: 7px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: var(--soft); font-size: .72rem; font-weight: 600; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { display: flex; flex-direction: column; min-height: 250px; padding: 25px; transition: transform .25s, border-color .25s; }
.service-card:hover { transform: translateY(-4px); border-color: #4b4b4b; }
.service-card h3 { margin-bottom: 13px; font-size: 1.08rem; line-height: 1.4; }
.service-card p { margin-bottom: 22px; color: var(--soft); font-size: .87rem; line-height: 1.65; }
.service-card .text-link { position: static; margin-top: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0; margin: 24px 0 0; list-style: none; }
.feature-card { padding: 23px; color: #e8e8e8; font-size: .92rem; line-height: 1.65; }
.intro-card { padding: 30px; }
.intro-card .section-title { margin-bottom: 15px; }
.intro-card p { margin: 0; color: var(--soft); font-size: 1.03rem; line-height: 1.75; }
.steps-grid { counter-reset: steps; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0; margin: 24px 0 0; list-style: none; }
.step-card { counter-increment: steps; display: flex; align-items: flex-start; gap: 16px; padding: 22px; color: #e8e8e8; font-size: .92rem; line-height: 1.65; }
.step-card::before { content: counter(steps); display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.04); color: var(--text); font-weight: 700; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { position: relative; padding: 22px 56px 22px 24px; cursor: pointer; list-style: none; font-family: "Unbounded", sans-serif; font-size: .88rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 50%; right: 24px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #484848; border-radius: 50%; color: var(--soft); transform: translateY(-50%); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 24px 22px; margin: 0; color: var(--soft); font-size: .91rem; line-height: 1.7; }
.case-placeholder { padding: 28px; }
.case-placeholder .section-title { margin-bottom: 14px; }
.case-placeholder p { margin: 0; color: var(--soft); line-height: 1.7; }

.reveal { opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .72s cubic-bezier(.2,.8,.2,1), transform .72s cubic-bezier(.2,.8,.2,1); transition-delay: var(--reveal-delay,0ms); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes pulse { 0% { box-shadow: 0 14px 36px rgba(0,0,0,.35),0 0 0 0 rgba(227,71,71,.46); } 70% { box-shadow: 0 14px 36px rgba(0,0,0,.35),0 0 0 16px rgba(227,71,71,0); } 100% { box-shadow: 0 14px 36px rgba(0,0,0,.35),0 0 0 0 rgba(227,71,71,0); } }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 70px; right: 16px; left: 16px; display: grid; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 17px; background: rgba(30,30,30,.98); box-shadow: 0 20px 45px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s; }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-chip { padding: 11px 14px; text-align: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .cta-panel { grid-template-columns: 1fr; gap: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1216px); }
  .section { padding: 42px 0; }
  .hero-section { padding-top: 34px; }
  .hero-panel { padding: 28px 22px; border-radius: 22px; }
  .hero-panel h1 { font-size: 2rem; }
  .hero-panel::before { background: linear-gradient(0deg,rgba(9,9,9,.97) 0%,rgba(9,9,9,.88) 62%,rgba(9,9,9,.35) 100%); }
  .hero-media { background-position: 66% center; opacity: .8; }
  .hero-content { min-height: 610px; justify-content: flex-end; }
  .hero-proof { grid-template-columns: 1fr; gap: 8px; margin-top: 30px; }
  .hero-proof li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding-top: 9px; }
  .button-row, .button-row .button { width: 100%; }
  .directions-grid, .audience-grid, .advantages-grid, .cases-grid, .contacts-grid, .footer-grid { grid-template-columns: 1fr; }
  .compact-grid, .feature-grid, .steps-grid, .services-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 46px; padding-bottom: 30px; }
  .page-hero { background-attachment: scroll; background-position: 62% center; }
  .services-heading { align-items: flex-start; }
  .count-pill { display: none; }
  .direction-card { min-height: 215px; padding: 24px; }
  .text-link { left: 24px; }
  .audience-card { padding: 23px; }
  .contacts-grid { gap: 22px; padding: 23px; }
  .footer-contacts { text-align: left; }
  .call-fab { right: 12px; bottom: 12px; min-width: 184px; padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media { transform: none; }
  .page-hero { background-attachment: scroll; }
}
