:root {
  --wine: #55161c;
  --wine-dark: #351014;
  --gold: #a98b57;
  --paper: #fbf9f5;
  --paper-deep: #f0eae1;
  --ink: #292522;
  --muted: #6f6862;
  --line: #ddd4c8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 Inter, Arial, sans-serif; }
a { color: inherit; }
.shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,249,245,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; min-height: 96px; gap: 32px; }
.site-brand { display: inline-flex; align-items: center; gap: 14px; margin-right: auto; color: var(--wine); font: 600 22px/1.1 "Cormorant Garamond", Georgia, serif; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.site-brand img { width: auto; height: 38px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #5b5651; font-size: 15px; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover { color: var(--wine); }
.site-nav__cta { padding: 11px 18px; color: #fff !important; background: var(--wine); border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px !important; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--wine); font-size: 26px; }

.eyebrow { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.display { margin: 0; color: var(--wine); font: 500 clamp(3rem, 7vw, 6.4rem)/.98 "Cormorant Garamond", Georgia, serif; letter-spacing: -.02em; }
.lead { color: var(--muted); font: 400 clamp(1.12rem, 2vw, 1.35rem)/1.7 "Playfair Display", Georgia, serif; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--wine); background: var(--wine); color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 600; }
.button--ghost { color: var(--wine); background: transparent; }

.about-hero { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 720px; }
.about-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 90px max(7vw, 40px); }
.about-hero__copy .display { margin: 14px 0 28px; }
.about-hero__copy .lead { max-width: 660px; }
.about-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.portrait-placeholder { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 600px; background: linear-gradient(145deg, #ded3c4, #f3eee7 48%, #cdbda9); }
.portrait-placeholder::before { content: "РБ"; color: rgba(85,22,28,.16); font: 500 min(28vw, 320px)/1 "Cormorant Garamond", Georgia, serif; }
.portrait-placeholder__label { position: absolute; right: 28px; bottom: 28px; left: 28px; padding: 18px 20px; background: rgba(251,249,245,.88); border: 1px solid rgba(255,255,255,.65); color: var(--wine); backdrop-filter: blur(10px); font-size: 13px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-values article { padding: 48px; }
.about-values article + article { border-left: 1px solid var(--line); }
.about-values h2 { margin: 8px 0 14px; color: var(--wine); font: 500 28px/1.2 "Cormorant Garamond", Georgia, serif; }
.about-values p { margin: 0; color: var(--muted); }
.about-practice { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; padding-block: 110px; }
.about-practice h2 { margin: 12px 0 0; color: var(--wine); font: 500 clamp(2.4rem, 5vw, 4.8rem)/1 "Cormorant Garamond", Georgia, serif; }
.practice-list { border-top: 1px solid var(--line); }
.practice-list a { display: flex; justify-content: space-between; gap: 20px; padding: 22px 6px; border-bottom: 1px solid var(--line); text-decoration: none; }
.practice-list a:hover { color: var(--wine); }

.portal-main { display: grid; grid-template-columns: 1.08fr .92fr; min-height: calc(100vh - 96px); }
.portal-intro { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 80px max(7vw, 42px); color: #fff; background: var(--wine-dark); }
.portal-intro::after { content: "AB"; position: absolute; right: -4vw; bottom: -8vw; color: rgba(255,255,255,.035); font: 500 min(32vw, 440px)/.8 "Cormorant Garamond", Georgia, serif; }
.portal-intro .eyebrow { color: #cfb987; }
.portal-intro .display { position: relative; z-index: 1; max-width: 760px; margin: 18px 0 28px; color: #fff; }
.portal-intro .lead { position: relative; z-index: 1; max-width: 620px; color: rgba(255,255,255,.72); }
.portal-points { position: relative; z-index: 1; display: grid; gap: 18px; margin-top: 52px; }
.portal-points div { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: rgba(255,255,255,.8); font-size: 14px; }
.portal-points b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #bca06a; border-radius: 50%; color: #d7c18f; font-size: 11px; }
.login-side { display: flex; align-items: center; justify-content: center; padding: 70px 48px; background: var(--paper-deep); }
.login-card { width: min(100%, 480px); padding: clamp(30px, 5vw, 58px); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(49,35,27,.09); }
.login-card h1 { margin: 8px 0 10px; color: var(--wine); font: 500 42px/1.1 "Cormorant Garamond", Georgia, serif; }
.login-card > p { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 19px; }
.field label { color: #514a45; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.field input { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid #cfc4b7; border-radius: 0; background: #fff; color: var(--ink); font: inherit; outline: none; }
.field input:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(85,22,28,.08); }
.login-row { display: flex; justify-content: space-between; gap: 16px; margin: 2px 0 26px; color: var(--muted); font-size: 13px; }
.login-row label { display: flex; align-items: center; gap: 8px; }
.login-row a { color: var(--wine); }
.login-card .button { width: 100%; border: 0; cursor: pointer; }
.demo-label { display: flex; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.demo-label b { color: var(--gold); }

.simple-footer { padding: 28px 0; color: #9d938b; background: #241f1c; font-size: 13px; }
.simple-footer__inner { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 980px) {
  .site-header__inner { min-height: 76px; }
  .site-brand { font-size: 18px; }
  .site-nav { position: absolute; top: 76px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .site-nav__cta { margin-top: 8px; text-align: center; }
  .menu-toggle { display: block; }
  .about-hero, .portal-main { grid-template-columns: 1fr; }
  .about-hero__copy { min-height: 620px; }
  .portrait-placeholder { min-height: 580px; }
  .about-values { grid-template-columns: 1fr; }
  .about-values article + article { border-top: 1px solid var(--line); border-left: 0; }
  .about-practice { grid-template-columns: 1fr; gap: 42px; }
  .portal-intro { min-height: 620px; }
  .login-side { min-height: 650px; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1200px); }
  .site-brand span { display: none; }
  .site-header__inner { gap: 18px; }
  .about-hero__copy, .portal-intro { padding: 64px 24px; }
  .about-hero__copy { min-height: auto; }
  .portrait-placeholder { min-height: 480px; }
  .about-values article { padding: 38px 24px; }
  .about-practice { padding-block: 72px; }
  .login-side { padding: 40px 18px; min-height: auto; }
  .login-card { padding: 30px 22px; }
  .login-row, .simple-footer__inner { flex-direction: column; }
}
