/* =====================================================================
   Green Standard — визуальная тема (только оформление, тексты не меняются)
   Подключается последним в <head>, поверх Bootstrap и встроенных <style>.
   ===================================================================== */

:root {
  --gs-forest: #052a1f;
  --gs-deep:   #0a3b2b;
  --gs-green:  #008c4a;
  --gs-leaf:   #24b36b;
  --gs-lime:   #c5f05d;
  --gs-mint:   #e8f6ee;
  --gs-bg:     #f5f8f6;
  --gs-ink:    #12251d;
  --gs-muted:  #4f6359;
  --gs-line:   #dbe8e0;

  --gs-grad:      linear-gradient(135deg, #008c4a 0%, #24b36b 100%);
  --gs-grad-deep: linear-gradient(135deg, #052a1f 0%, #0a3b2b 55%, #0d5a3a 100%);

  --gs-radius:    22px;
  --gs-radius-sm: 14px;
  --gs-shadow:    0 1px 2px rgba(5, 42, 31, .04), 0 12px 32px -12px rgba(5, 42, 31, .16);
  --gs-shadow-lg: 0 2px 4px rgba(5, 42, 31, .05), 0 28px 60px -20px rgba(5, 42, 31, .32);
  --gs-ease:      cubic-bezier(.2, .8, .2, 1);
  --gs-container: 1200px;
}

/* ---------- База ---------- */
html { scroll-behavior: smooth; }

html body {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gs-ink);
  background: #fff;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gs-lime); color: var(--gs-forest); }

html body h1, html body h2, html body h3,
html body h4, html body h5, html body h6 {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  letter-spacing: -0.015em;
}

html body p { color: var(--gs-muted); }

html body a { transition: color .25s var(--gs-ease); }

html body .container { max-width: var(--gs-container); }

html body section { padding: clamp(72px, 9vw, 112px) 0; position: relative; }

html body :focus-visible {
  outline: 3px solid var(--gs-lime);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Навигация ---------- */
html body .navbar {
  background: rgba(5, 42, 31, .55) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: padding .35s var(--gs-ease), background .35s var(--gs-ease), box-shadow .35s var(--gs-ease);
}

html body .navbar.gs-scrolled {
  background: rgba(5, 42, 31, .94) !important;
  padding: 10px 0;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}

html body .navbar .navbar-brand {
  color: #fff !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* логотип — квадрат 2048x2048 с пустыми полями сверху/снизу: показываем только знак */
html body .navbar .brand-logo {
  width: 150px; height: 54px; object-fit: cover; object-position: center;
  transition: width .35s var(--gs-ease), height .35s var(--gs-ease);
}
html body .navbar.gs-scrolled .brand-logo { width: 128px; height: 46px; }
html body footer .logo-foot { width: 200px !important; height: 72px !important; object-fit: cover; object-position: center; }

html body .navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, .82) !important;
  font-weight: 600;
  font-size: .95rem;
  margin: 0 4px;
  padding: 8px 14px !important;
  border-radius: 999px;
  position: relative;
  transition: color .25s var(--gs-ease), background .25s var(--gs-ease);
}

html body .navbar .navbar-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .1);
}

html body .navbar .navbar-nav .nav-link.active {
  color: var(--gs-forest) !important;
  background: var(--gs-lime);
}

html body .navbar .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  padding: 8px 10px;
}
html body .navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(197, 240, 93, .45); }
html body .navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
  html body .navbar { background: rgba(5, 42, 31, .94) !important; }
  html body .navbar .navbar-collapse {
    margin-top: 14px;
    padding: 10px;
    border-radius: var(--gs-radius-sm);
    background: rgba(255, 255, 255, .05);
  }
  html body .navbar .navbar-nav .nav-link { margin: 2px 0; }
}

/* ---------- Кнопки ---------- */
html body .btn-green,
html body .btn-success {
  background: var(--gs-grad) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 30px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 12px 28px -10px rgba(0, 140, 74, .65);
  transition: transform .3s var(--gs-ease), box-shadow .3s var(--gs-ease), filter .3s;
}

html body .btn-green:hover,
html body .btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -12px rgba(0, 140, 74, .75);
  filter: brightness(1.06);
}

html body .btn-outline-green {
  border: 2px solid var(--gs-green) !important;
  color: var(--gs-green) !important;
  background: transparent;
  border-radius: 999px !important;
  padding: 12px 28px;
  font-weight: 700;
  transition: all .3s var(--gs-ease);
}

html body .btn-outline-green:hover {
  background: var(--gs-green) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

html body .btn-sm.btn-green,
html body .btn-sm.btn-outline-green { padding: 8px 18px; font-size: .88rem; }

/* ---------- Заголовки секций ---------- */
html body .section-title {
  color: var(--gs-forest) !important;
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: clamp(40px, 5vw, 64px);
  text-align: center;
}

html body .section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gs-green), var(--gs-lime));
}

html body .section-title.text-white { color: #fff !important; }

/* ---------- Главная: hero-карусель ---------- */
html body #heroCarousel .carousel-item {
  height: 100vh;
  min-height: 640px;
  background-color: var(--gs-forest); /* пока грузится фото — не белый экран */
}

html body #heroCarousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(5, 42, 31, .86) 0%, rgba(5, 42, 31, .55) 45%, rgba(5, 42, 31, .05) 100%),
    linear-gradient(0deg, rgba(5, 42, 31, .5) 0%, rgba(5, 42, 31, 0) 30%);
}

/* старое затемнение 55% из встроенных стилей заменено градиентом выше */
html body #heroCarousel .carousel-item::after { display: none; }

html body #heroCarousel .carousel-caption {
  left: max(24px, calc((100vw - var(--gs-container)) / 2 + 12px));
  right: 24px;
  bottom: 0;
  top: 0;
  max-width: 780px;
  text-align: left;
  align-items: flex-start !important;
  padding: 0;
  z-index: 2;
}

html body #heroCarousel .carousel-caption::before {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  border-radius: 999px;
  margin-bottom: 26px;
  background: var(--gs-lime);
}

html body #heroCarousel h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-shadow: none;
  margin-bottom: 22px;
}

html body #heroCarousel .carousel-caption p {
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 620px;
  text-shadow: none;
}

html body #heroCarousel .carousel-caption .btn { margin-top: 8px; }

html body #heroCarousel .carousel-caption .btn-outline-green {
  border-color: rgba(255, 255, 255, .55) !important;
  color: #fff !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .06);
}

html body #heroCarousel .carousel-caption .btn-outline-green:hover {
  background: #fff !important;
  color: var(--gs-forest) !important;
  border-color: #fff !important;
}

/* AOS стартует только после загрузки всех фото — заголовок первого экрана был невидим
   несколько секунд. Первый экран анимируем сами, сразу при отрисовке. */
html body #heroCarousel [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@keyframes gs-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

html body #heroCarousel .carousel-item.active .carousel-caption > * {
  animation: gs-rise .9s var(--gs-ease) both;
}
html body #heroCarousel .carousel-item.active .carousel-caption > :nth-child(2) { animation-delay: .12s; }
html body #heroCarousel .carousel-item.active .carousel-caption > :nth-child(3) { animation-delay: .24s; }

html body #heroCarousel .carousel-control-prev,
html body #heroCarousel .carousel-control-next {
  width: 54px;
  height: 54px;
  top: auto;
  bottom: 44px;
  z-index: 3;
  border-radius: 50%;
  opacity: 1;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .3s var(--gs-ease);
}

html body #heroCarousel .carousel-control-prev { left: auto; right: calc(max(24px, (100vw - var(--gs-container)) / 2 + 12px) + 66px); }
html body #heroCarousel .carousel-control-next { right: max(24px, calc((100vw - var(--gs-container)) / 2 + 12px)); }

html body #heroCarousel .carousel-control-prev:hover,
html body #heroCarousel .carousel-control-next:hover { background: var(--gs-lime); }

html body #heroCarousel .carousel-control-prev-icon,
html body #heroCarousel .carousel-control-next-icon { width: 1.2rem; height: 1.2rem; }

/* ---------- Главная: О компании ---------- */
html body #about {
  background:
    radial-gradient(900px 380px at 50% 0%, var(--gs-mint) 0%, rgba(232, 246, 238, 0) 70%),
    #fff;
}

html body #about .lead {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  line-height: 1.75;
  color: var(--gs-ink) !important;
  font-weight: 500;
}

/* ---------- Карточки услуг ---------- */
html body .services { background: var(--gs-bg) !important; }

html body .service-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  min-height: 236px;
  height: 100%;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(197, 240, 93, .16), transparent 55%),
    #fff !important;
  border: 1px solid var(--gs-line) !important;
  border-radius: var(--gs-radius) !important;
  padding: 34px 30px !important;
  text-align: left !important;
  box-shadow: var(--gs-shadow) !important;
  overflow: hidden;
  transition: transform .45s var(--gs-ease), box-shadow .45s var(--gs-ease), border-color .45s;
}

/* декоративный круг в углу карточки услуги */
html body .service-card::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 140, 74, .10), transparent 70%);
  transition: transform .5s var(--gs-ease);
  pointer-events: none;
}
html body .service-card:hover::after { transform: scale(1.35); }

html body .service-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gs-green), var(--gs-lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--gs-ease);
}

html body .service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--gs-shadow-lg) !important;
  border-color: transparent !important;
}

html body .service-card:hover::before { transform: scaleX(1); }

html body .service-card > i,
html body .trust-card > i,
html body .info-card > i,
html body .contact-card h5 > i {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  font-size: 1.55rem !important;
  color: #fff !important;
  background: var(--gs-grad);
  box-shadow: 0 12px 24px -10px rgba(0, 140, 74, .6);
  margin-bottom: 22px !important;
  transition: transform .45s var(--gs-ease);
}

html body .service-card:hover > i,
html body .trust-card:hover > i { transform: rotate(-8deg) scale(1.06); }

html body .service-card h4,
html body .service-card h5 {
  color: var(--gs-forest) !important;
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

html body .service-card p { color: var(--gs-muted) !important; margin-bottom: 0; }

html body .service-card h4 { position: relative; z-index: 1; }

html body .service-card .btn {
  margin-top: auto;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  padding: 10px 24px !important;
}

/* ---------- Цифры (Почему выбирают нас) ---------- */
html body .stats {
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(197, 240, 93, .16), transparent 70%),
    radial-gradient(700px 360px at 95% 100%, rgba(36, 179, 107, .28), transparent 70%),
    var(--gs-grad-deep) !important;
  color: #fff;
  overflow: hidden;
}

html body .stats .row > [class*="col-"] { padding: 10px 14px; }

html body .stats .row > [class*="col-"] > * { position: relative; z-index: 1; }

html body .stats .row > [class*="col-"]::before {
  content: "";
  position: absolute;
  inset: 0 6px;
  border-radius: var(--gs-radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}

html body .stats .row > [class*="col-"] { position: relative; padding-top: 34px; padding-bottom: 30px; }

html body .stats .counter {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 10%, var(--gs-lime) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  margin-bottom: 10px;
}

html body .stats p {
  color: rgba(255, 255, 255, .78) !important;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 767.98px) {
  html body .stats .row > [class*="col-"] { margin-bottom: 14px; }
}

/* ---------- Новости ---------- */
html body .news .card {
  border: 1px solid var(--gs-line) !important;
  border-radius: var(--gs-radius) !important;
  overflow: hidden;
  box-shadow: var(--gs-shadow);
  transition: transform .45s var(--gs-ease), box-shadow .45s var(--gs-ease);
}

html body .news .card:hover { transform: translateY(-8px); box-shadow: var(--gs-shadow-lg); }

html body .news .card-img-top {
  height: 230px;
  object-fit: cover;
  transition: transform .8s var(--gs-ease);
}

html body .news .card:hover .card-img-top { transform: scale(1.07); }

html body .news .card-body { padding: 26px 26px 28px; }

html body .news .card-body h5 { color: var(--gs-forest); font-weight: 800; }

/* ---------- Партнёры ---------- */
html body .partners { background: var(--gs-bg) !important; }

html body .partners .row { --bs-gutter-x: 2rem; --bs-gutter-y: 2rem; }

html body .partner-logo {
  display: block;
  width: 100%;
  height: 230px;
  max-height: none !important;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius);
  padding: 26px 24px !important;
  box-shadow: var(--gs-shadow);
  filter: none;
  opacity: 1;
  transition: transform .45s var(--gs-ease), box-shadow .45s var(--gs-ease), border-color .45s;
}

html body .partner-logo:hover {
  filter: none;
  transform: translateY(-6px);
  border-color: var(--gs-leaf);
  box-shadow: 0 24px 48px -20px rgba(0, 140, 74, .35);
}

@media (max-width: 767.98px) {
  html body .partners .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
  html body .partner-logo { height: 190px; padding: 26px 30px !important; }
}

/* ---------- Внутренние страницы: шапка ---------- */
html body .hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: 150px 0 110px !important;
  isolation: isolate;
}

html body .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 42, 31, .55) 0%, rgba(5, 42, 31, .82) 100%),
    radial-gradient(800px 400px at 50% 100%, rgba(36, 179, 107, .35), transparent 70%);
}

html body .hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 64h1440V18C1200 58 960 64 720 40S240 0 0 30z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

html body .hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem) !important;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-shadow: none !important;
}

html body .hero p {
  color: rgba(255, 255, 255, .86) !important;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem) !important;
  max-width: 680px;
  margin: 16px auto 0;
  text-shadow: none !important;
}

/* шапка страницы реестра (Yashil belgi) — в стиле остальных шапок */
html body .page-header {
  position: relative;
  isolation: isolate;
  margin-top: 0 !important;
  padding: 160px 0 120px !important;
  background:
    linear-gradient(180deg, rgba(5, 42, 31, .62) 0%, rgba(5, 42, 31, .88) 100%),
    url('https://images.pexels.com/photos/886521/pexels-photo-886521.jpeg?auto=compress&cs=tinysrgb&dpr=1&h=900&w=1600') center / cover !important;
}

html body .page-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 64h1440V18C1200 58 960 64 720 40S240 0 0 30z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

html body .page-header h1 {
  color: #fff;
  font-weight: 800 !important;
  font-size: clamp(2.4rem, 5vw, 4rem) !important;
  letter-spacing: -0.03em;
}

html body .page-header .lead { color: rgba(255, 255, 255, .86) !important; }

html body .page-header .btn-outline-green {
  border-color: rgba(255, 255, 255, .55) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, .06);
}
html body .page-header .btn-outline-green:hover { background: #fff !important; color: var(--gs-forest) !important; }

html body #registry-table { max-width: 1480px; }

/* контакты: иконки в карточке */
html body .contact-card i { color: var(--gs-green); }
html body .contact-card a { color: var(--gs-deep); text-decoration: none; }
html body .contact-card a:hover { color: var(--gs-green); }

/* ---------- Универсальные карточки внутренних страниц ---------- */
html body .trust-card,
html body .contact-card,
html body .info-card,
html body .policy,
html body .timeline-content,
html body .table-container {
  background: #fff;
  border: 1px solid var(--gs-line) !important;
  border-radius: var(--gs-radius) !important;
  box-shadow: var(--gs-shadow) !important;
  transition: transform .45s var(--gs-ease), box-shadow .45s var(--gs-ease);
}

html body .trust-card { padding: 36px 30px !important; height: 100%; }
html body .trust-card:hover,
html body .info-card:hover { transform: translateY(-6px); box-shadow: var(--gs-shadow-lg) !important; }

html body .trust-card h5,
html body .contact-card h4,
html body .contact-card h5,
html body .info-card h5,
html body .timeline-content h5 {
  color: var(--gs-forest) !important;
  font-weight: 800;
}

html body .contact-card { padding: 34px !important; }
html body .info-card { padding: 28px 22px !important; height: 100%; }

html body .policy { padding: clamp(28px, 4vw, 48px) !important; }

/* миссия/цель */
html body .mission-block { gap: 24px; }
html body .mission-block > * { border-radius: var(--gs-radius) !important; overflow: hidden; }

/* таймлайн */
html body .timeline-line {
  background: linear-gradient(180deg, var(--gs-lime), var(--gs-green)) !important;
  width: 3px !important;
  border-radius: 999px;
}

html body .timeline-content { padding: 22px 26px !important; }
html body .timeline-content h5 { font-size: 1.5rem; letter-spacing: -0.02em; }

html body .timeline-item::before {
  background: var(--gs-lime) !important;
  border: 4px solid var(--gs-green) !important;
  box-shadow: 0 0 0 6px rgba(197, 240, 93, .25);
}

/* вкладки (Сертификация) */
html body .nav-tabs { gap: 10px; border: 0 !important; }

html body .nav-tabs .nav-link {
  border: 1px solid var(--gs-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--gs-deep) !important;
  font-weight: 700;
  padding: 11px 22px !important;
  box-shadow: var(--gs-shadow);
  transition: all .3s var(--gs-ease);
}

html body .nav-tabs .nav-link:hover { border-color: var(--gs-green) !important; transform: translateY(-2px); }

html body .nav-tabs .nav-link.active {
  background: var(--gs-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
}

html body .tab-content {
  background: #fff;
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow);
  padding: clamp(22px, 3vw, 40px);
  margin-top: 26px;
}

/* модальные окна (Услуги) */
html body .modal-content {
  border: 0;
  border-radius: var(--gs-radius) !important;
  overflow: hidden;
  box-shadow: var(--gs-shadow-lg);
}

html body .modal-header {
  background: var(--gs-grad-deep) !important;
  color: #fff !important;
  border: 0;
  padding: 22px 28px;
}

html body .modal-header .modal-title { color: #fff !important; font-weight: 800; }
html body .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .8; }
html body .modal-body { padding: 28px; }
html body .modal-footer { border-top: 1px solid var(--gs-line); }

/* ---------- Формы ---------- */
html body .form-control,
html body .form-select {
  border: 1.5px solid var(--gs-line);
  border-radius: var(--gs-radius-sm);
  padding: 13px 16px;
  background-color: #fbfdfc;
  color: var(--gs-ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}

html body .form-control:focus,
html body .form-select:focus {
  border-color: var(--gs-green);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 140, 74, .14);
}

html body .input-group-text {
  border: 1.5px solid var(--gs-line);
  border-radius: var(--gs-radius-sm) 0 0 var(--gs-radius-sm);
  background: #fbfdfc;
  color: var(--gs-green);
}

html body .map-container {
  border-radius: var(--gs-radius) !important;
  overflow: hidden;
  box-shadow: var(--gs-shadow-lg) !important;
}

/* ---------- Таблицы (Реестр) ---------- */
html body .table-container { overflow: hidden; padding: 18px 18px 8px !important; }

/* верхние элементы управления DataTables */
html body .dataTables_wrapper .dataTables_length,
html body .dataTables_wrapper .dataTables_filter { margin-bottom: 18px; color: var(--gs-muted); }

html body .dataTables_wrapper .dataTables_length select,
html body .dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid var(--gs-line) !important;
  background: #fbfdfc !important;
  color: var(--gs-ink) !important;
  border-radius: 999px !important;
  padding: 9px 16px !important;
  transition: border-color .25s, box-shadow .25s;
}
html body .dataTables_wrapper .dataTables_filter input { min-width: 240px; }
html body .dataTables_wrapper .dataTables_length select:focus,
html body .dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--gs-green) !important;
  box-shadow: 0 0 0 4px rgba(0, 140, 74, .14) !important;
  outline: 0;
}

/* сама таблица — убираем жёсткие рамки, скругляем */
html body #registryTable,
html body table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--gs-radius-sm, 14px);
}
html body #registryTable.table-bordered > :not(caption) > * > *,
html body table.dataTable.table-bordered > :not(caption) > * > * { border: 0 !important; }

/* шапка */
html body .table thead th,
html body table.dataTable thead > tr:first-child th {
  background: var(--gs-grad-deep) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 0 !important;
  padding: 16px 14px !important;
  vertical-align: middle;
}
html body table.dataTable thead .sorting:after,
html body table.dataTable thead .sorting_asc:after,
html body table.dataTable thead .sorting_desc:after { color: var(--gs-lime); opacity: .9; }

/* строка с фильтрами по колонкам */
html body #registryTable thead tr:nth-child(2) th {
  background: var(--gs-mint) !important;
  padding: 10px 10px !important;
}
html body #registryTable thead tr:nth-child(2) input {
  border: 1px solid var(--gs-line) !important;
  background: #fff !important;
  border-radius: 999px !important;
  padding: 7px 14px !important;
  font-size: .85rem;
  font-weight: 400;
}
html body #registryTable thead tr:nth-child(2) input:focus {
  border-color: var(--gs-green) !important;
  box-shadow: 0 0 0 3px rgba(0, 140, 74, .12) !important;
  outline: 0;
}

/* тело */
html body table.dataTable tbody td,
html body .table > tbody > tr > td {
  vertical-align: middle;
  border: 0 !important;
  border-bottom: 1px solid var(--gs-line) !important;
  padding: 15px 14px !important;
  color: var(--gs-ink) !important;
}
html body table.dataTable.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent; background: #fff; }
html body table.dataTable.table-striped > tbody > tr:nth-of-type(even) > * { --bs-table-accent-bg: transparent; background: #f6faf7; }
html body table.dataTable tbody tr { transition: background-color .2s, box-shadow .2s; }
html body table.dataTable tbody tr:hover > * {
  --bs-table-accent-bg: var(--gs-mint);
  background-color: var(--gs-mint) !important;
}

/* инфо + пагинация */
html body .dataTables_wrapper .dataTables_info { color: var(--gs-muted); padding-top: 18px; }
html body .dataTables_wrapper .dataTables_paginate { padding-top: 12px; }
html body .page-item.active .page-link,
html body .dataTables_wrapper .paginate_button.current {
  background: var(--gs-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
}
html body .page-link,
html body .dataTables_wrapper .paginate_button {
  color: var(--gs-green) !important;
  border-radius: 10px !important;
  margin: 0 3px;
  border-color: var(--gs-line) !important;
}
html body .dataTables_wrapper .paginate_button:hover { background: var(--gs-mint) !important; border-color: var(--gs-green) !important; color: var(--gs-deep) !important; }

/* ---------- Подвал ---------- */
html body footer {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(36, 179, 107, .22), transparent 70%),
    var(--gs-forest) !important;
  color: rgba(255, 255, 255, .72) !important;
  position: relative;
}

html body footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gs-green), var(--gs-lime), var(--gs-green));
}

html body footer h5,
html body footer h6 { color: #fff !important; font-weight: 800; }

html body footer p,
html body footer li,
html body footer span { color: rgba(255, 255, 255, .72) !important; }

html body footer a { color: rgba(255, 255, 255, .78) !important; text-decoration: none; }
html body footer a:hover { color: var(--gs-lime) !important; }

html body footer .social a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-right: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background .3s var(--gs-ease), transform .3s var(--gs-ease), color .3s;
}

html body footer .social a:hover {
  background: var(--gs-lime);
  color: var(--gs-forest) !important;
  transform: translateY(-3px);
}

html body footer hr,
html body footer .border-top { border-color: rgba(255, 255, 255, .12) !important; opacity: 1; }

/* ---------- Прочее ---------- */
html body .text-green,
html body .spinner-border.text-green { color: var(--gs-green) !important; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #eef3f0; }
::-webkit-scrollbar-thumb { background: #9cc2ad; border-radius: 999px; border: 3px solid #eef3f0; }
::-webkit-scrollbar-thumb:hover { background: var(--gs-green); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html body *, html body *::before, html body *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
