/* Класически стил: тъмносиньо, топло бяло, приглушено злато. Без външни шрифтове. */
:root {
  --ink: #1d2733;
  --navy: #1f3349;
  --navy-deep: #16263a;
  --paper: #ffffff;
  --paper-alt: #f6f4ef;
  --line: #e3ded4;
  --muted: #5b6573;
  --gold: #8a6a3b;
  --gold-line: #b89a68;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; font-weight: 600;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }

/* Хедър */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }
@media (max-width: 760px) { .brand img { height: 42px; } }
@media (max-width: 400px) { .brand img { height: 36px; } }
.footer-logo { width: 190px; max-width: 100%; height: auto; margin: 0 0 12px -12px; }
.site-nav ul { display: flex; gap: 34px; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: .95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold-line); }
.header-right { display: flex; align-items: center; gap: 32px; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .1em; padding-left: 28px; border-left: 1px solid var(--line); }
.lang-switch a, .lang-switch span[aria-current] { padding: 8px 2px; text-decoration: none; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--navy); }
.lang-switch span[aria-current] { color: var(--navy); font-weight: 600; }
.lang-switch .sep { color: var(--line); }
.menu-toggle { display: none; background: none; border: 0; padding: 12px; margin-right: -12px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 1.5px; background: var(--navy); position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .header-right { gap: 12px; }
  .lang-switch { padding-left: 0; border-left: 0; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}

/* Бутони */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btn {
  display: inline-block; padding: 14px 26px; background: var(--navy); color: #fff; text-decoration: none;
  font-size: .9rem; letter-spacing: .06em; border: 1px solid var(--navy); transition: background .2s, color .2s;
}
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }

/* Начало */
.hero { padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 100px); background: linear-gradient(180deg, var(--paper-alt), var(--paper)); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 18em; }
.highlights { border-bottom: 1px solid var(--line); }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.highlights-grid li { padding: 40px 32px; border-left: 1px solid var(--line); }
.highlights-grid li:first-child { border-left: 0; padding-left: 0; }
.highlights-grid h2 { font-size: 1.3rem; margin-bottom: .4em; }
.highlights-grid h2::before { content: ""; display: block; width: 32px; height: 2px; background: var(--gold-line); margin-bottom: 18px; }
.highlights-grid p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .highlights-grid li { border-left: 0; padding: 28px 0; }
  .highlights-grid li + li { border-top: 1px solid var(--line); }
}

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--paper-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.section-head h2 { margin: 0; }
.more { font-size: .9rem; white-space: nowrap; }

.practice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 48px; }
.practice-grid li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.practice-grid h3 a { text-decoration: none; }
.practice-grid p { color: var(--muted); margin: 0; font-size: .97rem; }

.cta { background: var(--navy); color: #e8ecf1; padding: clamp(56px, 8vw, 88px) 0; }
.cta h2 { color: #fff; }

/* Екип */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.page-head .lead { margin: 1rem 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex: 1 1 240px; max-width: 360px; }
.filters input, .filters select {
  font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); background: #fff; border-radius: 0; appearance: none;
}
.filters select { background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.empty { color: var(--muted); }

.rank-group + .rank-group { margin-top: 56px; }
.rank-title { font-size: 1.1rem; font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 28px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 28px; }
.card a { display: block; text-decoration: none; color: inherit; }
picture { display: block; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #e9e5dc; }
.portrait-empty { display: grid; place-items: center; background: linear-gradient(160deg, #e9e5dc, #d9d2c3); }
.portrait-empty span { font-family: var(--serif); font-size: 3rem; color: rgba(31, 51, 73, .55); }
.card .portrait { filter: grayscale(.15); transition: filter .3s; }
.card a:hover .portrait { filter: none; }
.card-body { display: block; padding-top: 16px; border-top: 2px solid transparent; transition: border-color .2s; }
.card a:hover .card-body { border-top-color: var(--gold-line); }
.card-name { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); line-height: 1.25; }
.card-rank { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; }

/* Профил */
.profile { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); }
.profile-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.profile-side { position: sticky; top: 108px; }
.contact-list { margin-top: 24px; border-top: 1px solid var(--line); }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; word-break: break-word; }
.contact-list span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 2rem; }
.profile-main > p { max-width: 42rem; font-size: 1.05rem; }
.facts-list { margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.facts-list dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; padding-top: 22px; }
.facts-list dd { margin: 6px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.facts-list dd li + li { margin-top: 4px; }
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-side { position: static; max-width: 360px; }
  .profile-main { order: -1; }
  .crumbs { margin-bottom: 1.25rem; }
}

/* Експертиза */
.practice { padding: 36px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 8px 48px; scroll-margin-top: 100px; }
.practice:first-child { padding-top: 0; }
.practice h2 { font-size: 1.5rem; grid-row: span 2; }
.practice p { margin: 0; max-width: 40rem; }
.practice-people { font-size: .93rem; color: var(--muted); margin-top: 10px !important; }
.practice-people span { color: var(--ink); }
@media (max-width: 760px) { .practice { grid-template-columns: 1fr; } .practice h2 { grid-row: auto; } }

/* Контакти */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.contact-block { border-top: 2px solid var(--gold-line); padding-top: 20px; }
.contact-block h2 { font-size: 1.3rem; }
.contact-block a { font-size: 1.1rem; word-break: break-word; }
.note { margin-top: 48px; font-size: .88rem; color: var(--muted); max-width: 46rem; }
.prose { max-width: 46rem; }

/* Футър */
.site-footer { background: var(--navy-deep); color: #c3ccd7; font-size: .92rem; padding-top: 56px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-line); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; padding-bottom: 32px; }
.footer-brand { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 28px; font-size: .8rem; color: #93a0af; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .filters { display: none; } }

/* Публикации */
.pubs { padding-top: 0; }
.pub-list { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line, #ddd); }
.pub-list li { padding: .9rem 0; border-bottom: 1px solid var(--line, #ddd); }
.pub-list a { text-decoration: none; }
.pub-list a:hover { text-decoration: underline; }
.pub-list a::after { content: " ↗"; color: var(--gold, #a8874f); }
.pubs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.pub-badge { display: block; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(22, 38, 58, .08); transition: box-shadow .2s; }
.pub-badge:hover { box-shadow: 0 14px 36px rgba(22, 38, 58, .16); }
.pub-badge img { display: block; width: 100%; height: auto; }
.pubs-grid > div > p:first-child { margin-top: 0; }
@media (max-width: 760px) { .pubs-grid { grid-template-columns: 1fr; } }
