    :root {
      --bg: #0d1217;
      --bg-soft: #121a22;
      --surface: #171f29;
      --surface-2: #1f2a37;
      --text: #f4f7fb;
      --muted: #a8b2c2;
      --accent: #d4a968;
      --accent-soft: rgba(212, 169, 104, 0.15);
      --line: rgba(207, 217, 231, 0.18);
      --ok: #49b68e;
      --danger: #ff7b7b;
      --radius: 18px;
      --shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
      --maxw: 1180px;
    }

    * { box-sizing: border-box; }

    html, body {
      margin: 0;
      padding: 0;
      background: radial-gradient(circle at 12% 0%, #1a2430 0, var(--bg) 48%), var(--bg);
      color: var(--text);
      font-family: "Manrope", sans-serif;
      scroll-behavior: smooth;
      overflow-x: hidden;
    }

    body.modal-open { overflow: hidden; }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(600px 320px at 90% 8%, rgba(212, 169, 104, 0.1), transparent 70%),
        radial-gradient(600px 360px at 10% 76%, rgba(94, 147, 227, 0.1), transparent 72%);
      z-index: -1;
    }

    .wrap {
      width: min(var(--maxw), calc(100% - 1.5rem));
      margin: 0 auto;
    }

    section { scroll-margin-top: 84px; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(10px);
      background: rgba(13, 18, 23, 0.78);
      border-bottom: 1px solid var(--line);
    }

    .topbar-inner {
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      position: relative;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 0.48rem;
      font-size: 0.84rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 800;
      max-width: 390px;
      color: #eef4ff;
    }

    .brand .brand-mark {
      width: 28px;
      height: 28px;
      flex-shrink: 0;
      border-radius: 50%;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .nav a {
      text-decoration: none;
      color: #d6deea;
      font-size: 0.93rem;
      font-weight: 600;
      opacity: 0.92;
    }

    .nav-toggle {
      display: none;
      width: 42px;
      height: 42px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.04);
      color: #e2ebf8;
      padding: 0;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      gap: 4px;
      flex-direction: column;
    }

    .nav-toggle span {
      width: 18px;
      height: 2px;
      border-radius: 999px;
      background: currentColor;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .topbar.nav-open .nav-toggle span:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }

    .topbar.nav-open .nav-toggle span:nth-child(2) {
      opacity: 0;
    }

    .topbar.nav-open .nav-toggle span:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }

    .btn {
      border: 1px solid transparent;
      border-radius: 999px;
      padding: 0.82rem 1.25rem;
      font-family: inherit;
      font-size: 0.93rem;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    }

    .btn:hover { transform: translateY(-1px); }
    .btn:active { transform: translateY(0); }

    .btn-primary {
      background: linear-gradient(120deg, #d8b27b, #c6914a);
      color: #17212d;
      box-shadow: 0 16px 28px rgba(198, 145, 74, 0.3);
    }

    .btn-ghost {
      border-color: var(--line);
      color: #dde6f2;
      background: rgba(255, 255, 255, 0.04);
    }

    .hero {
      padding: 5.2rem 0 3rem;
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 1.1rem;
      align-items: stretch;
    }

    .hero h1 {
      margin: 0;
      font-family: "Prata", serif;
      font-size: clamp(2.05rem, 5.6vw, 4.2rem);
      line-height: 1.08;
      max-width: 13ch;
      letter-spacing: 0.01em;
    }

    .hero p {
      margin: 1.1rem 0 0;
      color: var(--muted);
      line-height: 1.66;
      font-size: 1.05rem;
      max-width: 66ch;
    }

    .hero-actions {
      margin-top: 1.6rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
    }

    .panel {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(160deg, rgba(35, 48, 63, 0.92), rgba(21, 29, 39, 0.95));
      box-shadow: var(--shadow);
      padding: 1.3rem;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .panel::before {
      content: "";
      position: absolute;
      right: -40px;
      top: -40px;
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(212, 169, 104, 0.2), transparent 70%);
    }

    .panel small {
      display: block;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-size: 0.72rem;
      color: #90a2b7;
      font-weight: 800;
      margin-bottom: 0.6rem;
    }

    .panel strong {
      display: block;
      font-size: 1.06rem;
      line-height: 1.45;
      margin-bottom: 0.9rem;
    }

    .stats {
      margin-top: 0.95rem;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.6rem;
    }

    .stat {
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.03);
      padding: 0.7rem;
    }

    .stat b {
      display: block;
      font-size: 1.15rem;
      color: #f7dbb1;
      margin-bottom: 0.15rem;
    }

    .stat span {
      font-size: 0.78rem;
      color: #a7b3c5;
      line-height: 1.35;
    }

    .consultation-quote {
      margin-top: auto;
      padding-top: 0.78rem;
      border-top: 1px dashed rgba(207, 217, 231, 0.24);
      opacity: 0.92;
    }

    .consultation-quote p {
      margin: 0;
      font-size: 0.92rem;
      line-height: 1.5;
      color: #c6d4e8;
      min-height: 2.8rem;
      transition: opacity 0.42s ease, transform 0.42s ease;
      will-change: opacity, transform;
    }

    .consultation-quote.is-transitioning p,
    .consultation-quote.is-transitioning .quote-meta {
      opacity: 0;
      transform: translateY(-4px);
    }

    section { padding: 1.3rem 0 2.2rem; }

    .section-head {
      margin-bottom: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 1rem;
    }

    h2 {
      margin: 0;
      font-family: "Prata", serif;
      font-size: clamp(1.65rem, 4vw, 2.7rem);
      letter-spacing: 0.01em;
    }

    .subtitle {
      margin: 0.65rem 0 0;
      color: var(--muted);
      line-height: 1.6;
      max-width: 70ch;
    }

    .grid { display: grid; gap: 0.9rem; }

    .practices { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .card {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: linear-gradient(160deg, rgba(25, 34, 45, 0.88), rgba(19, 26, 34, 0.95));
      padding: 1.05rem;
      box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
      opacity: 0;
      transform: translateY(12px);
      animation: rise 0.6s ease forwards;
    }

    .card:nth-child(2) { animation-delay: 0.06s; }
    .card:nth-child(3) { animation-delay: 0.12s; }
    .card:nth-child(4) { animation-delay: 0.18s; }
    .card:nth-child(5) { animation-delay: 0.24s; }
    .card:nth-child(6) { animation-delay: 0.3s; }

    .card h3 {
      margin: 0 0 0.52rem;
      font-size: 1.03rem;
      color: #f1f5fb;
    }

    .card p {
      margin: 0;
      color: #aab5c4;
      line-height: 1.57;
      font-size: 0.95rem;
    }

    .approach {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 0.9rem;
    }

    .timeline {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 1rem;
      background: linear-gradient(160deg, rgba(22, 30, 40, 0.88), rgba(16, 23, 30, 0.95));
    }

    .timeline .step {
      position: relative;
      padding-left: 2.2rem;
      margin-bottom: 1rem;
    }

    .timeline .step:last-child { margin-bottom: 0; }

    .timeline .step::before {
      content: attr(data-step);
      position: absolute;
      left: 0;
      top: 0;
      width: 1.55rem;
      height: 1.55rem;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 0.74rem;
      font-weight: 800;
      color: #1b2634;
      background: linear-gradient(130deg, #e3c08f, #c5914b);
    }

    .timeline h3 { margin: 0 0 0.35rem; font-size: 1rem; }
    .timeline p { margin: 0; color: var(--muted); line-height: 1.55; }

    .approach-note {
      border: 1px solid #4b5b71;
      border-radius: 16px;
      background: linear-gradient(160deg, #1e2b3c, #1a2432);
      padding: 1rem;
      align-self: start;
    }

    .approach-note small {
      display: block;
      margin-bottom: 0.52rem;
      font-size: 0.74rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #9cb2cb;
      font-weight: 700;
    }

    .approach-note p {
      margin: 0;
      min-height: 5.3rem;
      line-height: 1.6;
      color: #dbe6f5;
    }

    .quote-meta {
      margin-top: 0.7rem;
      color: #98adc7;
      font-size: 0.86rem;
      transition: opacity 0.42s ease, transform 0.42s ease;
      will-change: opacity, transform;
    }

    @media (prefers-reduced-motion: reduce) {
      .consultation-quote p,
      .quote-meta {
        transition: none;
      }
    }

    .expert {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: linear-gradient(160deg, rgba(26, 36, 48, 0.92), rgba(20, 27, 36, 0.95));
      padding: 1.1rem;
    }

    .expert strong {
      display: block;
      margin-bottom: 0.5rem;
      font-size: 1.08rem;
    }

    .expert p {
      margin: 0;
      color: var(--muted);
      line-height: 1.62;
    }

    .tags {
      margin-top: 0.9rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .tag {
      padding: 0.38rem 0.62rem;
      border-radius: 999px;
      border: 1px solid rgba(212, 169, 104, 0.3);
      background: var(--accent-soft);
      color: #f6d7a8;
      font-size: 0.8rem;
      font-weight: 700;
    }

    .cta-band {
      margin: 1.4rem 0 2.4rem;
      border: 1px solid rgba(212, 169, 104, 0.35);
      border-radius: 18px;
      background: linear-gradient(120deg, rgba(212, 169, 104, 0.14), rgba(66, 99, 145, 0.18));
      padding: 1.15rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .cta-band p {
      margin: 0;
      color: #d8e2f2;
      line-height: 1.52;
      max-width: 60ch;
    }

    footer {
      border-top: 1px solid var(--line);
      margin-top: 1.1rem;
      padding: 1.8rem 0;
      color: #94a6bc;
      text-align: center;
      font-size: 0.9rem;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(7, 10, 14, 0.72);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      z-index: 40;
    }

    .modal-backdrop.open { display: flex; }

    .modal {
      width: min(620px, 100%);
      max-height: 92vh;
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: linear-gradient(160deg, #18222e, #121a23);
      box-shadow: var(--shadow);
      padding: 1.15rem;
    }

    .modal-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 0.7rem;
      margin-bottom: 0.9rem;
    }

    .modal-head h3 {
      margin: 0;
      font-size: 1.28rem;
      font-family: "Prata", serif;
      line-height: 1.2;
    }

    .modal-head p {
      margin: 0.5rem 0 0;
      color: var(--muted);
      line-height: 1.54;
      font-size: 0.93rem;
    }

    .close {
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.04);
      color: #dce5f2;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      font-size: 1.1rem;
      cursor: pointer;
    }

    .form {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.75rem;
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 0.34rem;
    }

    .field.full { grid-column: 1 / -1; }

    .hp-field-wrap {
      position: absolute;
      left: -99999px;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
      overflow: hidden;
    }

    label {
      font-size: 0.76rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #9fb0c6;
      font-weight: 700;
    }

    .consent-field {
      margin-top: 0.2rem;
    }

    .consent-check {
      display: flex;
      align-items: flex-start;
      gap: 0.55rem;
      font-size: 0.84rem;
      text-transform: none;
      letter-spacing: normal;
      color: #b5c4d8;
      font-weight: 500;
      line-height: 1.45;
    }

    .consent-check input[type="checkbox"] {
      width: 17px;
      height: 17px;
      margin-top: 1px;
      accent-color: #d8b27b;
      flex: 0 0 auto;
    }

    .consent-check a {
      color: #f4d7a8;
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    input, textarea, select {
      width: 100%;
      border-radius: 12px;
      border: 1px solid #3b4b5f;
      background: rgba(255, 255, 255, 0.03);
      color: #ecf2fb;
      font: inherit;
      font-size: 16px;
      padding: 0.72rem 0.8rem;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus,
    select:-webkit-autofill,
    select:-webkit-autofill:hover,
    select:-webkit-autofill:focus {
      -webkit-text-fill-color: #ecf2fb;
      caret-color: #ecf2fb;
      -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.03) inset;
      box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.03) inset;
      transition: background-color 9999s ease-out 0s;
    }

    input:-moz-autofill,
    textarea:-moz-autofill,
    select:-moz-autofill {
      box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.03) inset;
      -moz-text-fill-color: #ecf2fb;
      caret-color: #ecf2fb;
    }

    textarea {
      min-height: 108px;
      resize: vertical;
    }

    select {
      appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, #cfd9e7 50%), linear-gradient(135deg, #cfd9e7 50%, transparent 50%);
      background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 12px) calc(1em + 2px);
      background-size: 6px 6px, 6px 6px;
      background-repeat: no-repeat;
      padding-right: 2rem;
    }

    .form-foot {
      margin-top: 0.9rem;
      display: flex;
      align-items: center;
      gap: 0.7rem;
      flex-wrap: wrap;
    }

    .status {
      margin: 0;
      color: #9bafc8;
      font-size: 0.9rem;
      min-height: 1.2rem;
    }

    .status.ok { color: var(--ok); }
    .status.error { color: var(--danger); }

    .cabinet-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.9rem;
    }

    .cabinet-card {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: linear-gradient(160deg, rgba(23, 32, 42, 0.9), rgba(17, 24, 33, 0.95));
      padding: 1rem;
    }

    .cabinet-card h3 {
      margin: 0 0 0.65rem;
      font-size: 1.03rem;
    }

    .cabinet-meta {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.5rem;
      margin-top: 0.7rem;
    }

    .meta-row {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 0.58rem 0.65rem;
      background: rgba(255, 255, 255, 0.02);
    }

    .meta-row small {
      display: block;
      color: #9fb0c6;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 0.2rem;
    }

    .meta-row b {
      display: block;
      color: #eaf2ff;
      font-size: 0.9rem;
      font-weight: 700;
      line-height: 1.4;
    }

    .simple-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 0.5rem;
      max-height: 280px;
      overflow: auto;
    }

    .simple-item {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 0.58rem 0.65rem;
      background: rgba(255, 255, 255, 0.02);
    }

    .simple-item p {
      margin: 0.24rem 0 0;
      color: #d8e3f3;
      line-height: 1.5;
      font-size: 0.92rem;
      overflow-wrap: anywhere;
    }

    .simple-item time {
      color: #9eb1ca;
      font-size: 0.78rem;
    }

    .chat-form {
      margin-top: 0.7rem;
      display: grid;
      gap: 0.55rem;
    }

    .chat-form textarea {
      min-height: 84px;
    }

    .file-row {
      margin-top: 0.7rem;
      display: flex;
      gap: 0.5rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .file-row input[type="file"] {
      max-width: 100%;
    }

    .featured-team-section[hidden] {
      display: none !important;
    }

    .featured-team-shell {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 0.6rem;
      align-items: center;
    }

    .featured-team-track {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 220px;
      gap: 1rem;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      padding: 0.5rem 0.25rem 1rem;
    }

    .featured-team-track::-webkit-scrollbar {
      display: none;
    }

    .featured-card {
      scroll-snap-align: start;
      position: relative;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 20px;
      background: linear-gradient(175deg, rgba(30, 42, 58, 0.96), rgba(16, 23, 33, 0.98));
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      padding: 1.4rem 1rem 1.2rem;
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255,255,255,0.04) inset;
      animation: rise 0.42s ease forwards;
      opacity: 0;
      transform: translateY(10px);
      transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
      cursor: default;
    }

    .featured-card:hover {
      border-color: rgba(212, 169, 104, 0.25);
      box-shadow: 0 14px 42px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(212, 169, 104, 0.12);
      transform: translateY(-3px);
    }

    /* Avatar wrapper keeps the golden ring glow */
    .featured-avatar-wrap {
      position: relative;
      margin-bottom: 0.9rem;
      flex: 0 0 auto;
    }

    .featured-avatar {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(212, 169, 104, 0.45);
      box-shadow: 0 0 0 4px rgba(212, 169, 104, 0.1), 0 6px 18px rgba(0,0,0,0.35);
      background: rgba(30, 42, 58, 0.8);
      display: block;
    }

    /* Initials placeholder when no avatar */
    .featured-avatar-initials {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      border: 2px solid rgba(212, 169, 104, 0.45);
      box-shadow: 0 0 0 4px rgba(212, 169, 104, 0.1), 0 6px 18px rgba(0,0,0,0.35);
      background: linear-gradient(135deg, #1e3558, #0f1e32);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      font-weight: 700;
      color: rgba(212, 169, 104, 0.85);
      letter-spacing: 0.01em;
      user-select: none;
    }

    .featured-chip {
      position: absolute;
      top: -6px;
      right: -6px;
      border-radius: 999px;
      padding: 0.16rem 0.44rem;
      border: 1px solid rgba(212, 169, 104, 0.4);
      background: rgba(212, 169, 104, 0.14);
      color: #f4d7a8;
      font-size: 0.66rem;
      font-weight: 700;
      white-space: nowrap;
      backdrop-filter: blur(4px);
    }

    .featured-card-body {
      min-width: 0;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.3rem;
      text-align: center;
    }

    .featured-card-top {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .featured-card-top h3 {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 700;
      line-height: 1.3;
      color: #eef4ff;
      overflow-wrap: anywhere;
    }

    .featured-meta {
      margin: 0;
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
      background: rgba(37, 99, 235, 0.16);
      border: 1px solid rgba(37, 99, 235, 0.28);
      color: #93b4e8;
      font-size: 0.76rem;
      font-weight: 500;
      line-height: 1.3;
      overflow-wrap: anywhere;
    }

    .featured-caption {
      margin: 0.2rem 0 0;
      color: #8ea5be;
      font-size: 0.81rem;
      line-height: 1.55;
      overflow-wrap: anywhere;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .featured-caption > :first-child {
      margin-top: 0;
    }

    .featured-caption > :last-child {
      margin-bottom: 0;
    }

    .featured-caption p {
      margin: 0;
    }

    .featured-caption ul {
      margin: 0.2rem 0;
      padding-left: 1.1rem;
      display: grid;
      gap: 0.15rem;
    }

    .featured-caption code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
      font-size: 0.83em;
      padding: 0.08em 0.35em;
      border-radius: 6px;
      border: 1px solid rgba(154, 176, 206, 0.24);
      background: rgba(33, 47, 66, 0.72);
      color: #f3dfbf;
    }

    .featured-caption a {
      color: #f1ca8f;
      text-decoration: underline;
      text-underline-offset: 0.14em;
    }

    .carousel-nav {
      width: 40px;
      height: 40px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.04);
      color: #e8eff8;
      font-size: 1.4rem;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }

    .carousel-nav:hover {
      transform: translateY(-1px);
      border-color: rgba(212, 169, 104, 0.3);
      background: rgba(212, 169, 104, 0.08);
    }

    .carousel-dots {
      margin-top: 0.55rem;
      display: flex;
      gap: 0.4rem;
      justify-content: center;
      min-height: 10px;
    }

    .carousel-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      border: none;
      padding: 0;
      cursor: pointer;
      background: rgba(207, 217, 231, 0.28);
      transition: transform 0.15s ease, background 0.15s ease;
    }

    .carousel-dot.active {
      background: rgba(212, 169, 104, 0.9);
      transform: scale(1.15);
    }

    .brand,
    .meta-row b {
      overflow-wrap: anywhere;
    }

    @keyframes rise {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 980px) {
      .hero,
      .approach,
      .practices {
        grid-template-columns: 1fr;
      }

      .featured-team-track {
        grid-auto-columns: 200px;
      }
    }

    @media (max-width: 740px) {
      .topbar-inner {
        min-height: 66px;
        padding: 0.62rem 0;
      }

      .brand {
        max-width: calc(100% - 56px);
      }

      .nav-toggle {
        display: inline-flex;
      }

      .nav {
        position: absolute;
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
        padding: 0.62rem;
        border-radius: 16px;
        border: 1px solid var(--line);
        background: linear-gradient(155deg, rgba(27, 38, 52, 0.95), rgba(17, 24, 33, 0.96));
        box-shadow: 0 18px 30px rgba(4, 8, 12, 0.45);
        opacity: 0;
        transform: translateY(-7px);
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
      }

      .topbar.nav-open .nav {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
      }

      .nav a,
      .nav .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
      }

      .hero {
        padding-top: 2.4rem;
      }

      .stats {
        grid-template-columns: 1fr;
      }

      .form {
        grid-template-columns: 1fr;
      }

      .cabinet-layout {
        grid-template-columns: 1fr;
      }

      .cabinet-meta {
        grid-template-columns: 1fr;
      }

      .hero-actions .btn {
        width: 100%;
      }

      .featured-team-shell {
        grid-template-columns: 1fr;
      }

      .carousel-nav {
        display: none;
      }

      .featured-team-track {
        grid-auto-columns: 186px;
      }

      .simple-list {
        max-height: 220px;
      }
    }

    @media (max-width: 520px) {
      .wrap {
        width: calc(100% - 1rem);
      }

      section {
        scroll-margin-top: 76px;
      }

      .brand {
        font-size: 0.78rem;
        max-width: none;
      }

      .nav {
        top: calc(100% - 3px);
      }

      .featured-team-track {
        grid-auto-columns: 172px;
      }

      .featured-avatar,
      .featured-avatar-initials {
        width: 80px;
        height: 80px;
      }

      .hero {
        padding-top: 1.4rem;
      }

      .panel,
      .card,
      .expert,
      .cabinet-card {
        padding: 0.85rem;
      }

      .file-row {
        flex-direction: column;
        align-items: stretch;
      }

      .file-row .btn {
        width: 100%;
      }

      .modal-backdrop {
        padding: 0;
      }

      .modal {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        border: none;
        padding: 0.95rem;
      }

      .modal-head {
        position: sticky;
        top: 0;
        z-index: 2;
        background: linear-gradient(160deg, #18222e, #121a23);
        padding-bottom: 0.5rem;
        margin-bottom: 0.7rem;
      }

      .close {
        width: 38px;
        height: 38px;
      }

      .form-foot .btn {
        width: 100%;
      }
    }
