:root {
  --ink: #171c28;
  --ink-soft: #2d3340;
  --paper: #f5f1e9;
  --paper-light: #fbf9f4;
  --muted: #d8d1c5;
  --line: rgba(23, 28, 40, .16);
  --wine: #8d2e2b;
  --wine-dark: #6e211f;
  --gold: #b8975b;
  --white: #fff;
  --container: 1180px;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Lato", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--paper-light); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 2000; transform: translateY(-160%); background: var(--white); padding: 12px 18px; border-radius: 4px; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: 84px; color: var(--white); transition: background .25s ease, box-shadow .25s ease, height .25s ease; }
.site-header.is-scrolled { height: 72px; background: rgba(23,28,40,.96); box-shadow: 0 8px 30px rgba(0,0,0,.12); backdrop-filter: blur(12px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); font-family: var(--serif); font-weight: 700; font-size: 18px; transform: rotate(45deg); }
.brand-mark { color: transparent; position: relative; }
.brand-mark::after { content: "МР"; color: var(--white); position: absolute; transform: rotate(-45deg); }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-family: var(--serif); font-size: 20px; }
.brand-copy span { margin-top: 4px; color: rgba(255,255,255,.68); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a { position: relative; min-height: 44px; display: grid; place-items: center; color: rgba(255,255,255,.78); font-size: 14px; }
.site-nav a::after { content: ""; position: absolute; inset: auto 50% 7px; height: 1px; background: var(--gold); transition: inset .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { inset-inline: 0; }
.site-nav a:hover { color: var(--white); }
.header-phone { display: grid; line-height: 1.2; text-align: right; min-height: 48px; justify-content: center; }
.header-phone span { font-weight: 700; font-size: 15px; }
.header-phone small { color: rgba(255,255,255,.62); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.menu-button { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: inherit; padding: 12px; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero { position: relative; min-height: 860px; padding: 150px 0 0; color: var(--white); background: var(--ink); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 680px; height: 680px; right: -240px; top: -270px; border: 1px solid rgba(184,151,91,.25); border-radius: 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 52%, rgba(141,46,43,.14)); pointer-events: none; }
.hero-grain { position: absolute; inset: 0; opacity: .055; pointer-events: none; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .78fr; align-items: center; gap: 96px; min-height: 570px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--wine); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 36px; height: 1px; background: currentColor; }
.eyebrow-balanced { width: fit-content; }
.eyebrow-light { color: #dbc28f; }
.hero .eyebrow { color: #dbc28f; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.03; }
h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(52px, 5.5vw, 78px); font-weight: 600; letter-spacing: -.035em; }
.hero-lead { max-width: 650px; margin-bottom: 32px; color: rgba(255,255,255,.72); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; border-radius: 2px; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--wine); color: var(--white); }
.button-primary:hover { background: #a03935; }
.button-ghost { border-color: rgba(255,255,255,.34); color: var(--white); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.button-accent { width: 100%; background: var(--gold); color: var(--ink); border-color: var(--gold); }
.button-accent:hover { background: #c9aa70; }
.hero-note { display: flex; align-items: flex-start; gap: 10px; max-width: 500px; margin: 20px 0 0; color: rgba(255,255,255,.58); font-size: 13px; }
.hero-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 2; }
.hero-visual { position: relative; justify-self: end; width: min(100%, 430px); }
.portrait-frame { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 220px 220px 8px 8px; box-shadow: 0 34px 80px rgba(0,0,0,.28); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); border-radius: inherit; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: saturate(.82) contrast(1.04); }
.identity-card { position: absolute; left: -62px; bottom: 32px; width: 270px; padding: 22px 24px; color: var(--ink); background: var(--paper); border-left: 4px solid var(--wine); box-shadow: 0 18px 48px rgba(0,0,0,.24); line-height: 1.1; }
.identity-card span { display: block; color: var(--wine); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.identity-card strong { display: block; margin: 7px 0 8px; font-family: var(--serif); font-size: 23px; }
.identity-card small { color: #65615b; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.proof-row { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 142px; margin-top: 54px; border-top: 1px solid rgba(255,255,255,.12); }
.proof-item { display: flex; flex-direction: column; justify-content: center; padding: 22px 30px; border-right: 1px solid rgba(255,255,255,.12); }
.proof-item:first-child { border-left: 1px solid rgba(255,255,255,.12); }
a.proof-item:hover { background: rgba(255,255,255,.04); }
.proof-item strong { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.proof-item strong span { color: var(--gold); font-size: 18px; }
.proof-item > span { margin-top: 6px; color: rgba(255,255,255,.58); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 112px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; column-gap: 80px; margin-bottom: 54px; }
.section-heading .eyebrow { grid-column: 1/-1; }
.section-heading h2, .approach h2, .request h2, .contact-heading h2 { margin-bottom: 0; font-size: clamp(42px, 4.5vw, 64px); font-weight: 600; letter-spacing: -.025em; }
.section-heading > p:last-child { margin-bottom: 7px; color: #60636b; font-size: 17px; }
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 330px; display: flex; flex-direction: column; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.3); transition: background .2s ease, transform .2s ease; }
.service-card:hover { position: relative; z-index: 2; background: var(--paper-light); transform: translateY(-4px); box-shadow: 0 18px 38px rgba(35,31,26,.08); }
.service-number { color: var(--wine); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.service-card h3 { margin: auto 0 18px; font-size: 32px; font-weight: 600; }
.service-card p { margin-bottom: 28px; color: #62656d; }
.service-card a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--wine); font-weight: 700; }

.approach { color: var(--white); background: var(--ink); }
.approach-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 100px; }
.approach-intro { position: sticky; top: 110px; align-self: start; }
.approach h2 { margin-bottom: 80px; }
blockquote { margin: 0; padding: 24px 0 0 24px; border-left: 1px solid var(--gold); }
blockquote p { margin-bottom: 8px; font-family: var(--serif); font-size: 23px; font-style: italic; }
blockquote footer { color: rgba(255,255,255,.56); font-size: 13px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 14px 0 44px; border-bottom: 1px solid rgba(255,255,255,.15); }
.steps li + li { padding-top: 44px; }
.steps > li > span { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.steps h3 { margin-bottom: 12px; font-size: 34px; font-weight: 600; }
.steps p { max-width: 500px; margin-bottom: 0; color: rgba(255,255,255,.62); font-size: 17px; }

.reviews { background: var(--paper-light); }
.review-heading { margin-bottom: 40px; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card { min-height: 280px; display: flex; flex-direction: column; padding: 36px; border: 1px solid var(--line); background: var(--white); }
.stars { color: var(--gold); letter-spacing: .12em; }
.review-card > p { margin: 32px 0; font-family: var(--serif); font-size: 28px; line-height: 1.35; }
.review-card footer { display: grid; margin-top: auto; }
.review-card footer span { color: #73767c; font-size: 13px; }
.text-link { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--wine); font-weight: 700; }

.request { padding-block: 0; background: var(--paper-light); }
.request-shell { display: grid; grid-template-columns: 1fr .86fr; gap: 90px; padding: 80px; color: var(--white); background: var(--wine-dark); }
.request-copy > p:not(.eyebrow) { max-width: 550px; color: rgba(255,255,255,.66); font-size: 17px; }
.request-contact { display: grid; margin-top: 54px; }
.request-contact span { color: rgba(255,255,255,.56); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.request-contact a { font-family: var(--serif); font-size: 34px; }
.request-form { padding: 34px; color: var(--ink); background: var(--paper-light); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #c9c2b6; border-radius: 0; color: var(--ink); background: var(--white); }
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #88847e; }
.form-note { margin: 12px 0 0; color: #676a71; font-size: 11px; line-height: 1.45; }

.contacts { background: var(--paper); }
.contacts-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > * { min-height: 92px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.contact-list span { color: #73767c; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.contact-list strong { font-family: var(--serif); font-size: 25px; font-weight: 600; }
.contact-list a:hover strong { color: var(--wine); }

.site-footer { padding: 42px 0 104px; color: var(--white); background: #10141d; }
.footer-inner { display: grid; grid-template-columns: .8fr 1fr 1.1fr; align-items: start; gap: 50px; }
.footer-inner > div { display: grid; }
.footer-inner > div strong { font-family: var(--serif); font-size: 20px; }
.footer-inner > div span, .footer-inner p { color: rgba(255,255,255,.52); font-size: 12px; }
.footer-inner p { margin: 0; line-height: 1.55; }
.footer-inner > a { min-height: 44px; display: inline-flex; align-items: flex-start; color: rgba(255,255,255,.72); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.mobile-call { display: none; }

:focus-visible { outline: 3px solid #e0bd75; outline-offset: 3px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .header-phone { display: none; }
  .hero-grid { grid-template-columns: 1fr .7fr; gap: 48px; }
  .identity-card { left: -34px; }
  .request-shell { gap: 48px; padding: 60px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .site-header, .site-header.is-scrolled { height: 72px; background: rgba(23,28,40,.96); }
  .header-inner { justify-content: space-between; }
  .menu-button { display: block; margin-left: auto; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 72px 0 auto; display: grid; gap: 0; padding: 18px 16px 26px; background: rgba(23,28,40,.98); transform: translateY(-130%); opacity: 0; transition: transform .25s var(--ease), opacity .2s ease; }
  .site-nav.is-open { transform: translateY(0); opacity: 1; }
  .site-nav a { justify-items: start; padding-inline: 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 16px; }
  .hero { padding-top: 118px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { max-width: 700px; }
  .hero-visual { justify-self: center; width: min(78vw, 450px); }
  .proof-row { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(odd) { border-left: 1px solid rgba(255,255,255,.12); }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .section { padding: 88px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 270px; }
  .approach-grid, .contacts-grid { grid-template-columns: 1fr; gap: 56px; }
  .approach-intro { position: static; }
  .approach h2 { margin-bottom: 48px; }
  .request-shell { grid-template-columns: 1fr; gap: 44px; padding: 54px 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .brand-copy strong { font-size: 18px; }
  .brand-copy span { font-size: 9px; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { min-height: auto; padding-top: 112px; }
  h1 { font-size: clamp(42px, 12vw, 56px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-visual { width: 88vw; }
  .portrait-frame { aspect-ratio: 4/5; }
  .identity-card { left: -8px; right: -8px; bottom: 18px; width: auto; padding: 18px 20px; }
  .proof-row { margin-top: 44px; }
  .proof-item { min-height: 116px; padding: 18px 14px; }
  .proof-item strong { font-size: 25px; }
  .proof-item > span { font-size: 10px; line-height: 1.4; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .approach h2, .request h2, .contact-heading h2 { font-size: 41px; }
  .section-heading > p:last-child { font-size: 16px; }
  .service-card { min-height: 280px; padding: 28px; }
  .service-card h3 { font-size: 30px; }
  .steps li { grid-template-columns: 42px 1fr; gap: 12px; }
  .steps h3 { font-size: 29px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { min-height: 250px; padding: 28px; }
  .review-card > p { font-size: 25px; }
  .request { background: var(--wine-dark); }
  .request-shell { width: 100%; padding: 64px 16px; }
  .request-contact { margin-top: 36px; }
  .request-contact a { font-size: 30px; }
  .request-form { padding: 24px 18px; }
  .contact-list > * { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .contact-list strong { font-size: 22px; overflow-wrap: anywhere; }
  .site-footer { padding-bottom: 104px; }
  .mobile-call { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--white); background: var(--wine); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 12px 32px rgba(0,0,0,.24); font-weight: 700; }
  .mobile-call svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .site-nav { max-height: calc(100dvh - 72px); overflow-y: auto; }
  .hero { padding-top: 96px; }
}

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