:root {
  --navy: #0c1424;
  --navy-2: #152238;
  --ink: #1b2433;
  --muted: #5d6674;
  --line: #e7e2d8;
  --paper: #f6f4ef;
  --white: #ffffff;
  --gold: #c6a15b;
  --gold-2: #e0c27a;
  --gold-deep: #8a6840;
  --shadow: 0 18px 50px rgba(12, 20, 36, 0.08);
  --header: 86px;
  --container: 1140px;
  --font: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold-2);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lead { color: var(--muted); font-size: 1.05rem; }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: var(--gold-2);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: #efd7a2; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(224, 194, 122, 0.7);
}
.btn--ghost:hover { background: rgba(224, 194, 122, 0.12); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--gold-2); }
.btn--navy:hover { background: var(--navy-2); color: var(--gold-2); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(231, 226, 216, 0.9);
}
.header.is-scrolled { box-shadow: 0 8px 30px rgba(12, 20, 36, 0.06); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand img { width: 52px; height: 52px; }
.brand__name {
  display: block;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--navy);
}
.brand__sub {
  display: block;
  margin-top: 1px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.header__tools { display: flex; align-items: center; }
.nav { margin-left: auto; }
.nav-toggle, .search-btn, .icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle { display: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .dropdown > a {
  color: #314055;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 9px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav > a:hover, .dropdown > a:hover, .nav > a.is-active, .dropdown > a.is-active { color: var(--gold-deep); }
.dropdown { position: relative; }
.dropdown svg { width: 10px; height: 10px; }
.dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 250px;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.dropdown:hover .dropdown__menu, .dropdown:focus-within .dropdown__menu, .dropdown.is-open .dropdown__menu {
  display: block;
}
.nav > .dropdown:last-child .dropdown__menu { left: auto; right: 0; }
.dropdown__menu a {
  display: block;
  padding: 10px 18px;
  color: #3d4b5e;
  font-size: 0.95rem;
}
.dropdown__menu a:hover { color: var(--gold-deep); background: #fbf8f2; }

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(8, 14, 26, 0.82), rgba(8, 14, 26, 0.74) 45%, rgba(8, 14, 26, 0.84)),
    url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=2200&q=80") center 30%/cover no-repeat;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}
.hero::before, .hero::after, .page-hero::before, .page-hero::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(224, 194, 122, 0.55);
  z-index: 1;
}
.hero::before, .page-hero::before { top: 28px; left: 28px; border-right: 0; border-bottom: 0; }
.hero::after, .page-hero::after { right: 28px; bottom: 28px; border-left: 0; border-top: 0; }
.hero__inner { position: relative; z-index: 2; width: min(820px, calc(100% - 40px)); padding: 80px 0; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.hero__inner > * { animation: rise 0.7s ease both; }
.hero__inner > *:nth-child(2) { animation-delay: 0.08s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.pillars { margin-top: -54px; position: relative; z-index: 3; padding-bottom: 20px; }
.pillars__box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pillar { display: flex; gap: 16px; align-items: flex-start; padding: 28px 26px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: var(--gold-deep);
}
.pillar p { color: var(--muted); font-size: 0.92rem; }
.pillar h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 600; margin-top: 2px; }

.section { padding: 88px 0; }
.section--paper { background: var(--paper); }
.section__head { max-width: 680px; margin-bottom: 36px; }
.section__head h2, .about h2, .split h2, .page-hero h1, .cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--navy);
}
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.about__media { position: relative; min-height: 460px; }
.about__media img { width: 100%; height: 520px; object-fit: cover; }
.stat {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--navy);
  color: var(--white);
  padding: 18px 20px;
  min-width: 140px;
}
.stat strong { display: block; color: var(--gold-2); font-size: 2rem; line-height: 1; }
.stat span { font-size: 0.85rem; color: #d5d8df; }
.about__copy p + p { margin-top: 16px; }
.stats { display: flex; gap: 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.stats strong { display: block; color: var(--navy); font-size: 1.35rem; }
.stats span { color: var(--muted); font-size: 0.88rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .post, .lawyer, .path {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover, .post:hover, .lawyer:hover, .path:hover { border-color: #d9c49a; transform: translateY(-3px); }
.card__icon { width: 42px; height: 42px; color: var(--gold-deep); margin-bottom: 16px; }
.card h3, .post h3, .path h3, .lawyer h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.card p, .post p, .path p, .lawyer p { color: var(--muted); }
.more {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 0.92rem;
}
.more:hover { color: var(--navy); }

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path { background: var(--navy); color: var(--white); border-color: transparent; }
.path h3, .path .index { color: var(--gold-2); }
.path p { color: #d5dbe6; }
.path .index { font-size: 0.8rem; letter-spacing: 0.14em; margin-bottom: 18px; }

.slider { position: relative; max-width: 820px; }
.slide { display: none; }
.slide.is-active { display: block; }
.slide blockquote { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.45; color: var(--navy); font-weight: 500; }
.slide figcaption { margin-top: 18px; color: var(--gold-deep); font-weight: 600; }
.slide figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.slider__nav { display: flex; gap: 8px; margin-top: 22px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #ddd4c4;
  cursor: pointer;
}
.dot.is-active { background: var(--gold-deep); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post__meta { color: var(--gold-deep); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }

.cta {
  background:
    linear-gradient(100deg, rgba(12, 20, 36, 0.92), rgba(12, 20, 36, 0.78)),
    url("https://images.unsplash.com/photo-1436450412740-6b988f486c6b?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--white);
  text-align: center;
}
.cta h2 { color: var(--white); }
.cta p { color: #e4e7ee; margin: 14px auto 24px; max-width: 560px; }
.cta__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 64px;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero .lead { color: #d5dbe3; max-width: 640px; margin-top: 14px; }
.crumb { color: #b7c0ce; font-size: 0.9rem; margin-bottom: 14px; }
.crumb a:hover { color: var(--gold-2); }

.layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.sidemenu { position: sticky; top: calc(var(--header) + 18px); border: 1px solid var(--line); background: var(--white); }
.sidemenu a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); color: #314055; }
.sidemenu a:hover { color: var(--gold-deep); background: #fbf8f2; }
.block { scroll-margin-top: 110px; padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: 1.8rem; color: var(--navy); margin: 8px 0 12px; }
.block ul { margin-top: 14px; }
.block li { position: relative; padding-left: 16px; margin: 8px 0; color: var(--muted); }
.block li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 1px; background: var(--gold); }

.lawyers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.lawyer { grid-column: span 2; padding: 0; overflow: hidden; }
.lawyer:first-child { grid-column: span 6; display: grid; grid-template-columns: 320px 1fr; }
.lawyer img { width: 100%; height: 280px; object-fit: cover; object-position: center top; }
.lawyer:first-child img { height: 100%; min-height: 360px; }
.lawyer__body { padding: 22px; }
.lawyer__role { color: var(--gold-deep); font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { border: 1px solid var(--line); padding: 4px 8px; font-size: 0.78rem; color: #415066; }

.compare { width: 100%; border-collapse: collapse; background: var(--white); }
.compare th, .compare td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.compare th { background: var(--navy); color: var(--gold-2); font-weight: 600; }
.compare td:first-child { font-weight: 600; color: var(--navy); width: 22%; }

.article-list { display: grid; gap: 16px; }
.article, .lawyer { scroll-margin-top: 110px; }
.article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}
.article time, .article__cat { color: var(--gold-deep); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.article h2 { font-size: 1.45rem; color: var(--navy); margin: 6px 0 8px; }
.article p { color: var(--muted); }
.article__full { display: none; margin-top: 12px; color: var(--ink); }
.article.is-open .article__full { display: block; }
.article.is-open .more { display: none; }

.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}
.form, .info-card { border: 1px solid var(--line); background: var(--white); padding: 28px; }
.form h2, .info-card h2 { color: var(--navy); font-size: 1.6rem; margin-bottom: 8px; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #e3ddd2;
  background: #fff;
  color: var(--ink);
  padding: 12px 12px;
  border-radius: 4px;
  font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(198, 161, 91, 0.45);
  border-color: var(--gold);
}
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 0.92rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.success { border: 1px solid #e3ddd2; background: #fbf8f2; padding: 22px; }
.info-card + .info-card, .map { margin-top: 16px; }
.info-card a { color: var(--gold-deep); font-weight: 600; }
.info-card li { margin: 8px 0; color: var(--muted); }
.map { border: 1px solid var(--line); height: 240px; }
.map iframe { width: 100%; height: 100%; border: 0; }

.footer { background: var(--navy); color: #d5dbe3; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 28px; }
.footer h3 { color: var(--gold-2); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { display: block; color: #d5dbe3; margin: 7px 0; }
.footer a:hover { color: var(--gold-2); }
.footer__brand p { margin-top: 10px; }
.footer__bottom { margin-top: 36px; border-top: 1px solid rgba(224, 194, 122, 0.2); padding: 16px 0 22px; color: #aeb6c3; font-size: 0.85rem; }
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--gold-2);
  color: var(--navy);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}
.to-top.is-visible { display: inline-flex; }

.search[hidden] { display: none; }
.search {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 26, 0.62);
  z-index: 60;
  display: grid;
  place-items: start center;
  padding: 12vh 16px 16px;
}
.search__panel { width: min(680px, 100%); background: var(--white); padding: 22px; box-shadow: var(--shadow); }
.search__row { display: flex; gap: 8px; }
.search__row input { flex: 1; border: 1px solid var(--line); padding: 12px; font-size: 1rem; }
.search__results { margin-top: 12px; max-height: 360px; overflow: auto; }
.search__results a { display: block; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.search__results a:hover { background: #fbf8f2; }
.search__results small { display: block; color: var(--gold-deep); letter-spacing: 0.08em; text-transform: uppercase; }
.search__empty { color: var(--muted); padding: 12px 4px; }

@media (max-width: 1100px) {
  body { overflow-x: hidden; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header));
    z-index: 50;
    background: var(--white);
    display: block;
    margin-left: 0;
    padding: 10px 18px 30px;
    overflow: auto;
    visibility: hidden;
    pointer-events: none;
  }
  .nav.is-open { visibility: visible; pointer-events: auto; }
  .nav > a, .dropdown > a { padding: 14px 4px; width: 100%; border-bottom: 1px solid var(--line); }
  .dropdown__menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 10px;
    min-width: 0;
  }
  .dropdown.is-open .dropdown__menu { display: block; }
  .about, .layout, .contact, .lawyer:first-child, .article, .footer__grid, .cards, .paths, .posts, .pillars__box {
    grid-template-columns: 1fr;
  }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .lawyers { grid-template-columns: 1fr; }
  .lawyer, .lawyer:first-child { grid-column: auto; }
  .sidemenu { position: static; }
  .about__media, .about__media img, .lawyer:first-child img { min-height: 0; height: 320px; }
  .stats { flex-direction: column; }
  .hero { min-height: 520px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .section { padding: 64px 0; }
  .hero::before, .hero::after, .page-hero::before, .page-hero::after { width: 48px; height: 48px; }
  .compare { display: block; overflow-x: auto; }
  .cta__actions .btn, .form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
