/* ============================================================
   עו״ד אלינה רוד וילינסקי — navy editorial design
   Pale editorial copy, navy portrait backdrop, restrained gold accents.
   Shape rule: rectangular buttons/inputs/cards (2px), circles
   only for icon chips and the WhatsApp FAB.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f3f6f7;
  --bg-3: #e9f0f2;
  --ink: #0d2b3a;
  --text: #3c4e59;
  --muted: #677983;
  --gold: #8f7138;
  --gold-dark: #7a5f2e;
  --gold-soft: #f5f0e3;
  --cream: #f1ebdf;
  --line: rgba(13, 43, 58, 0.12);
  --line-strong: rgba(13, 43, 58, 0.24);
  --font-display: 'Rubik', 'Segoe UI', sans-serif;
  --font-body: 'Assistant', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

html[lang="ru"] { --font-body: 'Rubik', 'Segoe UI', sans-serif; }
/* Rubik renders heavier than Assistant at the same weight — rebalance the header */
html[lang="ru"] .brand-name { font-weight: 600; }
html[lang="ru"] .main-nav > a, html[lang="ru"] .nav-drop > button { font-weight: 500; }
html[lang="ru"] .header-phone { font-weight: 700; }

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 700;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration: none; }

::selection { background: var(--gold); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4.5vw, 3.5rem);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1.2rem;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* centered section title with teal bar (reference pattern) */
.sec-title { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-title h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; }
.sec-title h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
}
.sec-title p {
  margin: 1.1rem auto 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* small label above headings */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.kicker::before {
  content: "";
  width: 2.8rem;
  height: 2px;
  background: var(--gold);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 1rem 2.2rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              color 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(13, 43, 58, 0.55);
}
.btn-primary:hover {
  background: #081c26;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(13, 43, 58, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--bg-2); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid rgba(13, 43, 58, 0);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(13, 43, 58, 0.25);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 0.85rem; flex: none; grid-column: 1; justify-self: start; }
.brand img { height: 2.5rem; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
}
.brand-role { font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.2rem); grid-column: 2; justify-self: center; }
.main-nav > a, .nav-drop > button {
  position: relative;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.4rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}
.main-nav > a::after, .nav-drop > button::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.main-nav > a:hover::after, .nav-drop:hover > button::after,
.nav-drop.is-open > button::after { transform: scaleX(1); }

.nav-drop { position: relative; }
.nav-drop > button { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-drop > button svg { width: 0.8em; height: 0.8em; transition: transform 0.3s var(--ease); }
.nav-drop.is-open > button svg, .nav-drop:hover > button svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 50%;
  translate: 50% 0;
  min-width: 15.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 30px 60px -20px rgba(13, 43, 58, 0.3);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.nav-drop:hover .drop-menu, .nav-drop.is-open .drop-menu,
.nav-drop:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drop-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.drop-menu a:hover { background: var(--ink); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 0.8rem; grid-column: 3; justify-self: end; }
.header-social { display: flex; gap: 0.45rem; }
.site-header .header-actions > .language-switch {
  border-inline-start: 1px solid var(--line-strong);
  padding-inline-start: 1rem;
}
.social-link {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-link svg { width: 1.05rem; height: 1.05rem; }
.social-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.lang-dd { position: relative; }
.lang-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.lang-dd-btn:hover,
.lang-dd.is-open .lang-dd-btn { background: var(--gold-soft); }
.flag-wrap {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(13, 43, 58, 0.14), 0 2px 5px rgba(13, 43, 58, 0.12);
}
.lang-dd .flag {
  display: block;
  width: 100%;
  height: 100%;
}
.lang-dd-btn > svg:not(.flag) {
  width: 0.7em;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}
.lang-dd-btn:hover > svg:not(.flag) { color: var(--ink); }
.lang-dd.is-open .lang-dd-btn > svg:not(.flag) { transform: rotate(180deg); }
.lang-dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 100%;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(13, 43, 58, 0.18), 0 2px 8px rgba(13, 43, 58, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 80;
}
[dir="ltr"] .lang-dd-menu { transform-origin: top left; }
.lang-dd.is-open .lang-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lang-dd-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  border-radius: 5px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-dd-opt .flag-wrap {
  width: 20px;
  height: 20px;
  box-shadow: 0 0 0 1px rgba(13, 43, 58, 0.14);
}
a.lang-dd-opt:hover { background: var(--ink); color: #fff; }
.lang-dd-opt.is-active {
  font-weight: 800;
  color: var(--ink);
  cursor: default;
}
.lang-dd-opt.is-active::after {
  content: "✓";
  margin-inline-start: auto;
  color: var(--gold);
  font-weight: 900;
}

/* in the mobile menu footer the picker opens upward */
.menu-foot .lang-dd-menu {
  top: auto;
  bottom: calc(100% + 10px);
  transform: translateY(6px) scale(0.97);
  transform-origin: bottom right;
}
[dir="ltr"] .menu-foot .lang-dd-menu { transform-origin: bottom left; }
.menu-foot .lang-dd.is-open .lang-dd-menu { transform: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.65rem 1.3rem;
  box-shadow: 0 10px 26px -12px rgba(13, 43, 58, 0.55);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  direction: ltr;
}
.header-phone svg { width: 1em; height: 1em; }
.header-phone:hover {
  background: #081c26;
  border-color: #081c26;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(13, 43, 58, 0.6);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 1.6rem; height: 1.6rem; }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #fff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 1.4rem clamp(1.25rem, 5vw, 2.5rem) 2.5rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s 0.5s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.5s var(--ease);
}
.mobile-menu .menu-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .menu-head img { height: 2.2rem; }
.menu-close {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem;
}
.menu-close svg { width: 1.7rem; height: 1.7rem; }
.mobile-menu nav { margin-top: 3rem; display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a:hover { color: var(--gold); }
.mobile-menu .menu-foot { margin-top: auto; padding-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 1.4rem;
  inset-inline-end: 1.4rem;
  z-index: 95;
  width: 3.7rem;
  height: 3.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 38px -12px rgba(13, 43, 58, 0.55);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.wa-float svg { width: 1.8rem; height: 1.8rem; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); background: #081c26; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--ink);
  animation: wa-pulse 2.8s var(--ease) infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- split portrait hero ---------- */
.hero {
  color: var(--ink);
  overflow: hidden;
  background: linear-gradient(to left, rgba(255,255,255,.82), rgba(255,255,255,.55) 46%, rgba(255,255,255,.28)), url('../img/hero-bg.jpg') left bottom / cover no-repeat, var(--bg);
}
.hero-grid { direction: rtl; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); max-width: 1440px; margin: auto; min-height: min(55.2vw, 795px); }
.hero-copy { min-width: 0; align-self: center; padding: 0 clamp(2rem, 9vw, 8rem); padding-inline-end: 3rem; border-inline-end: 1px solid #b99b60; position: relative; z-index: 1; }
.hero-role { color: var(--gold-dark); font-size: clamp(.85rem, 1.55vw, 1.3rem); margin: 0 0 1.5rem; line-height: 1.6; }
.hero-role span { padding-inline: .3rem; }
.hero h1 { font-family: var(--font-display); color: var(--ink); font-size: clamp(4rem, 8.3vw, 7.5rem); font-weight: 300; line-height: .99; letter-spacing: -.035em; margin: 0; }
.hero h1 span { display: block; }
.hero-line { width: 4.7rem; height: 2px; background: #c6ad7a; margin: 2rem 0; }
.hero-sub { color: var(--ink); font-size: clamp(1.2rem, 1.85vw, 1.55rem); line-height: 1.5; margin-bottom: 2rem; }
.hero-ctas { display: grid; justify-items: stretch; gap: .65rem; background: transparent; padding: 0; width: min(100%, 24rem); min-width: 0; }
.hero-ctas .btn { padding: 1.1rem 1.3rem; min-height: 64px; font-size: 1.2rem; font-weight: 600; justify-content: space-between; gap: 2rem; }
.hero-cta-mobile { display: none; }
.hero-phone { text-align: center; color: var(--ink); font-size: 1.5rem; letter-spacing: .015em; }
.hero-visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; background: url('../img/hero-navy-backdrop.webp') center / cover; }
/* Extend the door beyond the centered content grid on wide screens. */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  left: min(0px, calc((1440px - 100vw) / 2));
  background: inherit;
  pointer-events: none;
}
.hero-visual img { position: absolute; height: 98%; width: 100%; object-fit: contain; object-position: center bottom; max-width: none; }
html[lang="ru"] .hero h1 { font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: 1.08; }
html[lang="ru"] .hero-copy { direction: ltr; }
html[lang="ru"] .hero-role { max-width: 30ch; }
html[lang="ru"] .hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }

/* ---------- illustrated practice cards from dev6 ---------- */
.practice { padding: 3rem 0; }
.practice .sec-title { margin-bottom: 2rem; }
.practice .sec-title h2 { font-weight: 500; }
.practice-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.p-card a {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.p-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -22px rgba(13, 43, 58, 0.3);
}
.p-visual {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
}
.p-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.1rem;
  transition: transform 0.5s var(--ease);
}
.p-card a:hover .p-visual img { transform: scale(1.07); }
.p-label {
  display: block;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  padding: 0.9rem 1rem;
  flex: 1;
  display: grid;
  place-items: center;
  line-height: 1.45;
  transition: background 0.3s var(--ease);
}
.p-card a:hover .p-label { background: #081c26; }

.practice-credentials { margin: 2rem 0 0; color: var(--muted); font-size: .95rem; text-align: center; }
.practice-credentials span { padding-inline: .6rem; color: var(--gold); }

/* ---------- about ---------- */
.about {
  padding: clamp(5rem, 9vw, 8.5rem) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about-aside { position: sticky; top: calc(var(--nav-h) + 2rem); }
.about-photo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.9rem;
  box-shadow: 0 30px 60px -35px rgba(13, 43, 58, 0.35);
}
.about-photo img { width: 100%; height: 26rem; object-fit: cover; object-position: center 18%; }
.about-aside .aside-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.1rem;
  border-top: 2px solid var(--gold);
  margin-top: 1.6rem;
}
.aside-caption .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.aside-caption .role { font-size: 0.88rem; font-weight: 600; color: #5b6b75; }

.about-copy .lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.7rem;
}
.about-copy .pull {
  margin: 2.2rem 0;
  padding: 1.5rem 1.9rem;
  border-inline-start: 3px solid var(--gold);
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 18px 40px -28px rgba(13, 43, 58, 0.3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  text-align: center;
  background: #0d2b3a;
}
.cta-band h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  max-width: 22ch;
  margin: 0 auto 2.5rem;
}
.cta-band .cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- contact ---------- */
.contact { padding: clamp(5rem, 9vw, 8.5rem) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 30px 60px -40px rgba(13, 43, 58, 0.3);
}
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.85rem 1.05rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  width: 100%;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa7ad; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(143, 113, 56, 0.18);
}
.field .error {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c0392b;
}
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field.has-error .error { display: block; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-note a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.field .iti { width: 100%; }
.field .iti__country-container { direction: ltr; }
.field .iti__country-selector {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: 0 18px 45px -24px rgba(13, 43, 58, 0.45);
}
.field .iti__search-input { font-family: var(--font-body); }
.field .iti__country { font-family: var(--font-body); }
.field .iti__country.iti__highlight { background: var(--gold-soft); }
.field.has-error .iti input { border-color: #a63f35; }

.form-status[hidden] { display: none; }
.form-status {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-block: 1px solid var(--line);
  border-inline-start: 3px solid;
  background: rgba(255, 255, 255, 0.72);
  animation: form-status-in 0.24s var(--ease) both;
}
.form-status:focus { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-status-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border-radius: 50%;
}
.form-status-icon svg { width: 1.05rem; height: 1.05rem; }
.form-status-copy { display: grid; gap: 0.1rem; min-width: 0; }
.form-status-copy strong { color: var(--ink); font-size: 1rem; font-weight: 700; }
.form-status-copy > span { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.form-status-copy a { color: currentColor; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-success { border-inline-start-color: #39705f; }
.form-success .form-status-icon { color: #285748; background: #dcebe5; }
.form-error { border-inline-start-color: #a63f35; }
.form-error .form-status-icon { color: #8b3028; background: #f5dfdc; }
@keyframes form-status-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.contact-form .btn[aria-busy="true"] {
  position: relative;
  color: transparent;
  cursor: wait;
}
.contact-form .btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1rem;
  aspect-ratio: 1;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: form-spin 0.7s linear infinite;
}
@keyframes form-spin { to { transform: rotate(360deg); } }
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.contact-details {
  display: grid;
  gap: 0;
  align-content: start;
  height: 100%;
  border-top: 3px solid var(--ink);
  padding-top: 0.4rem;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.detail-row > svg {
  width: 2.85rem;
  height: 2.85rem;
  flex: none;
  padding: 0.72rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  box-sizing: border-box;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.detail-row:hover > svg {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.detail-row .label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.detail-row .value { font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.detail-row a.value:hover { color: var(--gold); }
.detail-row .ltr { direction: ltr; unicode-bidi: embed; }

.map-frame {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -40px rgba(13, 43, 58, 0.35);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 24rem;
  border: 0;
  filter: grayscale(0.25) contrast(1.02);
}

/* ---------- footer ---------- */
.site-footer { background: #0b2532; color: rgba(241, 245, 246, 0.72); }
.site-footer .social-link { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.site-footer .social-link:hover { background: #16405a; border-color: #16405a; color: #fff; }
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 3rem;
}
.footer-brand img { height: 3rem; width: auto; margin-bottom: 1.3rem; }
.footer-brand p { color: rgba(241, 245, 246, 0.55); font-size: 0.98rem; max-width: 34ch; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a, .footer-col li span { color: rgba(241, 245, 246, 0.72); font-size: 0.96rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--gold-bright, #d9b266); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.86rem;
  color: rgba(241, 245, 246, 0.5);
}
.footer-bottom a, .footer-bottom button {
  background: none;
  border: 0;
  color: rgba(241, 245, 246, 0.5);
  font-family: var(--font-body);
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom button:hover { color: var(--gold); }

/* ---------- accessibility dialog ---------- */
.a11y-dialog {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0;
  max-width: 44rem;
  width: calc(100% - 2.5rem);
  max-height: 82dvh;
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(13, 43, 58, 0.5);
}
.a11y-dialog::backdrop { background: rgba(13, 43, 58, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.a11y-dialog .dialog-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 2rem;
}
.a11y-dialog h3 { font-size: 1.35rem; }
.a11y-dialog .dialog-body { padding: 1.6rem 2rem 2.2rem; font-size: 0.98rem; }

/* ---------- subpage (practice) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5b6b75;
  margin-bottom: 1.8rem;
}
.page-hero .breadcrumb a { color: var(--gold-dark); }
.page-hero .breadcrumb a:hover { color: #63491f; }
.page-hero .breadcrumb svg { width: 0.75em; height: 0.75em; }
.page-hero-row { display: flex; align-items: center; gap: clamp(1.5rem, 3.5vw, 3rem); }
.page-hero-row > div { min-width: 0; }
.page-hero .icon {
  width: clamp(5.5rem, 9vw, 7.5rem);
  height: clamp(5.5rem, 9vw, 7.5rem);
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  box-shadow: 0 20px 45px -22px rgba(13, 43, 58, 0.45);
}
.page-hero .icon img { width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 900; }
.page-hero h1, .page-hero .page-sub { overflow-wrap: anywhere; }
.page-hero .page-sub {
  margin-top: 1rem;
  max-width: 48ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: #5b6b75;
}

.article { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.article-body { max-width: 46rem; }
.article-body h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  font-weight: 800;
  margin: 2.2em 0 0.8em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.3rem; margin: 1.8em 0 0.6em; }
.article-body > p.lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 700;
}
.article-body strong { color: var(--ink); }

ul.checks { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.85rem; }
ul.checks li {
  position: relative;
  padding-inline-start: 2rem;
  line-height: 1.65;
}
ul.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.32em;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

ol.steps { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 0;
  padding-inline-start: 3.4rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
ol.steps li::before {
  content: counter(step, hebrew);
  position: absolute;
  inset-inline-start: 0;
  top: 1.05rem;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
}
html[lang="ru"] ol.steps li::before { content: counter(step); }

.why-panel {
  margin-top: 3rem;
  background: var(--bg-2);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.why-panel h2 { color: var(--gold); margin-top: 0 !important; }

.related { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.related h2 { font-size: 1.5rem; margin-bottom: 1.4rem; }
.related-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; margin: 0; padding: 0; }
.related-chips a {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.related-chips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* LTR (Russian) adaptations */

[dir="ltr"] .drop-menu { translate: -50% 0; }
[dir="ltr"] .kicker { letter-spacing: 0.12em; }

/* ---------- cookie consent ---------- */
.consent { display: none; position: relative; padding: 1rem clamp(1.25rem, 6vw, 6rem); background: var(--bg-2); border-bottom: 1px solid var(--line); gap: 2rem; align-items: center; justify-content: space-between; }
.consent.is-visible { display: flex; }
.consent p { margin: 0; max-width: 65ch; font-size: .9rem; }
.consent-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.consent-actions .btn { padding: 0.7rem 1.5rem; font-size: 0.92rem; }

/* ---------- accessibility widget ---------- */
.a11y-fab {
  position: fixed;
  bottom: 1.4rem;
  inset-inline-start: 1.4rem;
  z-index: 118;
  width: 3.7rem;
  height: 3.7rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 34px -14px rgba(13, 43, 58, 0.5);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.a11y-fab svg { width: 1.8rem; height: 1.8rem; }
.a11y-fab:hover { background: #081c26; border-color: #081c26; transform: translateY(-2px); }

.a11y-panel {
  position: fixed;
  bottom: 5.7rem;
  inset-inline-start: 1.4rem;
  z-index: 118;
  width: min(21rem, calc(100vw - 2.8rem));
  max-height: min(34rem, calc(100dvh - 12rem));
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: 0 30px 70px -25px rgba(13, 43, 58, 0.45);
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.a11y-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.a11y-panel h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.a11y-panel .a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.a11y-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.9rem;
  padding: 0.45rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.a11y-opt:hover { border-color: var(--ink); }
.a11y-opt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.a11y-panel .a11y-reset {
  width: 100%;
  margin-top: 0.6rem;
  background: var(--ink);
  color: #fff;
}
.a11y-panel .a11y-reset:hover { background: #081c26; border-color: #081c26; }
.a11y-panel .a11y-stmt {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.a11y-panel .a11y-stmt:hover { color: var(--gold); }

/* ---------- accessibility adjustment modes ---------- */
html.a11y-contrast {
  --bg: #000000;
  --bg-2: #111111;
  --bg-3: #1b1b1b;
  --ink: #ffffff;
  --text: #f2f2f2;
  --muted: #d5d5d5;
  --gold: #d9b266;
  --gold-dark: #ecd39a;
  --gold-soft: #0a2a30;
  --cream: #111111;
  --line: rgba(255, 255, 255, 0.35);
  --line-strong: rgba(255, 255, 255, 0.55);
}
html.a11y-contrast .site-header { background: rgba(0, 0, 0, 0.92); }
html.a11y-contrast .cta-band, html.a11y-contrast .site-footer { background: #050505; }
html.a11y-contrast .btn-light { background: #fff; color: #000; }
html.a11y-contrast .hero {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.7) 46%, rgba(0, 0, 0, 0.5) 100%),
    url('../img/hero-bg.jpg') left bottom / cover no-repeat, #000;
}
html.a11y-contrast .p-card a,
html.a11y-contrast .contact-form,
html.a11y-contrast .about-photo,
html.a11y-contrast .consent,
html.a11y-contrast .a11y-panel,
html.a11y-contrast .mobile-menu,
html.a11y-contrast .drop-menu,
html.a11y-contrast .why-panel,
html.a11y-contrast .about-copy .pull { background: #111; }
html.a11y-contrast .a11y-opt { background: #1d1d1d; }
html.a11y-contrast .a11y-fab { background: #111; }
html.a11y-contrast .field input, html.a11y-contrast .field textarea { background: #000; color: #fff; }
html.a11y-contrast .field .iti__country-selector,
html.a11y-contrast .form-status { background: #111; color: #fff; }
html.a11y-contrast .form-status-copy strong,
html.a11y-contrast .form-status-copy > span { color: #fff; }
html.a11y-contrast img:not(.brand img):not(.footer-brand img) { filter: brightness(0.85); }

html.a11y-gray main,
html.a11y-gray .site-header,
html.a11y-gray .site-footer { filter: grayscale(1); }

html.a11y-links main a, html.a11y-links footer a { text-decoration: underline !important; text-underline-offset: 3px; }

html.a11y-font { --font-display: 'Assistant', 'Segoe UI', sans-serif; }
html[lang="ru"].a11y-font { --font-display: 'Rubik', 'Segoe UI', sans-serif; }

html.a11y-lineheight body { line-height: 2; }
html.a11y-spacing body { letter-spacing: 0.045em; }

html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-no-motion .reveal { opacity: 1 !important; transform: none !important; }

html.a11y-no-images img { visibility: hidden !important; }
html.a11y-no-images .hero,
html.a11y-no-images[dir="ltr"] .hero {
  background: var(--bg) !important;
}

html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7.5 18 2.6-7.4L20.5 10z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 3 2, auto !important;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- shared editorial system ---------- */
section[id], main[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
:root { --nav-h: 80px; }
.site-header, .site-header.is-scrolled { position: sticky; top: 0; background: #fff; backdrop-filter: none; height: var(--nav-h); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; gap: 2rem; }
.brand img { height: 3.15rem; width: auto; }
.main-nav { gap: 2.4rem; }
.main-nav > a, .nav-drop > button { font-weight: 400; font-size: 1.125rem; }
.language-switch { display: flex; align-items: center; gap: .6rem; font-size: .875rem; white-space: nowrap; }
.language-switch > [aria-current] { color: var(--ink); font-weight: 600; }
.language-switch a { color: var(--muted); }
.language-switch a:hover { color: var(--ink); text-decoration: underline; }
.drop-menu { min-width: 18rem; }
.nav-drop:hover .drop-menu { opacity: 0; visibility: hidden; transform: translateY(8px); }
.nav-drop.is-open .drop-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu { visibility: hidden; transition: transform .25s, visibility .25s; overflow-y: auto; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu nav > a, .mobile-practices summary { padding: .8rem 0; font-size: 1.25rem; font-weight: 400; border-bottom: 1px solid var(--line); }
.mobile-practices summary { cursor: pointer; color: var(--ink); }
.mobile-practices > div { padding: .5rem 0; }
.mobile-menu nav .mobile-practices a { display: block; padding: .45rem .6rem; font-size: 1rem; font-weight: 400; }
.menu-foot { gap: 1rem; padding-top: 1.5rem; }
.sec-title { text-align: start; margin-bottom: 2.5rem; }
.sec-title h2 { font-size: clamp(2rem, 3.3vw, 3rem); font-weight: 400; }
.sec-title h2::after { margin: .9rem 0 0; height: 2px; width: 2.3rem; }
.sec-title p { margin: 1.1rem 0 0; }
.btn, .btn:hover { box-shadow: none; transform: none; transition: background .18s, color .18s, border-color .18s; border-radius: 0; }
.btn { min-height: 46px; white-space: normal; line-height: 1.4; }
.about { background: #f4f3ef; padding: 5rem 0; }
.about-grid { grid-template-columns: .85fr 1.15fr; }
.about-aside { position: static; }
.about-photo { padding: 0; border: 0; box-shadow: none; }
.about-photo img { height: 32rem; }
.about-copy .lead { font-weight: 400; font-size: 1.6rem; }
.about-credential { font-weight: 600; color: var(--gold-dark); }
.about-copy .pull { box-shadow: none; padding: .3rem 1.5rem; background: transparent; font-weight: 400; }
.biography { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); margin-top: 1.8rem; }
.biography summary { color: var(--ink); font-weight: 600; cursor: pointer; padding: 1rem 0; }
.biography > div { padding-bottom: 1rem; }
.contact { padding: 5rem 0; }
.contact-form { box-shadow: none; background: var(--bg-2); border: 0; padding: 2rem; }
.optional { color: var(--muted); font-weight: 400; }
.cta-band h2 { font-weight: 400; }
.page-hero { background: #0b2635; padding: 3rem 0 4rem; }
.page-hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.6rem); }
.page-hero .page-sub { color: #dbe4e8; font-weight: 400; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: #c9d4db; }
.practice-index { font-size: 1.2rem; font-weight: 300; color: #c6ad7a; align-self: start; padding-top: .8rem; }
.article-body { max-width: 76ch; margin-inline: auto; }
.article-body h2 { font-weight: 500; }
.article-body .lead { font-weight: 500; }
.related h2 { font-weight: 400; }
.wa-float { width: 3rem; height: 3rem; bottom: 1rem; inset-inline-end: 1rem; box-shadow: 0 3px 12px #0002; }
.wa-float::before, .wa-float::after { display: none; }
.a11y-fab { width: 2.75rem; height: 2.75rem; bottom: 1rem; inset-inline-start: 1rem; }
.reveal { transform: translateY(12px); transition-duration: .35s; }
html.a11y-no-images .hero, html.a11y-no-images[dir="ltr"] .hero { background: var(--bg) !important; }
html.a11y-no-images .hero-visual { background-image: none; }
html.a11y-contrast .hero-ctas, html.a11y-contrast .contact-form { background: #000; }
html.a11y-contrast .hero-phone, html.a11y-contrast .hero h1, html.a11y-contrast .hero-sub { color: #fff; }
html.a11y-contrast .hero-role { color: #e0c485; }

html[lang="he"] .hero h1 {
  font-family: 'Assistant', 'Segoe UI', sans-serif;
  font-size: clamp(3rem, 6.4vw, 5.75rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
}

/* ---------- error documents ---------- */
.error-page {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(46rem, calc(100svh - var(--nav-h)));
  overflow: hidden;
  color: #fff;
  background-color: #081f2c;
  background-image: url('../img/hero-navy-backdrop.webp');
  background-position: center;
  background-size: cover;
}
.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 23, 33, .82);
}
.error-layout {
  display: grid;
  grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  width: 100%;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.error-mark {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
.error-code {
  color: rgba(255, 255, 255, .06);
  font-family: var(--font-display);
  font-size: clamp(8rem, 17vw, 14rem);
  font-weight: 700;
  line-height: .72;
  letter-spacing: 0;
  -webkit-text-stroke: 1px rgba(216, 193, 142, .62);
}
.error-status {
  color: #d8c18e;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}
.error-copy {
  max-width: 43rem;
  padding-inline-start: clamp(2rem, 5vw, 4.5rem);
  border-inline-start: 1px solid rgba(216, 193, 142, .52);
}
.error-kicker {
  color: #d8c18e;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.error-copy h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}
.error-message {
  max-width: 38ch;
  color: #dbe4e8;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
}
.error-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.25rem;
}
.error-help {
  color: #b9c8cf;
  font-size: .95rem;
  margin-top: 2rem;
}
.error-help a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
html.a11y-no-images .error-page { background-image: none; }
html.a11y-contrast .error-page { background: #000; }
html.a11y-contrast .error-page::before { display: none; }
/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .header-inner { display: flex; }
  .main-nav { display: none; }
  .site-header .header-actions .header-social { display: none; }
  .site-header .header-actions > .language-switch { border-inline-start: 0; padding-inline-start: 0; }
  .practice-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-toggle { display: block; }
  .brand { margin-inline-end: auto; }
  .hero-copy { padding-inline: 2rem; }
  .hero h1 { font-size: 8.3vw; }
  .hero-role { margin-bottom: 1.2rem; }
  .hero-line { margin-top: 1.4rem; }
  .hero-grid { min-height: 610px; }
  .hero-ctas { min-width: 0; width: 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .consent { flex-wrap: wrap; gap: .75rem; }
  .about-grid { gap: 2rem; }
  .aside-caption { flex-wrap: wrap; gap: .4rem; }
  .error-help { margin-inline: 3rem; text-align: center; }
}
@media (max-width: 680px) {
  :root { --nav-h: 70px; }
  .header-inner { gap: 1rem; }
  .brand img { height: 2.7rem; }
  .language-switch { font-size: .8rem; gap: .4rem; }
  .hero {
    --mobile-hero-height: max(600px, calc(100svh - var(--nav-h)));
    --mobile-portrait-width: min(68vw, 17rem);
    --mobile-portrait-height: calc(var(--mobile-portrait-width) * 1.5);
    background: url('../img/hero-navy-backdrop.webp') 43% center / cover no-repeat,
                var(--ink);
  }
  .hero-grid {
    position: relative;
    display: block;
    min-height: var(--mobile-hero-height);
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    min-height: var(--mobile-hero-height);
    border: 0;
    padding: clamp(1.5rem, calc((var(--mobile-hero-height) - var(--mobile-portrait-height) - 12rem) / 2), 6rem) 1.25rem 0;
    text-align: center;
  }
  .hero h1 { color: #fff; line-height: 1.03; letter-spacing: 0; }
  html[lang="he"] .hero h1 { font-size: 2.5rem; }
  html[lang="ru"] .hero h1 { font-size: 2.25rem; }
  .hero-role { color: #d8c18e; font-size: .85rem; line-height: 1.4; margin-bottom: .5rem; }
  .hero-line { margin: .8rem auto; }
  .hero-sub { color: #fff; font-size: 1.05rem; line-height: 1.45; margin-bottom: 0; }
  .hero-ctas {
    position: absolute;
    top: calc(100% - var(--mobile-portrait-height) + 2.5rem);
    right: 1.25rem;
    z-index: 3;
    width: 7rem;
    gap: .35rem;
  }
  .hero-ctas .btn { min-width: 0; min-height: 44px; gap: .35rem; font-size: .85rem; padding: .6rem; background: #fff; border-color: #fff; color: var(--ink); }
  .hero-ctas .btn:hover { background: #e9edf0; border-color: #e9edf0; }
  .hero-ctas .btn svg { flex-shrink: 0; width: 1rem; height: 1rem; }
  .hero-cta-full { display: none; }
  .hero-cta-mobile { display: inline; }
  .hero-phone { color: #fff; font-size: 1rem; line-height: 1.3; padding-block: .2rem; white-space: nowrap; }
  .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    height: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
  }
  .hero-visual::before { display: none; }
  .hero-visual img {
    right: auto;
    bottom: 0;
    left: .75rem;
    width: var(--mobile-portrait-width);
    height: auto;
    object-fit: contain;
    object-position: left bottom;
  }
  .practice { padding: 2.5rem 0; }
  .p-label { font-size: 1rem; }
  .practice-credentials { font-size: .88rem; line-height: 1.8; }
  .practice-credentials span { display: block; height: .3rem; font-size: 0; }
  .about, .contact { padding: 3.25rem 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo img { height: 26rem; }
  .about-copy .lead { font-size: 1.4rem; }
  .contact-form { padding: 1.25rem; }
  .contact-form .btn { width: 100%; }
  .page-hero { padding: 2rem 0 3rem; }
  .page-hero-row { gap: 1rem; }
  .breadcrumb { flex-wrap: wrap; }
  .page-hero .page-sub { font-size: 1.05rem; }
  .article { padding: 3rem 0; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { padding-bottom: 4rem; }
  .consent-actions .btn { padding: .6rem 1rem; }
  .error-page { min-height: calc(100svh - var(--nav-h)); background-position: 42% center; }
  .error-layout { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; padding-block: 3.5rem; }
  .error-mark { justify-items: start; gap: .8rem; }
  .error-code { font-size: clamp(7rem, 35vw, 10rem); }
  .error-copy { padding: 1.8rem 0 0; border-inline-start: 0; border-top: 1px solid rgba(216, 193, 142, .52); }
  .error-copy h1 { font-size: 2.65rem; }
  .error-message { font-size: 1.05rem; }
  .error-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .error-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; }
}

@media (max-width: 560px) {
  .practice-cards { grid-template-columns: minmax(0, 1fr); }
}
