/* =========================================================
   LEXARIUM — юридическая компания
   ========================================================= */

:root {
  --bg: #0b0d12;
  --bg-2: #10131a;
  --surface: #151922;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ece7dd;
  --muted: #8d919b;
  --gold: #c9a96e;
  --gold-2: #e3c891;
  --gold-dark: #8f7444;
  --ivory: #f4efe6;
  --ink: #12141a;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
em { font-style: italic; color: var(--gold); }
::selection { background: var(--gold); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 140px 0; position: relative; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.line-deco { width: 40px; height: 1px; background: currentColor; display: inline-block; }
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 5vw, 68px); line-height: 1.05; letter-spacing: -.01em;
  margin-bottom: 28px;
}
.section-title .line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lead { font-size: 19px; color: var(--text); margin-bottom: 18px; }
p { color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 70px; }
.section-head .section-title { margin-bottom: 0; max-width: 760px; }
.section-head__text { max-width: 360px; font-size: 16px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 32px; border-radius: 100px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold::before { background: var(--ivory); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover { color: var(--ink); border-color: var(--gold); }
.btn--sm { height: 46px; padding: 0 24px; font-size: 14px; }
.btn--wide { width: 100%; }

.round-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: all .4s var(--ease);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: grid; place-items: center;
}
html:not(.js) .preloader { display: none; }
.preloader__inner { text-align: center; }
.preloader__logo { font-family: var(--serif); font-size: clamp(48px, 9vw, 110px); letter-spacing: .12em; color: var(--ivory); display: flex; overflow: hidden; }
.preloader__logo span { display: inline-block; }
.preloader__bar { width: 220px; height: 1px; background: var(--line-2); margin: 26px auto 14px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.preloader__count { font-size: 12px; letter-spacing: .3em; color: var(--muted); }

/* ---------- Cursor / progress / grain ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--gold); }
.cursor__ring {
  width: 40px; height: 40px; border: 1px solid rgba(201, 169, 110, .5);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), background .4s, border-color .4s;
}
.cursor__ring span { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(201, 169, 110, .12); border-color: var(--gold); }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; background: var(--gold); border-color: var(--gold); }
.cursor.is-view .cursor__ring span { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
@media (hover: none), (max-width: 1024px) { .cursor { display: none; } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; z-index: 200; }

.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 4%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 7%); }
  80% { transform: translate(6%, -2%); }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 26px 0; transition: padding .5s var(--ease), background .5s, transform .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { padding: 14px 0; background: rgba(11, 13, 18, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); }
.logo__mark { width: 38px; height: 38px; stroke: none; }
.logo__mark path:first-child { stroke: currentColor; }
.logo__text { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .14em; color: var(--ivory); line-height: 1; display: flex; flex-direction: column; }
.logo__text small { font-family: var(--sans); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 5px; }

.nav { display: flex; gap: 34px; }
.nav a { position: relative; font-size: 14px; font-weight: 500; color: rgba(236, 231, 221, .8); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--ivory); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 22px; }
.header__phone { font-size: 14px; font-weight: 600; white-space: nowrap; }
.header__phone:hover { color: var(--gold); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger.is-open span:first-child { top: 22px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 32px 40px;
  clip-path: circle(0% at calc(100% - 55px) 50px); transition: clip-path .8s var(--ease);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 55px) 50px); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a { font-family: var(--serif); font-size: 44px; line-height: 1.2; color: var(--ivory); }
.mobile-menu nav a:hover { color: var(--gold); }
.mobile-menu__foot { margin-top: 50px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 160px 0 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 115%; object-fit: cover; object-position: center 40%; filter: grayscale(.4) brightness(.75); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(201,169,110,.12), transparent 60%),
    linear-gradient(90deg, rgba(11,13,18,.96) 0%, rgba(11,13,18,.82) 40%, rgba(11,13,18,.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: 80px; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(52px, 9vw, 140px); line-height: .95; letter-spacing: -.02em;
  color: var(--ivory); max-width: 1000px; margin-bottom: 36px;
}
.hero__title .line { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__lead { max-width: 560px; font-size: 18px; color: rgba(236, 231, 221, .75); margin-bottom: 44px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
}
.hero__stat { padding: 34px 0 44px; padding-right: 20px; }
.hero__stat + .hero__stat { padding-left: 32px; border-left: 1px solid var(--line); }
.hero__stat b { display: block; font-family: var(--serif); font-size: clamp(36px, 4vw, 54px); font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 10px; white-space: nowrap; }
.hero__stat span { font-size: 13px; color: var(--muted); letter-spacing: .02em; }

.hero__scroll { position: absolute; right: 32px; bottom: 210px; z-index: 3; width: 26px; height: 44px; border: 1px solid var(--line-2); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--gold); animation: scrollDot 2s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; overflow: hidden; background: var(--bg-2); }
.marquee__track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); font-style: italic; color: var(--ivory); white-space: nowrap; }
.marquee i { color: var(--gold); font-style: normal; font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about__media { position: relative; padding: 0 60px 80px 0; }
.about__img { overflow: hidden; border-radius: var(--radius); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { aspect-ratio: 4 / 5; }
.about__img--main img { height: 116%; margin-top: -8%; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid var(--bg); border-radius: calc(var(--radius) + 8px); }
.about__badge { position: absolute; top: 40px; right: 10px; width: 130px; height: 130px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); }
.about__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.about__badge-ring text { fill: var(--ink); stroke: none; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; font-family: var(--sans); }
.about__badge-num { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; }
.about__badge-num::after { content: "лет"; display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; text-align: center; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }

.values { list-style: none; margin: 40px 0; display: grid; gap: 24px; }
.values li { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.values__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); }
.values__icon svg { width: 22px; height: 22px; }
.values h4 { font-size: 17px; font-weight: 600; color: var(--ivory); margin-bottom: 2px; }
.values p { font-size: 15px; }

.about__sign { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.about__sign b { display: block; color: var(--ivory); font-weight: 600; }
.about__sign span { font-size: 14px; color: var(--muted); }
.signature { position: relative; flex: none; width: 220px; padding: 0 6px 14px; color: var(--gold-2); transform: rotate(-7deg); }
.about__sign .signature__text {
  display: block; color: var(--gold-2); font-family: "Bad Script", cursive; font-size: 40px; line-height: 1.1; white-space: nowrap;
  letter-spacing: -.02em; text-shadow: 0 0 1px rgba(227, 200, 145, .45);
}
.signature__flourish { position: absolute; left: 0; bottom: 0; width: 100%; height: 26px; stroke-width: 1.4; }

/* ---------- Practices ---------- */
.practices { background: var(--bg-2); }
.practices__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.practice {
  position: relative; padding: 44px 34px 90px; min-height: 380px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color .5s var(--ease);
}
.practice::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease);
}
.practice:hover::before { clip-path: inset(0 0 0 0); }
.practice__num { position: absolute; top: 40px; right: 34px; font-family: var(--serif); font-size: 20px; color: var(--muted); transition: color .5s; }
.practice__icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 70px; stroke-width: 1.3; transition: color .5s, transform .7s var(--ease); }
.practice h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.15; color: var(--ivory); margin-bottom: 14px; transition: color .5s; }
.practice p { font-size: 14.5px; transition: color .5s; }
.practice__arrow { position: absolute; left: 34px; bottom: 34px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .5s var(--ease); }
.practice__arrow svg { width: 18px; height: 18px; }
.practice:hover .practice__icon { color: var(--ink); transform: translateY(-6px) rotate(-6deg); }
.practice:hover h3, .practice:hover .practice__num { color: var(--ink); }
.practice:hover p { color: rgba(18, 20, 26, .75); }
.practice:hover .practice__arrow { background: var(--ink); border-color: var(--ink); color: var(--gold); transform: rotate(45deg); }

/* ---------- Approach ---------- */
.approach__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.approach__line { position: absolute; top: 32px; left: 32px; right: 32px; height: 1px; background: var(--line-2); }
.approach__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-2)); transform-origin: left; transform: scaleX(1); }
.step { position: relative; }
.step__dot {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 34px;
  background: var(--bg); border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--serif); font-size: 26px;
  box-shadow: 0 0 0 10px var(--bg);
}
.step h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--ivory); margin-bottom: 12px; }
.step p { font-size: 15px; margin-bottom: 18px; }
.step__time { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201, 169, 110, .3); padding: 6px 14px; border-radius: 100px; }

/* ---------- Team ---------- */
.team { background: var(--ivory); color: var(--ink); }
.team p { color: #6b6a68; }
.team .section-title { color: var(--ink); }
.team em { color: var(--gold-dark); }
.team .eyebrow { color: var(--gold-dark); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.member { cursor: pointer; }
.member__photo { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: #ddd5c6; margin-bottom: 22px; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 13, 18, .55), transparent 45%); opacity: 0; transition: opacity .6s; }
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.1); }
.member:hover .member__photo::after { opacity: 1; }
.member__socials { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: flex; gap: 10px; }
.member__socials a { width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); color: var(--ink); display: grid; place-items: center; transform: translateY(20px); opacity: 0; transition: all .5s var(--ease); }
.member__socials a:nth-child(2) { transition-delay: .06s; }
.member__socials a svg { width: 18px; height: 18px; }
.member__socials a:hover { background: var(--gold); }
.member:hover .member__socials a { transform: translateY(0); opacity: 1; }
.member__info h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.member__role { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin: 8px 0 6px; }
.member__info p { font-size: 14.5px; }

/* ---------- Cases ---------- */
.cases__list { border-top: 1px solid var(--line); }
.case {
  position: relative; display: grid; grid-template-columns: 180px 1fr auto 60px; align-items: center; gap: 40px;
  padding: 40px 0; border-bottom: 1px solid var(--line); cursor: pointer; isolation: isolate;
}
.case::before { content: ""; position: absolute; inset: 0 -32px; z-index: -1; background: var(--surface); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.case:hover::before { transform: scaleY(1); }
.case__tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.25; color: var(--ivory); transition: transform .6s var(--ease); }
.case:hover h3 { transform: translateX(12px); }
.case__sum { text-align: right; white-space: nowrap; }
.case__sum b { font-family: var(--serif); font-size: 54px; font-weight: 500; color: var(--gold); line-height: 1; }
.case__sum span { display: block; font-size: 13px; color: var(--muted); }
.case__arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .5s var(--ease); }
.case__arrow svg { width: 20px; height: 20px; }
.case:hover .case__arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(-45deg); }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-2); overflow: hidden; }
.reviews__nav { display: flex; gap: 12px; }
.reviews__slider { overflow: visible !important; }
.review {
  height: auto !important; padding: 48px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: border-color .5s, opacity .5s;
}
.review.swiper-slide-active, .review:hover { border-color: rgba(201, 169, 110, .4); }
.review__quote { width: 44px; height: 44px; fill: var(--gold); stroke: none; margin-bottom: 26px; }
.review p { font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ivory); margin-bottom: 36px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 16px; }
.review__avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(201, 169, 110, .14); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .05em; }
.review__author b { display: block; color: var(--ivory); font-weight: 600; }
.review__author small { color: var(--muted); font-size: 13px; }
.reviews__pagination { position: static !important; margin-top: 44px; display: flex; gap: 8px; }
.reviews__pagination .swiper-pagination-bullet { width: 30px; height: 2px; border-radius: 0; background: var(--line-2); opacity: 1; margin: 0 !important; transition: all .4s; }
.reviews__pagination .swiper-pagination-bullet-active { width: 60px; background: var(--gold); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 100px; align-items: start; }
.faq__note { margin-bottom: 30px; max-width: 360px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 30px 60px 30px 0; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ivory);
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold); }
.faq__item summary i { position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 1px solid var(--line-2); transition: all .4s var(--ease); }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .4s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 60px 30px 0; font-size: 16px; }

/* ---------- Contacts ---------- */
.contacts__card {
  display: grid; grid-template-columns: 7fr 5fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
}
.contacts__form-wrap { padding: 70px; }
.contacts__lead { margin-bottom: 40px; }
.contacts__info {
  padding: 70px 56px; display: flex; flex-direction: column; gap: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 169, 110, .18), transparent 55%),
    var(--bg-2);
  border-left: 1px solid var(--line);
}

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: block; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ivory);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 26px 0 12px; outline: none; border-radius: 0; resize: none;
  transition: border-color .3s;
  appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; }
.field select option { background: var(--surface); color: var(--ivory); }
.field--select::after { content: ""; position: absolute; right: 4px; top: 32px; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.field span { position: absolute; left: 0; top: 26px; font-size: 16px; color: var(--muted); pointer-events: none; transition: all .3s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field select:focus + span, .field select:valid + span { top: 4px; font-size: 12px; letter-spacing: .08em; color: var(--gold); }
.field.is-error input, .field.is-error select { border-color: #d0605e; }
.field.is-error span { color: #d0605e; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--muted); cursor: pointer; margin: 8px 0 12px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-2); position: relative; margin-top: 1px; transition: all .3s; }
.check i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.check input:checked + i { background: var(--gold); border-color: var(--gold); }
.check input:checked + i::after { transform: rotate(45deg) scale(1); }
.check a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.check.is-error i { border-color: #d0605e; }

.contact-item { display: flex; gap: 18px; }
.contact-item__icon { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(201, 169, 110, .35); color: var(--gold); display: grid; place-items: center; }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item p { color: var(--ivory); font-size: 17px; font-weight: 500; line-height: 1.45; }
.contact-item a:hover { color: var(--gold); }

.messengers { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.messenger { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; transition: all .4s var(--ease); }
.messenger svg { width: 18px; height: 18px; }
.messenger:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.map { position: relative; margin-top: 30px; height: 460px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }
.map__label { position: absolute; left: 30px; top: 30px; padding: 22px 26px; border-radius: 18px; background: rgba(11, 13, 18, .88); backdrop-filter: blur(12px); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.map__label b { font-family: var(--serif); font-size: 22px; letter-spacing: .12em; color: var(--gold); }
.map__label span { color: var(--text); font-size: 14px; }
.map__label a { font-size: 13px; font-weight: 600; color: var(--gold); margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 36px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big { font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 15vw, 218px); line-height: .8; letter-spacing: -.02em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(201, 169, 110, .25); margin-bottom: 70px; white-space: nowrap; user-select: none; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer__brand p { margin-top: 20px; max-width: 300px; }
.footer h4 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.footer__grid a:hover { color: var(--ivory); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; font-size: 13px; color: var(--muted); }
.footer__bottom a:hover { color: var(--gold); }
.to-top { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .4s var(--ease); }
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-4px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; right: 30px; bottom: 30px; z-index: 300;
  display: flex; align-items: center; gap: 16px; padding: 20px 26px;
  background: var(--ivory); color: var(--ink); border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
  transform: translateY(150%); opacity: 0; transition: all .6s var(--ease);
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--gold); stroke-width: 2.4; }
.toast__err { display: none; }
.toast.is-error .toast__ok { display: none; }
.toast.is-error .toast__err { display: block; background: #d0605e; color: #fff; stroke-width: 2.8; }

/* honeypot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* кнопка в процессе отправки */
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading svg { opacity: 0; }
.btn.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 2px solid rgba(18, 20, 26, .25); border-top-color: var(--ink); border-radius: 50%;
  animation: spin .7s linear infinite;
}
.toast b { display: block; }
.toast span { font-size: 14px; color: #555; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .nav { gap: 22px; }
  .header__phone { display: none; }
  .practices__grid { grid-template-columns: repeat(2, 1fr); }
  .practice { min-height: 320px; }
}

@media (max-width: 1024px) {
  .section { padding: 110px 0; }
  .nav, .header__actions .btn { display: none; }
  .burger { display: block; }
  .about__grid, .faq__grid { grid-template-columns: 1fr; gap: 70px; }
  .about__media { max-width: 620px; }
  .approach__steps { grid-template-columns: repeat(2, 1fr); row-gap: 60px; }
  .approach__line { display: none; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__card { grid-template-columns: 1fr; }
  .contacts__info { border-left: 0; border-top: 1px solid var(--line); }
  .case { grid-template-columns: 1fr auto; gap: 14px 30px; }
  .case__tag { grid-column: 1 / -1; }
  .case__arrow { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .section { padding: 90px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 50px; }
  .hero { padding-top: 130px; }
  .hero__content { padding-bottom: 50px; }
  .hero__lead { font-size: 16px; }
  .hero__cta .btn { width: 100%; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stat { padding: 24px 12px 24px 0; }
  .hero__stat + .hero__stat { padding-left: 0; border-left: 0; }
  .hero__stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .hero__stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about__media { padding: 0 30px 60px 0; }
  .about__badge { width: 100px; height: 100px; top: 20px; right: -6px; }
  .about__badge-num { font-size: 32px; }
  .about__badge-ring text { font-size: 10px; }
  .practices__grid { grid-template-columns: 1fr; }
  .practice { min-height: 0; padding: 36px 24px 90px; }
  .practice__icon { margin-bottom: 36px; }
  .practice__arrow { left: 24px; }
  .approach__steps { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; gap: 44px; }
  .member__socials a { opacity: 1; transform: none; }
  .case__sum b { font-size: 40px; }
  .review { padding: 32px; }
  .review p { font-size: 20px; }
  .faq__item summary { font-size: 21px; padding-right: 54px; }
  .contacts__form-wrap, .contacts__info { padding: 44px 24px; }
  .form__row { grid-template-columns: 1fr; }
  .map { height: 380px; }
  .map__label { left: 16px; top: 16px; right: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}

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