:root {
  --primary-color: #a5121a;
  --text-light: #fff;
  --bg-dark: #292929;
  --overlay-color: rgba(34,34,34,0.40);
}


/* Hero Section */
.hero-section {
  width: 100vw;
  min-height: 310px;
  position: relative;
  background: #181818;
  overflow: hidden;
  isolation: isolate;
}

.hero-section picture {
  position: absolute;
  inset: 0;
  display: block;
}

/* Фоновая картинка */
.hero-bg {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0; z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-color);
  z-index: 1;
}

/* Контейнеры */
.breadcrumbs,
.hero-content {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter-x-desktop, 20px);
  padding-right: var(--site-gutter-x-desktop, 20px);
  box-sizing: border-box;
  z-index: 2;
  /* никаких top/absolute/отрицательных маргинов */
}

/* Хлебные крошки */
.breadcrumbs {
  color: var(--text-light);
  font-size: 16px;
  text-align: left;
  margin-top: 22px;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.9;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color:#a5121a;
  text-decoration: underline;
  opacity: 1;
}

/* Контент hero */
.hero-content {
  color: #ccc;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 70px;
}

/* Заголовок */
.hero-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: #ccc;
}

.service-tags--subtitle,
.service-tags--subtitle span,
.hero-description {
  margin: 0;
  max-width: 820px;
  color: #ccc;
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.service-tags--subtitle {
  gap: 0;
}

/* Теги */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: clamp(13px, 2vw, 20px);
  font-weight: 500;
  color: var(--text-light);
}
.service-tags span {
  display: inline-block;
}

@media (max-width: 941px) {
  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .service-tags--subtitle,
  .service-tags--subtitle span,
  .hero-description {
    font-size: 1.1rem;
    line-height: 1.5;
  }
}

.hero-promo-card {
  margin-top: 8px;
  width: min(920px, calc(100vw - var(--site-gutter-x-desktop, 20px) - var(--site-gutter-x-desktop, 20px)));
  background: linear-gradient(95deg, #f8f8f8 0%, #ffffff 55%, #f5f5f5 100%);
  color: #131313;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.26);
  padding: 22px 24px 18px;
}

.hero-promo-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-promo-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.hero-promo-title {
  margin: 0 0 10px;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1;
  font-weight: 900;
  color: #131313;
  letter-spacing: -0.03em;
  max-width: 560px;
}

.hero-promo-text {
  margin: 0 0 16px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.34;
  color: #222;
  font-weight: 500;
  max-width: 630px;
}

.hero-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 320px;
  padding: 0 28px;
  border: 2px solid #025fce;
  border-radius: 999px;
  background: linear-gradient(180deg, #1270df 0%, #095ec5 100%);
  color: #f9fcff;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 0 rgba(4, 77, 161, .25) inset;
}

.hero-promo-btn:hover {
  background: linear-gradient(180deg, #0f65cb 0%, #0854ae 100%);
  border-color: #014fa9;
  box-shadow: 0 6px 16px rgba(14, 83, 167, .28);
}

.hero-promo-btn:active {
  transform: scale(.98);
}

.hero-promo-badge-wrap {
  position: relative;
  width: 170px;
  min-width: 170px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-promo-badge-wrap::before,
.hero-promo-badge-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #ffcc00;
  transform: rotate(28deg);
}

.hero-promo-badge-wrap::before {
  top: 0;
}

.hero-promo-badge-wrap::after {
  top: 20px;
  right: 0;
}

.hero-promo-badge {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #dd1217;
  color: #fff;
  border: 8px solid #ffcc00;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 56px;
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.02em;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  white-space: pre-line;
}

.hero-promo-note {
  margin: 16px 0 0;
  font-size: clamp(20px, 1.4vw, 30px);
  line-height: 1.2;
  color: #1f1f1f;
  font-weight: 500;
}

/* ======= Адаптив ======= */
@media (max-width: 900px) {
  .hero-bg {
    min-height: 260px;
  }
  .breadcrumbs,
  .hero-content {
    padding-left: var(--site-gutter-x-mobile-left, 20px);
    padding-right: var(--site-gutter-x-mobile-right, 20px);
  }
  .breadcrumbs {
    font-size: 13px;
    margin-top: 24px;
    margin-bottom: 6px;
  }
}

@media (max-width: 600px) {
  .hero-section, .hero-bg {
    min-height: 470px;
  }
  .breadcrumbs,
  .hero-content {
    padding-left: var(--site-gutter-x-mobile-left, 20px);
    padding-right: var(--site-gutter-x-mobile-right, 20px);
  }
  .breadcrumbs {
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 4px;
  }
  .hero-content {
    color: var(--text-light);
    padding-top: 30px;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.34;
  }
  .service-tags span {
    color: var(--text-light);
  }

  .hero-promo-card {
    width: min(100%, 430px);
    margin-top: 4px;
    padding: 14px 12px 12px;
    border-radius: 12px;
  }

  .hero-promo-main {
    gap: 10px;
  }

  .hero-promo-copy {
    flex: 1 1 auto;
  }

  .hero-promo-title {
    font-size: clamp(24px, 7.5vw, 31px);
    margin-bottom: 4px;
    line-height: 1.02;
  }

  .hero-promo-text {
    font-size: 13px;
    line-height: 1.34;
    margin-bottom: 9px;
    font-weight: 600;
  }

  .hero-promo-btn {
    min-height: 42px;
    min-width: 0;
    width: 100%;
    font-size: 15px;
    padding: 0 14px;
  }

  .hero-promo-badge-wrap {
    width: 88px;
    min-width: 88px;
    padding-top: 0;
  }

  .hero-promo-badge {
    width: 84px;
    height: 84px;
    border-width: 5px;
    font-size: 30px;
  }

  .hero-promo-badge-wrap::before,
  .hero-promo-badge-wrap::after {
    width: 6px;
    height: 6px;
  }

  .hero-promo-badge-wrap::before {
    right: 8px;
    top: -4px;
  }

  .hero-promo-badge-wrap::after {
    right: 0;
    top: 9px;
  }

  .hero-promo-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breadcrumbs a {
    transition: none;
  }
}
