/* «Право Рядом» — тёмно-синий + золото */
:root {
  --navy: #0f1b30;
  --bg: #f7f5f0;
  --surface: #ecE8df;
  --surface-2: #ddd6c7;
  --text: #0f1b30;
  --muted: #5d6676;
  --line: rgba(15, 27, 48, .12);
  --accent: #c09a4e;
  --accent-hover: #a8853d;
  --accent-ink: #0f1b30;
  --accent-2: #c09a4e;
  --dark: #0b1424;
  --radius: 8px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}
.h1 { font-size: clamp(36px, 5.2vw, 66px); }
.h3 { font-family: var(--font-body); font-weight: 700; font-size: 19px; }
.btn { border-radius: 4px; }
.card { border-radius: var(--radius); }
.card__icon { border-radius: 8px; background: var(--navy); color: var(--accent); }

.section--navy { background: var(--navy); color: #e8e4da; }
.section--navy .h2 { color: #fff; }
.section--navy .tabs__btn { background: rgba(255,255,255,.06); color: #e8e4da; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; }
.section--navy .tabs__btn.is-active { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.section--navy .step p { color: rgba(232,228,218,.65); }
.section--navy .muted { color: rgba(232,228,218,.6); }

/* hero */
.hero { position: relative; padding: 72px 0 88px; background: var(--navy); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 55%; border-radius: 0; opacity: .35; }
.hero__bg img { height: 100%; filter: grayscale(1) contrast(1.1); }
.hero__bg:hover img { transform: none; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(15,27,48,.4) 60%, rgba(15,27,48,.8) 100%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero .lead { color: rgba(255,255,255,.75); max-width: 580px; }
.hero__dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; max-width: 640px; }
.hero__dirs a { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid rgba(192,154,78,.4); border-radius: 6px; transition: background .25s, border-color .25s, transform .25s; }
.hero__dirs a:hover { background: rgba(192,154,78,.12); border-color: var(--accent); transform: translateY(-3px); }
.hero__dirs b { color: var(--accent); font-family: var(--font-head); font-size: 19px; }
.hero__dirs span { font-size: 14px; color: rgba(255,255,255,.65); }
.hero__form { background: #fff; color: var(--text); border-radius: 10px; padding: 32px; box-shadow: 0 30px 70px rgba(0,0,0,.4); border-top: 4px solid var(--accent); }

/* numbers */
.stats-band { background: var(--bg); }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.numbers div { border-left: 2px solid var(--accent); padding-left: 18px; }
.numbers b { display: block; font-family: var(--font-head); font-size: clamp(28px, 3.2vw, 42px); }
.numbers span { color: var(--muted); }

/* directions */
.dir { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.dir__main { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 36px; }
.dir__title { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 32px); color: #fff; }
.dir__lead { margin-top: 12px; color: rgba(232,228,218,.75); }
.dir__list { margin-top: 24px; }
.dir__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.dir__list b { color: var(--accent); white-space: nowrap; }
.dir__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; font-size: 14px; }
.dir__side { display: grid; gap: 16px; }
.dir__side div { padding: 22px 24px; border-radius: 10px; background: linear-gradient(135deg, rgba(192,154,78,.18), rgba(192,154,78,.04)); border: 1px solid rgba(192,154,78,.3); transition: transform .3s var(--ease); }
.dir__side div:hover { transform: translateX(6px); }
.dir__side b { display: block; font-family: var(--font-head); font-size: 32px; color: var(--accent); }
.dir__side span { color: rgba(232,228,218,.7); font-size: 14px; }

/* test */
.test-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.test-img { aspect-ratio: 16 / 10; margin-top: 28px; }
.test { background: #fff; border-radius: 12px; padding: 36px; box-shadow: 0 24px 60px rgba(15,27,48,.12); border: 1px solid var(--line); min-height: 420px; }
.test__bar { height: 4px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.test__bar span { display: block; height: 100%; width: 20%; background: var(--accent); transition: width .45s var(--ease); }
.test__count { margin: 14px 0 20px; color: var(--muted); font-size: 14px; }
.test__q { font-family: var(--font-head); font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 20px; }
.test__opts { display: grid; gap: 10px; }
.test__opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 500; transition: border-color .2s, background .2s, transform .2s; animation: fadeUp .4s var(--ease) both; }
.test__opt::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: all .2s; }
.test__opt:hover { border-color: var(--accent); background: #fbf8f1; transform: translateX(4px); }
.test__opt:hover::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px #fff; background: var(--accent); }
.test__back { margin-top: 18px; font-size: 14px; color: var(--muted); text-decoration: underline; }
.result { animation: fadeUp .5s var(--ease); }
.result__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.result--yes .result__badge { background: #e4f4ea; color: #1f7a45; }
.result--maybe .result__badge { background: #fbf1dc; color: #9a6a12; }
.result--no .result__badge { background: #fbe6e4; color: #a33a2c; }
.result h3 { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 30px); margin: 14px 0 10px; }
.result p { color: var(--muted); }
.result ul { margin: 16px 0 24px; display: grid; gap: 8px; }
.result li { padding-left: 24px; position: relative; }
.result li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* cases */
.case { background: #fff; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--accent); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case .tag { width: fit-content; background: var(--navy); color: var(--accent); }
.case__num { font-family: var(--font-head); font-size: 28px; line-height: 1.15; }
.case p { color: var(--muted); font-size: 15px; }
.case small { margin-top: auto; color: var(--accent-hover); font-weight: 600; }

/* team */
.lawyer .media { aspect-ratio: 4 / 5; border-radius: var(--radius); margin-bottom: 16px; }
.lawyer .media img { filter: grayscale(.4); transition: filter .4s, transform .7s var(--ease); }
.lawyer:hover .media img { filter: none; }
.lawyer p { color: var(--muted); font-size: 15px; margin-top: 4px; }

.section--navy .step::before { color: var(--accent); font-family: var(--font-head); }
#contacts .map-stub { min-height: 420px; }

@media (max-width: 1080px) {
  .hero__dirs { grid-template-columns: 1fr 1fr 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero__grid, .dir, .test-wrap { grid-template-columns: 1fr; }
  .hero__bg { width: 100%; }
  .dir__side { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .hero__dirs { grid-template-columns: 1fr; }
  .hero__form { padding: 22px; }
  .dir__main { padding: 22px; }
  .dir__list li { flex-direction: column; gap: 2px; }
  .dir__side { grid-template-columns: 1fr; }
  .section--navy .tabs__list { flex-direction: column; }
  .test { padding: 22px; min-height: 0; }
  .test-img { display: none; }
  .cases { grid-template-columns: 1fr; }
  #team .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  #team .h3 { font-size: 16px; }
  #contacts .map-stub { min-height: 300px; }
}
