:root {
  --blue: #192998;
  --green: #008141;
  --header-h: 74px;
}

.bg-green {
  background-color: var(--green);
}

/* Изображения/видео не вылезают из контейнеров */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Герой и слайды не создают горизонтальный скролл */
#hero,
#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  overflow: hidden;
}

/* Мобильное меню-оверлей строго во вьюпорте */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    inset: 0;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
  }
}

/* Base */
html,
body {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
#hero .caption {
  font-family: "Gothic A1", sans-serif;
}

/* Индикаторы карусели снизу по центру (тёмные точки) */
#hero .carousel-indicators {
  bottom: 1.25rem;
}
#hero .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #111;
  opacity: 0.35;
}
#hero .carousel-indicators .active {
  opacity: 0.9;
}

/* === NAVBAR === */
.nav-absolute {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
}
.navbar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.navbar .nav-link {
  font-weight: 600;
  color: #111;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #000;
}
.navbar .navbar-brand {
  color: #111;
}
.navbar .navbar-brand * {
  color: inherit;
}
.brand-mark {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 2px solid #111;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Brand text - на десктопе в одну строку, на мобильных в две */
.brand-text {
  display: inline-flex;
  flex-direction: row;
  gap: 0.25rem;
  align-items: center;
}

@media (max-width: 991.98px) {
  .brand-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.2;
  }
  .brand-line-1,
  .brand-line-2 {
    font-size: 0.9rem;
  }
  .navbar-brand {
    align-items: center !important;
  }
}

/* бургер — скрыт на ≥992px */
.navbar-toggler.fancy-burger {
  border: 0;
  outline: 0;
  padding: 0.375rem;
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: transparent;
  display: none !important;
  position: relative;
  z-index: 1101;
}

/* мобильное поведение: бургер/крест всегда на одном месте */
@media (max-width: 991.98px) {
  .navbar .container {
    padding-right: 64px;
  } /* место под кнопку справа */
  .navbar-toggler.fancy-burger {
    display: grid !important;
    place-items: center;
    position: fixed;
    right: 16px;
    top: calc(
      env(safe-area-inset-top, 0) + 12px
    ); /* одинаково в обоих состояниях */
    z-index: 1101;
  }
  .navbar .navbar-collapse {
    position: fixed;
    inset: 0;
    background: #fff;
    backdrop-filter: saturate(160%) blur(6px);
    padding: calc(var(--header-h) + 1.25rem) 1.25rem 2rem;
    overflow-y: auto;
    z-index: 1000;
  }
  .navbar .navbar-nav {
    align-items: center;
  }
  .navbar .nav-link {
    color: #111 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.15rem;
    padding: 0.65rem 0;
  }
}

/* иконка бургера / крестика */
.fancy-burger .burger {
  position: relative;
  width: 26px;
  height: 18px;
}
.fancy-burger .burger-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: #111;
  transition: transform 0.25s ease, opacity 0.2s ease,
    background-color 0.25s ease;
}
.fancy-burger .l1 {
  top: 0;
}
.fancy-burger .l2 {
  top: 8px;
}
.fancy-burger .l3 {
  top: 16px;
}
.fancy-burger[aria-expanded="true"] .l1 {
  transform: translateY(8px) rotate(45deg);
}
.fancy-burger[aria-expanded="true"] .l2 {
  opacity: 0;
}
.fancy-burger[aria-expanded="true"] .l3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* после hero — только фон и тень */
.navbar.nav-solid {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* линии тёмные и в состоянии "открыто" формируют X */
.fancy-burger .burger-line {
  background: #111;
}
.fancy-burger[aria-expanded="true"] .l1 {
  transform: translateY(8px) rotate(45deg);
}
.fancy-burger[aria-expanded="true"] .l2 {
  opacity: 0;
}
.fancy-burger[aria-expanded="true"] .l3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* после hero: белый фон и тень (цвета пунктов уже тёмные) */
.navbar.nav-solid {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Отступ для якорей (фиксированный хедер) — если ещё не задан */
section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

#hero .carousel-item::before {
  background: rgba(255, 255, 255, 0.18);
} /* было .28 */

/* Hero */
#hero .carousel-item {
  height: 100vh;
  min-height: 560px;
  position: relative;
  background-size: cover;
  background-position: center;
}
/* Светлая вуаль для читаемости чёрного текста */
#hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.28);
}
#hero .caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  color: #111;
}
#hero h1,
#hero p.lead {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111;
}
#hero h1 {
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  /* Переносы для длинных слов на мобильных */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Уменьшаем размер на маленьких экранах */
@media (max-width: 575.98px) {
  #hero h1 {
    font-size: clamp(1.5rem, 5.5vw, 4.2rem);
    letter-spacing: 0.03em;
  }
}

#hero p.lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
}

/* Слайды: заменить на реальные изображения */
#hero .slide-1 {
  background-image: url("/img/slide1.png");
}
#hero .slide-2 {
  background-image: url("/img/slide2.png");
}
#hero .slide-3 {
  background-image: url("/img/slide3.png");
}

/* Кнопки */
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover {
  background: #006a33;
  color: #fff;
}

/* Sections */
section {
  padding: 84px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section-eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.list-check {
  padding-left: 1.2rem;
}
.list-check li {
  margin: 0.4rem 0;
}
.list-check li::marker {
  color: var(--green);
}
/* Единый кроп картинок в карточках 16:9 */
.card-img-top {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.siegel {
  height: 300px;
}

/* Zertifikate Slider */

/* Темные стрелки + круглая подложка для контраста */
#certsCarousel .carousel-control-prev-icon,
#certsCarousel .carousel-control-next-icon {
  width: 2.75rem;
  height: 2.75rem;
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Серый значок стрелки */
#certsCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 7l4.647 4.646a.5.5 0 0 1-.708.708l-5-5a.5.5 0 0 1 0-.708l5-5a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}
#certsCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l5 5a.5.5 0 0 1 0 .708l-5 5a.5.5 0 0 1-.708-.708L9.293 7 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* стрелки поверх и непрозрачные */
#certsCarousel .carousel-control-prev,
#certsCarousel .carousel-control-next {
  opacity: 1;
  z-index: 2;
}

/* база для иконок */
#certsCarousel .carousel-control-prev-icon,
#certsCarousel .carousel-control-next-icon {
  display: inline-block; /* чтобы width/height и transform работали */
  transition: transform 0.18s ease; /* анимация */
  transform-origin: center;
  will-change: transform;
}

/* ховер-увеличение (заметнее) */
#certsCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#certsCarousel .carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.25);
}

/* Карточки сертификатов */
#certsCarousel .cert-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  cursor: zoom-in;
}

/* общий ховер оставь для мобилок */
#certsCarousel .cert-link:hover .cert-img {
  transform: scale(1.02);
}

/* на ≥992px переопредели ховер под базовые скейлы */
@media (min-width: 992px) {
  #certsCarousel .cert-link:hover .cert-img {
    transform: none;
  } /* сбросить общий */
  #certsCarousel .cert-side .cert-link:hover .cert-img {
    transform: scale(0.95);
  }
  #certsCarousel .cert-center .cert-link:hover .cert-img {
    transform: scale(1.08);
  }
}

/* Чтобы масштаб не резал края */
#certsCarousel .carousel-inner {
  overflow: visible;
}

/* Отступы вокруг слайдера */
#certsCarousel {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Крупный крестик поверх изображения */
#certModal .btn-close,
#certModal .modal-close {
  position: absolute;
  right: 16px;
  top: clamp(8px, env(safe-area-inset-top, 0) + 8px, 24px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

/* стрелки не полупрозрачные и поверх изображений */
#certsCarousel .carousel-control-prev,
#certsCarousel .carousel-control-next {
  opacity: 1;
  z-index: 2;
}

#certModal .btn-close {
  filter: none;
}

/* Крестик поверх изображения */
#certModal .modal-close {
  position: absolute;
  right: 16px;
  top: clamp(8px, env(safe-area-inset-top, 0) + 8px, 24px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  opacity: 1;
  z-index: 1103;
  filter: none;
}
/* убрать возможную полупрозрачность bootstrap */
#certModal .btn-close {
  --bs-btn-close-opacity: 1;
  --bs-btn-close-hover-opacity: 1;
  --bs-btn-close-focus-shadow: none;
}

.carousel-indicators [data-bs-target] {
  background-color: #343434 !important;
}

/* общие стили картинок */
#certsCarouselMobile .cert-img,
#certsCarouselDesktop .cert-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

/* центр крупнее на desktop */
@media (min-width: 992px) {
  #certsCarouselDesktop .cert-side .cert-img {
    transform: scale(0.9);
    opacity: 0.95;
  }
  #certsCarouselDesktop .cert-center .cert-img {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
}

/* индикаторы как в hero */
#certsCarouselMobile .carousel-indicators,
#certsCarouselDesktop .carousel-indicators {
  bottom: -4.25rem;
}
#certsCarouselMobile .carousel-indicators [data-bs-target],
#certsCarouselDesktop .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
  opacity: 0.35;
  border: 0;
}
#certsCarouselMobile .carousel-indicators .active,
#certsCarouselDesktop .carousel-indicators .active {
  opacity: 0.9;
}

/* стрелки — видимые, тёмные, с анимацией */
#certsCarouselMobile .carousel-control-prev,
#certsCarouselMobile .carousel-control-next,
#certsCarouselDesktop .carousel-control-prev,
#certsCarouselDesktop .carousel-control-next {
  opacity: 1;
  z-index: 2;
}
#certsCarouselMobile .carousel-control-prev-icon,
#certsCarouselMobile .carousel-control-next-icon,
#certsCarouselDesktop .carousel-control-prev-icon,
#certsCarouselDesktop .carousel-control-next-icon {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.18s ease;
  transform-origin: center;
}
#certsCarouselMobile .carousel-control-prev-icon,
#certsCarouselDesktop .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23111' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 7l4.647 4.646a.5.5 0 0 1-.708.708l-5-5a.5.5 0 0 1 0-.708l5-5a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}
#certsCarouselMobile .carousel-control-next-icon,
#certsCarouselDesktop .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23111' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l5 5a.5.5 0 0 1 0 .708l-5 5a.5.5 0 0 1-.708-.708L9.293 7 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
#certsCarouselMobile .carousel-control-prev:hover .carousel-control-prev-icon,
#certsCarouselMobile .carousel-control-next:hover .carousel-control-next-icon,
#certsCarouselDesktop .carousel-control-prev:hover .carousel-control-prev-icon,
#certsCarouselDesktop .carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.12);
}

/* крестик модала */
#certModal .btn-close {
  position: absolute;
  right: 16px;
  top: clamp(8px, env(safe-area-inset-top, 0) + 8px, 24px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  opacity: 1;
  filter: none;
  z-index: 1103;
}

.geraet-card {
  width: 18rem;
}

.cards {
  display: flex;
  gap:20px;
}

/* Footer */
footer {
  background: #f7f7f7;
}
.bar-green {
  height: 10px;
  background: var(--green);
}
