@media (max-width:991px) {
    body.poster {
        margin-top: 60vh;
    }
}

body.poster {
    background-attachment: fixed;
}

p{
  font-size:17px;
}

.top-5 {
    top: 5px;
}
.content {
  border: 3px solid #523857;
  border-radius: 500px;
  box-shadow: 0 6px 12px #523857;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.content:hover {
  box-shadow: 0 8px 16px #523857;
  transform: translateY(-2px);
}

.content-box {
  border: 3px solid #523857;
  border-radius: 1500px;
  box-shadow: 0 6px 12px #523857 ;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.image-box{
  height:350px;
}
@media (max-width:991px) {
  .image-box{
    height:250px;
  }
  p{
    font-size:16px;
  }
  h5{
  font-size:17px;
}
}

/* Визуально скрыто, но доступно для ассистивных технологий */
.visually-hidden-important {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Для заданного вами формата чекбокса */
.form-group.checkbox-group {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  }
.form-group.checkbox-group input[type="checkbox"] {
  margin-top: .3rem;
}


.hero-img {
  max-width: 85%;
}
h1{
  font-size: 30px;
  color: #3c234e;
}
h2{
  font-size: 25px;
  color: #3c234e;
}
h3{
  font-size: 20px;
  color: #3c234e;
}

/* 1) Глобально отключаем горизонтальный скролл */
html { overflow-x: clip; }               /* современные браузеры */
body { overflow-x: hidden; width: 100%; } /* фолбэк */

/* section-notary.css */

/* Карточка секции */
.notary-hero {
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

/* Декоративная полоса и легкий градиент фона */
.notary-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(25, 135, 84, 0.06));
  pointer-events: none;
}

.notary-hero .badge {
  letter-spacing: .02em;
}

/* Подчеркивание заголовка тонкой линией */
#trusted-notaryguide h1 {
  position: relative;
  padding-bottom: .35rem;
}

#trusted-notaryguide h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: .6rem;
  background-color: #0d6efd; /* Bootstrap primary */
  border-radius: 3px;
}

/* Улучшенная читабельность lead-текста */
#trusted-notaryguide .lead {
  line-height: 1.7;
}

/* Небольшая адаптивная типографика */
@media (min-width: 992px) {
  #trusted-notaryguide h1 { font-size: 2.75rem; }
}

/* Тонкая поддержка тёмной темы */
@media (prefers-color-scheme: dark) {
  #trusted-notaryguide { background-color: #0b0f14; }
  .notary-hero { background-color: #0f141a; }
  .notary-hero::before {
    background: linear-gradient(135deg, rgba(13,110,253,.12), rgba(25,135,84,.12));
  }
  #trusted-notaryguide h2,
  #trusted-notaryguide .lead { color: #dfe7f1; }
}

/* Section spacing fine-tuning */
#why-learn .lead {
  opacity: 0.9;
}

/* Card look & hover */
.why-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  background: var(--bs-white);
}
.why-card:hover,
.why-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.09);
}

/* Number badge */
.why-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 50rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0.25rem 0.75rem rgba(13, 110, 253, 0.25); /* primary glow */
}

/* Typography */
#why-learn h2 {
  letter-spacing: -0.02em;
}
#why-learn h3 {
  letter-spacing: -0.01em;
}

/* Subtle gradient top border for the section */
#why-learn {
  position: relative;
  overflow: hidden;
}
#why-learn::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary));
  opacity: 0.15;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .why-card {
    transition: none;
  }
}

/* Responsive spacing tweaks */
@media (min-width: 992px) {
  #why-learn .card-body {
    padding: 2rem 2rem 2rem 1.5rem;
  }
}

/* Programs Section — Bootstrap-friendly customizations */
#programs .badge {
  letter-spacing: .02em;
  text-transform: uppercase;
}

.program-card {
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: .8rem;
}
.program-card:hover,
.program-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 2rem rgba(0,0,0,.08);
}

.program-card .card-header {
  padding: 1rem 1.25rem;
  border-top-left-radius: .8rem;
  border-top-right-radius: .8rem;
}

.program-card .card-body {
  padding: 1.25rem 1.25rem 0.5rem;
}

.program-card .card-footer {
  padding: 1rem 1.25rem 1.25rem;
  background: var(--bs-white);
  border-bottom-left-radius: .8rem;
  border-bottom-right-radius: .8rem;
}

/* Small circular monogram-like icon */
.program-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 .25rem .5rem rgba(0,0,0,.08);
}

/* Buttons: subtle lift on hover */
#programs .btn:hover {
  transform: translateY(-2px);
}

/* Optional: reduce motion for users preferring less animation */
@media (prefers-reduced-motion: reduce) {
  .program-card,
  #programs .btn {
    transition: none !important;
    transform: none !important;
  }
}

/* Section accent */
#pricing {
  position: relative;
}
#pricing::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--bs-primary), var(--bs-secondary));
  opacity: 0.15;
}

/* Cards */
.pricing-card {
  border-radius: 1.25rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.pricing-card:hover,
.pricing-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 1.25rem 2.25rem rgba(0, 0, 0, 0.08);
}

/* Header typography */
#pricing .card-header h3 {
  letter-spacing: -0.01em;
}

/* Feature bullets: keep badges compact and aligned */
#pricing .badge {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  border-radius: 50rem;
  line-height: 1.25rem;
  padding: 0;
  font-size: 0.625rem;
}

/* Featured (Most Popular) card fine-tuning */
#pricing .border-primary {
  border-radius: 1.25rem;
}
#pricing .border-primary .card-header {
  background: linear-gradient(180deg, rgba(13,110,253,0.06), rgba(13,110,253,0));
}
#pricing .border-primary .btn-primary {
  box-shadow: 0 .5rem 1.25rem rgba(13,110,253,.25);
}

/* Buttons: ensure strong contrast */
#pricing .btn {
  border-radius: .75rem;
  padding: .75rem 1rem;
  font-weight: 600;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pricing-card {
    transition: none;
  }
}

/* Responsive spacing */
@media (min-width: 992px) {
  #pricing .card-body {
    padding: 2rem;
  }
}

/* section-faq.css */

#faq h2 {
  position: relative;
  padding-bottom: .35rem;
}

#faq h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: .6rem auto 0;
  background-color: #0d6efd; /* Bootstrap primary */
  border-radius: 3px;
}

/* Карточный стиль для элементов аккордеона */
.faq-accordion .accordion-item {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 .35rem 1rem rgba(0,0,0,.05);
  background: #fff;
  margin-bottom: 1rem;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: #0d6efd;
  background-color: rgba(13,110,253,.06);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
}

.faq-accordion .accordion-body {
  padding: 1rem 1.25rem 1.25rem;
  line-height: 1.75;
  color: #334155; /* тёмно-серый для читабельности */
}

/* Убираем жирную границу Bootstrap по умолчанию */
.faq-accordion .accordion-item:first-of-type,
.faq-accordion .accordion-item:last-of-type {
  border-radius: 1rem;
}

/* Тёмная тема */
@media (prefers-color-scheme: dark) {
  #faq { background-color: #0b0f14; }
  #faq .text-secondary { color: #c6d1de !important; }

  .faq-accordion .accordion-item {
    background-color: #0f141a;
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.35);
  }

  .faq-accordion .accordion-button {
    color: #e6edf6;
    background-color: transparent;
  }

  .faq-accordion .accordion-button:not(.collapsed) {
    color: #9ec5fe;
    background-color: rgba(13,110,253,.12);
  }

  .faq-accordion .accordion-body {
    color: #dfe7f1;
  }
}

