@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 {
  min-height: 65vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)),
              url('assets/images/img-hero.jpg') center/cover no-repeat;
  color: #fff;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-img {
  max-width: 85%;
}
h1{
  font-size: 30px;
  color: #504031;
}
h2{
  font-size: 25px;
  color:#504031;
}
h3{
  font-size: 20px;
  color: #504031;
}
/* What We Do — enhancements on top of Bootstrap */

/* секция заголовка с аккуратным подчёркиванием */
#what-we-do .underlined {
  position: relative;
  display: inline-block;
}
#what-we-do .underlined::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    var(--bs-primary) 0%,
    var(--bs-primary) 40%,
    var(--bs-secondary) 60%,
    var(--bs-success) 100%);
  opacity: .25;
}

/* карточки — лёгкий лифт при ховере */
#what-we-do .card-hover {
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: 1rem;
}
#what-we-do .card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 .8rem 1.6rem rgba(0,0,0,.08);
}

/* цветной акцент снизу карточки */
#what-we-do .card-accent {
  height: 4px;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}
#what-we-do .accent-primary { background-color: var(--bs-primary); }
#what-we-do .accent-secondary { background-color: var(--bs-secondary); }
#what-we-do .accent-success { background-color: var(--bs-success); }

/* иконка в мягком круге, цвета подтягиваются из utility-классов */
#what-we-do .feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 1.25rem;
}
#what-we-do .bg-primary-subtle   { background-color: color-mix(in srgb, var(--bs-primary) 12%, #fff) !important; }
#what-we-do .bg-secondary-subtle { background-color: color-mix(in srgb, var(--bs-secondary) 12%, #fff) !important; }
#what-we-do .bg-success-subtle   { background-color: color-mix(in srgb, var(--bs-success) 12%, #fff) !important; }

/* мелкие правки текста */
#what-we-do p { line-height: 1.6; }

/* Why Choose Us — Bootstrap-friendly enhancements */

/* Заголовок с мягким градиентным подчёркиванием */
#why-choose-us .underlined {
  position: relative;
  display: inline-block;
}
#why-choose-us .underlined::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 4px; border-radius: 999px;
  background: linear-gradient(90deg,
    var(--bs-primary) 0%,
    var(--bs-primary) 35%,
    var(--bs-secondary) 65%,
    var(--bs-success) 100%);
  opacity: .25;
}

/* Карточки — плавный лифт и усиленная тень при ховере */
#why-choose-us .card-hover {
  border-radius: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
#why-choose-us .card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 .8rem 1.6rem rgba(0,0,0,.08);
}

/* Нижний цветной акцент карточек */
#why-choose-us .card-accent {
  height: 4px;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}


/* Иконки в мягких кругах (цвет подтягивается из utility-классов) */
#why-choose-us .feature-icon {
  width: 4rem; height: 4rem;
  border-radius: 999px;
  display: inline-grid; place-items: center;
  font-size: 1.25rem;
}

/* Мелкие акценты типографики */
#why-choose-us .tracking-1 { letter-spacing: .04em; }
#why-choose-us p { line-height: 1.6; }

/* SeniorProtectPlan — Our Services */
.sp-section {
  background: #f8fafc; /* light neutral */
}

.sp-service {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sp-service .card-body {
  padding: 1.5rem;
}

.sp-service:hover,
.sp-service:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
  border-color: rgba(13, 110, 253, 0.35); /* bootstrap primary tint */
}

.sp-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: rgba(13, 110, 253, 0.08); /* bootstrap primary alpha */
}

.sp-icon-wrap i {
  font-size: 1.25rem;
  line-height: 1;
  color: #0d6efd; /* bootstrap primary */
}

/* Heading spacing */
#our-services h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* Improve paragraph readability for seniors */
#our-services p {
  font-size: 1rem;
  line-height: 1.6;
  color: #495057; /* bootstrap gray-700 */
}

/* Responsive tweaks */
@media (min-width: 992px) {
  .sp-service .card-body {
    padding: 1.75rem;
  }
}

/* SeniorProtectPlan — How It Works */
#how-it-works {
  background: #ffffff;
}

.sp-step {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
  background: #f8fafc;
}

.sp-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.sp-step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  background: #0d6efd; /* Bootstrap primary */
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.35);
}

#how-it-works h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

#how-it-works p {
  font-size: 0.95rem;
  color: #495057;
  line-height: 1.6;
}

/* Pricing section overrides & helpers */
.pricing-section {
  position: relative;
}

/* Cards */
.pricing-card {
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #ffffff;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.08);
}

/* Featured card */
.pricing-card-featured {
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Price display */
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
}

.pricing-currency {
  font-size: 1.1rem;
}

.pricing-amount {
  font-size: 2.25rem;
  line-height: 1;
}

.pricing-period {
  font-size: 0.9rem;
}

/* Subheading under plan names */
.pricing-tagline {
  font-size: 0.9rem;
}

/* List inside cards */
.pricing-list li {
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.pricing-list i {
  margin-top: 0.15rem;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .pricing-card {
    border-radius: 0.75rem;
  }

  .pricing-amount {
    font-size: 2rem;
  }

  .pricing-section .card-body {
    padding: 1.5rem;
  }
}
