/* Визуальная система в духе редакционного real-estate сайта. */
:root {
  --bg: #f2efe9;
  --bg-deep: #e9e3d9;
  --paper: #f7f4ee;
  --paper-strong: #fffdf8;
  --ink: #191816;
  --muted: #69645d;
  --line: rgba(25, 24, 22, 0.18);
  --olive: #1f2a26;
  --olive-soft: #35443e;
  --sand: #b48a57;
  --shadow: none;
  --radius-xl: 0;
  --radius-lg: 0;
  --radius-md: 0;
  --max: 1320px;
}

body {
  background: var(--bg);
  color: var(--ink);
}

.shell { width: min(calc(100% - 80px), var(--max)); }

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.nav.is-scrolled {
  background: rgba(242, 239, 233, .94);
  box-shadow: 0 10px 34px rgba(25, 24, 22, .07);
  backdrop-filter: blur(14px);
}

.nav-inner { min-height: 116px; padding: 22px 0; }

.brand { position: relative; justify-content: center; min-height: 62px; }
.brand strong { font: 400 clamp(1.55rem, 2.4vw, 2.45rem)/1 "Cormorant Garamond", Georgia, serif; letter-spacing: -.02em; text-transform: none; }
.brand span { font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.nav-links { gap: 24px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { position: relative; padding: 12px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px; background: var(--sand); transition: right 220ms ease; }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--ink); }
.top-mobile-menu a.is-active { color: var(--ink); box-shadow: inset 3px 0 var(--sand); padding-left: 14px; }
.lang-switch { border: 0; border-radius: 0; background: transparent; padding: 0; }
.lang-link { min-width: 36px; min-height: 36px; border-radius: 0; padding: 8px; }
.lang-link.active { color: var(--ink); background: transparent; box-shadow: inset 0 -1px var(--sand); }

.button { border-radius: 0; min-height: 50px; padding: 14px 22px; letter-spacing: .06em; text-transform: uppercase; font-size: .76rem; transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease; }
.button-dark { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); box-shadow: none; }
.button-dark:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); transform: none; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.hero { padding: clamp(32px, 5vw, 72px) 0; }
.hero .shell { width: 100%; max-width: none; }
.hero-card { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.hero-heading { padding: clamp(54px, 8vw, 112px) max(40px, calc((100vw - var(--max))/2)); text-align: center; border-bottom: 1px solid var(--line); }
.hero-heading .eyebrow { margin: 0 auto 22px; color: var(--sand); background: transparent; border: 0; padding: 0; letter-spacing: .2em; }
.hero-heading h1 { max-width: 1040px; margin: 0 auto; font-size: clamp(4rem, 7.5vw, 7.6rem); line-height: .88; letter-spacing: -.045em; }
.hero-profile { display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); gap: 0; min-height: min(720px, calc(100vh - 180px)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-profile .hero-visual { min-height: 680px; border-radius: 0; background: #bcc7c6; }
.hero-profile .hero-visual { order: 0; }
.profile-details { order: 1; }
.hero-visual { opacity: 1; }
.portrait-stage { inset: 0; border: 0; border-radius: 0; background: #bcc7c6; }
.hero-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; padding: 0; filter: saturate(.78) contrast(.94); }
.profile-details { padding: clamp(40px, 4.8vw, 74px); border: 0; border-radius: 0; background: var(--paper); justify-content: center; }
.profile-details::before { display: none; }
.profile-details .eyebrow { width: fit-content; margin: 0 0 22px; color: var(--sand); background: transparent; border: 0; padding: 0; letter-spacing: .18em; }
.profile-details h1 { max-width: 780px; margin: 0 0 clamp(28px, 4vw, 48px); font-size: clamp(3.35rem, 5vw, 5.8rem); line-height: .9; letter-spacing: -.045em; }
.profile-details h2 { margin: 0 0 8px; font-size: clamp(2.15rem, 3.3vw, 3.7rem); line-height: .92; }
.profile-meta { margin-top: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-role { margin: 0; font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 500; }
.profile-copy { display: grid; gap: 16px; margin-top: 26px; }
.lead { max-width: 660px; margin: 0; font-size: .98rem; line-height: 1.72; color: var(--muted); }
.lead-intro { color: var(--ink); font-size: 1.04rem; }
.expertise-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.expertise-list span { margin: 0; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.expertise-list span:nth-child(odd) { padding-right: 18px; }
.expertise-list span:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.expertise-list span:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
.profile-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-proof > * { display: flex; min-width: 0; flex-direction: column; justify-content: center; min-height: 76px; padding: 14px 18px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.profile-proof > * + * { border-left: 1px solid var(--line); }
.profile-proof strong { color: var(--ink); font-size: .8rem; font-weight: 600; }
.profile-proof a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 4px; }
.hero-actions { margin-top: 26px; }
.profile-note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: italic 400 1.14rem/1.5 "Cormorant Garamond", Georgia, serif; }
.profile-details .trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.trust { padding: 20px 20px 0 0; border: 0; border-radius: 0; background: transparent; }
.trust + .trust { padding-left: 24px; border-left: 1px solid var(--line); }
.trust strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 400; }

main > section:not(.hero) { padding: clamp(72px, 8vw, 118px) 0; border-bottom: 1px solid var(--line); }
main > section:nth-of-type(even):not(.hero) { background: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(340px, 1.22fr); gap: clamp(40px, 9vw, 140px); align-items: start; margin-bottom: clamp(48px, 7vw, 94px); }
.section-head > div::before { content: "GURGEN GRIGORYAN"; display: block; margin-bottom: 18px; color: var(--sand); font-size: .7rem; letter-spacing: .2em; }
html[lang="ru"] .section-head > div::before { content: "ГУРГЕН ГРИГОРЯН"; }
.section-head h2, .cta h2 { margin: 0; font-size: clamp(3.4rem, 6vw, 6.3rem); line-height: .88; letter-spacing: -.04em; }
.section-head p { max-width: 650px; margin: 8px 0 0; font-size: 1.03rem; line-height: 1.85; }

.insight-grid, .why-grid, .district-grid, .focus-grid, .process-grid, .faq-grid, .service-columns { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card, .service-box, .district-card, .focus-card, .process-card, .faq-item, .stat { padding: clamp(28px, 4vw, 52px); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.card h3, .service-box h3, .district-card h3, .focus-card h3, .process-card h3, .faq-item h3 { font-size: clamp(1.7rem, 2.3vw, 2.55rem); line-height: 1.05; margin: 0 0 20px; }
.card p, .district-card p, .focus-card p, .process-card p, .faq-item p { line-height: 1.75; color: var(--muted); }
.service-columns { grid-template-columns: repeat(2, 1fr); }
.service-box { min-height: 500px; }
.service-kicker, .district-kicker { display: block; margin-bottom: 34px; color: var(--sand); font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; }
.service-box ul { padding: 24px 0 0; margin-top: 30px; border-top: 1px solid var(--line); }
.service-box li { padding: 11px 0; border-bottom: 1px solid rgba(25,24,22,.09); }
.district-grid { grid-template-columns: repeat(6, 1fr); }
.district-card { grid-column: span 2; min-height: 340px; }
.district-card:nth-child(4), .district-card:nth-child(5) { grid-column: span 3; }
.location-gateway { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, .75fr); gap: clamp(50px, 10vw, 150px); align-items: end; padding: clamp(48px, 7vw, 94px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.location-gateway h2 { margin: 0; font-size: clamp(3.6rem, 6.5vw, 7rem); line-height: .86; letter-spacing: -.04em; }
.location-gateway .district-kicker { margin-bottom: 24px; }
.location-gateway-copy p { margin: 0 0 30px; color: var(--muted); line-height: 1.8; }
.focus-grid { grid-template-columns: repeat(4, 1fr); }
.focus-card { min-height: 280px; }
.process-grid { position: relative; grid-template-columns: repeat(5, 1fr); overflow: hidden; }
.process-grid::before, .process-grid::after { content: ""; position: absolute; z-index: 0; top: 70px; right: 10%; left: 10%; height: 1px; transform-origin: left center; }
.process-grid::before { background: var(--line); }
.process-grid::after { background: var(--sand); transform: scaleX(0); transition: transform 1100ms cubic-bezier(.22, 1, .36, 1) 180ms; }
.process-grid.is-visible::after { transform: scaleX(1); }
.process-card { position: relative; z-index: 1; min-height: 330px; padding-top: 110px; }
.process-card::before { top: 38px; left: clamp(28px, 4vw, 52px); color: var(--sand); font: 400 2.3rem/1 "Cormorant Garamond", Georgia, serif; }
.faq-grid { grid-template-columns: repeat(3, 1fr); }
.faq-item { min-height: 300px; }

#contact { padding: 0; background: var(--ink); color: var(--paper); }
#contact .shell { width: 100%; max-width: none; }
.cta { padding: clamp(70px, 10vw, 150px) max(40px, calc((100vw - var(--max))/2)); border: 0; border-radius: 0; background: var(--ink); box-shadow: none; }
.cta-wrap { gap: clamp(48px, 8vw, 120px); align-items: start; }
.cta p { color: rgba(247,244,238,.67); line-height: 1.8; }
.button-gold { background: var(--sand); color: var(--ink); border: 1px solid var(--sand); }
.button-outline { border-radius: 0 !important; }
.contact-panel { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--paper); }
.contact-panel > strong { display: block; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.2); font: 400 2rem/1 "Cormorant Garamond", Georgia, serif; }
.field label { color: rgba(247,244,238,.78); letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.field input, .field select, .field textarea { color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.28); border-radius: 0; padding-left: 0; padding-right: 0; }
.field input::placeholder, .field textarea::placeholder { color: rgba(247,244,238,.4); }
.field select option {
  color: var(--ink);
  background: var(--paper);
}
.field-error { min-height: 1.2em; color: #e9a097; font-size: .72rem; line-height: 1.35; }
.lead-form.was-validated :is(input, select):invalid { border-bottom-color: #e9a097; }
.lead-form :is(input, select)[aria-invalid="true"] { border-bottom-color: #e9a097; }
.form-submit:disabled { cursor: wait; opacity: .62; }
.field-hint, .form-status { color: rgba(247,244,238,.55); }

.footer { padding: 42px 0 110px; background: var(--ink); color: rgba(247,244,238,.62); border-top: 1px solid rgba(255,255,255,.16); }
.footer-license { display: inline-block; margin-top: 6px; color: rgba(247,244,238,.44); font-size: .72rem; letter-spacing: .05em; }
.footer-links a { color: var(--paper); border-bottom: 1px solid var(--sand); }
.mobile-bar { border-radius: 0; }
.mobile-bar a { min-height: 50px; }

@media (max-width: 1320px) {
  .nav-actions > .button { display: none; }
  .nav-links { gap: 18px; }
}

@media (max-width: 1080px) {
  .nav-links, .nav-actions > .button { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; border-radius: 0; background: transparent; border: 1px solid var(--line); }
  .hero-profile { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); min-height: 0; }
  .hero-profile .hero-visual { min-height: 620px; max-height: none; }
  .profile-details { padding: 48px; }
  .profile-details h1 { font-size: clamp(3rem, 5.5vw, 4.5rem); }
  .profile-details h2 { font-size: clamp(2.3rem, 4vw, 3.2rem); }
  .profile-copy { grid-template-columns: 1fr; gap: 16px; }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .district-card, .district-card:nth-child(4), .district-card:nth-child(5) { grid-column: auto; }
  .district-card:last-child { grid-column: 1 / -1; }
  .focus-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-card:last-child { grid-column: 1 / -1; }
  .process-grid::before, .process-grid::after { display: none; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .nav-inner { min-height: 82px; padding: 12px 0; }
  .brand { min-height: 46px; }
  .brand strong { font-size: 1.35rem; }
  .brand span { display: none; }
  .top-mobile-menu.open { gap: 0; padding: 0 0 18px; border-top: 1px solid var(--line); }
  .top-mobile-menu a,
  .top-mobile-menu.open a { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
  .top-mobile-menu a.is-active,
  .top-mobile-menu.open a.is-active { padding-left: 14px; }
  .hero { padding: 0; }
  .hero-profile { grid-template-columns: 1fr; }
  .hero-profile .hero-visual { min-height: 390px; max-height: 52vh; order: 0; }
  .profile-details { padding: 40px 24px 54px; }
  .profile-details .eyebrow { margin-bottom: 18px; }
  .profile-details h1 { margin-bottom: 30px; font-size: clamp(2.85rem, 13vw, 4.2rem); }
  .profile-details h2 { font-size: 2.9rem; }
  .profile-meta { display: grid; gap: 8px; margin-top: 14px; }
  .profile-copy { grid-template-columns: 1fr; gap: 16px; }
  .expertise-list { grid-template-columns: 1fr; }
  .expertise-list span,
  .expertise-list span:nth-child(odd),
  .expertise-list span:nth-child(even),
  .expertise-list span:last-child { grid-column: auto; padding: 12px 0; border-left: 0; }
  .profile-proof { grid-template-columns: 1fr 1fr; }
  .profile-proof > * { padding: 14px 12px; }
  .profile-proof > :nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .profile-details .trust-strip { grid-template-columns: 1fr; }
  .trust + .trust { padding-left: 0; border-left: 0; }
  main > section:not(.hero) { padding: 62px 0; }
  .section-head { grid-template-columns: 1fr; gap: 26px; margin-bottom: 48px; }
  .section-head h2, .cta h2 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .insight-grid, .why-grid, .district-grid, .focus-grid, .process-grid, .faq-grid, .service-columns { grid-template-columns: 1fr; }
  .district-card, .district-card:last-child, .process-card:last-child { grid-column: auto; }
  .location-gateway { grid-template-columns: 1fr; gap: 36px; padding: 42px 0; }
  .card, .service-box, .district-card, .focus-card, .process-card, .faq-item { min-height: 0; padding: 32px 24px; }
  .process-card { padding-top: 90px; padding-left: 76px; }
  .process-card::before { left: 24px; top: 30px; }
  .process-grid::before, .process-grid::after { display: block; top: 42px; right: auto; bottom: 42px; left: 38px; width: 1px; height: auto; transform-origin: center top; }
  .process-grid::after { transform: scaleY(0); }
  .process-grid.is-visible::after { transform: scaleY(1); }
  .cta { padding: 72px 24px 120px; }
  .cta-wrap { grid-template-columns: 1fr; }
  .footer { padding-left: 8px; padding-right: 8px; }
  .mobile-bar { left: 0; right: 0; bottom: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .mobile-bar a { min-height: 50px; padding: 12px 4px; border-radius: 0; font-size: .75rem; }
}

/* Движение помогает считывать структуру, но не задерживает доступ к содержимому. */
@media (prefers-reduced-motion: no-preference) {
  .hero-heading .eyebrow,
  .hero-heading h1,
  .hero-visual,
  .profile-details > * {
    opacity: 0;
    animation: editorial-enter 720ms cubic-bezier(.22, 1, .36, 1) forwards;
  }

  .hero-heading .eyebrow { animation-delay: 60ms; }
  .hero-heading h1 { animation-delay: 140ms; }
  .hero-visual { animation-delay: 230ms; animation-name: portrait-enter; animation-duration: 900ms; }
  .profile-details > :nth-child(1) { animation-delay: 280ms; }
  .profile-details > :nth-child(2) { animation-delay: 340ms; }
  .profile-details > :nth-child(3) { animation-delay: 400ms; }
  .profile-details > :nth-child(4) { animation-delay: 460ms; }
  .profile-details > :nth-child(5) { animation-delay: 520ms; }
  .profile-details > :nth-child(6) { animation-delay: 580ms; }
  .profile-details > :nth-child(7) { animation-delay: 640ms; }

  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal > * { opacity: 0; transform: translateY(24px); transition: opacity 560ms ease, transform 560ms cubic-bezier(.22, 1, .36, 1); }
  .reveal.is-visible > * { opacity: 1; transform: none; }
  .reveal.is-visible > :nth-child(2) { transition-delay: 80ms; }
  .reveal.is-visible > :nth-child(3) { transition-delay: 160ms; }
  .reveal.is-visible > :nth-child(4) { transition-delay: 240ms; }
  .reveal.is-visible > :nth-child(5) { transition-delay: 320ms; }

  @keyframes editorial-enter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes portrait-enter {
    from { opacity: 0; transform: scale(1.018); }
    to { opacity: 1; transform: scale(1); }
  }
}

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