html {
  scrollbar-gutter: stable;
}

body.modal-open {
  padding-right: 0 !important;
}

.modal {
  padding-right: 0 !important;
}

.site-header,
body.modal-open .site-header {
  padding-right: 0 !important;
}

/* HERO */
.practice-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.practice-hero--inner {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 0 72px;
}

.practice-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.practice-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.35)
  );
}

.practice-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.practice-hero h1 {
  margin: 0 0 12px;
  font-family: "Cambria", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.practice-hero p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.92;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* PRACTICE GRID */
.practice-page {
  padding: 90px 0;
  background: #f5f2ed;
}

.practice-page .row {
  row-gap: 2rem;
}

/* CARD */
.practice-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  padding: 30px 26px;
  min-height: 100%;
  height: 100%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.practice-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #efe6d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c89b4b;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.practice-item h3 {
  margin: 0 0 18px;
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.45rem;
  line-height: 1.2;
  font-family: "Cambria", "Times New Roman", serif;
  font-weight: 700;
  color: #0f274d;
}

.practice-item p {
  margin: 0 0 24px;
  min-height: 8rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #5e6c84;
}

.practice-btn {
  margin-top: auto;
  min-width: 140px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(200, 155, 75, 0.18);
}

/* CTA */
.practice-cta {
  background: #f5f2ed;
  padding: 30px 0 100px;
}

.practice-cta .container {
  max-width: 820px;
}

.practice-cta h2 {
  margin-bottom: 18px;
  font-family: "Cambria", "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  line-height: 1.18;
  color: #0f274d;
}

.practice-cta-text {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
  line-height: 1.95;
  color: #5e6c84;
}

.practice-cta-btn {
  min-width: 170px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(200, 155, 75, 0.16);
}

/* MODAL */
#practiceModal {
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
}

#practiceModal .modal-dialog {
  max-width: 900px;
}

#practiceModal .modal-content {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}

#practiceModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px;
  background: linear-gradient(180deg, #f9f7f3 0%, #f5f1ea 100%);
  border-bottom: 1px solid rgba(15, 39, 77, 0.08);
}

#practiceModal .modal-title {
  margin: 0;
  font-family: "Cambria", "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0f274d;
}

#practiceModal .btn-close {
  opacity: 0.7;
  box-shadow: none;
}

#practiceModal .btn-close:hover,
#practiceModal .btn-close:focus {
  opacity: 1;
}

#practiceModal .modal-body {
  padding: 28px;
  background: #ffffff;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#practiceModalText {
  color: #5e6c84;
}

#practiceModalText p {
  margin: 0 0 18px;
  color: #5e6c84;
  font-size: 1.06rem;
  line-height: 1.95;
}

#practiceModalText ul {
  margin: 0;
  padding-left: 1.2rem;
}

#practiceModalText li {
  margin-bottom: 10px;
  color: #5e6c84;
  font-size: 1.02rem;
  line-height: 1.85;
}

#practiceModalText li::marker {
  color: #c89b4b;
}

.modal-backdrop.show {
  opacity: 0.55;
}

/* RESPONSIVE */
@media (max-width: 1199.98px) {
  .practice-item h3 {
    min-height: 5.2rem;
    font-size: 1.4rem;
  }

  .practice-item p {
    min-height: 9rem;
    font-size: 0.98rem;
  }
}

@media (max-width: 991.98px) {
  .practice-hero--inner {
    min-height: 290px;
    padding: 88px 0 64px;
  }

  .practice-item {
    border-radius: 24px;
    padding: 30px 24px;
  }

  .practice-item h3 {
    min-height: auto;
    margin-bottom: 20px;
    font-size: 1.42rem;
  }

  .practice-item p {
    min-height: auto;
    margin-bottom: 26px;
  }

  #practiceModal .modal-dialog {
    max-width: 92%;
  }

  #practiceModal .modal-title {
    font-size: 1.7rem;
  }

  #practiceModal .modal-body {
    padding: 24px;
    max-height: calc(100vh - 150px);
  }

  #practiceModalText p {
    font-size: 1rem;
    line-height: 1.9;
  }

  #practiceModalText li {
    font-size: 0.98rem;
    line-height: 1.8;
  }
}

@media (max-width: 575.98px) {
  .practice-hero--inner {
    min-height: 250px;
    padding: 76px 0 56px;
  }

  .practice-hero h1 {
    font-size: 2rem;
  }

  .practice-hero p {
    font-size: 0.9rem;
  }

  .practice-page {
    padding: 70px 0;
  }

  .practice-item {
    padding: 28px 22px;
  }

  .practice-icon {
    margin-bottom: 20px;
  }

  .practice-item h3 {
    font-size: 1.32rem;
    margin-bottom: 18px;
  }

  .practice-item p {
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 24px;
  }

  .practice-btn {
    width: 100%;
    max-width: 220px;
  }

  .practice-cta {
    padding: 0 0 70px;
  }

  .practice-cta h2 {
    font-size: 2rem;
  }

  .practice-cta-text {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .practice-cta-btn {
    width: 100%;
    max-width: 220px;
  }

  #practiceModal .modal-dialog {
    max-width: calc(100% - 1.2rem);
    margin: 0.6rem auto;
  }

  #practiceModal .modal-content {
    border-radius: 22px;
  }

  #practiceModal .modal-header {
    padding: 18px 18px 14px;
  }

  #practiceModal .modal-title {
    font-size: 1.38rem;
    line-height: 1.25;
    max-width: 85%;
  }

  #practiceModal .modal-body {
    padding: 18px;
    max-height: calc(100vh - 110px);
  }

  #practiceModalText p {
    margin-bottom: 14px;
    font-size: 0.96rem;
    line-height: 1.8;
  }

  #practiceModalText ul {
    padding-left: 1rem;
  }

  #practiceModalText li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.72;
  }
}