:root {
      --bg-sand: #FAF8F5;
      --bg-card: #FFFFFF;
      --bg-warm-tint: #F2ECE4;
      --ink-navy: #132A3A;
      --ink-muted: #4E616E;
      --accent-amber: #D96B43;
      --accent-amber-hover: #C25832;
      --accent-sage: #2E6F65;
      --accent-sage-soft: #E5F0EE;
      --border-soft: rgba(19, 42, 58, 0.1);
      --radius-lg: 24px;
      --radius-md: 16px;
      --radius-pill: 999px;
      --shadow-soft: 0 20px 40px -15px rgba(19, 42, 58, 0.08);
      --shadow-hover: 0 25px 50px -12px rgba(19, 42, 58, 0.14);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg-sand);
      color: var(--ink-navy);
      line-height: 1.6;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    body::before {
      content: "";
      position: fixed;
      top: -15%;
      right: -10%;
      width: 55vw;
      height: 55vw;
      background: radial-gradient(circle, rgba(217, 107, 67, 0.08) 0%, rgba(250, 248, 245, 0) 70%);
      z-index: -1;
      pointer-events: none;
    }

    .container {
      width: 100%;
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 24px;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(250, 248, 245, 0.88);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border-soft);
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 78px;
      gap: 16px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--ink-navy);
    }

    .brand-mark {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--ink-navy), var(--accent-sage));
      display: grid;
      place-items: center;
      color: #fff;
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      font-size: 20px;
      box-shadow: 0 6px 16px rgba(19, 42, 58, 0.18);
    }

    .brand-text {
      display: flex;
      flex-direction: column;
    }

    .brand-title {
      font-weight: 700;
      font-size: 16px;
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

    .brand-sub {
      font-size: 12px;
      color: var(--ink-muted);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--ink-navy);
      font-size: 14px;
      font-weight: 500;
      transition: color 0.2s;
    }

    .nav-links a:hover {
      color: var(--accent-amber);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 14px;
    }

.lang-btn {
      border: none;
      background: transparent;
      padding: 6px 14px;
      border-radius: var(--radius-pill);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      color: var(--ink-muted);
      transition: all 0.25s ease;
    }

.btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 26px;
      border-radius: var(--radius-pill);
      font-weight: 600;
      font-size: 15px;
      text-decoration: none;
      cursor: pointer;
      border: none;
      transition: all 0.25s ease;
    }

    .btn-primary {
      background: var(--accent-amber);
      color: #fff;
      box-shadow: 0 10px 24px -6px rgba(217, 107, 67, 0.45);
    }

    .btn-primary:hover {
      background: var(--accent-amber-hover);
      transform: translateY(-2px);
    }

    .btn-secondary {
      background: var(--bg-card);
      color: var(--ink-navy);
      border: 1px solid var(--border-soft);
    }

    .btn-secondary:hover {
      background: var(--bg-warm-tint);
      transform: translateY(-2px);
    }

    .btn-sm {
      padding: 10px 18px;
      font-size: 13px;
    }

    .hero {
      padding: 72px 0 88px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 56px;
      align-items: center;
    }

    .badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--accent-sage-soft);
      color: var(--accent-sage);
      padding: 8px 16px;
      border-radius: var(--radius-pill);
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 24px;
    }

    .badge-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent-sage);
    }

    h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(42px, 5.2vw, 64px);
      line-height: 1.08;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--ink-navy);
      margin-bottom: 20px;
    }

    .hero-subtitle {
      font-size: 19px;
      color: var(--ink-muted);
      max-width: 540px;
      margin-bottom: 34px;
      font-weight: 400;
    }

    .hero-cta-group {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-bottom: 40px;
    }

    .trust-micro {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 24px;
      padding-top: 24px;
      border-top: 1px solid var(--border-soft);
      font-size: 13px;
      color: var(--ink-muted);
    }

    .trust-item {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .trust-item svg {
      color: var(--accent-sage);
      flex-shrink: 0;
    }

    .hero-visual {
      position: relative;
    }

    .desk-board {
      background: #E9DFD1;
      border-radius: var(--radius-lg);
      padding: 28px;
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(19, 42, 58, 0.08);
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .desk-top-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
      font-weight: 600;
      color: var(--ink-muted);
    }

    .desk-tag {
      background: var(--bg-card);
      color: var(--ink-navy);
      padding: 6px 12px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--border-soft);
    }

    .checklist-sheet {
      background: var(--bg-card);
      border-radius: var(--radius-md);
      padding: 24px;
      box-shadow: 0 12px 24px rgba(19, 42, 58, 0.06);
      border: 1px solid var(--border-soft);
    }

    .sheet-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 14px;
      margin-bottom: 14px;
      border-bottom: 1px dashed rgba(19, 42, 58, 0.16);
    }

    .sheet-title {
      font-weight: 700;
      font-size: 15px;
      color: var(--ink-navy);
    }

    .sheet-code {
      font-size: 11px;
      font-weight: 700;
      color: var(--accent-sage);
      background: var(--accent-sage-soft);
      padding: 4px 10px;
      border-radius: 6px;
    }

    .check-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 0;
      font-size: 14px;
      color: var(--ink-navy);
    }

    .check-box {
      width: 20px;
      height: 20px;
      border-radius: 6px;
      background: var(--accent-sage-soft);
      color: var(--accent-sage);
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: 12px;
      flex-shrink: 0;
    }

    .check-box.pending {
      background: var(--bg-warm-tint);
      color: var(--accent-amber);
    }

    .neighbor-note-card {
      background: var(--bg-sand);
      border-radius: var(--radius-md);
      padding: 20px;
      border: 1px solid var(--border-soft);
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }

    .neighbor-badge {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: var(--accent-amber);
      color: #fff;
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: 13px;
      flex-shrink: 0;
    }

    .neighbor-text strong {
      display: block;
      font-size: 14px;
      margin-bottom: 4px;
      color: var(--ink-navy);
    }

    .neighbor-text p {
      font-size: 13px;
      color: var(--ink-muted);
      line-height: 1.5;
    }

    section {
      padding: 84px 0;
    }

    .section-header {
      max-width: 700px;
      margin-bottom: 52px;
    }

    .section-eyebrow {
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 12px;
      font-weight: 700;
      color: var(--accent-amber);
      margin-bottom: 12px;
      display: block;
    }

    h2 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(30px, 3.6vw, 42px);
      line-height: 1.18;
      margin-bottom: 16px;
      color: var(--ink-navy);
    }

    .section-desc {
      font-size: 17px;
      color: var(--ink-muted);
    }

    .bento-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .bento-card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      padding: 34px;
      border: 1px solid var(--border-soft);
      box-shadow: var(--shadow-soft);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .bento-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-hover);
    }

    .bento-card.featured {
      background: var(--ink-navy);
      color: #fff;
    }

    .bento-card.featured p {
      color: rgba(255, 255, 255, 0.78);
    }

    .icon-box {
      width: 50px;
      height: 50px;
      border-radius: 14px;
      background: var(--bg-warm-tint);
      color: var(--accent-amber);
      display: grid;
      place-items: center;
      margin-bottom: 22px;
    }

    .bento-card.featured .icon-box {
      background: rgba(255, 255, 255, 0.12);
      color: #F4A261;
    }

    .bento-card h3 {
      font-size: 20px;
      margin-bottom: 12px;
      font-weight: 700;
    }

    .bento-card p {
      font-size: 15px;
      color: var(--ink-muted);
    }

    .steps-wrapper {
      background: var(--bg-warm-tint);
      border-radius: 32px;
      padding: 56px;
    }

    .steps-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 28px;
    }

    .step-num {
      font-family: 'Playfair Display', serif;
      font-size: 36px;
      font-weight: 700;
      color: var(--accent-amber);
      line-height: 1;
      margin-bottom: 16px;
    }

    .step-item h3 {
      font-size: 18px;
      margin-bottom: 10px;
    }

    .step-item p {
      font-size: 14px;
      color: var(--ink-muted);
    }

    .pdf-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .pdf-card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      padding: 30px;
      border: 1px solid var(--border-soft);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.25s ease;
    }

    .pdf-card:hover {
      border-color: var(--accent-sage);
      box-shadow: var(--shadow-hover);
    }

    .pdf-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 700;
      color: var(--accent-sage);
      background: var(--accent-sage-soft);
      padding: 5px 12px;
      border-radius: 8px;
      align-self: flex-start;
      margin-bottom: 18px;
    }

    .pdf-card h3 {
      font-size: 19px;
      margin-bottom: 10px;
      line-height: 1.35;
    }

    .pdf-card p {
      font-size: 14px;
      color: var(--ink-muted);
      margin-bottom: 24px;
    }

    .pdf-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 18px;
      border-top: 1px solid var(--border-soft);
    }

    .pdf-meta {
      font-size: 12px;
      color: var(--ink-muted);
    }

    .contact-box {
      background: linear-gradient(135deg, #132A3A 0%, #1D4354 100%);
      border-radius: 32px;
      padding: 60px;
      color: #fff;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: center;
    }

    .contact-box h2 {
      color: #fff;
    }

    .contact-box p {
      color: rgba(255, 255, 255, 0.8);
      font-size: 16px;
      margin-bottom: 24px;
    }

    footer {
      border-top: 1px solid var(--border-soft);
      padding: 40px 0;
      font-size: 14px;
      color: var(--ink-muted);
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    .footer-links {
      display: flex;
      gap: 24px;
    }

    .footer-links a {
      color: var(--ink-muted);
      text-decoration: none;
    }

    .footer-links a:hover {
      color: var(--ink-navy);
    }

    @media (max-width: 960px) {
      .hero-grid, .contact-box {
        grid-template-columns: 1fr;
      }
      .bento-grid, .pdf-grid {
        grid-template-columns: 1fr;
      }
      .steps-grid {
        grid-template-columns: 1fr 1fr;
      }
      .nav-links {
        display: none;
      }
      .steps-wrapper, .contact-box {
        padding: 32px 24px;
      }
    }

    @media (max-width: 560px) {
      .steps-grid {
        grid-template-columns: 1fr;
      }
    }

/* История, навигация и доступность */
html { scroll-padding-top: 110px; }
:focus-visible { outline: 3px solid var(--accent-sage); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; background: #fff; color: var(--ink-navy); padding: 12px; z-index: 300; }
.skip-link:focus { top: 12px; }

.menu-toggle { display: none; border: 1px solid var(--border-soft); background: #fff; color: var(--ink-navy); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg { width: 23px; height: 23px; }
.mobile-nav { display: none; }
.history-lead { max-width: 760px; margin-bottom: 30px; color: var(--ink-muted); font-size: 17px; }
.history-card { display: flex; flex-direction: column; gap: 12px; }
.history-card h3 { margin: 0; line-height: 1.3; }
.history-card p { margin: 0; }
.history-date { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-sage); }
.history-card.featured .history-date { color: #b7e2d9; }
.history-card .icon-box { margin-bottom: 4px; }
.history-note { margin-top: 28px; padding: 26px 30px; background: var(--bg-warm-tint); border-radius: var(--radius-md); border-left: 4px solid var(--accent-sage); }
.history-note h3 { font-size: 19px; margin-bottom: 8px; }
.history-note p { color: var(--ink-muted); }
.pdf-status { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.contact-details { background: var(--bg-sand); color: var(--ink-navy); border-radius: var(--radius-lg); padding: 30px; }
.contact-details p { color: var(--ink-muted); margin: 10px 0 18px; }
.contact-details a { color: var(--accent-sage); overflow-wrap: anywhere; font-weight: 700; }
.contact-location { font-size: 14px; opacity: .9; }
.contact-eyebrow { color: #F4A261; }
.btn-primary { background: #B74B29; }
.btn-primary:hover { background: #963C21; }
.section-eyebrow { color: #A54829; }
.hero { padding-top: 64px; }
@media (max-width: 960px) {
  .nav-inner { height: auto; min-height: 78px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .nav-actions > .btn { display: none; }
  .mobile-nav:not([hidden]) { display: grid; gap: 2px; padding: 6px 24px 18px; }
  .mobile-nav a { color: var(--ink-navy); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
  .mobile-nav a:hover { background: var(--bg-warm-tint); }
  .history-card { padding: 26px; }
  .hero-grid { gap: 32px; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .nav-inner { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 7px; }
  .brand-title { font-size: 13px; }
  .brand-sub { font-size: 10px; }
  .brand-mark { width: 32px; height: 32px; font-size: 17px; }
  .nav-actions { gap: 8px; }

.hero { padding: 44px 0 50px; }
  h1 { font-size: 42px; }
  .hero-subtitle { font-size: 17px; }
  .desk-board { padding: 16px; }
  .checklist-sheet, .neighbor-note-card { padding: 15px; }
  .desk-top-bar { flex-wrap: wrap; gap: 6px; }
  .section-header { margin-bottom: 28px; }
  .contact-box { gap: 24px; }
  .contact-details { padding: 20px; }
  .footer-links { flex-wrap: wrap; }
  .hero-cta-group .btn { width: 100%; }
  .history-note { padding: 20px; }
}
@media (max-width: 360px) { .nav-inner { justify-content: flex-start; } .nav-actions { margin-left: auto; } h1 { font-size: 37px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }


/* Навигация для отдельных страниц */
.nav-links a[aria-current="page"], .mobile-nav a[aria-current="page"], .footer-links a[aria-current="page"] { color: var(--accent-sage); font-weight: 700; }
.contact-page-title { color: #fff; }
@media (min-width: 961px) { .nav-links { gap: 18px; } .nav-links a { white-space: nowrap; } .nav-actions > .btn { display: none; } }
@media (max-width: 1100px) and (min-width: 961px) { .nav-links { display: none; } .menu-toggle { display: inline-flex; } .mobile-nav:not([hidden]) { display: grid; gap: 2px; padding: 6px 24px 18px; } .mobile-nav a { color: var(--ink-navy); text-decoration: none; padding: 10px 12px; border-radius: 10px; } .mobile-nav a:hover { background: var(--bg-warm-tint); } }

/* Иллюстрации и виды пребывания */
.hero-document { margin: 0; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 12px; }
.hero-document img { display: block; width: 100%; height: auto; border-radius: 10px; }
.hero-document figcaption { font-size: 12px; text-align: center; color: var(--ink-muted); margin-top: 6px; }
.residence-header { max-width: 760px; }
.residence-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: stretch; margin-bottom: 32px; }
.residence-card { min-width: 0; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.residence-card > img { display: block; width: 100%; height: auto; aspect-ratio: 640/420; object-fit: contain; background: #e9dfd1; }
.residence-content { padding: 26px; }
.residence-content .history-date { display: block; margin-bottom: 12px; }
.residence-content h2 { font-size: clamp(24px, 2.2vw, 29px); overflow-wrap: anywhere; }
.residence-content p, .residence-content li, .residence-extra p { color: var(--ink-muted); font-size: 15px; }
.residence-content ul { padding-left: 20px; margin-top: 15px; }
.residence-content li + li { margin-top: 5px; }
.residence-extra { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: 30px; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--bg-card); padding: 24px; margin: 0 0 32px; }
.residence-extra img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.residence-extra .btn { margin-top: 18px; }
.narrator-card { display: flex; align-items: center; gap: 24px; margin: 0 0 32px; padding: 24px 28px; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-soft); }
.narrator-mark { flex: 0 0 74px; width: 74px; height: 74px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--accent-sage-soft); color: var(--accent-sage); font-family: 'Playfair Display', serif; font-size: 27px; font-weight: 700; }
.narrator-card h3 { font-size: 22px; margin: 5px 0; }
.narrator-card p { color: var(--ink-muted); }
.narrator-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 10px; }
.narrator-links a { color: var(--accent-sage); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 960px) { .residence-grid { grid-template-columns: 1fr; } .residence-card > img { max-height: 340px; } }
@media (max-width: 560px) { .residence-content { padding: 22px; } .residence-extra { grid-template-columns: 1fr; gap: 20px; padding: 18px; } .narrator-card { align-items: flex-start; padding: 20px; gap: 15px; } .narrator-mark { flex-basis: 46px; height: 46px; font-size: 19px; } .narrator-card h3 { font-size: 19px; } }

/* Единое меню-гамбургер для компьютера и смартфона */
.nav-inner { height: auto; min-height: 78px; flex-wrap: nowrap; }
.menu-toggle { display: inline-flex; flex: 0 0 44px; }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav:not([hidden]) { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 78px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-sand); box-shadow: var(--shadow-hover); padding: 16px 0 24px; border-bottom: 1px solid var(--border-soft); }
.menu-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 20px; }
.menu-main, .menu-residence, .menu-grounds { display: grid; align-content: start; gap: 2px; min-width: 0; }
.mobile-nav a { display: block; padding: 10px 12px; color: var(--ink-navy); text-decoration: none; border-radius: 10px; overflow-wrap: anywhere; min-height: 44px; }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--accent-sage-soft); color: var(--accent-sage); }
.menu-label { padding: 4px 12px; color: var(--ink-muted); font-weight: 600; font-size: 13px; }
.menu-grounds { margin-left: 12px; border-left: 2px solid var(--border-soft); padding-left: 6px; }
.menu-grounds a { font-size: 14px; }
.menu-toggle[aria-expanded="true"] { background: var(--accent-sage-soft); }
.residence-card { display: flex; flex-direction: column; }
.residence-image-link { display: block; }
.residence-image-link img { display: block; width: 100%; height: auto; aspect-ratio: 640/420; object-fit: contain; background: #e9dfd1; }
.residence-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.residence-content h2 a { color: inherit; text-decoration: none; }
.residence-content h2 a:hover { text-decoration: underline; }
.residence-content li a, .detail-back a, .breadcrumbs a { color: var(--accent-sage); }
.residence-content .residence-link { margin-top: auto; }
.residence-content ul { margin-bottom: 24px; }
.detail-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 36px; }
.detail-grid > div, .detail-grid > figure { min-width: 0; }
.detail-grid h1 { font-size: clamp(32px, 4.3vw, 56px); overflow-wrap: anywhere; }
.detail-grid .history-date { display: block; margin-bottom: 12px; }
.breadcrumbs { margin-bottom: 30px; color: var(--ink-muted); font-size: 14px; overflow-wrap: anywhere; }
.detail-body { margin-top: 40px; }
.detail-panel { border: 1px solid var(--border-soft); padding: 28px; border-radius: var(--radius-lg); background: var(--bg-card); max-width: 850px; }
.detail-panel ul { padding-left: 24px; }
.detail-panel p + p { margin-top: 12px; }
.detail-back { margin-top: 28px; }
.ground-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.ground-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink-navy); padding: 24px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-soft); overflow-wrap: anywhere; box-shadow: var(--shadow-soft); }
.ground-card:hover { border-color: var(--accent-sage); }
.ground-card h3 { font-size: 20px; line-height: 1.35; }
.ground-card p { color: var(--ink-muted); font-size: 15px; }
.ground-more { margin-top: auto; color: var(--accent-sage); font-weight: 600; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: minmax(0,1fr); gap: 22px; } .ground-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .menu-layout, .ground-grid { grid-template-columns: minmax(0,1fr); gap: 12px; } .nav-inner { min-height: 68px; } .mobile-nav:not([hidden]) { max-height: calc(100dvh - 68px); } .brand { min-width: 0; } .brand-text { min-width: 0; } .brand-sub { overflow-wrap: anywhere; } .detail-grid h1 { font-size: clamp(30px,8vw,42px); } .detail-panel, .ground-card { padding: 20px; } .residence-content .btn { width: 100%; } .hero-grid { grid-template-columns: minmax(0,1fr); } .contact-box { grid-template-columns: minmax(0,1fr); } .trust-micro { gap: 12px; } }


/* Содержание тематических страниц */
.detail-body > h2, .detail-body > p, .detail-body > ul, .detail-body > .info-note, .detail-body > .step-list, .detail-body > .faq, .detail-body > .sources, .detail-body > .table-wrap { max-width: 860px; }
.detail-body > h2 { margin-top: 48px; }
.detail-body > section > h2 { margin-top: 48px; }
.detail-body > p, .split-text p, .detail-panel p { color: var(--ink-muted); font-size: 17px; margin-top: 12px; }
.detail-body > p:first-child { margin-top: 0; }
.split-text h2 { margin-top: 0; }
.detail-body { margin-top: 24px; }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-muted); font-size: 16px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; background: var(--accent-sage-soft); color: var(--accent-sage); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.residence-content ul li a { color: var(--accent-sage); }
.info-note { margin-top: 28px; padding: 22px 26px; background: var(--bg-warm-tint); border-radius: var(--radius-md); border-left: 4px solid var(--accent-sage); }
.info-note h3 { font-size: 18px; margin-bottom: 6px; }
.info-note p { color: var(--ink-muted); font-size: 16px; }
.step-list { list-style: none; counter-reset: st; display: grid; gap: 14px; margin-top: 20px; padding: 0; }
.step-list li { counter-increment: st; position: relative; display: grid; gap: 4px; padding: 18px 20px 18px 74px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md); }
.step-list li::before { content: counter(st); position: absolute; left: 20px; top: 16px; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-amber); color: #fff; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; display: grid; place-items: center; }
.step-list strong { font-size: 17px; }
.step-list span { color: var(--ink-muted); font-size: 15px; }
.faq { margin-top: 48px; }
.faq details { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-md); margin-top: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--accent-sage); }
.faq details p { color: var(--ink-muted); padding-bottom: 18px; margin: 0; }
.doc-figure { margin: 28px 0 0; max-width: 760px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-soft); }
.doc-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.doc-figure figcaption { font-size: 13px; color: var(--ink-muted); text-align: center; margin-top: 10px; padding: 0 6px 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 48px; }
.split > * { min-width: 0; }
.split .doc-figure { margin-top: 0; }
.split-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split .btn { margin-top: 6px; }
.sources { margin-top: 48px; }
.sources ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.sources a { color: var(--accent-sage); font-weight: 600; overflow-wrap: anywhere; }
.sources-note { margin-top: 14px; font-size: 14px; color: var(--ink-muted); }
.detail-body .pdf-grid { margin-top: 18px; }
.pdf-section-title { margin: 48px 0 18px; }
.pdf-group-title { margin: 44px 0 18px; font-size: clamp(22px, 2.4vw, 28px); }
.pdf-intro { margin-bottom: 8px; }
.more-link { margin-top: 22px; }
.detail-steps { margin-top: 56px; }
.experience-panel { max-width: none; }
.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--bg-card); }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.compare-table caption { text-align: left; padding: 14px 18px; font-weight: 700; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--border-soft); color: var(--ink-muted); }
.compare-table thead th { background: var(--bg-warm-tint); color: var(--ink-navy); }
.compare-table tbody th a { color: var(--accent-sage); font-weight: 700; }
.ground-grid { margin-top: 20px; }
.footer-biber { margin-top: 24px; display: flex; justify-content: flex-end; }
.biber-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-muted); font-size: 13px; padding: 6px 10px 6px 6px; border: 1px solid var(--border-soft); border-radius: var(--radius-pill); background: var(--bg-card); transition: border-color .2s; }
.biber-link:hover { border-color: var(--accent-sage); color: var(--ink-navy); }
.biber-link img { display: block; width: 84px; height: auto; aspect-ratio: 360/203; border-radius: 999px; object-fit: cover; }
/* О нас */
.narrator-photo { flex: 0 0 120px; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid var(--accent-sage-soft); }
.story-lead { max-width: 760px; margin: 0 0 32px; }
.story-lead p { color: var(--ink-muted); font-size: 18px; }
.story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-grid .history-card { padding: 30px; }
@media (max-width: 960px) {
  .split, .split-reverse { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .split-reverse .doc-figure { order: 2; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .step-list li { padding: 16px 16px 16px 62px; }
  .step-list li::before { left: 14px; width: 34px; height: 34px; }
  .narrator-photo { flex-basis: 76px; width: 76px; height: 76px; }
  .detail-body > p, .split-text p, .detail-panel p { font-size: 16px; }
  .footer-biber { justify-content: flex-start; }
  .faq details { padding: 0 16px; }
}

/* Biber: hidden entrance on residence-card photographs. */
.biber-card-trigger{position:relative;display:block;isolation:isolate;cursor:pointer}
.biber-card-trigger::after{content:"";position:absolute;z-index:2;right:5%;bottom:4%;width:clamp(62px,29%,126px);aspect-ratio:1;background:url("images/biberek-hover.webp") center/contain no-repeat;opacity:0;transform:translateY(12px) scale(.75);transition:opacity .2s ease,transform .28s cubic-bezier(.2,.8,.2,1.3);pointer-events:none;filter:drop-shadow(0 3px 6px #15243c55)}
@media (hover:hover) and (pointer:fine){.biber-card-trigger:hover::after{opacity:1;transform:none}}
.biber-card-trigger:focus-visible::after{opacity:1;transform:none}
.residence-image-link.biber-card-trigger img{aspect-ratio:4/3;object-fit:contain;background:transparent}
@media(prefers-reduced-motion:reduce){.biber-card-trigger::after{transition:none;transform:none}}

@media (min-width: 961px) { .citizenship-document-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }

/* Homepage document miniatures and editorial navigation. */
.desk-documents{display:flex;align-items:center;gap:7px;min-width:0}
.desk-documents img{display:block;width:52px;height:36px;object-fit:contain;border-radius:4px;filter:drop-shadow(0 1px 2px #132a3a22)}
.desk-documents img.desk-passport{width:32px;height:39px}
.hero-document-caption-link{color:inherit;text-decoration:underline;text-underline-offset:3px}
.hero-document-caption-link:hover{color:var(--accent-sage)}
.hero-practice-link{color:inherit;text-decoration:none;transition:border-color .2s ease}
.hero-practice-link:hover{border-color:var(--accent-sage)}
.hero-practice-link:focus-visible,.hero-document-caption-link:focus-visible{outline:2px solid var(--accent-sage);outline-offset:3px}
@media(max-width:480px){.desk-documents{gap:5px}.desk-documents img{width:43px;height:30px}.desk-documents img.desk-passport{width:27px;height:34px}}
