/* ========================================================================
   ДИНАСТИЯ ЭСТЭЙТ ПЛЮС — design tokens
   Light premium: cream paper, generous air, deep ink type, RAL 2007 accent.
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  /* Palette — light premium (default) */
  --paper-0: #FBFAF6;     /* deepest cream */
  --paper-1: #F5F3ED;     /* page */
  --paper-2: #EFEDE5;     /* cards */
  --paper-3: #E4E1D6;     /* hover/elevated */
  --paper-4: #D5D1C2;     /* dividers strong */
  --line: rgba(20, 18, 14, 0.10);
  --line-strong: rgba(20, 18, 14, 0.20);
  --ink: #14120E;          /* near-black, warm */
  --ink-soft: #2A2722;
  --text: #14120E;
  --text-dim: #57544D;
  --text-faint: #8C887E;

  /* Accent — RAL 2007 luminous orange (kept as brand) */
  --accent: #E55B13;       /* slightly deeper for light bg legibility */
  --accent-soft: #FF8B00;
  --accent-deep: #B6450C;
  --accent-glow: rgba(229, 91, 19, 0.10);
  --accent-tint: #FBE4D2;

  /* Façade RAL palette from spec */
  --ral-7040: #989EA1;
  --ral-7024: #45494E;
  --ral-2007: #FF8B00;

  /* Status */
  --status-done: #2E7D55;
  --status-progress: #B45309;
  --status-plan: #6B6962;

  /* Type */
  --font-sans: 'Geist', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', 'IBM Plex Mono', monospace;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;

  /* Layout */
  --container: 1320px;
  --rail: 64px;
  --radius: 0;
  --radius-lg: 2px;

  --density: 1;
}

[data-density="compact"] { --density: 0.85; }
[data-density="comfortable"] { --density: 1.15; }

[data-theme="dark"] {
  --paper-0: #07080A;
  --paper-1: #0E1014;
  --paper-2: #14171D;
  --paper-3: #1C2028;
  --paper-4: #262B35;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --ink: #F0EEE6;
  --ink-soft: #E8E6DE;
  --text: #E8E9EC;
  --text-dim: #9CA0AB;
  --text-faint: #5A5F6B;
  --accent: #FF8B00;
  --accent-deep: #D96E00;
  --accent-glow: rgba(255, 139, 0, 0.18);
  --accent-tint: rgba(255, 139, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper-1);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.h-display {
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 300;
  margin: 0;
}

.h-section {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
  margin: 0;
}

.h-card {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.005em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--rail);
}

@media (max-width: 900px) { :root { --rail: 24px; } }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--line-strong); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius);
}
.btn:hover { background: var(--ink); color: var(--paper-0); }

.btn-primary { background: var(--ink); color: var(--paper-0); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

.btn-arrow::after {
  content: '→';
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(4px); }

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-dim);
}
.tag-accent { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-deep); }
.tag-status-done { color: var(--status-done); border-color: rgba(46, 125, 85, 0.3); }
.tag-status-progress { color: var(--status-progress); border-color: rgba(180, 83, 9, 0.3); }
.tag-status-plan { color: var(--text-faint); }

/* Brackets — corner crosshairs */
.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
}
.brackets::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.brackets::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper-1) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--rail);
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; min-width: 0; }
.brand-logo {
  display: block;
  height: 76px;
  width: auto;
  flex-shrink: 0;
}
.footer .brand { display: block; width: 100%; }
.footer .brand-logo {
  height: auto;
  width: 100%;
  max-width: 360px;
  display: block;
}
@media (max-width: 1240px) { .brand-logo { height: 66px; } }
@media (max-width: 1100px) { .brand-logo { height: 56px; } }
@media (max-width: 720px)  { .brand-logo { height: 44px; } }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-name strong { font-weight: 500; font-size: 14px; letter-spacing: -0.005em; }
.brand-name span {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--text-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.nav-links a { white-space: nowrap; }
.nav-links a { color: var(--text-dim); transition: color 0.15s; padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); position: relative; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 1px; background: var(--accent);
}
.nav-cta { padding: 10px 16px !important; font-size: 10px !important; flex-shrink: 0; }

@media (max-width: 1240px) {
  .nav-cta { padding: 9px 14px !important; }
  .nav-links { gap: 18px; }
}
@media (max-width: 1100px) {
  .nav-cta span,
  .nav-cta::after { display: none !important; }
}

@media (max-width: 1180px) {
  .nav-links { gap: 18px; font-size: 10px; }
}
@media (max-width: 980px) { .nav-links { display: none; } }
@media (max-width: 600px) { .nav-cta { display: none !important; } }

/* Footer */
.footer {
  border-top: 1px solid var(--line-strong);
  padding: 80px 0 48px;
  margin-top: 0;
  background: var(--paper-0);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer h6 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--text-dim); transition: color 0.15s; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Section heading block */
.section-heading {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: end;
  padding: 120px 0 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .section-heading { grid-template-columns: 1fr; gap: 24px; padding: 80px 0 32px; margin-bottom: 40px; }
}
.section-heading .num-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
  border-top: 1px solid var(--accent);
  padding-top: 14px;
  display: inline-block;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; animation: fadeUp 0.8s ease forwards; }

@media print { .nav, .footer, .twk-fab, .twk-panel { display: none !important; } }


/* Footer requisites */
/* Footer requisites — компактный, единый шрифт */
.footer-req {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-req-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  align-items: baseline;
}
.footer-req-l {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 400;
}
.footer-req-v {
  color: var(--text);
  font-size: 13px;
  word-break: break-word;
}
@media (max-width: 900px) {
  .footer-requisites { grid-column: span 2; }
}

/* ========================================================================
   TYPOGRAPHY UNIFICATION (v13)
   Geist Mono is reserved for NUMBERS only (tabular figures, areas, %).
   All textual labels — eyebrow, label-mono, section nums, breadcrumbs,
   buttons, form labels, etc. — switch to Geist sans uppercase tracked.
   This block intentionally OVERRIDES earlier rules.
   ======================================================================== */
.eyebrow,
.label-mono,
.btn,
.btn-arrow::after,
.tag,
.nav-links,
.brand-name span,
.footer h6,
.footer-bottom,
.section-heading .num-badge,
.obj-section-num,
.obj-hero-visual-tag,
.obj-meta-table th,
.obj-stat-label,
.obj-stat-unit,
.obj-location-card-title,
.obj-tenant-row.is-header,
.obj-comp-row.is-header,
.obj-trust-card .num-tag,
.obj-aux-card .num-tag,
.proc-step-num,
.about-team-card .role,
.about-timeline-year,
.inv-terms-card .num-tag,
.contact-form-row label,
.filter-btn,
.hero-stat-label,
.track-card-meta,
.tenant-bar-seg-label {
  font-family: var(--font-sans) !important;
  font-weight: 500;
}

/* Bring tag-like sizes into a tighter range so they feel like one family */
.eyebrow            { letter-spacing: 0.14em; font-size: 11px; }
.label-mono         { letter-spacing: 0.10em; font-size: 11px; }
.obj-section-num    { letter-spacing: 0.12em; font-size: 11px; font-weight: 500; }
.obj-stat-label     { letter-spacing: 0.10em; }
.obj-location-card-title { letter-spacing: 0.10em; }
.contact-form-row label  { letter-spacing: 0.10em; font-weight: 500; }
.section-heading .num-badge { letter-spacing: 0.12em; }

/* Buttons keep tight tracking but in sans */
.btn { letter-spacing: 0.10em; font-weight: 500; }

/* Numbers — keep mono, with tabular figures */
.num,
.obj-stat-value,
.obj-tenant-area,
.obj-tenant-rent,
.obj-tenant-income,
.obj-comp-row .num,
.about-timeline-year strong,
.proc-step-num strong {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
}

/* Italic serif accent — keep, it's the *one* expressive moment */
.italic-serif { font-family: var(--font-serif) !important; }

/* === BURGER MENU & MOBILE NAV (v2 — fullscreen) === */

/* Бургер: 3 полоски, скрыт на десктопе */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1101;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильное меню — fullscreen overlay */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* учитывает мобильный addr-bar */
  background: var(--paper-1);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
  padding: 88px 28px 32px;
}
.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}
.nav-mobile-links a {
  display: block;
  padding: 18px 0;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.nav-mobile-links a:active,
.nav-mobile-links a.active {
  color: var(--accent);
}

.nav-mobile-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* На <=900px показываем бургер, скрываем CTA в шапке */
@media (max-width: 900px) {
  .nav-burger {
    display: flex;
  }
  .nav-cta {
    display: none !important;
  }
}

/* На больших экранах — гарантированно прячем мобильное меню */
@media (min-width: 901px) {
  .nav-mobile {
    display: none !important;
  }
}
