:root {
  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --practice-primary: #0f766e;
  --practice-primary-dark: #0a4f4a;
  --practice-mint: #dff4f1;
  --practice-blue: #e8f0f5;
  --practice-ink: #1e2a32;
  --practice-muted: #5d6872;
  --practice-line: #d9e2e7;
  --practice-surface: #ffffff;
  --practice-soft: #f5f8fa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-padding-top: 86px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
  color: var(--practice-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

a {
  color: var(--practice-primary-dark);
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--practice-primary-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 3px;
}

.navbar {
  min-height: 76px;
}

.site-header {
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  transform: none;
}

.site-header__inner,
.site-header__nav,
.site-header .navbar-nav,
.site-footer__inner,
main,
section,
footer,
.container,
.row,
.row > *,
.service-carousel,
.service-carousel__viewport,
.service-carousel__track,
.service-slide,
.contact-box,
.schedule {
  min-width: 0;
}

.site-header .navbar-brand {
  max-width: calc(100% - 64px);
  min-width: 0;
  flex-shrink: 1;
}

.site-logo {
  flex: 0 0 auto;
}

.navbar-brand-text {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.navbar-brand strong,
.navbar-brand small {
  display: block;
  overflow: hidden;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-brand small {
  color: var(--practice-muted);
  font-size: 0.82rem;
}

.nav-link {
  color: var(--practice-ink);
  font-weight: 650;
  border-radius: 6px;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="true"] {
  background: #eef2f4;
  color: var(--practice-primary-dark);
}

.btn {
  border-radius: 6px;
  font-weight: 700;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-phone {
  max-width: 100%;
}

.header-phone span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  --bs-btn-bg: var(--practice-primary);
  --bs-btn-border-color: var(--practice-primary);
  --bs-btn-hover-bg: var(--practice-primary-dark);
  --bs-btn-hover-border-color: var(--practice-primary-dark);
  --bs-btn-active-bg: var(--practice-primary-dark);
  --bs-btn-active-border-color: var(--practice-primary-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--practice-primary-dark);
  --bs-btn-border-color: var(--practice-primary);
  --bs-btn-hover-bg: var(--practice-primary);
  --bs-btn-hover-border-color: var(--practice-primary);
}

.masthead {
  position: relative;
  overflow: hidden;
  padding: 148px 0 88px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(232, 240, 245, 0.7)),
    var(--practice-soft);
}

.masthead::after {
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 58px solid rgba(15, 118, 110, 0.08);
  border-radius: 50%;
  content: "";
}

.masthead .container {
  position: relative;
  z-index: 1;
}

.masthead h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 0.98;
}

.lead {
  max-width: 64ch;
  color: var(--practice-muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--practice-soft);
}

.section-accent {
  background: var(--practice-primary-dark);
  color: #fff;
}

.section-accent a {
  color: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--practice-primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-accent .section-kicker {
  color: var(--practice-mint);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.05;
}

h3 {
  font-size: 1.16rem;
  font-weight: 800;
}

p,
address {
  color: var(--practice-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.section-accent p,
.section-accent address {
  color: rgba(255, 255, 255, 0.82);
}

.about-team-photo {
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px;
}

.about-team-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--practice-line);
  border-radius: 8px;
  background: var(--practice-surface);
  box-shadow: 0 16px 44px rgba(29, 50, 61, 0.12);
}

.hero-panel {
  position: relative;
  min-height: 420px;
}

.hero-card,
.contact-box,
.service-card,
.schedule {
  border: 1px solid var(--practice-line);
  border-radius: 8px;
  background: var(--practice-surface);
  box-shadow: 0 20px 70px rgba(29, 50, 61, 0.12);
}

.hero-card {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 0;
  display: grid;
  gap: 2px;
  min-width: 230px;
  padding: 18px;
}

.hero-card__label {
  color: var(--practice-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-card strong {
  color: var(--practice-primary-dark);
  font-size: 1.35rem;
}

.hero-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, 420px);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--practice-mint), #fff);
}

.hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual__hint {
  position: absolute;
  right: 26px;
  bottom: 22px;
  max-width: 190px;
  margin: 0;
  color: var(--practice-primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.service-carousel {
  position: relative;
}

.service-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -58px 0 20px;
}

.carousel-control-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--practice-line);
  border-radius: 6px;
  background: #fff;
  color: var(--practice-primary-dark);
  place-items: center;
}

.carousel-control-button:hover,
.carousel-control-button:focus-visible {
  border-color: var(--practice-primary);
  outline: none;
}

.carousel-control-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.carousel-control-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-carousel__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.service-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.service-carousel__viewport:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 6px;
}

.service-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  max-width: 100%;
}

.service-slide {
  display: flex;
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

.service-card {
  display: grid;
  width: 100%;
  min-height: 288px;
  height: 100%;
  align-content: start;
  gap: 12px;
  padding: 28px;
}

.service-card p {
  margin-bottom: 0;
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--practice-mint);
  color: var(--practice-primary-dark);
  place-items: center;
}

.service-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1199.98px) {
  .service-slide {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 767.98px) {
  .service-carousel__controls {
    display: none;
  }

  .service-carousel__viewport {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    scroll-snap-type: none;
  }

  .service-carousel__track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-slide {
    display: block;
    flex: initial;
    scroll-snap-align: none;
  }
}

.schedule {
  overflow: hidden;
}

.vacation-notice {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #f2c46d;
  border-radius: 8px;
  background: #fff8e8;
}

.vacation-notice--active {
  border-color: #d95d39;
  background: #fff0eb;
}

.vacation-notice__label {
  margin-bottom: 8px;
  color: #8a4d00;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vacation-notice--active .vacation-notice__label {
  color: #9c2f17;
}

.vacation-notice h3 {
  margin-bottom: 12px;
}

.vacation-notice p,
.vacation-notice li {
  color: var(--practice-ink);
}

.vacation-notice ul {
  margin-bottom: 14px;
}

.schedule div {
  display: grid;
  grid-template-columns: minmax(110px, 180px) 1fr;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--practice-line);
}

.schedule div:last-child {
  border-bottom: 0;
}

.schedule span {
  color: var(--practice-muted);
  font-weight: 700;
}

.schedule strong {
  color: var(--practice-ink);
}

.contact-box {
  padding: 32px;
  color: var(--practice-ink);
}

.contact-box .btn-primary {
  color: #fff;
}

.contact-box p {
  color: var(--practice-muted);
}

.site-footer {
  max-width: 100%;
  overflow-x: hidden;
  padding: 28px 0;
  background: #10252b;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a {
  margin-left: 18px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.legal-page {
  padding-top: 0;
}

.legal-page main {
  padding-top: 128px;
  padding-bottom: 72px;
}

.legal-content {
  max-width: 860px;
}

.legal-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
}

.legal-content h2 {
  margin-top: 42px;
  font-size: 1.55rem;
}

@media (max-width: 991.98px) {
  .masthead {
    padding-top: 126px;
  }

  .hero-panel {
    min-height: 360px;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-header__nav {
    flex-basis: 100%;
    width: 100%;
  }

  .site-header .navbar-nav {
    align-items: stretch;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .site-header .nav-item {
    width: 100%;
  }

  .site-header .nav-link,
  .site-header .header-phone {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .navbar-toggler {
    flex: 0 0 auto;
  }

  .masthead::after {
    right: -260px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-card,
  .hero-visual {
    position: static;
  }

  .hero-panel {
    display: grid;
    gap: 16px;
    min-height: 0;
  }

  .hero-visual__hint {
    right: 18px;
    bottom: 16px;
    max-width: 160px;
    font-size: 0.78rem;
  }

  .schedule div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer a {
    margin: 0 16px 0 0;
  }
}
