:root {
    --ink: #171813;
    --ink-soft: #2b2b24;
    --gold: #b49a4c;
    --gold-bright: #d3bd73;
    --gold-pale: #eee7cf;
    --paper: #f7f5ef;
    --white: #ffffff;
    --line: rgba(23, 24, 19, .13);
    --muted: #6f7068;
    --shadow: 0 28px 70px rgba(23, 24, 19, .11);
    --radius: 3px;
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .025;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.025em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 12px 18px;
    color: var(--white);
    background: var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header {
    position: relative;
    z-index: 100;
    background: rgba(247, 245, 239, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.header__inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 290px; text-decoration: none; }
.brand__mark { width: 72px; height: 70px; border-radius: 50%; object-fit: cover; box-shadow: 0 7px 24px rgba(23,24,19,.13); }
.brand__copy { display: flex; flex-direction: column; }
.brand__copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem; font-weight: 500; }
.brand__copy small { max-width: 260px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.header__nav-wrap { display: flex; align-items: center; gap: 32px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { position: relative; padding: 12px 0; font-size: .91rem; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 7px; left: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.language-nav { display: flex; border: 1px solid var(--line); }
.language-nav a { padding: 6px 8px; color: var(--muted); font-size: .67rem; font-weight: 700; text-decoration: none; }
.language-nav a + a { border-left: 1px solid var(--line); }
.language-nav a.is-active { color: var(--white); background: var(--ink); }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 13px; border: 1px solid var(--line); background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--ink); }

.hero { position: relative; min-height: 660px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--ink); }
.hero__image { position: absolute; inset: 0; background: url("../images/hero-consulting.jpg") 55% center / cover no-repeat; transform: scale(1.03); }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,17,14,.96) 0%, rgba(16,17,14,.88) 43%, rgba(16,17,14,.38) 72%, rgba(16,17,14,.15) 100%); }
.hero__content { position: relative; z-index: 1; padding-block: 90px 110px; }
.hero h1 { max-width: 900px; margin-bottom: 26px; }
.hero__lead { max-width: 620px; margin-bottom: 36px; color: rgba(255,255,255,.78); font-size: 1.18rem; }
.eyebrow, .section-kicker { margin-bottom: 20px; color: var(--gold-bright); font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__rule { position: absolute; right: 0; bottom: 0; left: 0; height: 7px; background: linear-gradient(90deg, var(--gold), var(--gold-bright) 45%, transparent 45%); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 23px; border: 1px solid transparent; border-radius: var(--radius); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button--gold { color: var(--ink); background: var(--gold-bright); box-shadow: 0 12px 30px rgba(180,154,76,.18); }
.button--gold:hover { background: #e0cd8b; box-shadow: 0 18px 38px rgba(180,154,76,.27); }
.button--ghost { color: var(--white); border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.03); }
.button--ghost:hover { background: rgba(255,255,255,.09); }
.button--dark { color: var(--white); background: var(--ink); }
.button--small { min-height: 45px; padding: 10px 16px; font-size: .7rem; }

.section { padding-block: 110px; }
.section--about { background: var(--white); }
.split-intro { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 9vw; align-items: start; }
.split-intro h2 { max-width: 620px; margin-bottom: 0; }
.prose--lead { padding-top: 44px; font-size: 1.08rem; }
.prose--lead p { margin-bottom: 30px; }
.text-link { color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 7px; text-transform: uppercase; }

.section--services { background: var(--paper); }
.section-heading { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 56px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 450px; margin-bottom: 5px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 280px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.54); text-decoration: none; transition: color .25s ease, background .25s ease, transform .25s ease; }
.service-card::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.service-card:hover { z-index: 2; color: var(--white); background: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__number { align-self: flex-end; margin-bottom: 14px; color: var(--muted); font-size: .67rem; letter-spacing: .12em; }
.service-card img { width: 50px; height: 50px; margin-bottom: 30px; object-fit: contain; filter: sepia(.35); transition: filter .25s ease, transform .25s ease; }
.service-card:hover img { filter: sepia(.6) brightness(1.7); transform: scale(1.08); }
.service-card h2, .service-card h3 { max-width: 240px; margin: auto 0 0; font-size: 1.35rem; }
.service-card p { margin: 16px 0 0; color: var(--muted); font-size: .78rem; }
.service-card__arrow { position: absolute; right: 27px; bottom: 25px; color: var(--gold); font-size: 1.2rem; }
.service-card--accent { color: var(--white); background: var(--ink-soft); }
.service-card--accent .service-card__number, .service-card--accent p { color: rgba(255,255,255,.62); }
.service-grid--index .service-card { min-height: 330px; }

.section--approach { padding-bottom: 125px; background: var(--white); }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.approach-item { position: relative; padding: 50px 45px 15px 0; }
.approach-item + .approach-item { padding-left: 45px; border-left: 1px solid var(--line); }
.approach-item > span { display: block; margin-bottom: 54px; color: var(--gold); font-size: .72rem; }
.approach-item h3 { margin-bottom: 17px; font-size: 1.7rem; }
.approach-item p { max-width: 300px; color: var(--muted); }

.section--reviews { color: var(--white); background: var(--ink); }
.section-heading--light { margin-bottom: 45px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { min-height: 330px; display: flex; flex-direction: column; margin: 0; padding: 34px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.025); transition: background .25s ease, border-color .25s ease; }
.review-card__content { min-width: 0; }
.review-card blockquote { display: -webkit-box; margin: 0 0 30px; overflow: hidden; color: rgba(255,255,255,.78); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.review-card__more { display: none; margin: -8px 0 30px; color: rgba(255,255,255,.58); font-size: .78rem; }
.review-card__more summary { color: var(--gold-bright); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.review-card__more p { margin: 15px 0 0; }
.review-card figcaption { display: flex; flex-direction: column; margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); }
.review-card figcaption strong { color: var(--gold-bright); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.review-card figcaption span { color: rgba(255,255,255,.48); font-size: .77rem; }
.review-card__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 14px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.13); color: var(--gold-bright); background: transparent; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-align: left; text-transform: uppercase; cursor: pointer; }
.review-card__toggle span:last-child { font-size: 1rem; transition: transform .25s ease; }
.review-card__toggle:hover span:first-child { text-decoration: underline; text-underline-offset: 5px; }
.review-card.is-expanded { grid-column: 1 / -1; min-height: 0; padding: 44px; border-color: rgba(211,189,115,.42); background: rgba(255,255,255,.055); }
.review-card.is-expanded blockquote { display: block; max-width: 1000px; margin-bottom: 34px; overflow: visible; font-size: 1.15rem; -webkit-line-clamp: unset; }
.review-card.is-expanded .review-card__more { display: block; max-width: 1000px; }
.review-card.is-expanded figcaption { margin-top: 0; }
.review-card.is-expanded .review-card__toggle span:last-child { transform: rotate(180deg); }

.section--partners { background: var(--white); }
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 45px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partner-grid > div { min-height: 120px; display: grid; place-items: center; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner-grid img { max-width: 88px; max-height: 56px; object-fit: contain; filter: grayscale(1); opacity: .64; transition: filter .2s, opacity .2s; }
.partner-grid > div:hover img { filter: grayscale(0); opacity: 1; }

.page-hero { position: relative; min-height: 360px; display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--ink); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .3; background: url("../images/hero-court.jpg") center 42% / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,24,19,.98), rgba(23,24,19,.62)); }
.page-hero__inner { position: relative; z-index: 1; padding-block: 75px 65px; }
.page-hero h1 { max-width: 1020px; margin-bottom: 15px; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.page-hero p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.7); font-size: 1.08rem; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero .eyebrow a { text-decoration: none; }
.page-hero--services::before, .page-hero--service::before { background-image: url("../images/hero-consulting.jpg"); }
.page-hero--404 { min-height: 520px; align-items: center; }
.page-hero--404 .button { margin-top: 20px; }

.page-content { background: var(--white); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 70px; align-items: start; }
.content-layout--wide { grid-template-columns: minmax(0, 860px); justify-content: center; }
.content-card { min-height: 240px; }
.prose { color: #34352f; }
.prose p, .prose li { max-width: 78ch; }
.prose p { margin-bottom: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.7em; }
.prose li { margin-bottom: .7em; padding-left: .35em; }
.prose li::marker { color: var(--gold); }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .7em; color: var(--ink); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.sidebar-card { position: sticky; top: 24px; border: 1px solid var(--line); background: var(--paper); }
.sidebar-card > .section-kicker { padding: 28px 28px 4px; }
.sidebar-card nav { display: flex; flex-direction: column; padding: 0 28px 25px; }
.sidebar-card nav a { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-decoration: none; }
.sidebar-card nav a:hover, .sidebar-card nav a.is-active { color: var(--ink); }
.sidebar-card nav a.is-active { font-weight: 700; }
.contact-section { background: var(--white); }
.contact-grid { display: block; }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contact-block { min-height: 245px; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.contact-block h2 { margin-bottom: 14px; font-size: 1.65rem; line-height: 1.3; }
.contact-block p { color: var(--muted); }
.contact-block > a { display: inline-block; margin-top: 8px; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; text-decoration: none; }
.contact-block--email a { font-size: 1.65rem; }
.contact-block--requisites dl { display: grid; gap: 16px; margin: 0; }
.contact-block--requisites dl > div { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: baseline; }
.contact-block--requisites dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.contact-block--requisites dd { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.map-section { height: 470px; background: #ddd; }
.map-section iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.55) sepia(.1); }

.site-footer { padding-top: 68px; color: rgba(255,255,255,.75); background: #10110e; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; padding-bottom: 58px; }
.footer__brand { display: flex; align-items: flex-start; gap: 18px; }
.footer__brand img { width: 64px; height: 63px; border-radius: 50%; }
.footer__brand strong { color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-weight: 500; }
.footer__brand p { max-width: 260px; margin-top: 8px; color: rgba(255,255,255,.46); font-size: .75rem; }
.footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__column h2 { margin-bottom: 12px; color: var(--gold-bright); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.footer__column p, .footer__column a { margin: 0; color: rgba(255,255,255,.6); font-size: .78rem; text-decoration: none; }
.footer__column a:hover { color: var(--gold-bright); }
.footer__requisites { display: grid; gap: 3px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom p, .footer__bottom a { margin: 0; color: rgba(255,255,255,.42); font-size: .72rem; text-decoration: none; }

@media (max-width: 1040px) {
    .brand__copy small { display: none; }
    .brand { min-width: 220px; }
    .main-nav { gap: 18px; }
    .header__nav-wrap { gap: 20px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(4, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .header__inner { min-height: 86px; }
    .brand__mark { width: 58px; height: 57px; }
    .brand { min-width: 0; }
    .nav-toggle { display: block; }
    .header__nav-wrap { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; padding: 24px 20px 30px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 20px 40px rgba(23,24,19,.1); }
    .header__nav-wrap.is-open { display: flex; flex-direction: column; }
    .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .language-nav { align-self: flex-start; }
    .hero { min-height: 610px; }
    .hero__veil { background: linear-gradient(90deg, rgba(16,17,14,.96), rgba(16,17,14,.7)); }
    .section { padding-block: 78px; }
    .split-intro, .content-layout { grid-template-columns: 1fr; gap: 48px; }
    .prose--lead { padding-top: 0; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 22px; }
    .approach-grid { grid-template-columns: 1fr; }
    .approach-item, .approach-item + .approach-item { padding: 35px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .approach-item > span { margin-bottom: 25px; }
    .review-grid { grid-template-columns: 1fr; }
    .review-card { min-height: 300px; }
    .review-card.is-expanded { padding: 34px; }
    .contact-details { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
}

@media (max-width: 560px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .brand__copy strong { max-width: 190px; font-size: 1rem; line-height: 1.15; }
    .hero { min-height: 570px; }
    .hero__content { padding-block: 70px 86px; }
    .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 240px; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .review-card, .review-card.is-expanded { min-height: 0; padding: 28px 22px; }
    .review-card blockquote { -webkit-line-clamp: 4; }
    .contact-block { min-height: 0; padding: 30px 24px; }
    .footer__grid { grid-template-columns: 1fr; gap: 34px; }
    .footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 22px; }
}

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