:root {
  --ink: #171b24;
  --paper: #fff;
  --soft: #f1f2f3;
  --line: #d9dde1;
  --muted: #626a75;
  --red: #ef2d32;
  --red-dark: #cc1f25;
  --shell: 1240px;
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; line-height: 1.45; }
.redesign-preview #wrapper { padding-inline: 0; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.home-redesign { background: transparent; }
.panel, .hero-panel { margin-bottom: 12px; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.panel { padding: 104px 0; }
.eyebrow { margin: 0 0 16px; color: inherit; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.red { color: var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { margin-bottom: 24px; line-height: 1.02; letter-spacing: -.045em; }
h1 { max-width: 820px; font-size: clamp(48px, 6.2vw, 88px); }
h2 { font-size: clamp(36px, 4vw, 58px); }
h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.16; letter-spacing: -.025em; }
.section-heading { max-width: 820px; margin-bottom: 50px; }
.row-heading { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; }
.row-heading > p { max-width: 420px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.row-heading h2 { margin-bottom: 0; }
.text-link { flex: 0 0 auto; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-weight: 700; }
.button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 0 26px; border: 0; border-radius: 99px; color: #fff; background: var(--red); font-weight: 800; white-space: nowrap; cursor: pointer; transition: .2s ease; }
.button:hover { background: var(--red-dark); transform: translateY(-1px); }
.button-small { min-height: 44px; padding-inline: 19px; font-size: 13px; }
.button-dark { background: var(--ink); }
.button-dark:hover { background: #303743; }
.button-white { color: var(--ink); background: #fff; }
.button-white:hover { color: #fff; background: var(--ink); }

.site-header { position: absolute; z-index: 20; width: 100%; color: #fff; }
.header-row { min-height: 92px; display: flex; align-items: center; gap: 38px; border-bottom: 1px solid #ffffff38; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand b { font-size: 28px; line-height: 1; letter-spacing: -.08em; }
.brand span { font-size: 10px; line-height: 1.05; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.main-nav { display: flex; gap: 27px; margin-left: auto; font-size: 14px; }
.main-nav a:hover { color: #ff6e72; }
.header-phone { display: grid; text-align: right; line-height: 1.15; }
.header-phone small { color: #ffffffa3; font-size: 10px; }
.header-phone a { font-weight: 800; }
.menu-button { width: 42px; height: 42px; display: none; padding: 10px; border: 1px solid #ffffff45; border-radius: 50%; color: #fff; background: transparent; }
.menu-button span { width: 100%; height: 1px; display: block; margin: 5px 0; background: currentColor; }

.hero-panel { min-height: 850px; position: relative; color: #fff; background: var(--ink); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 168px 0 60px; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: var(--hero-image) 60% center / cover no-repeat; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#171b24f5 0%,#171b24e8 29%,#171b2496 53%,#171b2426 76%),linear-gradient(0deg,#171b24d9,transparent 45%); }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-content { position: relative; z-index: 1; }
.hero-title { max-width: 830px; font-size: clamp(48px, 6.2vw, 88px); }
.hero-lead { max-width: 640px; margin-bottom: 32px; color: #ffffffce; font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.hero-actions > a:not(.button) { font-weight: 700; }
.hero-facts { max-width: 880px; display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin: 66px 0 0; padding: 22px 0 0; border-top: 1px solid #ffffff45; list-style: none; }
.hero-facts li { display: grid; gap: 4px; padding-right: 24px; }
.hero-facts b { font-size: 16px; }
.hero-facts span { color: #ffffffa5; font-size: 13px; }
.hero-controls { position: absolute; z-index: 3; right: 0; bottom: 52px; left: 0; display: flex; justify-content: flex-end; gap: 22px; pointer-events: none; }
.hero-controls > div { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.hero-controls > div:first-child { margin-right: auto; align-self: flex-end; }
.hero-controls button { width: 46px; height: 46px; border: 1px solid #ffffff66; border-radius: 50%; color: #fff; background: #171b245c; cursor: pointer; }
.hero-dots button { width: 34px; height: 4px; border: 0; border-radius: 10px; background: #ffffff66; }
.hero-dots button.is-active { background: var(--red); }

.services-panel { background: #f5f6f7; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.service-card { min-height: 268px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: .2s ease; }
.service-card:hover { border-color: var(--red); transform: translateY(-3px); }
.service-card.feature { color: #fff; border-color: var(--red); background: var(--red); }
.service-card > small { align-self: flex-end; margin-top: -42px; color: var(--muted); }
.service-card.feature > small { color: #ffffffad; }
.service-icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 42px; padding: 12px; border-radius: 18px; background: #f8e3e4; }
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.feature .service-icon { color: var(--red); background: #fff; }
.service-card h3 { max-width: 300px; }
.service-card p { margin-bottom: 24px; color: var(--muted); }
.feature p { color: #ffffffc9; }
.service-card b { margin-top: auto; font-size: 14px; }

.principles-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.principles-grid article { min-height: 235px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 24px; border-radius: 22px; background: var(--soft); }
.principles-grid article.primary { color: #fff; background: var(--red); }
.principles-grid span { position: absolute; top: -28px; right: 12px; color: var(--red); font-size: 108px; line-height: 1; font-weight: 900; letter-spacing: -.1em; opacity: .13; }
.principles-grid .primary span { color: #fff; opacity: .2; }
.principles-grid h3 { position: relative; max-width: 210px; }
.principles-grid p { position: relative; margin-bottom: 0; color: var(--muted); }
.principles-grid .primary p { color: #ffffffc7; }

.about-panel { background: #eef0f1; }
.about-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.about-copy .lead { font-size: 20px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 36px 0; }
.about-stats div { display: grid; gap: 5px; padding: 18px 12px 18px 0; border-top: 1px solid #c9cdd1; }
.about-stats b { color: var(--red); font-size: 30px; letter-spacing: -.04em; }
.about-stats span { color: var(--muted); font-size: 12px; }
.about-media { margin: 0; overflow: hidden; border-radius: 24px; background: #dfe2e4; }
.about-media img { width: 100%; min-height: 570px; object-fit: cover; }
.about-media figcaption { padding: 17px 22px; color: var(--muted); font-size: 12px; }

.process-panel { color: #fff; background: var(--ink); }
.process-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.process-layout header > p:last-child { max-width: 470px; color: #ffffffa8; font-size: 18px; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 68px 1fr; gap: 25px; padding: 23px 0; border-top: 1px solid #ffffff29; }
.process-list li:last-child { border-bottom: 1px solid #ffffff29; }
.process-list li > span { color: var(--red); font-weight: 900; }
.process-list h3, .process-list p { margin-bottom: 0; }
.process-list p { margin-top: 7px; color: #ffffffa6; }

.advantages-panel { background: #f5f6f7; }
.advantages-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.advantages-grid article { min-height: 225px; position: relative; display: flex; align-items: flex-end; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.advantages-grid article::after { content: ""; position: absolute; top: 24px; left: 24px; width: 34px; height: 4px; border-radius: 4px; background: var(--red); }
.advantages-grid span { position: absolute; top: -18px; right: 10px; color: var(--red); font-size: 92px; line-height: 1; font-weight: 900; letter-spacing: -.08em; opacity: .12; }
.advantages-grid h3 { position: relative; max-width: 220px; margin-bottom: 0; }

.form-panel { background: #e9eaec; }
.form-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 86px; align-items: start; }
.form-layout > *, .final-cta > * { min-width: 0; }
.form-layout > div > p:last-child { max-width: 500px; color: var(--muted); font-size: 18px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 34px; border-radius: 24px; background: #fff; }
.lead-form { min-width: 0; }
.lead-form label, .final-cta label, .modal-card label { display: grid; gap: 7px; }
.lead-form label > span, .final-cta label > span, .modal-card label > span { color: var(--muted); font-size: 12px; }
input { width: 100%; min-width: 0; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #f7f7f7; }
input:focus { outline: 2px solid #ef2d3244; border-color: var(--red); }
.wide { grid-column: 1/-1; }
form small { color: var(--muted); }
form output { color: #357944; font-size: 13px; }

.clients-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients-grid span { min-height: 120px; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #7c838b; font-size: 20px; font-weight: 900; letter-spacing: .04em; filter: grayscale(1); }
.modal-cta-panel { padding-block: 72px; color: #fff; background: var(--red); }
.modal-cta { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.modal-cta h2 { max-width: 790px; margin-bottom: 0; }

.blog-panel { background: #f5f6f7; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.blog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.blog-media { height: 230px; background-position: center; background-size: cover; }
.media-one { background-image: linear-gradient(0deg,#171b242b,#171b242b),url('banner-occupational-safety.jpeg'); }
.media-two { background-image: linear-gradient(135deg,#323943,#bfc4c8); }
.media-three { background-image: linear-gradient(0deg,#171b2438,#171b2438),url('about-training-consultation.png'); }
.blog-card > div:last-child { padding: 24px; }
.blog-card small { color: var(--muted); }
.blog-card h3 { min-height: 78px; margin: 14px 0 12px; }
.blog-card p { min-height: 58px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.blog-card a { font-weight: 800; }
.demo-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; }

.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.reviews-grid blockquote { min-height: 330px; display: flex; flex-direction: column; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 22px; }
.reviews-grid blockquote > div { margin-bottom: 36px; color: #f3a708; letter-spacing: .12em; }
.reviews-grid blockquote p { color: var(--muted); font-size: 17px; }
.reviews-grid blockquote p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 8; }
.reviews-grid footer { display: grid; gap: 4px; margin-top: auto; }
.reviews-grid footer span { color: var(--muted); font-size: 12px; }

.final-cta-panel { color: #fff; background: var(--ink); }
.final-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.final-cta > div > p:last-child { max-width: 500px; color: #ffffffa6; }
.final-cta form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 30px; border: 1px solid #ffffff2e; border-radius: 22px; }
.final-cta form button, .final-cta form output { grid-column: 1/-1; }
.final-cta label > span { color: #ffffffa6; }

.contacts-panel { background: #eef0f1; }
.contacts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.contacts-grid article { min-height: 260px; display: flex; flex-direction: column; padding: 28px; border-radius: 22px; background: #fff; }
.contacts-grid small { margin-bottom: 58px; color: var(--red); font-weight: 800; text-transform: uppercase; }
.contacts-grid h3 { min-height: 50px; }
.contacts-grid a { margin-top: 6px; color: var(--muted); }

.site-footer { padding: 48px 0; color: #fff; background: var(--ink); }
.footer-row { display: flex; align-items: center; gap: 44px; }
.footer-row p { margin: 0 auto 0 0; color: #ffffff80; font-size: 12px; }
.footer-row > a:last-child { font-size: 12px; }

.callback-modal { width: min(560px,calc(100% - 24px)); padding: 0; border: 0; border-radius: 24px; }
.callback-modal::backdrop { background: #171b24c7; backdrop-filter: blur(4px); }
.modal-card { position: relative; display: grid; gap: 16px; padding: 42px; }
.modal-card h2 { margin-bottom: 0; font-size: 40px; }
.modal-card > p:not(.eyebrow) { color: var(--muted); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--muted); background: var(--soft); font-size: 25px; cursor: pointer; }
.ajax_form .error { border-color: var(--red); }
.af-message-success { color: #357944; }
.blog-page-hero { padding-top: 180px; color: #fff; background: var(--ink); }
.blog-page-hero .section-heading { margin-bottom: 0; }
.article-layout { max-width: 900px; }
.article-layout > img { width: 100%; max-height: 560px; margin-bottom: 36px; border-radius: 24px; object-fit: cover; }
.article-layout .article-lead { color: var(--muted); font-size: 20px; }
.article-content { font-size: 18px; }
.article-content > * { max-width: 760px; }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-button { display: block; }
  .header-phone { margin-left: auto; }
  .main-nav.is-open { position: absolute; top: 78px; right: 24px; display: grid; gap: 0; min-width: 220px; padding: 12px; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 20px 50px #171b2438; }
  .main-nav.is-open a { padding: 11px 12px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .service-card:last-child { grid-column: 1/-1; }
  .principles-grid, .advantages-grid { grid-template-columns: repeat(2,1fr); }
  .about-layout, .process-layout, .form-layout, .final-cta { gap: 52px; }
}

@media (max-width: 768px) {
  .home-redesign { padding: 8px; }
  .panel, .hero-panel { margin-bottom: 8px; border-radius: 22px; }
  .panel { padding: 72px 0; }
  .blog-page-hero { padding-top: 130px; }
  .shell { width: min(calc(100% - 32px),var(--shell)); }
  .header-row { width: calc(100% - 32px); min-height: 72px; gap: 10px; }
  .brand b { font-size: 24px; }
  .brand span, .header-phone { display: none; }
  .header-row .button-small { min-height: 40px; margin-left: auto; padding-inline: 13px; font-size: 11px; }
  .menu-button { width: 40px; height: 40px; }
  h1, .hero-title { font-size: clamp(42px,12vw,62px); }
  h2 { font-size: 32px; }
  h3 { font-size: 17px; }
  .row-heading { display: block; }
  .row-heading > p, .row-heading .text-link { display: inline-block; margin-top: 18px; }
  .hero-panel { min-height: 800px; }
  .hero-slide { padding: 124px 0 88px; }
  .hero-slide::before { background-position: 68% center; }
  .hero-slide::after { background: linear-gradient(90deg,#171b24f5,#171b24a1),linear-gradient(0deg,#171b24f7,transparent 55%); }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 38px; }
  .hero-facts li:nth-child(3) { display: none; }
  .hero-controls { bottom: 27px; }
  .hero-controls > div:last-child { display: none; }
  .hero-dots button { height: 3px; }
  .services-grid { gap: 8px; }
  .services-panel .section-heading, .blog-panel .section-heading { margin-bottom: 28px; }
  .service-card:last-child { grid-column: auto; }
  .service-card { min-height: 184px; padding: 14px; border-radius: 16px; }
  .service-card > small { margin-top: -31px; font-size: 10px; }
  .service-icon { width: 46px; height: 46px; margin-bottom: 24px; padding: 8px; border-radius: 13px; }
  .service-card h3 { font-size: 15px; }
  .service-card p { display: none; }
  .service-card b { font-size: 11px; }
  .principles-grid, .advantages-grid { gap: 8px; }
  .principles-grid article, .advantages-grid article { min-height: 172px; padding: 15px; border-radius: 16px; }
  .principles-grid span { top: -13px; right: 7px; font-size: 74px; }
  .principles-grid p { font-size: 11px; line-height: 1.3; }
  .advantages-grid article::after { top: 15px; left: 15px; width: 24px; height: 3px; }
  .advantages-grid span { top: -10px; right: 6px; font-size: 62px; }
  .about-layout, .process-layout, .form-layout, .final-cta { grid-template-columns: 1fr; gap: 42px; }
  .about-media { border-radius: 18px; }
  .about-media img { min-height: 360px; }
  .about-stats b { font-size: 24px; }
  .process-list li { grid-template-columns: 46px 1fr; gap: 14px; }
  .lead-form { padding: 22px; }
  .clients-grid { grid-template-columns: repeat(2,1fr); }
  .clients-grid span { min-height: 86px; font-size: 15px; }
  .modal-cta { align-items: flex-start; flex-direction: column; }
  .blog-grid, .contacts-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(3,min(82vw,300px)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .reviews-grid blockquote { scroll-snap-align: start; }
  .blog-card { min-height: 178px; display: grid; grid-template-columns: 138px minmax(0,1fr); }
  .blog-media { height: 100%; min-height: 178px; }
  .blog-card > div:last-child { min-width: 0; padding: 16px; }
  .blog-card small { font-size: 10px; }
  .blog-card h3 { min-height: 0; margin: 8px 0; font-size: 16px; }
  .blog-card p { min-height: 0; margin-bottom: 12px; font-size: 12px; line-height: 1.35; }
  .blog-card a { font-size: 11px; }
  .reviews-grid blockquote { min-height: 270px; }
  .final-cta form { padding: 22px; }
  .footer-row { align-items: flex-start; flex-direction: column; gap: 22px; }
  .footer-row p { margin: 0; }
}

@media (max-width: 420px) {
  .shell { width: min(calc(100% - 16px),var(--shell)); }
  .header-row { width: calc(100% - 32px); }
  .header-row .button-small { max-width: 132px; padding-inline: 10px; font-size: 10px; }
  .hero-panel { min-height: 820px; }
  .hero-actions .button { width: 100%; }
  .hero-facts b { font-size: 13px; }
  .hero-facts span { font-size: 10px; }
  .service-card { min-height: 178px; padding: 12px; }
  .service-card h3 { font-size: 14px; overflow-wrap: anywhere; }
  .service-icon { width: 42px; height: 42px; margin-bottom: 22px; }
  .principles-grid h3, .advantages-grid h3 { font-size: 14px; }
  .about-stats { gap: 5px; }
  .about-stats div { padding-right: 4px; }
  .about-stats b { font-size: 20px; }
  .about-stats span { font-size: 10px; }
  .lead-form, .final-cta form { grid-template-columns: 1fr; }
  .lead-form .wide, .final-cta form button, .final-cta form output { grid-column: 1; }
  .modal-cta .button { width: 100%; }
  .blog-card { min-height: 166px; grid-template-columns: 108px minmax(0,1fr); }
  .blog-media { min-height: 166px; }
  .blog-card > div:last-child { padding: 12px; }
  .blog-card h3 { font-size: 14px; }
  .blog-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 11px; }
  .modal-card { padding: 34px 20px 24px; }
  .modal-card h2 { font-size: 30px; }
  .modal-card .button { width: 100%; padding-inline: 13px; }
}

@media (max-width: 340px) {
  .header-row .button-small { display: none; }
  .menu-button { margin-left: auto; }
  h1, .hero-title { font-size: 39px; }
  .hero-lead { font-size: 15px; }
  .hero-facts { gap: 6px; }
  .service-card { min-height: 172px; padding: 10px; }
  .service-card h3 { font-size: 13px; }
  .principles-grid article, .advantages-grid article { min-height: 158px; padding: 12px; }
  .principles-grid p { display: none; }
  .advantages-grid span { font-size: 54px; }
  .button { padding-inline: 16px; gap: 12px; font-size: 13px; }
  .lead-form .button { padding-inline: 9px; gap: 6px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* production-hotfix-v4 */
header.header .nav__submenu_item { color: var(--clr-text, #171b24); }
.hero-controls > div:last-child button { display: grid; place-items: center; padding: 0; line-height: 1; }
.blog-media { display: block; overflow: hidden; background: #dfe2e5; }
.blog-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
