/* ==========================================================================
   Gross Mitnitski Law Office — lawgm.work
   Values measured from the original lawgm.net (fonts, sizes, colours, spacing).
   One shared stylesheet; CSS logical properties serve Hebrew (RTL) + Russian (LTR).
   ========================================================================== */

:root {
  --navy:      #132842;   /* headings, body-on-light, contact + footer bg */
  --navy-2:    #1c3552;
  --steel:     #5b738f;   /* practice circles, secondary */
  --steel-600: #4e7391;
  --cyan:      #00b2dc;   /* accent / hover */
  --ink:       #132842;
  --text:      #333333;
  --muted:     #5d6b79;
  --line:      #e3e9ee;
  --bg:        #ffffff;
  --bg-soft:   #f4f7f9;

  --container: 1140px;
  --radius:    12px;
  --shadow:    0 10px 30px rgba(19,40,66,.08);
  --shadow-lg: 0 24px 60px rgba(19,40,66,.16);
  --ring:      0 0 0 3px rgba(0,178,220,.45);

  --ff:      "Open Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --ff-disp: "Cinzel", Georgia, "Times New Roman", serif;

  --pad: clamp(4rem, 10vw, 150px);   /* section vertical padding (orig 150px) */
  --step: 0px;
  --header-h: 92px;
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body { font-family: var(--ff); font-size: calc(1.125rem + var(--step)); line-height: 1.6; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--steel-600); text-underline-offset: 2px; }
a:hover { color: var(--cyan); }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

/* ----- A11y helpers ----------------------------------------------------- */
.skip-link { position: fixed; inset-block-start: -120%; inset-inline-start: 16px; z-index: 1000; background: var(--navy);
  color: #fff; padding: 12px 18px; border-radius: 0 0 10px 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { inset-block-start: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ----- Layout primitives ------------------------------------------------ */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--pad); }
.section--navy { background: var(--navy); color: #eaf1f6; position: relative; isolation: isolate; }

.section-head { max-width: 830px; margin-inline: auto; text-align: center; margin-block-end: 3rem; }
.eyebrow { font-family: var(--ff-disp); font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); font-size: 1rem; display: inline-flex; align-items: center; gap: .9rem; margin-block-end: 1.1rem; }
.eyebrow::before, .eyebrow::after { content: ""; width: 46px; height: 1px; background: currentColor; opacity: .55; }
.section--navy .eyebrow { color: #fff; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.08; font-weight: 600; }
.section-head h2 { font-size: clamp(2.4rem, 5.4vw, 4.18rem); font-weight: 600; color: var(--navy); }
.section--navy .section-head h2 { color: #fff; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.375rem); font-weight: 400; line-height: 1.5; color: var(--navy); }
.section--navy .lead { color: #d3deea; }
p + p { margin-block-start: 1rem; }

/* ----- Buttons ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; background: var(--steel-600); color: #fff;
  padding: .85rem 1.9rem; border: 1px solid transparent; border-radius: 4px; font-weight: 600; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { color: #fff; background: var(--navy); transform: translateY(-2px); }
.btn--cyan { background: var(--cyan); color: #04222b; }
.btn--cyan:hover { background: #03c4f0; color: #04222b; }
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ----- Header (floats over hero, solid on scroll) ----------------------- */
.site-header { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,20,32,.6), rgba(10,20,32,0)); transition: opacity .3s; }
.site-header.is-solid { background: rgba(19,40,66,.96); backdrop-filter: saturate(140%) blur(8px); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.site-header.is-solid::before { opacity: 0; }
.nav { display: flex; align-items: center; gap: 1.4rem; min-height: var(--header-h); }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 38px; width: auto; }
.nav__list { display: flex; align-items: center; gap: 1.7rem; margin-inline-start: auto; }
.nav__list a { color: #eef4f8; text-decoration: none; font-weight: 600; font-size: 1rem; padding: .4rem 0; position: relative; }
.nav__list a::after { content: ""; position: absolute; inset-block-end: -2px; inset-inline: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: inline-start; transition: transform .2s; }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); text-decoration: none; transition: background .2s, transform .15s; }
.icon-btn:hover { background: var(--cyan); color: var(--navy); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.lang-switch { display: inline-flex; align-items: center; font-weight: 600; }
.lang-switch a { text-decoration: none; color: #b9c7d4; padding: .3rem .55rem; border-radius: 8px; }
.lang-switch a[aria-current="true"] { color: #fff; background: rgba(255,255,255,.14); }
.nav__toggle { display: none; }
@media (max-width: 880px) {
  .nav__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-inline-start: auto; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; color: #fff; }
  .nav__toggle svg { width: 22px; height: 22px; }
  .nav__menu { position: fixed; inset-block-start: var(--header-h); inset-inline: 0; z-index: 99; background: var(--navy); display: grid; gap: .25rem; padding: 1rem 1.2rem 1.4rem; box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .28s ease; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav__menu[data-open="true"] { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; margin: 0; }
  .nav__list a { padding: .85rem .4rem; border-block-end: 1px solid rgba(255,255,255,.12); }
  .nav__tools { margin-block-start: .8rem; justify-content: space-between; }
}

/* ----- Hero (full-viewport video, centered) ----------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; background: var(--navy); }
.hero__media, .hero__media .hero__poster, .hero__media .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media { z-index: -3; }
.hero__scrim { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(10,20,32,.62) 0%, rgba(14,26,40,.5) 45%, rgba(16,30,46,.72) 100%); }
.hero__watermark { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.hero__watermark svg { height: min(56%, 440px); width: auto; opacity: .07; }
.hero__watermark text { fill: #fff; font-family: var(--ff-disp); font-weight: 700; }
.hero__inner { max-width: 980px; padding: calc(var(--header-h) + 1rem) 1.2rem 5rem; }
.hero__brand-en { font-family: var(--ff-disp); font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; font-size: clamp(1.6rem, 4.4vw, 3.2rem); line-height: 1.18; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero__name { margin-block-start: .5rem; font-size: clamp(1.7rem, 4.6vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.1; text-shadow: 0 2px 22px rgba(0,0,0,.5); }
.hero__tagline { margin: 1.3rem auto 0; max-width: 40ch; font-size: clamp(1.05rem, 2.1vw, 1.625rem); font-weight: 400; color: #eef4f8; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.hero__discover { position: absolute; inset-inline: 0; inset-block-end: 1.6rem; z-index: 1; margin-inline: auto; width: max-content; display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; color: #eaf1f6; text-decoration: none; font-family: var(--ff-disp); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; }
.hero__discover:hover { color: #fff; }
.hero__discover svg { width: 20px; height: 20px; fill: currentColor; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } .hero__discover svg { animation: none; } }

/* ----- Practice: white, centered, steel circle icons -------------------- */
.features { display: grid; gap: 2.6rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-block-start: 1.5rem; }
.feature { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; padding-inline: .5rem; }
.feature__icon { width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; background: var(--steel); color: #fff; transition: transform .2s, box-shadow .2s; }
.feature:hover .feature__icon { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(91,115,143,.4); }
.feature__icon svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 1.3; }
.feature h3 { font-size: 1.125rem; font-weight: 500; color: #000; max-width: 19ch; }

/* ----- Full-width image divider bands ----------------------------------- */
.divider { height: clamp(320px, 46vw, 640px); background-size: cover; background-position: center; }
.divider--services { background-image: url("../img/services.jpg"); }
.divider--contact  { background-image: url("../img/contact.jpg"); }
@media (min-width: 1025px) { .divider { background-attachment: fixed; } }

/* ----- About: centered heading, text + office photo --------------------- */
.about__grid { display: grid; gap: 2.6rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 920px) { .about__grid { grid-template-columns: .9fr 1.5fr; } .about__photo { order: -1; } }
.about__body p { margin-block-start: 1.1rem; text-align: start; color: var(--navy); font-size: 1.125rem; line-height: 1.65; }
.about__body .partners { margin-block-start: 1.4rem; display: grid; gap: 1rem; }
.about__photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.about__photo img { width: 100%; max-height: 560px; object-fit: cover; }
.about__photo figcaption { font-size: .85rem; color: var(--muted); padding: .6rem .9rem; text-align: center; }

/* ----- Contact: navy, minimalist underline form ------------------------- */
.section--navy::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/bg3.jpg") center / cover; opacity: .12; }
.contact__grid { display: grid; gap: 2.8rem; grid-template-columns: 1fr; }
@media (min-width: 940px) { .contact__grid { grid-template-columns: .9fr 1.1fr; } .contact__info { order: -1; } }
.form { display: grid; gap: 1.4rem; }
.field label { display: block; font-size: 1rem; color: #c5d3df; margin-block-end: .35rem; }
.field input, .field textarea { width: 100%; padding: .7rem .2rem; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: inherit; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--cyan); }
.field textarea { resize: vertical; min-height: 90px; }
.form__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-block-start: .5rem; }
.form__note { font-size: .9rem; color: #aebccb; }
.form__note button { background: none; border: 0; color: var(--cyan); font-weight: 600; text-decoration: underline; padding: 0; }
.contact__info { display: grid; gap: 1.5rem; align-content: start; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: inherit; }
.info-row__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--cyan); border: 1px solid rgba(255,255,255,.18); }
.info-row__icon svg { width: 21px; height: 21px; fill: currentColor; }
.info-row__label { font-size: .85rem; color: #9fb1c0; }
.info-row strong { color: #fff; font-size: 1.08rem; font-weight: 600; }
.info-row:hover .info-row__icon { background: var(--cyan); color: var(--navy); }
.disclaimer { margin-block-start: 2.4rem; font-size: .85rem; color: #9fb1c0; line-height: 1.7; }
.disclaimer summary { cursor: pointer; font-weight: 600; color: #cdd9e3; margin-block-end: .5rem; font-size: 1.05rem; }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy); color: #bccada; padding-block: 3rem 1.4rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer img { height: 36px; margin-block-end: 1rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-block-end: .9rem; }
.site-footer a { color: #bccada; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__links { display: grid; gap: .5rem; }
.footer__bottom { margin-block-start: 2rem; padding-block-start: 1.2rem; border-block-start: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; font-size: .9rem; color: #9fb2c0; }

/* ----- Sub-page banner + prose ------------------------------------------ */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--steel-600)); color: #eaf1f6; padding-block-start: var(--header-h); }
.page-hero__inner { padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; }
.page-hero p { color: #cfe0ec; margin-block-start: .5rem; }
.breadcrumb { font-size: .9rem; color: #bcd0df; margin-block-end: .6rem; }
.breadcrumb a { color: #d7e3ec; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-block: 2rem .6rem; color: var(--navy); }
.prose h3 { font-size: 1.15rem; margin-block: 1.4rem .4rem; }
.prose p { margin-block-start: .8rem; }
.prose ul { list-style: disc; padding-inline-start: 1.4rem; margin-block-start: .7rem; display: grid; gap: .4rem; }
.prose .callout { background: var(--bg-soft); border: 1px solid var(--line); border-inline-start: 4px solid var(--steel-600); border-radius: 10px; padding: 1.1rem 1.3rem; margin-block-start: 1.4rem; }
.prose a { font-weight: 600; }

/* ----- Floating WhatsApp ------------------------------------------------ */
.fab-wa { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.45); text-decoration: none; transition: transform .15s; }
.fab-wa:hover { transform: scale(1.07); color: #fff; }
.fab-wa svg { width: 30px; height: 30px; fill: currentColor; }

/* ==========================================================================
   Accessibility toolbar (self-hosted) + body states
   ========================================================================== */
.a11y-toggle { position: fixed; inset-block-end: 88px; inset-inline-end: 22px; z-index: 95; width: 52px; height: 52px; border-radius: 50%; background: var(--steel-600); color: #fff; border: 2px solid #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.a11y-toggle svg { width: 26px; height: 26px; fill: currentColor; }
.a11y-panel { position: fixed; inset-block-end: 88px; inset-inline-end: 22px; z-index: 96; width: min(320px, calc(100vw - 32px)); background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1.1rem 1.2rem; transform: scale(.9); transform-origin: bottom right; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
[dir="ltr"] .a11y-panel { transform-origin: bottom left; }
.a11y-panel[data-open="true"] { opacity: 1; visibility: visible; transform: scale(1); }
.a11y-panel h2 { font-size: 1.05rem; margin-block-end: .2rem; }
.a11y-panel p { font-size: .82rem; color: var(--muted); margin-block-end: .9rem; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-grid button { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--ink); font-size: .8rem; font-weight: 500; transition: background .15s, border-color .15s; }
.a11y-grid button:hover { background: #fff; border-color: var(--steel-600); }
.a11y-grid button[aria-pressed="true"] { background: var(--steel-600); color: #fff; border-color: var(--steel-600); }
.a11y-grid button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.a11y-reset { margin-block-start: .7rem; width: 100%; padding: .6rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--steel-600); font-weight: 600; }
.a11y-reset:hover { background: var(--bg-soft); }
body.a11y-contrast { --text:#000; --ink:#000; --muted:#1a1a1a; --bg:#fff; --bg-soft:#fff; --line:#000; filter: contrast(1.15); }
body.a11y-contrast .hero, body.a11y-contrast .section--navy, body.a11y-contrast .site-footer { background:#000 !important; color:#fff !important; }
body.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
body.a11y-readable, body.a11y-readable * { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: .01em; }
body.a11y-bigcursor, body.a11y-bigcursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1' d='M5 2l14 9-7 1 4 8-3 1-4-8-4 5z'/%3E%3C/svg%3E") 4 2, auto !important; }
body.a11y-no-anim *, body.a11y-no-anim *::before, body.a11y-no-anim *::after { animation: none !important; transition: none !important; }

@media print {
  .site-header, .fab-wa, .a11y-toggle, .a11y-panel, .hero__discover, .divider { display: none !important; }
  .hero, .section--navy { color:#000; background:#fff; }
  body { color:#000; }
}
