:root {
  color-scheme: dark;
  --ink: #111111;
  --graphite: #181816;
  --charcoal: #23221f;
  --paper: #f5f1e8;
  --paper-muted: #d9d0c1;
  --stone: #8a8174;
  --brass: #c8a45d;
  --brass-strong: #dfb969;
  --burgundy: #6d2027;
  --moss: #435347;
  --line-dark: rgba(245, 241, 232, 0.14);
  --line-light: rgba(17, 17, 17, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --header-height: 78px;
  --principles-strip-height: 78px;
  --container: min(1180px, calc(100vw - 40px));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--paper);
  background-color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

::selection {
  color: var(--ink);
  background: var(--brass-strong);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 6px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--paper);
  transition:
    height 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    padding 220ms ease;
}

.site-header::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(18px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header.is-open::before {
  background: rgba(17, 17, 17, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  letter-spacing: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 3px;
  background: var(--ink);
  border: 1px solid rgba(223, 185, 105, 0.46);
  border-radius: 6px;
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__text {
  display: grid;
  gap: 1px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand__text strong {
  font-weight: 700;
}

.brand__text span {
  color: var(--paper-muted);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.05);
}

.site-nav__contacts {
  display: none;
}

.site-nav > a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(245, 241, 232, 0.78);
  font-size: 0.88rem;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
  color: var(--paper);
  background: rgba(245, 241, 232, 0.1);
}

.header-contacts {
  justify-self: end;
  display: grid;
  gap: 2px;
  text-align: right;
}

.header-contact {
  color: var(--paper);
  font-size: 0.92rem;
  line-height: 1.2;
  transition: color 160ms ease;
}

.header-contact--email {
  color: rgba(245, 241, 232, 0.68);
  font-size: 0.78rem;
}

.header-contact:hover,
.contact-lines a:hover,
.contact-form .consent a:hover,
.legal-document a:hover,
.site-footer a:hover {
  color: var(--brass-strong);
}

.nav-toggle {
  display: none;
}

.site-header,
.hero__inner,
.section__header,
.practice-grid,
.method__inner,
.case-list,
.profile,
.contacts__inner,
.faq-list,
.legal-page,
.service-hero__inner,
.service-section > *,
.site-footer {
  width: var(--container);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--principles-strip-height));
  overflow: hidden;
  padding: var(--header-height) 0 0;
  background: var(--ink);
}

.hero__photo,
.hero__canvas,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__photo {
  --hero-photo-offset: clamp(54px, 6svh, 92px);

  z-index: 0;
  top: var(--hero-photo-offset);
  width: 100%;
  height: calc(100% - var(--hero-photo-offset));
  object-fit: contain;
  object-position: right center;
  filter: saturate(0.9) contrast(1.06);
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(17, 17, 17, 0.98) 32%, rgba(17, 17, 17, 0) 56%),
    var(--ink);
}

.hero__canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.96) 0%, rgba(17, 17, 17, 0.78) 42%, rgba(17, 17, 17, 0.28) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.82));
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.42fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100svh - var(--header-height) - var(--principles-strip-height));
}

.hero__content {
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brass-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.6vw, 7.8rem);
  line-height: 0.92;
  overflow-wrap: normal;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.8rem);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero__lead {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(245, 241, 232, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button:disabled:hover {
  transform: none;
}

.button--primary {
  color: var(--ink);
  background: var(--brass-strong);
  border-color: rgba(255, 255, 255, 0.2);
}

.button--primary:hover {
  background: var(--paper);
}

.button--ghost {
  color: var(--paper);
  background: rgba(245, 241, 232, 0.05);
  border-color: var(--line-dark);
}

.button--ghost:hover {
  border-color: rgba(245, 241, 232, 0.36);
  background: rgba(245, 241, 232, 0.1);
}

.hero__metrics {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(17, 17, 17, 0.44);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric {
  padding: 22px;
  background: rgba(245, 241, 232, 0.055);
}

.metric__value {
  display: block;
  margin-bottom: 8px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1;
}

.metric__label {
  color: rgba(245, 241, 232, 0.68);
  font-size: 0.92rem;
}

.principles-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line-dark);
  background: var(--graphite);
}

.principles-strip span {
  display: grid;
  place-items: center;
  min-height: var(--principles-strip-height);
  padding: 16px;
  border-right: 1px solid var(--line-dark);
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.principles-strip span:last-child {
  border-right: 0;
}

.section {
  padding: 80px 0;
  background: var(--ink);
}

.section--light {
  color: var(--ink);
  background: var(--paper);
}

.section__header {
  max-width: 780px;
  margin-bottom: 44px;
}

.section__header--wide,
.service-section__header--wide {
  max-width: var(--container);
}

.section__header p:not(.eyebrow),
.method__content p,
.profile__body p,
.contacts__content p {
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 1.03rem;
}

.section--light .eyebrow,
.service-section--light .service-step span {
  color: var(--burgundy);
}

.practices {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(200, 164, 93, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(245, 241, 232, 0.96), rgba(245, 241, 232, 1)),
    var(--paper);
}

.practices::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 100px;
  right: max(-140px, calc((100vw - 1180px) / 2 - 280px));
  bottom: 0;
  width: min(62vw, 860px);
  background: url("assets/femida.png") right center / auto 114% no-repeat;
  filter: grayscale(1) sepia(0.18) contrast(1.04);
  pointer-events: none;
}

.practices::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(245, 241, 232, 0.9) 42%, rgba(245, 241, 232, 0.76) 100%),
    linear-gradient(180deg, rgba(245, 241, 232, 0), var(--paper) 82%);
  pointer-events: none;
}

.practices > *,
.cases > * {
  position: relative;
  z-index: 1;
}

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

.practice-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.44);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.practice-card:hover {
  transform: translateY(-6px);
  border-color: rgba(109, 32, 39, 0.32);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
}

.practice-card__number {
  display: block;
  margin-bottom: 30px;
  color: var(--burgundy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.practice-card p,
.case-item p,
.faq-item__body p,
.service-panel p,
.service-panel li,
.service-section--light .service-step p {
  color: rgba(17, 17, 17, 0.68);
}

.practice-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 18px;
  color: var(--burgundy);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-card__link::after {
  content: "\2192";
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.practice-card__link:hover::after,
.practice-card__link:focus-visible::after {
  transform: translateX(5px);
}

.method__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 70px;
}

.method__content {
  align-self: start;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brass-strong);
  font-weight: 800;
}

.text-link::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 58px;
}

.timeline,
.service-steps {
  display: grid;
  border-top: 1px solid var(--line-dark);
}

.timeline__item {
  display: grid;
  grid-template-columns: 70px 0.7fr 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-dark);
}

.timeline__item span,
.service-step span {
  color: var(--brass-strong);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.timeline__item p,
.service-step p {
  color: rgba(245, 241, 232, 0.64);
}

.cases {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 46%, rgba(200, 164, 93, 0.17), transparent 34%),
    linear-gradient(180deg, rgba(245, 241, 232, 1), rgba(245, 241, 232, 0.97)),
    var(--paper);
}

.cases::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: max(-180px, calc((100vw - 1180px) / 2 - 300px));
  width: min(66vw, 920px);
  background: url("assets/scales.png") left center / auto 112% no-repeat;
  filter: grayscale(0.2) sepia(0.12) contrast(0.96);
  pointer-events: none;
}

.cases::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 241, 232, 0.82) 0%, rgba(245, 241, 232, 0.94) 34%, var(--paper) 100%),
    linear-gradient(180deg, rgba(245, 241, 232, 0), var(--paper) 86%);
  pointer-events: none;
}

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

.case-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.case-item:hover {
  transform: translateX(6px);
  border-color: rgba(67, 83, 71, 0.34);
  background: rgba(255, 255, 255, 0.78);
}

.case-item__tag {
  display: block;
  margin-bottom: 12px;
  color: var(--moss);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about {
  background:
    linear-gradient(120deg, rgba(109, 32, 39, 0.24), transparent 38%),
    var(--graphite);
}

.profile {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 54px;
  align-items: stretch;
}

.profile__portrait {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--charcoal);
}

.profile__portrait::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0) 44%, rgba(17, 17, 17, 0.36) 100%),
    linear-gradient(135deg, rgba(223, 185, 105, 0.14), transparent 38%),
    rgba(17, 17, 17, 0.08);
  pointer-events: none;
}

.profile__portrait::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 185, 105, 0.72), transparent);
}

.profile__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 58% 36%;
  filter: saturate(0.86) contrast(1.04) brightness(0.82);
}

.profile__body {
  align-self: center;
  max-width: 760px;
}

.profile__facts {
  display: grid;
  gap: 1px;
  margin: 34px 0 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(245, 241, 232, 0.045);
}

.profile__facts div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(245, 241, 232, 0.045);
}

.profile__facts dt {
  color: var(--brass-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile__facts dd {
  margin: 0;
  color: rgba(245, 241, 232, 0.75);
}

.faq {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 241, 232, 1), rgba(245, 241, 232, 0.96)),
    var(--paper);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.faq-item[open] {
  border-color: rgba(109, 32, 39, 0.28);
  background: rgba(255, 255, 255, 0.76);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 22px 62px 22px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--burgundy);
  border-right: 2px solid var(--burgundy);
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(135deg);
}

.faq-item__body {
  max-width: 880px;
  padding: 0 24px 24px;
}

.faq-item__body p {
  margin-bottom: 0;
}

.contacts {
  background: var(--ink);
}

.contacts__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 0.7fr);
  gap: 56px;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  color: rgba(245, 241, 232, 0.78);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(245, 241, 232, 0.055);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: rgba(245, 241, 232, 0.64);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 6px;
  color: var(--paper);
  background: rgba(17, 17, 17, 0.48);
  outline: none;
  padding: 13px 14px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 128px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brass-strong);
  background: rgba(17, 17, 17, 0.72);
  box-shadow: 0 0 0 3px rgba(223, 185, 105, 0.14);
}

.contact-form select {
  appearance: none;
}

.contact-form .consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 2px;
}

.contact-form .consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brass-strong);
}

.contact-form .consent span {
  color: rgba(245, 241, 232, 0.66);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.contact-form .consent a {
  color: var(--paper);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: rgba(223, 185, 105, 0.72);
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 6px;
  color: rgba(245, 241, 232, 0.78);
  background: rgba(17, 17, 17, 0.34);
  font-size: 0.88rem;
  line-height: 1.45;
}

.form-status:not(:empty) {
  display: block;
}

.form-status[data-state="pending"] {
  border-color: rgba(223, 185, 105, 0.36);
  color: var(--brass-strong);
  background: rgba(223, 185, 105, 0.08);
}

.form-status[data-state="success"] {
  border-color: rgba(119, 188, 136, 0.34);
  color: #b9e4c2;
  background: rgba(119, 188, 136, 0.1);
}

.form-status[data-state="error"] {
  border-color: rgba(207, 92, 92, 0.42);
  color: #f1b0b0;
  background: rgba(207, 92, 92, 0.12);
}

.legal-layout {
  min-height: 100svh;
  color: var(--paper);
  background-color: #111111;
  background-image: linear-gradient(135deg, rgba(109, 32, 39, 0.18), transparent 34%);
}

.legal-page {
  padding: calc(var(--header-height) + 72px) 0 96px;
}

.legal-document {
  max-width: 920px;
}

.legal-document h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.96;
}

.legal-document__lead {
  max-width: 760px;
  margin-bottom: 48px;
  color: rgba(245, 241, 232, 0.72);
  font-size: 1.12rem;
}

.legal-document section {
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
}

.legal-document h2 {
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: rgba(245, 241, 232, 0.72);
}

.legal-document p {
  max-width: 820px;
  margin-bottom: 12px;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin: 0;
  padding-left: 20px;
}

.legal-document a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(223, 185, 105, 0.72);
  text-underline-offset: 3px;
}

.service-page {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(109, 32, 39, 0.18), transparent 34%),
    var(--ink);
}

.service-hero {
  position: relative;
  min-height: 70svh;
  padding: calc(var(--header-height) + 86px) 0 76px;
  overflow: hidden;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.96) 0%, rgba(17, 17, 17, 0.82) 48%, rgba(17, 17, 17, 0.58) 100%),
    url("assets/femida.png") 64% center / auto 102% no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.service-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.36fr);
  gap: 56px;
  align-items: center;
}

.service-hero__inner > * {
  min-width: 0;
}

.service-hero h1 {
  max-width: min(760px, 100%);
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 4.6vw, 5.2rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.service-hero__lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: rgba(245, 241, 232, 0.76);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.service-hero__facts {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(17, 17, 17, 0.48);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.service-hero__facts span {
  padding: 18px 20px;
  color: rgba(245, 241, 232, 0.72);
  background: rgba(245, 241, 232, 0.055);
}

.service-section {
  padding: 82px 0;
}

.service-section--light {
  width: 100%;
  color: var(--ink);
  background: var(--paper);
}

.service-section__header {
  max-width: none;
  margin-bottom: 38px;
}

.service-section__header p:not(.eyebrow) {
  color: color-mix(in srgb, currentColor 68%, transparent);
}

.service-panel {
  padding: 24px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.06);
}

.service-panel h3,
.service-section--light .service-step h3 {
  color: var(--ink);
}

.service-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.service-step {
  display: grid;
  grid-template-columns: 84px minmax(180px, 0.38fr) 1fr;
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
}

.service-section--light .service-steps {
  border-top-color: var(--line-light);
}

.service-section--light .service-step {
  border-bottom-color: var(--line-light);
}

.service-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(245, 241, 232, 0.055);
}

.service-cta p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(245, 241, 232, 0.68);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line-dark);
  color: rgba(245, 241, 232, 0.58);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--brass-strong);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  :root {
    --header-height: 70px;
    --container: min(100vw - 28px, 1180px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    position: relative;
    z-index: 55;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(245, 241, 232, 0.18);
    border-radius: 6px;
    background: rgba(245, 241, 232, 0.07);
    transition:
      border-color 180ms ease,
      background 180ms ease;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible,
  .nav-toggle[aria-expanded="true"] {
    border-color: rgba(223, 185, 105, 0.62);
    background: rgba(245, 241, 232, 0.11);
  }

  .nav-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    top: 50%;
    height: 1px;
    margin-top: -0.5px;
    background: var(--paper);
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .nav-toggle span:first-child {
    transform: translateY(-5px);
  }

  .nav-toggle span:last-child {
    transform: translateY(5px);
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-height) + 10px) 14px auto 14px;
    display: grid;
    gap: 0;
    width: auto;
    max-width: 460px;
    margin-left: auto;
    padding: 10px;
    border: 1px solid rgba(245, 241, 232, 0.16);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(35, 34, 31, 0.98), rgba(17, 17, 17, 0.98)),
      var(--ink);
    box-shadow:
      0 28px 80px rgba(0, 0, 0, 0.54),
      0 0 0 999px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

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

  .site-nav__contacts {
    display: grid;
    gap: 8px;
    padding: 2px 2px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.1);
  }

  .site-nav__contact {
    display: grid;
    gap: 3px;
    padding: 13px 14px;
    border: 1px solid rgba(245, 241, 232, 0.12);
    border-radius: 8px;
    color: var(--paper);
    background: rgba(245, 241, 232, 0.055);
    line-height: 1.18;
    transition:
      border-color 160ms ease,
      background 160ms ease,
      color 160ms ease;
  }

  .site-nav__contact:hover,
  .site-nav__contact:focus-visible {
    border-color: rgba(223, 185, 105, 0.58);
    color: var(--paper);
    background: rgba(245, 241, 232, 0.1);
  }

  .site-nav__contact-kicker {
    color: var(--brass-strong);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .site-nav__contact--phone span:last-child {
    font-size: 1.08rem;
    font-weight: 700;
  }

  .site-nav__contact--email span:last-child {
    color: rgba(245, 241, 232, 0.78);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  .site-nav > a {
    padding: 15px 14px;
    border-radius: 6px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.08);
    font-size: 1rem;
  }

  .site-nav > a:last-child {
    border-bottom: 0;
  }

  .header-contacts {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 42px) 0 34px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.88) 58%, rgba(17, 17, 17, 0.98) 100%),
      linear-gradient(90deg, rgba(17, 17, 17, 0.86), rgba(17, 17, 17, 0.46));
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding: 0;
  }

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

  .metric {
    padding: 18px;
  }

  .metric__value {
    font-size: 2rem;
  }

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

  .practices::before {
    top: 0;
    right: -240px;
    bottom: 0;
    width: 760px;
    background-size: auto 108%;
    opacity: 0.11;
  }

  .cases::before {
    left: -340px;
    width: 820px;
    background-size: auto 104%;
    opacity: 0.1;
  }

  .method__inner,
  .contacts__inner,
  .profile,
  .case-item,
  .service-hero__inner,
  .service-grid,
  .service-cta {
    grid-template-columns: 1fr;
  }

  .timeline__item,
  .service-step {
    grid-template-columns: 54px 1fr;
  }

  .timeline__item p,
  .service-step p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .brand__text {
    display: none;
  }

  .hero__content,
  .hero__lead,
  .hero__actions,
  .hero__metrics {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero__actions,
  .site-footer {
    flex-direction: column;
  }

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

  .hero__metrics,
  .principles-strip,
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .principles-strip span {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .section {
    padding: 76px 0;
  }

  .practices::before {
    top: 0;
    right: -320px;
    bottom: 0;
    width: 680px;
    background-size: auto 104%;
    opacity: 0.08;
  }

  .practices::after {
    background:
      linear-gradient(180deg, rgba(245, 241, 232, 0.94), var(--paper) 42%),
      linear-gradient(90deg, var(--paper), rgba(245, 241, 232, 0.86));
  }

  .cases::before {
    left: -420px;
    width: 760px;
    background-size: auto 96%;
    opacity: 0.08;
  }

  .cases::after {
    background:
      linear-gradient(90deg, rgba(245, 241, 232, 0.9), var(--paper) 58%),
      linear-gradient(180deg, rgba(245, 241, 232, 0), var(--paper) 82%);
  }

  .practice-card {
    min-height: 220px;
  }

  .practice-card__number {
    margin-bottom: 50px;
  }

  .case-item,
  .contact-form,
  .service-panel,
  .service-cta {
    padding: 20px;
  }

  .faq-item summary {
    padding: 20px 56px 20px 20px;
  }

  .faq-item summary::after {
    right: 18px;
  }

  .profile__portrait {
    min-height: 360px;
  }

  .profile__photo {
    min-height: 360px;
    object-position: 58% 32%;
  }

  .profile__facts div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
