:root {
  --bg: #0a0a0c;
  --bg-soft: #111115;
  --panel: #151519;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f4f2;
  --muted: #a3a3a7;
  --red: #e32a27;
  --red-bright: #f3423d;
  --red-dark: #8b1315;
  --max: 1240px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  user-select: none; /* Prevent text selection */
  -webkit-user-select: none;
}

/* Allow text selection inside inputs and textareas */
input, textarea {
  user-select: auto;
  -webkit-user-select: auto;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none; /* Prevent image drag */
  user-select: none;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.045em;
}

h2 {
  max-width: 760px;
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.1;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--red-bright);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: var(--red);
  content: "";
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease;
}

.header.is-scrolled {
  border-color: var(--line);
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(16px);
}

.header__row {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.brand__text {
  font-size: 20px;
  letter-spacing: -0.06em;
}

.brand__text span {
  color: var(--red-bright);
}

.nav {
  display: flex;
  gap: 30px;
  margin: 0 auto;
  color: #c9c8c7;
  font-size: 15px;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--small {
  min-height: 46px;
  padding: 0 21px;
}

.button--outline {
  border-color: var(--line-strong);
}

.button--outline:hover {
  border-color: rgba(227, 42, 39, 0.65);
}

.button--primary {
  background: var(--red);
  color: #fff;
}

.button--primary:hover {
  background: var(--red-bright);
}

.button--ghost {
  border-color: var(--line-strong);
  color: #f1f0ef;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 84px;
  overflow: hidden;
}

.hero__video-wrapper {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: #0a0a0c;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(90deg, #0a0a0c 12%, rgba(10, 10, 12, 0.93) 35%, rgba(10, 10, 12, 0.23) 74%, #0a0a0c 100%),
    linear-gradient(0deg, #0a0a0c 0%, transparent 33%),
    linear-gradient(180deg, #0a0a0c 0%, transparent 22%);
}

.hero__content {
  padding: 86px 0 60px;
}

.hero h1 {
  max-width: 640px;
  margin-bottom: 27px;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.05;
}

.hero h1 span {
  color: var(--red-bright);
}

.hero__lead {
  max-width: 550px;
  margin-bottom: 40px;
  color: #c4c3c0;
  font-size: 16px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-bottom: 62px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__tags li {
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bbbabc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.risk {
  padding: 0 0 82px;
}

.risk__grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}

.risk__intro,
.risk__card {
  padding: 34px 30px;
}

.risk__intro h2 {
  font-size: 29px;
}

.risk__card {
  border-left: 1px solid var(--line);
}

.risk__number {
  color: var(--red-bright);
  font-size: 13px;
  font-weight: 700;
}

.risk__card h3 {
  margin: 22px 0 12px;
  font-size: 20px;
}

.risk__card p {
  font-size: 14px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 54px;
}

.section-heading > p {
  max-width: 385px;
}

.services {
  background: #0d0d10;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service {
  display: flex;
  flex-direction: column;
  min-height: 274px;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.service--featured {
  border-color: rgba(227, 42, 39, 0.42);
  background: linear-gradient(140deg, rgba(227, 42, 39, 0.4), var(--panel) 80%), url('assets/service_project_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.service:nth-child(2) {
  background: linear-gradient(140deg, rgba(18, 18, 22, 0.5), var(--panel) 80%), url('assets/service_alarm_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.service:nth-child(3) {
  background: linear-gradient(140deg, rgba(18, 18, 22, 0.5), var(--panel) 80%), url('assets/service_maintenance_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.service:nth-child(4) {
  background: linear-gradient(140deg, rgba(18, 18, 22, 0.5), var(--panel) 80%), url('assets/service_evacuation_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.service:nth-child(5) {
  background: linear-gradient(140deg, rgba(18, 18, 22, 0.5), var(--panel) 80%), url('assets/service_protection_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.service:nth-child(6) {
  background: linear-gradient(140deg, rgba(18, 18, 22, 0.5), var(--panel) 80%), url('assets/service_testing_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.service__code {
  margin-bottom: 48px;
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

.service span {
  display: inline-block;
  margin-top: 19px;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(227, 42, 39, 0.16);
  color: #f6b3b0;
  font-size: 13px;
}

.gallery {
  padding: 88px 0;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  align-items: center;
  gap: 52px;
}

.gallery__copy h2 {
  margin-bottom: 23px;
  font-size: clamp(31px, 3.4vw, 43px);
}

.gallery__copy > p:last-child {
  max-width: 390px;
}

.gallery__figure {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #121216;
  overflow: hidden;
  transform: perspective(1000px) rotateX(0) rotateY(0);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  will-change: transform;
}

.gallery__figure:hover {
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(227, 42, 39, 0.15);
  border-color: rgba(227, 42, 39, 0.4);
}

.gallery__figure img {
  display: block;
  width: 100%;
  border-radius: 15px;
}

.deliverables {
  border-bottom: 1px solid var(--line);
}

.deliverables__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 78px;
}

.deliverables__list > div {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 22px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
}

.deliverables__list strong {
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.process__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__track li {
  position: relative;
  padding: 0 34px 0 0;
}

.process__track li:not(:last-child)::before {
  position: absolute;
  top: 25px;
  right: 22px;
  left: 62px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.process__track span {
  display: grid;
  position: relative;
  z-index: 1;
  width: 51px;
  height: 51px;
  place-items: center;
  margin-bottom: 27px;
  border: 1px solid rgba(227, 42, 39, 0.55);
  border-radius: 50%;
  background: var(--bg);
  color: var(--red-bright);
  font-size: 13px;
  font-weight: 700;
}

.process__track h3 {
  margin-bottom: 13px;
  font-size: 22px;
}

.process__track p {
  font-size: 15px;
}

/* --- New Objects Section Styles --- */
.objects {
  background: var(--bg);
  background-image: linear-gradient(to right, rgba(227, 42, 39, 0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(227, 42, 39, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  border-top: 1px solid rgba(227, 42, 39, 0.1);
  border-bottom: 1px solid rgba(227, 42, 39, 0.1);
}

.objects__header {
  margin-bottom: 64px;
  max-width: 760px;
}

.objects__title {
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.objects__title span {
  color: var(--red-bright);
}

.objects__divider {
  width: 96px;
  height: 4px;
  background-color: var(--red-bright);
  margin-bottom: 24px;
}

.objects__subtitle {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.objects__cards--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.object-card {
  display: flex;
  flex-direction: column;
  background: rgba(27, 31, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(227, 42, 39, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.4s ease;
  text-decoration: none;
}

.object-card:hover {
  border-color: var(--red-bright);
}

.object-card__image-wrap {
  position: relative;
  height: 190px;
  background: #1b1f2a;
  overflow: hidden;
}

.object-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.object-card:hover .object-card__img {
  transform: scale(1.1);
}

.object-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red-bright);
  color: #fff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.object-card__footer {
  padding: 20px;
  background: #171b26;
  border-top: 1px solid rgba(227, 42, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.object-card__footer h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
}

.object-card__arrow {
  color: var(--red-bright);
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.object-card:hover .object-card__arrow {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .objects__cards--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .objects__cards--grid {
    grid-template-columns: 1fr;
  }
}
.company {
  border-bottom: 1px solid var(--line);
}

.company__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 52px;
  margin-bottom: 48px;
}

/* --- Clients --- */
.clients__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
  margin-top: 32px;
}

.clients__grid img {
  height: 100px;
  max-width: 280px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.clients__grid img:hover {
  transform: scale(1.05);
}


.company__head > p {
  max-width: 420px;
}

.company__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.company__facts div {
  padding: 24px;
  background: var(--panel);
}

.company__facts dt {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.company__facts dd {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.licenses {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
}

.license-card {
  min-height: 420px;
  padding: clamp(27px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.license-card--main {
  border-color: rgba(227, 42, 39, 0.4);
  background: linear-gradient(145deg, rgba(227, 42, 39, 0.13), var(--panel) 52%);
}

.license-card__label {
  margin-bottom: 20px;
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.license-card h3 {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.5vw, 29px);
}

.license-card__number {
  margin-bottom: 20px;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(22px, 2.7vw, 29px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.license-card__number--small {
  margin-top: 28px;
  font-size: clamp(18px, 2vw, 23px);
}

.license-card ul {
  display: grid;
  gap: 10px;
  margin: 23px 0;
  padding: 0;
  list-style: none;
}

.license-card li {
  display: flex;
  gap: 11px;
  color: #cecdcb;
  font-size: 14px;
}

.license-card li::before {
  color: var(--red-bright);
  content: "+";
}

.license-card__meta {
  margin: 22px 0 26px;
  color: #8d8c91;
  font-size: 13px;
}

.license-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-bright);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.license-link::after {
  content: "->";
}

.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.faq__items details {
  border-top: 1px solid var(--line);
}

.faq__items details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__items summary {
  position: relative;
  padding: 26px 42px 26px 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__items summary::after {
  position: absolute;
  top: 29px;
  right: 5px;
  color: var(--red-bright);
  font-size: 22px;
  content: "+";
}

.faq__items details[open] summary::after {
  content: "-";
}

.faq__items summary::-webkit-details-marker {
  display: none;
}

.faq__items details p {
  max-width: 650px;
  padding: 0 35px 26px 0;
}

.request {
  padding-top: 42px;
}

.request__panel {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 66px;
  padding: clamp(34px, 5.3vw, 66px);
  border: 1px solid rgba(227, 42, 39, 0.36);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0 0, rgba(227, 42, 39, 0.2), transparent 44%),
    var(--panel);
}

.request__copy h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 48px);
}

.contacts {
  display: grid;
  gap: 13px;
  margin-top: 32px;
  color: #d3d2d0;
  font-style: normal;
}

.contacts a {
  width: fit-content;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 700;
}

.contacts a:first-child {
  color: var(--red-bright);
}

.contacts span {
  margin-top: 7px;
  color: var(--muted);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #c9c8c7;
  font-size: 14px;
  line-height: 1.45;
}

.form__consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--red);
  appearance: auto; /* Reset to allow default styling to work correctly or custom if needed */
  -webkit-appearance: auto;
  cursor: pointer;
}

.form__consent a {
  color: var(--red-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form label span {
  display: block;
  margin-bottom: 10px;
  color: #c1c0c0;
  font-size: 13px;
}

.form input:not([type="checkbox"]),
.form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 8, 10, 0.5);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border 180ms ease;
}

.form input:not([type="checkbox"]) {
  height: 54px;
  padding: 0 17px;
}

.form textarea {
  height: 100px;
  padding: 16px 17px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--red);
}

.form__wide {
  grid-column: 1 / -1;
}

.form__notice {
  padding: 13px 16px;
  border-radius: 10px;
  background: rgba(227, 42, 39, 0.14);
  color: #edcbc9;
  font-size: 13px;
}

.footer {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  min-height: 100px;
  font-size: 14px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer__links a {
  color: var(--red-bright);
  font-weight: 600;
}

@media (max-width: 1060px) {
  .nav {
    gap: 19px;
  }

  .risk__grid {
    grid-template-columns: 1fr 1fr;
  }

  .risk__card {
    border-top: 1px solid var(--line);
  }

  .risk__card:nth-of-type(2) {
    border-left: 0;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deliverables__grid,
  .gallery__grid,
  .objects__grid,
  .licenses,
  .faq__grid,
  .request__panel {
    gap: 45px;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 74px 0;
  }

  .header__row {
    min-height: 72px;
  }

  .header .button,
  .nav {
    display: none;
  }

  .header.menu-active .nav {
    display: flex;
    position: absolute;
    top: 72px;
    right: 24px;
    left: 24px;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #141418;
  }

  .header.menu-active .nav a {
    padding: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 600px;
    align-items: center;
  }

  .hero__image {
    background-image:
      linear-gradient(0deg, #0a0a0c 15%, rgba(10, 10, 12, 0.52) 60%, rgba(10, 10, 12, 0.12)),
      url("assets/hero-fire-safety.webp");
    background-position: center, 70% top;
  }

  .hero__content {
    padding: 120px 0 48px;
  }

  .hero h1 {
    font-size: clamp(45px, 11vw, 64px);
  }

  .section-heading,
  .deliverables__grid,
  .gallery__grid,
  .objects__grid,
  .company__head,
  .faq__grid,
  .request__panel {
    display: block;
  }

  .company__head > p {
    margin-top: 25px;
  }

  .company__facts {
    grid-template-columns: 1fr 1fr;
  }

  .licenses {
    display: block;
  }

  .license-card + .license-card {
    margin-top: 14px;
  }

  .section-heading > p {
    margin-top: 24px;
  }

  .deliverables__list,
  .gallery__figure,
  .objects__cards,
  .faq__items,
  .form {
    margin-top: 42px;
  }

  .process__track {
    grid-template-columns: 1fr 1fr;
    gap: 44px 20px;
  }

  .process__track li::before {
    display: none;
  }

  .hero__layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero-widget {
    position: relative;
    top: auto;
    right: auto;
    order: -1;
    align-self: flex-end;
    margin: 0 0 10px;
  }

  .services-widget {
    width: 114px;
    height: 114px;
    padding: 8px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .brand__text {
    font-size: 18px;
  }

  .hero__actions,
  .services__grid,
  .objects__cards,
  .form {
    display: block;
  }

  .hero__actions .button {
    width: 100%;
    margin-top: 10px;
  }

  .hero__content {
    padding: 100px 0 34px 0;
  }

  .hero h1 {
    font-size: 30px;
  }
  
  h2 {
    font-size: 24px !important;
  }

  .hero-widget {
    margin-bottom: 10px;
  }

  .services-widget {
    width: 104px;
    height: 104px;
    gap: 6px;
  }

  .donut-icon svg {
    width: 14px;
    height: 14px;
  }

  .risk__grid {
    display: block;
  }

  .risk__card {
    border-left: 0;
  }

  .service,
  .objects__cards article {
    margin-bottom: 12px;
  }

  .object-card__image-wrap {
    height: 214px;
  }

  .object-card__footer {
    padding: 16px;
  }

  .company__facts {
    display: block;
    background: transparent;
  }

  .company__facts div + div {
    border-top: 1px solid var(--line);
  }

  .license-card {
    min-height: auto;
  }

  .deliverables__list > div {
    display: block;
  }

  .deliverables__list strong {
    display: block;
    margin-bottom: 12px;
  }

  .process__track {
    display: block;
    position: relative;
    padding-left: 24px;
    margin-left: 25px;
    border-left: 2px solid var(--line-strong);
  }

  .process__track li {
    margin-bottom: 46px;
    padding-left: 0;
    position: relative;
  }

  .process__track span {
    position: absolute;
    left: -25px;
    top: -5px;
    transform: translateX(-50%);
    background: var(--bg);
  }

  .form label {
    display: block;
    margin-bottom: 18px;
  }

  .form__consent {
    margin-bottom: 18px;
  }

  .footer__row {
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
    text-align: center;
  }
}

/* --- New Services Widget Styles --- */
@media (min-width: 861px) {
  .hero__layout {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
  }
  .hero__content {
    flex: 1;
    min-width: 300px;
    padding: 86px 0 60px;
  }
  .hero-widget {
    position: absolute;
    right: 40px;
    top: 25%;
    flex-shrink: 0;
    animation: fadeUpWidget 0.8s ease-out 0.5s forwards;
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes fadeUpWidget {
  to { opacity: 1; transform: translateY(0); }
}
.services-widget {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  width: 130px;
  height: 130px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.donut-chart {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donut-chart svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.donut-bg {
  fill: none;
  stroke: rgba(227, 42, 39, 0.15);
  stroke-width: 10;
}
.donut-progress {
  fill: none;
  stroke: var(--red);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 15s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.donut-icon {
  position: absolute;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.donut-icon svg {
  position: static;
  width: 16px;
  height: 16px;
  transform: none;
}

/* Animata Underline Hover Text Effect */
.nav a,
.contacts a,
.footer__row a:not(.brand),
.license-link {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  text-decoration: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.nav a:hover,
.contacts a:hover,
.footer__row a:not(.brand):hover,
.license-link:hover {
  transform: translateY(-2px);
}

.nav a::before,
.contacts a::before,
.footer__row a:not(.brand)::before,
.license-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: currentColor;
  opacity: 0.25;
  pointer-events: none;
}

.nav a::after,
.contacts a::after,
.footer__row a:not(.brand)::after,
.license-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 0;
  background-color: var(--red-bright);
  border-radius: 9999px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.nav a:hover::after,
.contacts a:hover::after,
.footer__row a:not(.brand):hover::after,
.license-link:hover::after {
  width: 100%;
}

/* --- Modal Styles --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
}
.modal__content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.is-open .modal__content {
  transform: scale(1) translateY(0);
}
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.modal__close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.modal h2 {
  margin-bottom: 12px;
  font-size: 28px;
}
.modal p {
  color: #aaa;
  margin-bottom: 24px;
  font-size: 15px;
}
.modal select {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  appearance: none;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.modal select:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.06);
}
.modal select option {
  background: var(--panel);
  color: var(--text);
}

/* --- Guarantees Section --- */
.guarantees {
  padding: 82px 0;
}
.guarantees__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.guarantee-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: var(--radius);
  transition: border-color 0.3s ease;
}
.guarantee-card:hover {
  border-color: rgba(227, 42, 39, 0.5);
}
.flame-icon {
  margin-bottom: 16px;
  display: inline-block;
  color: var(--red-bright);
}
.flame-icon .flame {
  transform-origin: center bottom;
  animation: flicker 1.5s ease-in-out infinite alternate;
}
@keyframes flicker {
  0% { transform: scale(1) skewX(0deg); opacity: 0.9; }
  25% { transform: scale(1.05) skewX(3deg); opacity: 1; }
  50% { transform: scale(0.95) skewX(-2deg); opacity: 0.8; }
  75% { transform: scale(1.02) skewX(2deg); opacity: 1; }
  100% { transform: scale(0.98) skewX(-1deg); opacity: 0.9; }
}
.flame-icon .cross-line {
  stroke: #fff;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCross 0.8s ease-out forwards 0.3s;
}
@keyframes drawCross {
  to { stroke-dashoffset: 0; }
}
.guarantee-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
}
.guarantee-card p {
  color: #aaa;
  font-size: 15px;
  line-height: 1.5;
}

/* --- FAQ Section --- */
.faq {
  padding: 82px 0;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq__item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item summary {
  padding: 24px 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: #fff;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary:hover {
  color: var(--red-bright);
}
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--red-bright);
  font-weight: 300;
}
.faq__item[open] summary::after {
  content: '−';
}
.faq__content {
  padding: 0 30px 24px;
  color: #aaa;
  font-size: 16px;
  line-height: 1.6;
}

/* --- Lead Magnet Section --- */
.lead-magnet {
  padding: 0 0 82px;
}
.lead-magnet__box {
  background: linear-gradient(135deg, rgba(227, 42, 39, 0.1), var(--panel));
  border: 1px solid rgba(227, 42, 39, 0.3);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.lead-magnet__content h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.lead-magnet__content p {
  color: #bbb;
  font-size: 16px;
  max-width: 600px;
}
.lead-magnet__box .button {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .guarantees__grid { grid-template-columns: repeat(2, 1fr); }
  .lead-magnet__box { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .guarantees__grid { grid-template-columns: 1fr; }
}

/* --- Base Animations --- */
.animate-hidden {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

.animate-visible {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* V2.0 Styles */
.service__label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.service__label--remote {
  background: rgba(33, 150, 243, 0.15);
  color: #64b5f6;
}
.service__label--local {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.deliverables__list--three-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.deliverables__list--three-cols > div {
  background: var(--surface-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
}
.client-case {
  grid-column: 1 / -1;
  background: var(--surface-light);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--surface-border);
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .client-case {
    flex-direction: row;
    align-items: center;
  }
  .client-case img {
    width: 280px;
    flex-shrink: 0;
  }
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.review-card {
  background: var(--surface-light);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
}
.review-card__header {
  margin-bottom: 1rem;
}
.review-card__header strong {
  display: block;
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.review-card__header span {
  color: var(--text-muted);
  font-size: 0.875rem;
}
