:root {
  color-scheme: light;
  --bg: #f2f3f5;
  --panel: #ffffff;
  --panel-soft: #f8f8f6;
  --text: #15223b;
  --muted: #5f6269;
  --line: #e7e8eb;
  --gold: #d9b565;
  --gold-dark: #b99344;
  --ivory: #15223b;
  --green: #287a52;
  --red: #e07777;
  --radius: 8px;
  --font-scale: 1;
  --heading-weight: 400;
  --body-weight: 400;
  font-size: calc(16px * var(--font-scale));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-weight: var(--body-weight);
  font-synthesis-weight: none;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready [data-reveal="slide-up"] {
  transform: translate3d(0, 34px, 0);
}

.motion-ready [data-reveal="slide-down"] {
  transform: translate3d(0, -22px, 0);
}

.motion-ready [data-reveal="slide-right"] {
  transform: translate3d(44px, 0, 0);
  filter: blur(4px);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(21, 34, 59, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(21, 34, 59, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(21, 34, 59, 0.12));
  transform: scale(1.16);
}

.pill-nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pill-nav a {
  position: relative;
  min-width: auto;
  padding: 8px 0 9px;
  border-radius: 0;
  color: var(--muted);
  font-weight: 420;
  text-align: center;
  transition: 0.2s ease;
}

.pill-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-dark);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.pill-nav a:hover,
.pill-nav a:focus-visible {
  color: var(--text);
}

.pill-nav a:hover::after,
.pill-nav a:focus-visible::after {
  transform: scaleX(1);
}

.outline-button,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}

.site-header .outline-button {
  justify-self: end;
}

.menu-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(21, 34, 59, 0.07);
}

.menu-toggle i {
  grid-area: 1 / 1;
  display: block;
  width: 1.2em;
  height: 1.2em;
  font-size: 1.18rem;
  line-height: 1;
  text-align: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.menu-icon-close,
.nav-open .menu-icon-open {
  opacity: 0;
  transform: scale(0.8) rotate(-12deg);
}

.nav-open .menu-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.primary-button {
  border-color: var(--gold);
  background: var(--gold);
  color: #111827;
}

.ghost-button,
.outline-button {
  background: #ffffff;
  color: var(--text);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  min-height: 72vh;
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px) 0;
  background:
    linear-gradient(90deg, rgba(21, 34, 59, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  background-size: 88px 88px, auto;
  overflow: hidden;
}

.hero-copy {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
  font-family: "Times New Roman", Georgia, serif;
  font-weight: var(--heading-weight);
}

h1 {
  max-width: 900px;
  color: var(--ivory);
  font-size: clamp(2.72rem, 5.9vw, 6.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.7rem);
}

.hero-text {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  margin-bottom: 72px;
}

.hero-portrait {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: clamp(520px, 63vh, 780px);
  margin: 0;
  isolation: isolate;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 16% 6% 0 14%;
  z-index: -1;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(180deg, rgba(217, 181, 101, 0.2), rgba(255, 255, 255, 0.72)),
    linear-gradient(90deg, rgba(21, 34, 59, 0.05) 1px, transparent 1px);
  background-size: auto, 48px 48px;
  box-shadow: 0 40px 90px rgba(21, 34, 59, 0.12);
}

.hero-portrait img {
  display: block;
  width: min(100%, 560px);
  max-height: min(72vh, 820px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 28px 38px rgba(21, 34, 59, 0.18));
  animation: portrait-float 7s ease-in-out 1.1s infinite;
}

.hero-panel,
.contact-card,
.appointment-form,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(21, 34, 59, 0.08);
}

.hero-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(135deg, rgba(217, 181, 101, 0.16) 0 1px, transparent 1px 12px);
}

.hero-panel div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.hero-panel h2 {
  margin-bottom: 24px;
  font-size: clamp(1.7rem, 2.6vw, 2.65rem);
  line-height: 1.1;
}

.panel-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero-panel span,
.practice-card-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel strong {
  font-size: 1.05rem;
  font-weight: 420;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.trust-strip span {
  padding: 20px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line);
  color: var(--text);
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
}

.section {
  padding: 72px clamp(18px, 5vw, 72px);
}

.intro-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: 42px;
  margin: clamp(38px, 5vw, 72px) clamp(18px, 5vw, 72px) 0;
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 246, 0.92)),
    #ffffff;
  box-shadow: 0 28px 80px rgba(21, 34, 59, 0.08);
  overflow: hidden;
}

.intro-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold);
}

.intro-section h2 {
  font-size: clamp(2.05rem, 3.35vw, 4.15rem);
}

.intro-section p:last-child,
.contact-band p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

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

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
  border: 0;
}

.practice-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: clamp(22px, 2.8vw, 34px);
  min-height: clamp(300px, 25vw, 380px);
  padding: clamp(30px, 3.6vw, 46px) clamp(28px, 3.5vw, 48px) clamp(36px, 3.8vw, 52px);
  border: 0;
  border-radius: 34px;
  background: #f4f4f3;
  box-shadow:
    0 18px 46px rgba(21, 34, 59, 0.05),
    inset 0 -12px 0 var(--gold-dark);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.practice-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 12px;
  border-radius: 0 0 34px 34px;
  background: var(--gold-dark);
}

.practice-card:hover {
  background: #f8f8f7;
  transform: translateY(-5px);
  box-shadow:
    0 30px 72px rgba(21, 34, 59, 0.1),
    inset 0 -12px 0 var(--gold-dark);
}

.motion-ready .practice-card[data-reveal] {
  transform: translate3d(0, 38px, 0);
}

.motion-ready .practice-card[data-reveal].is-visible {
  transform: translate3d(0, 0, 0);
}

.motion-ready .practice-card[data-reveal].is-visible:hover {
  transform: translateY(-5px);
}

.practice-icon {
  display: grid;
  place-items: center;
  width: clamp(92px, 7vw, 124px);
  height: clamp(92px, 7vw, 124px);
  border-radius: 999px;
  background: #ffffff;
  color: var(--gold);
  box-shadow: 0 18px 44px rgba(21, 34, 59, 0.06);
}

.practice-icon svg {
  display: block;
  width: 48%;
  height: 48%;
}

.practice-card h3 {
  margin: 0 0 clamp(14px, 1.5vw, 20px);
  font-family: "Times New Roman", Georgia, serif;
  color: var(--text);
  font-size: clamp(1.75rem, 2.2vw, 2.55rem);
  font-weight: var(--heading-weight);
  line-height: 1.08;
}

.practice-card p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #858585;
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.practice-card-copy span {
  display: none;
}

.practice-arrow {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(185, 147, 68, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: var(--gold-dark);
  font-size: 1.4rem;
  opacity: 0;
  box-shadow: 0 16px 34px rgba(21, 34, 59, 0.08);
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.practice-card:hover .practice-arrow {
  opacity: 1;
  transform: translateY(0);
}

.custom-section {
  scroll-margin-top: 130px;
}

.custom-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(21, 34, 59, 0.07);
}

.custom-section-card .custom-section-inner {
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 244, 243, 0.94)),
    #ffffff;
  box-shadow:
    0 24px 70px rgba(21, 34, 59, 0.08),
    inset 0 -10px 0 var(--gold-dark);
}

.custom-section-copy {
  display: grid;
  gap: 16px;
}

.custom-section-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.17rem);
  line-height: 1.85;
}

.contact-band {
  scroll-margin-top: 160px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 32px;
  align-items: center;
  margin: 40px clamp(18px, 5vw, 72px) 72px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.contact-card,
.appointment-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.appointment-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-segment {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f6f8;
}

.request-segment legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.request-segment label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.request-segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.request-segment span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 620;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.request-segment input:checked + span {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(21, 34, 59, 0.09);
}

.appointment-form .form-field {
  gap: 8px;
  margin: 0;
  color: #5f6269;
  font-size: 1rem;
  font-weight: 650;
}

.appointment-form .form-field span {
  position: relative;
  display: block;
}

.appointment-form input,
.appointment-form textarea {
  min-height: 52px;
  border: 1px solid #dfe2e7;
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  padding: 13px 44px 13px 16px;
  font-size: 0.98rem;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px rgba(21, 34, 59, 0.015);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.appointment-form textarea {
  min-height: 130px;
  padding-top: 16px;
  resize: none;
}

.appointment-form input::placeholder,
.appointment-form textarea::placeholder {
  color: #858585;
  opacity: 1;
  font-weight: 520;
}

.appointment-form .form-field svg {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: var(--gold-dark);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.appointment-form .form-field:has(textarea) svg {
  top: 18px;
  transform: none;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 181, 101, 0.16);
}

.appointment-form .full,
.appointment-form button,
.appointment-form .form-message {
  grid-column: 1 / -1;
}

.appointment-form button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.appointment-form .primary-button {
  min-height: 48px;
  margin-top: 2px;
  border-radius: 999px;
  font-size: 1rem;
}

.contact-card a {
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.practice-detail-body {
  background:
    linear-gradient(90deg, rgba(21, 34, 59, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  background-size: 88px 88px, auto;
}

.practice-detail-shell {
  width: min(100% - 36px, 1040px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px) 0 88px;
}

.detail-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 560;
  transition: color 0.2s ease, transform 0.2s ease;
}

.detail-back:hover,
.detail-back:focus-visible {
  color: var(--text);
  transform: translateX(-3px);
}

.practice-detail-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.practice-article-head {
  max-width: 820px;
  margin: 0 auto;
}

.practice-detail-card h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.98;
}

.practice-detail-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.8;
}

.practice-detail-cover {
  margin: 0 0 clamp(34px, 5vw, 60px);
}

.practice-detail-cover[hidden] {
  display: none;
}

.practice-detail-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(21, 34, 59, 0.12);
}

.practice-detail-body-copy {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin: clamp(30px, 5vw, 54px) auto 0;
  padding-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.practice-detail-body-copy p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.04rem, 1.45vw, 1.18rem);
  line-height: 1.95;
}

.practice-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
  margin: clamp(30px, 5vw, 52px) auto 0;
}

.site-footer {
  position: relative;
  scroll-margin-top: 120px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(21, 34, 59, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  background-size: 88px 88px, auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.76fr) minmax(260px, 1.25fr) minmax(260px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 440px;
  padding: clamp(46px, 7vw, 94px) clamp(18px, 6vw, 112px) clamp(82px, 8vw, 116px);
}

.footer-menu,
.footer-brand,
.footer-contact {
  min-height: 300px;
}

.footer-menu,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-menu-links {
  display: grid;
  gap: 16px;
}

.footer-menu {
  padding-right: clamp(24px, 4vw, 60px);
  border-right: 1px solid var(--line);
}

.footer-menu h2,
.footer-contact h2,
.footer-brand h2 {
  margin: 0;
  font-family: "Times New Roman", Georgia, serif;
  color: var(--text);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: var(--heading-weight);
}

.footer-menu a {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: var(--text);
  transform: translateX(4px);
}

.footer-brand {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  padding-inline: clamp(24px, 4vw, 66px);
  border-right: 1px solid var(--line);
  text-align: center;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: clamp(82px, 9vw, 126px);
  height: clamp(82px, 9vw, 126px);
}

.footer-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(21, 34, 59, 0.12));
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer > .footer-copyline {
  position: absolute;
  right: clamp(88px, 9vw, 150px);
  bottom: clamp(20px, 3vw, 36px);
  left: clamp(88px, 9vw, 150px);
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.site-footer > .footer-copyline [data-field="footerCopyright"] {
  color: var(--gold-dark);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-socials[hidden] {
  display: none;
}

.footer-socials a,
.footer-icon,
.back-top {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--gold-dark);
  font-weight: 620;
  box-shadow: 0 16px 34px rgba(21, 34, 59, 0.07);
}

.footer-socials a {
  font-size: 1.05rem;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact {
  font-style: normal;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.footer-contact-item div {
  display: grid;
  gap: 8px;
}

.footer-contact a,
.footer-contact span {
  color: var(--muted);
  line-height: 1.55;
  word-break: break-word;
}

.footer-contact .footer-contact-label {
  margin-top: 6px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer > .back-top {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: clamp(18px, 3vw, 34px);
}

.language-switcher {
  position: fixed;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  display: block;
  width: fit-content;
  filter: drop-shadow(0 16px 28px rgba(21, 34, 59, 0.18));
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 112px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-arrow {
  display: inline-grid;
  place-items: center;
  width: 1em;
  height: 1em;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.language-switcher[open] summary {
  border-radius: var(--radius);
}

.language-switcher a {
  position: absolute;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 164px;
  padding: 13px 16px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(21, 34, 59, 0.16);
}

.language-switcher a[aria-current="true"] {
  color: var(--gold-dark);
  font-weight: 720;
}

.language-switcher a:nth-of-type(1) {
  bottom: 92px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.language-switcher a:nth-of-type(2) {
  bottom: 44px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}

.back-top {
  grid-column: 3;
  justify-self: end;
  background: #ffffff;
  font-size: 1.35rem;
}

@keyframes portrait-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.admin-body {
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 181, 101, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(21, 34, 59, 0.08), transparent 26%),
    linear-gradient(90deg, rgba(21, 34, 59, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #eef0f3 100%);
  background-size: auto, auto, 88px 88px, auto;
}

.admin-shell {
  min-height: 100vh;
}

.auth-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 54px);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1fr);
  width: min(100%, 1040px);
  min-height: 560px;
  border: 1px solid rgba(21, 34, 59, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 34px 100px rgba(21, 34, 59, 0.12);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.auth-copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(34px, 5vw, 62px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #15223b 0%, #1e2d49 100%);
  background-size: 58px 58px, auto;
  color: #ffffff;
  overflow: hidden;
}

.auth-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(217, 181, 101, 0.28);
  border-radius: 999px;
}

.auth-brand {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(20px, 6vw, 68px);
  color: #ffffff;
}

.auth-brand .brand-mark {
  border-radius: 999px;
  background: #ffffff;
}

.auth-copy .eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.auth-copy h1 {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

.auth-copy p:last-child {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
  line-height: 1.8;
}

.auth-forms {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 64px);
}

.admin-card {
  width: min(100%, 560px);
  padding: 28px;
}

.auth-card {
  width: 100%;
  min-height: 0;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 22px;
  box-shadow: none;
}

.auth-card-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(217, 181, 101, 0.16);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.admin-card h1 {
  margin-bottom: 22px;
  font-size: 2rem;
  line-height: 1.08;
}

.auth-card h1 {
  margin-bottom: 26px;
  font-size: clamp(2rem, 3vw, 3rem);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 520;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 181, 101, 0.14);
}

.link-button {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-weight: 560;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.auth-actions .link-button {
  margin-top: 0;
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--green);
  line-height: 1.5;
}

.form-message.error {
  color: var(--red);
}

.dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.admin-sidebar nav {
  display: grid;
  gap: 22px;
}

.admin-nav-group {
  display: grid;
  gap: 8px;
}

.admin-nav-group p {
  margin: 0 0 4px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.admin-sidebar nav a,
.admin-sidebar nav button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav button:hover,
.admin-sidebar nav button.is-active {
  background: var(--panel-soft);
  color: var(--text);
}

.admin-sidebar .outline-button {
  margin-top: auto;
}

.dashboard-content {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 28px;
}

.dashboard-content .admin-card {
  width: 100%;
}

.mailbox-card {
  display: grid;
  gap: 18px;
}

.mailbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mailbox-tabs button {
  display: grid;
  gap: 2px;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--muted);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
}

.mailbox-tabs button.is-active {
  border-color: rgba(217, 181, 101, 0.75);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(21, 34, 59, 0.08);
}

.mailbox-tabs span {
  font-weight: 720;
}

.mailbox-tabs small {
  font-size: 0.78rem;
}

.mailbox-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.65fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.mailbox-thread-list {
  display: grid;
  align-content: start;
  max-height: 720px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--panel-soft);
}

.mailbox-thread {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 16px;
  text-align: left;
  cursor: pointer;
}

.mailbox-thread:hover,
.mailbox-thread.is-active {
  background: #ffffff;
}

.mailbox-thread strong {
  color: var(--text);
  font-size: 1rem;
}

.mailbox-thread span,
.mailbox-thread small {
  font-size: 0.82rem;
}

.mailbox-thread em {
  overflow: hidden;
  color: var(--text);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mailbox-conversation {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.mailbox-conversation-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.mailbox-conversation-head p {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 720;
}

.mailbox-conversation-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.mailbox-messages {
  display: grid;
  align-content: start;
  gap: 14px;
  max-height: 440px;
  overflow: auto;
  padding: 18px;
}

.mailbox-message {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.mailbox-message header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  color: var(--text);
}

.mailbox-message header span {
  color: var(--muted);
  font-size: 0.86rem;
}

.mailbox-message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

.mailbox-reply-form {
  display: none;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: var(--panel-soft);
}

.mailbox-reply-form.is-ready {
  display: grid;
}

.mailbox-reply-form textarea {
  resize: none;
}

.mailbox-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.editor-grid .full,
.editor-grid button,
.editor-grid .form-message {
  grid-column: 1 / -1;
}

.practice-editor,
.nav-editor,
.social-editor,
.theme-editor,
.footer-editor,
.seo-editor,
.contact-editor {
  display: grid;
  gap: 16px;
  margin: 8px 0 18px;
}

.social-editor-grid,
.theme-editor-grid,
.footer-editor-grid,
.seo-editor-grid,
.contact-editor-grid,
.practice-editor-two,
.nav-editor-row,
.nav-section-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.practice-editor-head,
.practice-editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.practice-editor-head h2 {
  font-size: 1.45rem;
}

.practice-editor-list {
  display: grid;
  gap: 16px;
}

.nav-editor-list {
  display: grid;
  gap: 12px;
}

.nav-editor-item {
  display: grid;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.nav-editor-item label {
  margin-bottom: 0;
}

.nav-editor-row {
  grid-template-columns: repeat(2, minmax(150px, 1fr)) minmax(190px, 1fr) auto;
  align-items: end;
}

.nav-section-fields .full {
  grid-column: 1 / -1;
}

.nav-editor-item .link-button {
  margin: 0 0 12px;
}

.editor-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 25px;
  color: var(--text);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--gold);
}

.practice-editor-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.practice-editor-item label {
  margin-bottom: 0;
}

.practice-editor-row label {
  flex: 1;
}

.practice-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1.5px dashed #d9dde4;
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.practice-upload.is-dragging {
  border-color: var(--gold);
  background: rgba(217, 181, 101, 0.08);
  box-shadow: 0 0 0 4px rgba(217, 181, 101, 0.14);
}

.practice-upload-copy {
  display: grid;
  gap: 6px;
}

.practice-upload-copy strong {
  color: var(--text);
}

.practice-upload-copy span {
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}

.link-button.danger {
  color: var(--red);
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 8;
    background: rgba(21, 34, 59, 0.18);
    backdrop-filter: blur(9px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    gap: 12px;
  }

  .pill-nav {
    position: absolute;
    z-index: 12;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(21, 34, 59, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
  }

  .nav-open .pill-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .pill-nav a {
    padding: 14px 16px;
    text-align: left;
  }

  .pill-nav a::after {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 13;
    display: grid;
  }

  .site-header .outline-button {
    display: none;
  }

  .hero-section,
  .intro-section,
  .contact-band,
  .custom-section-inner,
  .footer-grid,
  .mailbox-layout,
  .dashboard,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    min-height: auto;
  }

  .auth-copy {
    align-content: start;
  }

  .auth-brand {
    margin-bottom: 24px;
  }

  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-menu,
  .footer-brand {
    min-height: auto;
    padding: 0 0 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-menu {
    justify-items: start;
  }

  .footer-menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .footer-menu a:hover,
  .footer-menu a:focus-visible {
    transform: none;
  }

  .footer-contact {
    min-height: auto;
  }

  .mailbox-thread-list {
    max-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer > .back-top {
    right: 22px;
    bottom: 22px;
  }

  .site-footer > .footer-copyline {
    right: 84px;
    left: 84px;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px;
  }

  .brand {
    gap: 12px;
    font-size: 1rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .pill-nav {
    justify-content: space-between;
    gap: 16px;
  }

  .pill-nav a {
    padding: 12px 14px;
    font-size: 0.92rem;
    text-align: left;
  }

  .hero-section {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 0;
  }

  h1 {
    font-size: 2.7rem;
  }

  .hero-actions {
    margin-bottom: 28px;
  }

  .hero-portrait {
    min-height: 440px;
  }

  .hero-portrait img {
    width: min(112%, 430px);
    max-height: 500px;
  }

  .practice-grid,
  .editor-grid,
  .social-editor-grid,
  .theme-editor-grid,
  .footer-editor-grid,
  .seo-editor-grid,
  .contact-editor-grid,
  .practice-editor-two,
  .nav-editor-row,
  .nav-section-fields,
  .appointment-form {
    grid-template-columns: 1fr;
  }

  .request-segment {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 999px;
    gap: 6px;
  }

  .request-segment span {
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.9rem;
  }

  .practice-editor-head,
  .practice-editor-row,
  .nav-editor-item,
  .practice-upload {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .nav-editor-item .link-button {
    margin: 0;
  }

  .footer-grid {
    min-height: auto;
    padding: 38px 18px 84px;
  }

  .footer-contact-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .site-footer > .footer-copyline {
    right: 18px;
    bottom: 54px;
    left: 18px;
    font-size: clamp(0.68rem, 2.8vw, 0.86rem);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  .language-switcher {
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .language-switcher summary {
    min-width: 94px;
    min-height: 40px;
    padding: 0 12px;
  }

  .language-switcher a {
    min-width: 126px;
    padding: 12px 14px;
  }

  .language-switcher a:nth-of-type(1) {
    bottom: 88px;
  }

  .language-switcher a:nth-of-type(2) {
    bottom: 44px;
  }

  .practice-card {
    min-height: 300px;
    gap: 22px;
    padding: 28px 24px 42px;
    border-radius: 26px;
  }

  .practice-icon {
    width: 88px;
    height: 88px;
  }

  .practice-card h3 {
    font-size: 1.85rem;
  }

  .practice-card p {
    -webkit-line-clamp: 3;
  }

  .contact-band {
    margin-inline: 16px;
  }

  .footer {
    flex-direction: column;
  }
}
