/* Правник — юридическая компания. Navy and white with the gold of the logo, a Playfair serif for headings, Onest for text. */
:root {
  --navy: #0a1628; --navy-2: #0f2038; --navy-3: #13284a; --ink: #0b1624; --text: #2a3342; --muted: #5d6676;
  --paper: #ffffff; --mist: #f7f4ee; --line: #e6e1d8; --line-dark: rgba(255,255,255,.12);
  --accent: #8f6f42; --accent-2: #7a5d35; --gold: #c9a46a; --gold-btn: #b8935a; --logo-ink: #1e1d1d; --logo-gold: #a1835a;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1240px; --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22,.7,.2,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--sans); overflow-x: hidden; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow.on-dark { color: var(--gold); }
.ar { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; font: 500 15.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn-gold { background: var(--gold-btn); color: var(--navy); }
.btn-gold:hover { background: var(--gold); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f3ede2; }
.btn svg:not(.ar) { width: 20px; height: 20px; flex: none; }
.ulink { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .35s var(--ease); }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }
.ulink:hover .ar { transform: translateX(4px); }
.ulink.on-dark { color: #fff; }

/* header: transparent over the hero, white once the page scrolls */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.hdr.solid { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 84px; }
/* the Pravnik logo, drawn from masks of the original so it takes the colours of whatever it sits on:
   the dark ink follows the text colour, the gold stays gold */
.logo { --lg: var(--gold); display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; color: inherit; }
.hdr.solid .logo, .hdr.menu .logo { --lg: var(--logo-gold); }
.lm { position: relative; flex: none; width: 47px; height: 45px; }
.lm i { position: absolute; inset: 0; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.lm-k { --m: url(/assets/brand/mark-k.png); background: currentColor; }
.lm-g { --m: url(/assets/brand/mark-g.png); background: var(--lg); }
.wm { display: grid; justify-items: start; line-height: 1; }
.wm-word { display: block; width: 136px; height: 18px; background: currentColor; -webkit-mask: url(/assets/brand/word-k.png) left center / contain no-repeat; mask: url(/assets/brand/word-k.png) left center / contain no-repeat; }
.wm small { display: flex; align-items: center; gap: 6px; font: 500 9.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; margin-top: 7px; opacity: .78; }
.wm small::before, .wm small::after { content: ""; width: 10px; height: 1px; background: var(--lg); }
.nav { display: flex; gap: 26px; margin: 0 auto; }
.nav a { white-space: nowrap; font-size: 15.5px; font-weight: 500; text-decoration: none; opacity: .92; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.nav a:hover { background-size: 100% 1px; }
.nav-only-m { display: none; }
.hdr-end { display: flex; align-items: center; gap: 18px; }
.lang { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-decoration: none; padding: 10px 4px; opacity: .85; }
.lang:hover { opacity: 1; }
.hdr-cta { min-height: 46px; padding: 0 20px; font-size: 14.5px; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 26px; }
.burger[aria-expanded="true"] i:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21.5px; transform: rotate(-45deg); }

/* hero: dark glass-and-steel backdrop, the portrait on the right */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(10,22,40,.96) 0%, rgba(10,22,40,.82) 42%, rgba(10,22,40,.25) 70%, rgba(10,22,40,.55) 100%),
    repeating-linear-gradient(100deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(10deg, rgba(255,255,255,.025) 0 1px, transparent 1px 120px),
    radial-gradient(120% 90% at 78% 30%, #2a4a78 0%, #13284a 45%, #0a1628 80%); }
.hero-photo { position: absolute; z-index: -1; right: max(0px, calc((100vw - 1500px) / 2)); bottom: 0; height: 100%; width: min(54vw, 800px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 22%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 22%); mask-composite: intersect; filter: saturate(.92) contrast(1.03); }
.hero-in { padding-top: 150px; padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { color: #fff; font-size: clamp(40px, 4.7vw, 66px); line-height: 1.06; letter-spacing: -.025em; max-width: 10.2em; }
.hero .lead { margin-top: 26px; max-width: 30em; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.65; font-weight: 300; color: rgba(255,255,255,.88); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 38px; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; color: var(--ink); padding: 0; max-width: none; margin: 0; }
.strip li { padding: 26px clamp(20px, 3vw, 44px); font-size: 17px; border-left: 1px solid var(--line); }
.strip li:first-child { border-left: 0; padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }

/* sections */
.sec { padding: clamp(80px, 10vw, 132px) 0; }
.sec-mist { background: var(--mist); }
.sec-navy { background: var(--navy); color: rgba(255,255,255,.86); }
.sec-navy h2 { color: #fff; }
.sec h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; }
.head2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.head2 .sub { color: var(--muted); font-size: 17.5px; }
.body { margin-top: 22px; max-width: 36em; color: var(--muted); }
.body.on-dark { color: rgba(255,255,255,.78); }

/* service cards: a horizontal rail of dark panels with line art */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 48px) / 3)); gap: 24px; margin-top: 52px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.card { position: relative; scroll-snap-align: start; min-height: 520px; display: flex; flex-direction: column; padding: 44px 40px 36px; background: var(--navy); color: rgba(255,255,255,.8); overflow: hidden; border-radius: 4px; isolation: isolate; }
.card .pat { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 68%; z-index: -1; transition: transform 1.2s var(--ease); }
.card:hover .pat { transform: scale(1.06); }
.card .tag { font: 600 11.5px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; margin-bottom: 26px; }
.card h3 { color: #fff; font-size: clamp(28px, 2.5vw, 34px); line-height: 1.1; }
.card p:not(.tag) { margin-top: 18px; font-size: 15.5px; line-height: 1.6; max-width: 26em; }
.card-a { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 0 2px; border-bottom: 1px solid rgba(255,255,255,.35); transition: border-color .25s; }
.card-a:hover { border-color: #fff; }
.card-a:hover .ar { transform: translateX(4px); }
.rail-ctl { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; }
.bar { position: relative; flex: 1; max-width: 420px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--ink); border-radius: 2px; transition: left .2s, width .2s; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.arrows button:hover:not(:disabled) { border-color: var(--ink); }
.arrows button:disabled { opacity: .35; cursor: default; }
.arrows svg { width: 16px; height: 16px; }
.next { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.next p:not(.eyebrow) { max-width: 46em; color: var(--text); }
.next .eyebrow { margin-bottom: 12px; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--accent); opacity: .45; z-index: 0; }
.about-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-sub { margin-top: 12px; font: italic 400 20px/1.4 var(--serif); color: var(--muted); }
.values { margin-top: 36px; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 52px minmax(0, 1fr); padding: 22px 0; border-bottom: 1px solid var(--line); }
.values span { font: 400 15px/1.7 var(--serif); color: var(--accent); }
.values b { font-weight: 500; color: var(--ink); font-size: 17.5px; }
.values p { margin-top: 4px; color: var(--muted); font-size: 16px; }

/* split sections on navy: text on the left, a card on the right */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split .btn { margin-top: 36px; }
.check { border: 1px solid var(--line-dark); border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.check-h { padding: 22px 30px; font: 600 12px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.7); border-bottom: 1px solid var(--line-dark); }
.check ol { padding: 14px 30px 18px; }
.check li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px; padding: 14px 0; }
.check li span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-size: 13px; line-height: 1; margin-top: 1px; }
.check li p { color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.55; }
.check-note { padding: 16px 30px; border-top: 1px solid var(--line-dark); font: italic 400 14px/1.5 var(--serif); color: rgba(255,255,255,.55); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 52px; border-top: 1px solid var(--line); }
.steps li { padding: 34px 28px 10px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.num { display: block; font: 400 52px/1 var(--serif); color: var(--accent); letter-spacing: -.02em; }
.steps h3 { margin-top: 26px; font-size: 25px; line-height: 1.15; }
.steps p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.prep { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 24px 48px; margin-top: 64px; padding: 40px; background: var(--mist); }
.prep h3 { font-size: 28px; line-height: 1.15; }
.prep ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.prep li { position: relative; padding-left: 30px; font-size: 16.5px; color: var(--text); }
.prep li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 32px 72px; }
.qa { border-top: 1px solid #d8dce4; }
.qa details { border-bottom: 1px solid #d8dce4; }
.qa summary { position: relative; display: block; cursor: pointer; padding: 26px 56px 26px 0; font: 400 clamp(20px, 1.9vw, 24px)/1.3 var(--serif); color: var(--ink); list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1.6px; background: var(--accent); transition: transform .3s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa details[open] summary i::after { transform: rotate(0); }
.qa details p { padding: 0 56px 28px 0; color: var(--muted); max-width: 44em; }

/* final call to action and the WhatsApp form */
.final h2 { font-size: clamp(38px, 4.8vw, 64px); }
.contacts { margin-top: 36px; border-top: 1px solid var(--line-dark); }
.contacts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.contacts span { font: 600 12px/1.9 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.contacts a, .contacts b { color: #fff; font-size: 19px; font-weight: 400; text-decoration: none; }
.contacts a:hover { color: var(--gold); }
.form { display: grid; gap: 16px; padding: clamp(26px, 3vw, 40px); background: #fff; color: var(--ink); border-radius: 6px; }
.form label { display: grid; gap: 8px; }
.form label span { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid #cdd3dd; border-radius: 4px; background: #fff; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(143,111,66,.2); }
.form .btn { justify-content: center; margin-top: 4px; }
.form-err { min-height: 0; color: #b42318; font-size: 14.5px; }
.form-err:empty { display: none; }
.form-hint { font-size: 13.5px; color: var(--muted); text-align: center; }

/* footer */
.foot { background: #07111f; color: rgba(255,255,255,.72); padding: 64px 0 36px; }
.foot .logo { color: #fff; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; }
.foot-nav a, .foot-c a { text-decoration: none; }
.foot-nav a:hover, .foot-c a:hover { color: #fff; }
.foot-c { display: grid; gap: 10px; justify-items: end; font-size: 15px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-top: 28px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.foot-legal p:first-child { max-width: 62em; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(10,22,40,.28); transition: transform .35s var(--ease), opacity .3s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float.hide { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* reveal */
.js .rv { opacity: 0; transform: translateY(16px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

@media (max-width: 1280px) {
  .nav { gap: 20px; }
  .nav a { font-size: 14.5px; }
  .hdr-cta { display: none; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 84px 0 auto; display: grid; gap: 0; margin: 0; padding: 8px var(--gut) 24px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px rgba(10,22,40,.15); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; background: none; }
  .nav-only-m { display: block; }
  .hdr.menu { background: #fff; color: var(--ink); }

  .head2, .about, .split, .faq { grid-template-columns: minmax(0, 1fr); }
  .head2 { align-items: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2) { border-right: 0; margin-right: 0; }
  .prep { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-c { justify-items: start; }
  .about-photo { max-width: 460px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hdr-in { height: 70px; gap: 12px; }
  .about-photo::before { inset: 14px -12px -14px 14px; }
  .hdr-end { gap: 6px; }
  .logo { min-width: 0; gap: 10px; }
  .nav { inset: 70px 0 auto; }
  html { scroll-padding-top: 70px; }
  .lm { width: 40px; height: 38px; }
  .wm small { font-size: 8.5px; letter-spacing: .2em; }
  .wm-word { width: 118px; height: 15.6px; }
  .hero { min-height: 0; justify-content: flex-start; }
  .hero-photo { position: relative; z-index: 0; right: auto; width: 100%; height: auto; aspect-ratio: 4 / 4.4; max-height: 62svh; }
  .hero-photo img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 34%); mask-image: linear-gradient(0deg, transparent 0%, #000 34%); -webkit-mask-composite: source-over; mask-composite: add; object-position: 50% 15%; }
  .hero-bg { background: radial-gradient(120% 60% at 60% 10%, #2a4a78 0%, #13284a 45%, #0a1628 80%); }
  .hero-in { position: relative; padding-top: 0; margin-top: -26%; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip li, .strip li:first-child { padding: 18px var(--gut); border-left: 0; border-top: 1px solid var(--line); font-size: 16px; }
  .strip li:first-child { border-top: 0; }
  .rail { grid-auto-columns: 86%; gap: 14px; margin-top: 36px; }
  .card { min-height: 470px; padding: 34px 28px 30px; }
  .next { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .steps li:last-child { border-bottom: 0; }
  .prep { padding: 28px 22px; }
  .prep ul { grid-template-columns: minmax(0, 1fr); }
  .check-h, .check ol, .check-note { padding-left: 20px; padding-right: 20px; }
  .split .btn { width: 100%; justify-content: center; }
  .qa summary { padding-right: 44px; }
  .qa details p { padding-right: 0; }
  .foot-legal { flex-direction: column; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
