:root {
  --ink: #1f2b36;
  --ink-soft: #4e5e6a;
  --paper: #f7f4ed;
  --paper-strong: #fffdf8;
  --line: rgba(28, 61, 91, 0.15);
  --line-dark: rgba(28, 61, 91, 0.22);
  --muted: #6b7479;
  --green: #2c776c;
  --green-soft: #e2eee9;
  --brass: #ad8a4f;
  --blue: #1f4d7a;
  --blue-soft: #e4edf4;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(31, 77, 122, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 2%, rgba(31, 77, 122, 0.14), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(173, 138, 79, 0.12), transparent 28rem),
    linear-gradient(180deg, #eef4f7 0%, var(--paper) 42%, #fbfaf6 100%);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(31, 77, 122, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  padding: 3px;
  background: var(--blue);
  border: 1px solid rgba(31, 77, 122, 0.24);
  border-radius: 6px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 13px;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--brass);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-button span:not(.visually-hidden) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 0.9fr);
  gap: 8px;
  align-items: stretch;
  max-width: var(--max);
  min-height: calc(100vh - 178px);
  margin: -1px auto 0;
  padding: 78px 22px 56px;
  color: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 22px;
  z-index: -1;
  background:
    linear-gradient(118deg, rgba(255, 253, 248, 0.98), rgba(239, 246, 249, 0.96) 58%, rgba(223, 235, 242, 0.96)),
    repeating-linear-gradient(90deg, rgba(31, 77, 122, 0.07) 0 1px, transparent 1px 92px);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  max-width: 760px;
  padding: 36px 12px 36px 18px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  max-width: 830px;
  margin-bottom: 24px;
  font-size: 66px;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: 48px;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.hero__lead {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--blue);
  color: var(--paper-strong);
  box-shadow: 0 14px 28px rgba(31, 77, 122, 0.18);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue);
  border-color: var(--line);
}

.button__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: currentColor;
  border: 1px solid currentColor;
  font-size: 13px;
}

.hero__facts {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(172px, 1.18fr);
  gap: 10px;
  max-width: 680px;
  margin: 42px 0 0;
}

.hero__facts div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero__facts dt {
  color: var(--blue);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.hero__facts dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero__fact--wide dt {
  font-size: 28px;
}

.hero__visual {
  position: relative;
  min-height: 660px;
  margin-left: -54px;
  align-self: stretch;
  isolation: isolate;
  overflow: hidden;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 28px 0 38px 54px;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.8), rgba(228, 237, 244, 0.54)),
    repeating-linear-gradient(90deg, rgba(31, 77, 122, 0.05) 0 1px, transparent 1px 82px);
  border: 1px solid rgba(31, 77, 122, 0.12);
  border-radius: var(--radius);
}

.hero-photo {
  position: absolute;
  inset: 0 0 34px 10px;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 14px -18px 0 12px;
  z-index: 0;
  background: url("assets/lawyer-formal.jpg") center bottom / contain no-repeat;
  filter: blur(20px);
  opacity: 0.16;
  transform: scale(1.04);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(239, 246, 249, 0.95) 0%, rgba(239, 246, 249, 0.48) 12%, rgba(239, 246, 249, 0) 34%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.62), rgba(255, 253, 248, 0) 20%),
    linear-gradient(0deg, rgba(225, 235, 241, 0.28), rgba(225, 235, 241, 0) 28%);
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 38% bottom;
  filter: drop-shadow(0 28px 42px rgba(31, 77, 122, 0.16));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 100%);
}

.hero__panel {
  --panel-offset: 0px;
  position: absolute;
  right: 0;
  bottom: 38px;
  z-index: 3;
  width: min(348px, 64%);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(228, 237, 244, 0.82)),
    repeating-linear-gradient(90deg, rgba(31, 77, 122, 0.08) 0 1px, transparent 1px 70px);
  border: 1px solid rgba(31, 77, 122, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(var(--panel-offset));
  translate: 92px 0;
  animation: heroPanelReveal 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 620ms forwards;
  transition: transform 360ms ease, box-shadow 260ms ease;
}

.hero__panel.is-collapsed {
  --panel-offset: calc(100% - 56px);
  box-shadow: 0 18px 42px rgba(31, 77, 122, 0.1);
}

.hero__panel-inner {
  transition: opacity 220ms ease;
}

.hero__panel.is-collapsed .hero__panel-inner {
  opacity: 0;
  pointer-events: none;
}

.hero__panel-toggle {
  position: absolute;
  top: 16px;
  left: -22px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--blue);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(31, 77, 122, 0.12);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero__panel-toggle:hover,
.hero__panel-toggle:focus-visible {
  transform: translateY(-1px);
  background: var(--paper-strong);
  border-color: rgba(31, 77, 122, 0.42);
}

.hero__panel-toggle span {
  display: block;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

@keyframes heroPanelReveal {
  from {
    opacity: 0;
    translate: 92px 0;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero__panel h2 {
  margin-bottom: 14px;
  font-size: 32px;
}

.hero__panel p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.hero__panel ul {
  display: grid;
  gap: 9px;
  padding: 18px 0 0;
  margin: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero__panel li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 14px;
}

.hero__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--brass);
  border-radius: 50%;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.7fr);
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.intro-band > a,
.intro-consult {
  min-height: 112px;
  padding: 26px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-top: 0;
  transition: background 180ms ease;
}

.intro-consult {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--blue-soft);
}

.intro-band > a:hover,
.intro-band > a:focus-visible {
  background: #d9e8ef;
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
}

.intro-band span {
  margin-top: 10px;
  color: var(--muted);
}

.intro-consult__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(126px, 1fr));
  gap: 10px;
  width: min(360px, 54%);
}

.intro-consult__buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--blue);
  font-weight: 800;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.intro-consult__buttons a:hover,
.intro-consult__buttons a:focus-visible {
  transform: translateY(-1px);
  background: var(--paper-strong);
  border-color: rgba(31, 77, 122, 0.42);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 22px;
}

.section--light {
  background: rgba(255, 253, 248, 0.74);
}

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

.section__heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.practice-card {
  min-height: 292px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(31, 77, 122, 0.05);
}

.practice-card--featured {
  grid-column: span 2;
  color: var(--ink);
  background:
    linear-gradient(135deg, #e9f1f5, #dce9f0),
    repeating-linear-gradient(90deg, rgba(31, 77, 122, 0.08) 0 1px, transparent 1px 72px);
  border-color: rgba(31, 77, 122, 0.22);
}

.practice-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 900;
}

.practice-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.practice-card--featured p {
  color: var(--ink-soft);
}

.section--split {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.about-visuals {
  display: grid;
  gap: 14px;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  background: #e2dfd8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.credentials-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 420px;
  padding: 34px;
  background:
    linear-gradient(145deg, #ffffff, #e8f1f6),
    repeating-linear-gradient(0deg, rgba(31, 77, 122, 0.06) 0 1px, transparent 1px 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.credentials-panel strong {
  max-width: 320px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 40px;
  line-height: 1.05;
}

.credentials-panel span {
  display: block;
  padding-top: 18px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.approach-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.approach-list div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.approach-list strong {
  line-height: 1.25;
}

.approach-list span {
  color: var(--muted);
}

.certificates-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(228, 237, 244, 0.72)),
    repeating-linear-gradient(90deg, rgba(31, 77, 122, 0.04) 0 1px, transparent 1px 86px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.certificates-section::before {
  content: "ФПА";
  position: absolute;
  top: 18px;
  right: 16px;
  color: rgba(31, 77, 122, 0.05);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(96px, 17vw, 220px);
  line-height: 1;
  pointer-events: none;
}

.certificates-heading {
  position: relative;
  max-width: 820px;
}

.certificates-summary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.certificates-summary div {
  min-width: 0;
  padding: 22px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(31, 77, 122, 0.06);
}

.certificates-summary strong,
.certificates-summary span {
  display: block;
}

.certificates-summary strong {
  color: var(--blue);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.certificates-summary span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.certificates-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.certificate-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(31, 77, 122, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.certificate-card:hover,
.certificate-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(31, 77, 122, 0.38);
  box-shadow: 0 22px 46px rgba(31, 77, 122, 0.12);
}

.certificate-card__image {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 7;
  padding: 8px;
  background:
    linear-gradient(145deg, #f7f1e8, #ffffff),
    repeating-linear-gradient(0deg, rgba(173, 138, 79, 0.06) 0 1px, transparent 1px 34px);
  border-bottom: 1px solid var(--line);
}

.certificate-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(31, 43, 54, 0.12);
}

.certificate-card__copy {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.certificate-card__copy strong,
.certificate-card__copy span {
  display: block;
}

.certificate-card__copy strong {
  font-size: 15px;
  line-height: 1.25;
}

.certificate-card__copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.process-section {
  color: var(--ink);
  background:
    linear-gradient(135deg, #f9fbfb, #e4edf4),
    repeating-linear-gradient(0deg, rgba(31, 77, 122, 0.06) 0 1px, transparent 1px 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
}

.process-list li {
  min-height: 260px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.62);
}

.process-list span {
  color: var(--brass);
  font-size: 12px;
  font-weight: 900;
}

.process-list strong {
  display: block;
  margin-top: 58px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 24px;
}

.process-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.section--reviews {
  background: linear-gradient(135deg, var(--green-soft), #eef5f2);
}

.reviews-carousel {
  max-width: 760px;
}

.reviews-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.reviews-carousel__track {
  display: flex;
  align-items: flex-start;
  transition: transform 320ms ease, height 220ms ease;
  will-change: transform;
}

.reviews-carousel__slide {
  flex: 0 0 100%;
}

.review-card {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 14px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(31, 77, 122, 0.08);
}

.review-card img {
  width: auto;
  max-width: 100%;
  max-height: 460px;
  height: auto;
  border-radius: 6px;
}

.review-card--text {
  justify-items: start;
  gap: 20px;
  min-height: 360px;
  padding: clamp(24px, 5vw, 48px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(238, 245, 242, 0.92)),
    var(--paper);
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 18px;
}

.review-card__stars {
  color: #c49a4a;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 2px;
}

.review-card--text blockquote {
  max-width: 620px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.22;
}

.reviews-carousel__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.reviews-carousel__button,
.reviews-carousel__dots button {
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--blue);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line-dark);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.reviews-carousel__button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.reviews-carousel__button:hover,
.reviews-carousel__button:focus-visible,
.reviews-carousel__dots button:hover,
.reviews-carousel__dots button:focus-visible {
  background: var(--paper-strong);
  border-color: rgba(31, 77, 122, 0.42);
  transform: translateY(-1px);
}

.reviews-carousel__dots {
  display: flex;
  gap: 8px;
}

.reviews-carousel__dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.reviews-carousel__dots button[aria-current="true"] {
  background: var(--blue);
  border-color: var(--blue);
}

.price-board {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row span {
  color: var(--ink);
}

.price-row strong {
  color: var(--blue);
  font-size: 20px;
  white-space: nowrap;
}

.college-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.college-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 34px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(228, 237, 244, 0.96)),
    repeating-linear-gradient(90deg, rgba(31, 77, 122, 0.06) 0 1px, transparent 1px 82px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.college-card img {
  width: 160px;
  padding: 8px;
  background: var(--blue);
  border: 1px solid rgba(31, 77, 122, 0.22);
  border-radius: var(--radius);
}

.college-card p {
  color: var(--ink-soft);
}

.college-card address {
  margin-top: 22px;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 64px;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

.contact-link {
  min-height: 142px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(31, 77, 122, 0.45);
}

.contact-link span,
.contact-link strong {
  display: block;
}

.contact-link span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.contact-link strong {
  margin-top: 38px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 24px;
  line-height: 1.1;
}

.contact-link--urgent {
  color: var(--paper-strong);
  background: var(--blue);
}

.contact-link--urgent span {
  color: rgba(255, 253, 248, 0.72);
}

.contact-link--pending {
  background: #f0e6d5;
}

.is-lightbox-open {
  overflow: hidden;
}

.certificate-lightbox[hidden] {
  display: none;
}

.certificate-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(31, 43, 54, 0.68);
  backdrop-filter: blur(16px);
}

.certificate-lightbox__dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(880px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid rgba(255, 253, 248, 0.42);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.certificate-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.certificate-lightbox__header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.certificate-lightbox__close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.certificate-lightbox__close:hover,
.certificate-lightbox__close:focus-visible {
  transform: translateY(-1px);
  background: var(--paper-strong);
  border-color: rgba(31, 77, 122, 0.42);
}

.certificate-lightbox__body {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(228, 237, 244, 0.72), rgba(255, 253, 248, 0.92)),
    repeating-linear-gradient(90deg, rgba(31, 77, 122, 0.04) 0 1px, transparent 1px 74px);
}

.certificate-lightbox__body img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 146px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(31, 43, 54, 0.18);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 22px 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 940px) {
  .site-header {
    left: 0;
    right: 0;
    width: calc(100% - 24px);
    margin: 0 12px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 36px rgba(31, 77, 122, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .hero__content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero::before {
    inset: 0 12px;
  }

  .hero__panel {
    position: static;
    width: auto;
    max-width: 760px;
    backdrop-filter: none;
    opacity: 1;
    transform: none;
    translate: none;
    animation: none;
  }

  .hero__panel.is-collapsed {
    transform: none;
  }

  .hero__panel.is-collapsed .hero__panel-inner {
    opacity: 1;
    pointer-events: auto;
  }

  .hero__panel-toggle {
    display: none;
  }

  .hero__visual {
    display: grid;
    grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    margin-left: 0;
    align-self: center;
    align-items: stretch;
  }

  .hero__visual::before,
  .hero-photo::before,
  .hero-photo::after {
    display: none;
  }

  .hero-photo {
    position: relative;
    inset: auto;
    min-height: 440px;
    overflow: hidden;
    background: #f8f8f6;
    border: 1px solid rgba(31, 77, 122, 0.18);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .hero-photo img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 40px;
  }

  .intro-band,
  .certificates-summary,
  .practice-grid,
  .process-list,
  .section--split,
  .reviews-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .practice-card--featured {
    grid-column: auto;
  }

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

  .process-list {
    border-bottom: 0;
  }

  .process-list li {
    min-height: auto;
    border-bottom: 1px solid var(--line);
  }

  .process-list strong {
    margin-top: 34px;
  }

  .college-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    width: calc(100% - 16px);
    margin: 0 8px;
    padding: 10px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    max-width: 210px;
    font-size: 13px;
  }

  .brand small {
    display: none;
  }

  .menu-button {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  .hero {
    gap: 18px;
    padding: 26px 8px 24px;
  }

  .hero::before {
    inset: 0 8px;
  }

  .hero__content {
    padding: 22px 12px 14px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 32px;
    line-height: 1.08;
  }

  h2 {
    font-size: 28px;
    line-height: 1.1;
  }

  .hero__lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .hero__actions {
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 15px;
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
  }

  .hero__facts div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero__facts div {
    min-width: 0;
    padding: 12px 8px;
  }

  .hero__facts dt {
    font-size: 19px;
  }

  .hero__facts dd {
    font-size: 11px;
    line-height: 1.35;
  }

  .hero__panel {
    padding: 18px;
  }

  .hero__visual {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-photo {
    min-height: 420px;
    max-height: 520px;
  }

  .hero-photo img {
    object-position: center top;
  }

  .hero__panel h2 {
    font-size: 26px;
  }

  .hero__panel p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero__panel ul {
    gap: 10px;
    padding-top: 16px;
    margin-top: 18px;
  }

  .hero__panel li {
    font-size: 14px;
  }

  .intro-band > a,
  .intro-consult {
    min-height: 88px;
    padding: 17px 18px;
  }

  .intro-consult {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .intro-consult__buttons {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-band strong {
    font-size: 19px;
  }

  .intro-band span {
    margin-top: 6px;
    font-size: 14px;
  }

  .intro-band,
  .section {
    padding-left: 8px;
    padding-right: 8px;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .section__heading {
    margin-bottom: 24px;
  }

  .section__heading > p:not(.eyebrow) {
    font-size: 15px;
  }

  .certificates-summary {
    gap: 8px;
    margin-bottom: 18px;
  }

  .certificates-summary div {
    padding: 18px;
  }

  .certificates-summary strong {
    font-size: 28px;
  }

  .certificates-grid {
    display: flex;
    gap: 10px;
    margin-right: -8px;
    margin-left: -8px;
    padding: 0 8px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .certificate-card {
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: start;
  }

  .certificate-card__copy {
    padding: 14px;
  }

  .certificate-lightbox {
    padding: 10px;
  }

  .certificate-lightbox__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .certificate-lightbox__header {
    padding: 12px;
  }

  .certificate-lightbox__header h2 {
    font-size: 18px;
  }

  .certificate-lightbox__body {
    padding: 10px;
  }

  .certificate-lightbox__body img {
    max-height: calc(100vh - 106px);
  }

  h3 {
    font-size: 20px;
  }

  .practice-card,
  .process-list li,
  .college-card,
  .credentials-panel,
  .review-card,
  .contact-link {
    padding: 18px;
  }

  .practice-card {
    min-height: auto;
  }

  .practice-card span {
    margin-bottom: 24px;
  }

  .credentials-panel {
    min-height: auto;
    gap: 14px;
  }

  .credentials-panel strong {
    font-size: 30px;
  }

  .credentials-panel span {
    padding-top: 14px;
  }

  .process-list strong {
    margin-top: 24px;
    font-size: 22px;
  }

  .reviews-grid {
    gap: 12px;
  }

  .review-card {
    padding: 8px;
  }

  .approach-list div,
  .price-row,
  .college-card,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .price-row {
    gap: 8px;
    padding: 16px 18px;
  }

  .price-row strong {
    font-size: 18px;
  }

  .contact-link strong {
    margin-top: 20px;
    font-size: 22px;
  }

  .site-footer {
    flex-direction: column;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 380px) {
  .brand strong {
    max-width: 180px;
    font-size: 12px;
  }

  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 26px;
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__facts {
    gap: 6px;
  }

  .hero__facts div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero__facts div {
    padding: 10px 6px;
  }

  .hero__facts dt {
    font-size: 17px;
  }

  .hero__facts dd {
    font-size: 10px;
  }

  .button {
    font-size: 14px;
  }
}

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