    @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Roboto+Condensed:wght@400;500;700&display=swap');

    :root {
      --font-body: "Manrope", "Segoe UI", sans-serif;
      --font-display: "Roboto Condensed", "Segoe UI", sans-serif;
      --bg: #f6f3ee;
      --bg-soft: #f0ebe3;
      --surface: #ffffff;
      --ink: #1a1614;
      --muted: #4a453e;
      --line: #e6e0d6;
      --accent: #2d5b56;
      --accent-strong: #21423f;
      --accent-soft: #e2efe9;
      --accent-pale: #f0f6f3;
      --paper: #f3e9d8;
      --paper-edge: #e6d7c2;
      --tab-green: #6f8f6a;
      --tab-blue: #5b7fb5;
      --tab-gold: #c8a64a;
      --tab-rose: #c97890;
      --tab-sage: #8aa68f;
      --shadow: 0 18px 40px rgba(31, 27, 22, 0.08);
      --radius-lg: 22px;
      --radius-md: 16px;
      --radius-sm: 12px;
      --transition: 0.25s ease;

      --gradient-card: linear-gradient(135deg, #e4efe9, #f7f1e6 65%);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      letter-spacing: 0.005em;
      color: var(--ink);
      background: radial-gradient(900px circle at 10% -10%, #e7f1ec 0%, transparent 55%),
        radial-gradient(800px circle at 90% 10%, #f3ede5 0%, transparent 55%),
        var(--bg);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    body[data-theme='dark'] {
      --bg: #161616;
      --bg-soft: #1c1c1c;
      --surface: #242424;
      --ink: #f5f5f5;
      --muted: #b3b3b3;
      --line: #262626;
      --accent: #6fa69a;
      --accent-strong: #86c3b6;
      --accent-soft: #243734;
      --accent-pale: #1b2624;
      --paper: #1f1f1f;
      --paper-edge: #2c2c2c;
      --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
      --gradient-card: linear-gradient(135deg, #1b2020, #23201c 65%);
    }

    body[data-theme='dark'] {
      background: radial-gradient(900px circle at 10% -10%, rgba(63, 86, 80, 0.3) 0%, transparent 55%),
        radial-gradient(800px circle at 90% 10%, rgba(84, 76, 66, 0.3) 0%, transparent 55%),
        var(--bg);
    }

    body.is-loading .site-header,
    body.is-loading main,
    body.is-loading .footer {
      opacity: 0;
      transform: translateY(10px);
    }

    body.is-loaded .site-header,
    body.is-loaded main,
    body.is-loaded .footer {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    img {
      max-width: 100%;
      display: block;
    }

    a,
    button {
      cursor: pointer;
      color: inherit;
      text-decoration: none;
      font-family: inherit;
    }

    .container {
      width: min(1200px, calc(100% - 32px));
      margin: 0 auto;
    }

    /* Единый отступ для всех секций */
    .section {
      padding: 40px 0;
    }

    .section+.section {
      padding-top: 0;
    }

    .hero {
      position: relative;
      padding: 80px;
      border-radius: 32px;
      background: var(--gradient-card);
      overflow: hidden;
      box-shadow: var(--shadow);
      margin-top: 40px;
      margin-bottom: 40px;
    }

    .section-tight {
      padding: 40px 0;
    }

    /* Buttons */
    .btn {
      border-radius: 16px;
      border: none;
      padding: 14px 26px;
      font-weight: 600;
      font-size: 15px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      position: relative;
      overflow: hidden;
    }

    .btn::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .btn:hover::after {
      opacity: 1;
    }

    .btn:active {
      transform: translateY(0) scale(0.98);
    }

    .btn-primary {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 16px 32px rgba(45, 91, 86, 0.22);
    }

    .btn-primary:hover {
      background: var(--accent-strong);
      transform: translateY(-3px);
      box-shadow: 0 20px 40px rgba(45, 91, 86, 0.35);
    }

    .btn-outline {
      background: transparent;
      border: 1px solid var(--line);
      color: var(--accent-strong);
    }

    .btn-outline:hover {
      border-color: var(--accent);
      background: rgba(255, 255, 255, 0.4);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(45, 91, 86, 0.12);
    }

    .btn-soft {
      background: var(--accent-pale);
      color: var(--accent-strong);
    }

    .btn-ghost {
      background: rgba(255, 255, 255, 0.6);
      color: var(--accent-strong);
    }

    .btn-ghost:hover {
      background: #fff;
    }

    body[data-theme='dark'] .btn-primary {
      color: #0e1a18;
    }

    body[data-theme='dark'] .btn-outline {
      color: var(--ink);
      background: rgba(0, 0, 0, 0.12);
    }

    body[data-theme='dark'] .btn-outline:hover {
      background: rgba(0, 0, 0, 0.2);
    }

    body[data-theme='dark'] .btn-ghost {
      background: rgba(255, 255, 255, 0.08);
      color: var(--ink);
    }

    body[data-theme='dark'] .btn-ghost:hover {
      background: rgba(255, 255, 255, 0.14);
    }

    .theme-toggle {
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--surface);
      padding: 10px 14px;
      font-weight: 600;
      font-size: 13px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--accent-strong);
      transition: var(--transition);
    }

    .theme-toggle:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(31, 27, 22, 0.08);
    }

    .theme-toggle__icon {
      font-size: 14px;
    }

    body[data-theme='dark'] .theme-toggle {
      background: #1f1f1f;
      border-color: var(--line);
      color: var(--ink);
    }


    /* Layouts */
    .grid {
      display: grid;
      gap: 32px;
    }

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

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

    /* Cards */
    .card {
      background: var(--gradient-card);
      border-radius: var(--radius-lg);
      padding: 32px;
      border: 1px solid rgba(255, 255, 255, 0.6);
      box-shadow: 0 18px 32px rgba(31, 27, 22, 0.03);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      max-width: 100%;
    }

    body[data-theme='dark'] .card {
      border-color: var(--line);
      box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 28px 48px rgba(31, 27, 22, 0.1);
    }

    body[data-theme='dark'] .card:hover {
      box-shadow: 0 28px 48px rgba(0, 0, 0, 0.45);
    }

    .card h3 {
      margin: 0 0 12px;
      line-height: 1.3;
      font-size: 20px;
    }

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

    /* Typography */
    .section-title {
      display: grid;
      gap: 16px;
      margin-bottom: 48px;
    }

    .section-title h1,
    .section-title h2 {
      font-family: var(--font-display);
      font-size: clamp(2.2rem, 3.5vw, 3rem);
      margin: 0;
      line-height: 1.1;
    }

    .section-title p {
      margin: 0;
      color: var(--muted);
      max-width: 600px;
      font-size: 18px;
    }

    .pill {
      display: inline-flex;
      padding: 8px 18px;
      border-radius: 99px;
      border: 1px solid var(--line);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 16px;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.5);
      color: var(--accent);
    }

    body[data-theme='dark'] .pill {
      background: #1f1f1f;
      border-color: var(--line);
      color: var(--accent-strong);
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid var(--line);
      font-size: 14px;
      color: var(--muted);
      font-weight: 500;
    }

    body[data-theme='dark'] .badge {
      background: #1f1f1f !important;
      border-color: var(--line) !important;
      color: var(--ink);
    }

    .hero-banner {
      position: relative;
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      padding: 20px;
      min-height: 180px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: #efe7db;
      color: var(--accent-strong);
      text-decoration: none;
      overflow: hidden;
      box-shadow: 0 14px 24px rgba(45, 91, 86, 0.14);
      align-items: start;
    }

    .hero-banner::after {
      content: none;
    }

    .hero-banner__logo {
      min-height: 98px;
      height: auto;
      border-radius: 16px;
      background: #f3ede3;
      border: 1px solid #e4d9c8;
      display: grid;
      place-items: center;
      padding: 8px 12px;
      overflow: hidden;
    }

    .hero-banner__logo-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      display: block;
    }

    .hero-banner__logo-img--dark {
      display: none;
    }

    .hero-banner__content {
      display: grid;
      gap: 6px;
    }

    .hero-banner__title {
      display: none;
    }

    /* Скрыто по просьбе */
    .hero-banner__rating {
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
    }

    .hero-banner__desc {
      font-size: 15px;
      color: var(--muted);
      line-height: 1.4;
    }

    .hero-banner__link {
      font-size: 14px;
      color: var(--accent-strong);
      font-weight: 600;
      margin-top: 4px;
    }

    .hero-banner:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 32px rgba(45, 91, 86, 0.2);
    }

    body[data-theme='dark'] .hero-banner {
      background: #202020;
      border-color: var(--line);
      color: var(--ink);
      box-shadow: 0 18px 28px rgba(0, 0, 0, 0.35);
    }

    body[data-theme='dark'] .hero-banner__logo {
      background: #1b1b1b;
      border-color: rgba(255, 255, 255, 0.08);
    }

    body[data-theme='dark'] .hero-banner__logo-img--light {
      display: none;
    }

    body[data-theme='dark'] .hero-banner__logo-img--dark {
      display: block;
    }

    body[data-theme='dark'] .hero-banner__desc {
      color: var(--muted);
    }

    body[data-theme='dark'] .hero-banner__link {
      color: #9bd0c4;
    }

    /* Header */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(20px);
      background: rgba(246, 243, 238, 0.85);
      border-bottom: 1px solid rgba(230, 224, 214, 0.6);
    }

    body[data-theme='dark'] .site-header {
      background: rgba(18, 18, 18, 0.92);
      border-bottom: 1px solid var(--line);
    }

    .header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 0;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 700;
    }

    .logo-badge {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--accent);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .logo-badge img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    body[data-theme='dark'] .logo-badge {
      border-color: rgba(255, 255, 255, 0.08);
    }

    body[data-theme='dark'] .logo-badge img {
      filter: brightness(1.15) saturate(0.9);
    }

    .nav {
      display: flex;
      gap: 24px;
      font-size: 15px;
    }

    .nav a {
      color: var(--muted);
      padding: 8px 12px;
      border-radius: var(--radius-md);
      transition: var(--transition);
      font-weight: 500;
    }

    .nav a:hover,
    .nav a.active {
      color: var(--accent-strong);
      background: rgba(255, 255, 255, 0.6);
    }

    body[data-theme='dark'] .nav a:hover,
    body[data-theme='dark'] .nav a.active {
      background: #1f1f1f;
      color: var(--ink);
    }

    .header-actions {
      display: flex;
      gap: 16px;
    }

    .menu-toggle {
      display: none;
      padding: 10px 14px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      font-weight: 600;
    }

    .mobile-panel {
      display: none;
      padding: 16px 0 24px;
      border-top: 1px solid var(--line);
      background: var(--bg);
    }

    .mobile-panel.is-open {
      display: block;
    }

    .mobile-panel a {
      padding: 14px 16px;
      border-radius: var(--radius-sm);
      background: var(--surface);
      border: 1px solid var(--line);
      margin-bottom: 8px;
      display: block;
      font-weight: 600;
    }

    /* Hero */
    .hero h1 {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: clamp(2.5rem, 4vw, 3.8rem);
      line-height: 1.2;
      margin: 0 0 24px 0;
      color: var(--ink);
      overflow-wrap: break-word;
      letter-spacing: -0.015em;
    }

    .hero-title-line {
      display: block;
      white-space: nowrap;
    }

    .hero-title-line--sub {
      font-size: 0.76em;
      letter-spacing: -0.02em;
    }

    @media (max-width: 414px) {
      .hero h1 {
        font-size: clamp(0.98rem, 5vw, 1.45rem);
        line-height: 1.05;
        letter-spacing: -0.015em;
      }

      .hero-title-line {
        white-space: nowrap;
      }

      /* Уменьшение отступов */
      .hero {
        padding: 24px 16px;
      }

      .container {
        width: calc(100% - 24px);
      }

      /* Баннеры еще компактнее */
      .hero-banner {
        min-height: 120px;
        padding: 12px;
        gap: 10px;
      }

      .hero-banner__logo {
        min-height: 70px;
        padding: 6px 8px;
      }

      .hero-banner__rating {
        font-size: 12px;
      }

      .hero-banner__desc,
      .hero-banner__link {
        font-size: 12px;
      }

      /* Кнопки */
      .btn {
        padding: 12px 20px;
        font-size: 14px;
      }

      /* Карточки */
      .card {
        padding: 20px;
        border-radius: 16px;
      }

      /* Сетка единственная колонка */
      .grid-2,
      .grid-3 {
        gap: 16px;
      }
    }

    .hero p {
      font-size: 19px;
      margin-bottom: 32px;
      max-width: 540px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 64px;
      align-items: start;
      position: relative;
      z-index: 1;
    }

    .hero-grid>* {
      min-width: 0;
    }

    .profile-photo {
      width: 100%;
      border-radius: 18px;
      border: 1px solid var(--line);
      aspect-ratio: 4/5;
      object-fit: cover;
      background: var(--bg-soft);
    }

    body[data-theme='dark'] .profile-photo {
      border-color: var(--line);
    }

    .hero-profile-photo {
      aspect-ratio: 3 / 4;
      min-height: 360px;
    }

    /* Hero Cards */
    .hero-card {
      background: rgba(255, 255, 255, 0.4);
      backdrop-filter: blur(10px);
      border-radius: 18px;
      padding: 26px;
      border: 1px solid rgba(255, 255, 255, 0.6);
      box-shadow: 0 20px 40px rgba(45, 91, 86, 0.12);
      max-width: 360px;
    }

    body[data-theme='dark'] .hero-card {
      background: #1f1f1f;
      border: 1px solid var(--line);
    }

    body[data-theme='dark'] .rating-card {
      background: #1f1f1f !important;
      border-color: var(--line) !important;
    }

    .hero-card h3 {
      margin: 0 0 8px;
      font-size: 24px;
      line-height: 1.2;
    }

    .hero-card p {
      margin: 0;
      font-size: 16px;
      line-height: 1.5;
    }

    /* Components */
    .list {
      list-style: none;
      padding: 0;
      display: grid;
      gap: 16px;
    }

    .list li {
      display: flex;
      gap: 12px;
      color: var(--muted);
    }

    .check {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--accent-pale);
      display: grid;
      place-items: center;
      font-size: 12px;
      color: var(--accent-strong);
      flex-shrink: 0;
    }

    .faq-item {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 20px 24px;
      background: var(--gradient-card);
    }

    body[data-theme='dark'] .faq-item {
      border-color: var(--line);
    }

    .faq-item summary {
      cursor: pointer;
      font-weight: 600;
      font-size: 17px;
      list-style: none;
      position: relative;
    }

    .faq-item summary::-webkit-details-marker {
      display: none;
    }

    .faq-item summary::after {
      content: '+';
      position: absolute;
      right: 0;
      color: var(--accent);
    }

    .faq-item[open] summary::after {
      content: '−';
    }

    .faq-item p {
      margin-top: 12px;
      color: var(--muted);
    }

    .faq-title {
      text-align: center;
      color: var(--accent);
    }

    /* Footer */
    .footer {
      padding: 48px 0 32px;
      background: #f2eee7;
      border-top: 1px solid var(--line);
      margin-top: auto;
    }

    body[data-theme='dark'] .footer {
      background: #141414;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr 1fr;
      gap: 40px;
    }

    .footer ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 14px;
      color: var(--muted);
    }

    .footer ul a:hover {
      color: var(--accent);
      text-decoration: underline;
    }

    .footer-bottom {
      margin-top: 60px;
      padding-top: 24px;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      display: flex;
      justify-content: space-between;
      color: var(--muted);
      font-size: 13px;
    }

    /* Notebook (Cabinet) */
    .notebook {
      display: grid;
      gap: 24px;
      padding: 32px;
      border-radius: 22px;
      border: 1px solid var(--paper-edge);
      background: linear-gradient(145deg, #f4ecdf, #f9f2e6);
      position: relative;
    }

    .notebook-header {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .notebook-mark {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      font-size: 20px;
    }

    .notebook-sheet {
      background: #fbf6ea;
      border: 1px solid #e5d6c2;
      border-radius: 18px;
      padding: 32px 36px;
      min-height: 260px;
      display: grid;
      gap: 20px;
    }

    .doc-chip {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-radius: 14px;
      font-weight: 600;
      font-size: 14px;
      color: #fff;
      box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
    }

    .doc-chip--green {
      background: linear-gradient(135deg, #5f815c, #8aa982);
    }

    .doc-chip--blue {
      background: linear-gradient(135deg, #4f74ad, #7aa1d7);
    }

    .doc-chip--gold {
      background: linear-gradient(135deg, #c8a24d, #e2c676);
    }

    /* Video Interface */
    .consultation-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
      gap: 24px;
      margin-top: 24px;
    }

    .video-embed {
      width: 100%;
      aspect-ratio: 16/9;
      border-radius: 28px;
      background: #101010;
      position: relative;
      display: grid;
      place-items: center;
      overflow: hidden;
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    }

    .video-placeholder {
      color: #fff;
      text-align: center;
      padding: 20px;
    }

    .video-placeholder__inner {
      display: grid;
      gap: 12px;
      justify-items: center;
    }

    .video-placeholder__title {
      margin: 0;
      font-size: 20px;
    }

    .video-placeholder__text {
      margin: 0;
      max-width: 420px;
      color: rgba(255, 255, 255, 0.75);
    }

    .video-placeholder__timer {
      font-weight: 600;
      color: #fff;
    }

    .video-placeholder__hint {
      margin: 0;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.6);
    }

    .status-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      background: #7aa08c;
      border-radius: 50%;
      margin-right: 8px;
    }

    .video-embed.is-live .status-dot {
      background: #4caf50;
      box-shadow: 0 0 0 6px rgba(76, 175, 80, 0.25);
    }

    .video-stage {
      position: absolute;
      inset: 0;
      display: grid;
      grid-template-rows: 1fr auto;
    }

    .video-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      padding: 18px;
    }

    .video-tile {
      position: relative;
      background: #161616;
      border-radius: 20px;
      overflow: hidden;
      border: 2px solid rgba(118, 171, 153, 0.65);
    }

    .video-tile video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .video-tile__label {
      position: absolute;
      left: 12px;
      bottom: 10px;
      background: rgba(0, 0, 0, 0.55);
      color: #fff;
      font-size: 12px;
      padding: 6px 10px;
      border-radius: 999px;
    }

    .video-toolbar {
      display: flex;
      gap: 12px;
      justify-content: center;
      padding: 12px;
      background: rgba(0, 0, 0, 0.55);
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .video-embed.is-live .video-placeholder {
      display: none;
    }

    .video-embed.is-live .video-stage {
      display: grid;
    }

    .video-expand {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: none;
      background: rgba(0, 0, 0, 0.5);
      color: #fff;
      display: grid;
      place-items: center;
    }

    .consultation-chat {
      background: #f1eadf;
      border-radius: 24px;
      padding: 20px;
      box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
      display: grid;
      gap: 16px;
    }

    .chat-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .chat-header h3 {
      margin: 0;
      font-size: 18px;
    }

    .chat-header span {
      font-size: 12px;
      color: var(--muted);
    }

    .chat-upload {
      width: 100%;
    }

    .chat-files {
      display: grid;
      gap: 10px;
    }

    .chat-file {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      background: #fff;
      border-radius: 14px;
      padding: 10px 12px;
      border: 1px solid rgba(0, 0, 0, 0.08);
      font-size: 13px;
    }

    .chat-file__name {
      min-width: 0;
      overflow-wrap: break-word;
    }

    .chat-file__menu {
      opacity: 0.6;
    }

    .chat-messages {
      display: grid;
      gap: 10px;
      max-height: 180px;
      overflow-y: auto;
    }

    .chat-message {
      padding: 10px 12px;
      border-radius: 14px;
      font-size: 13px;
      line-height: 1.4;
      display: grid;
      gap: 6px;
    }

    .chat-message span {
      font-size: 11px;
      color: rgba(0, 0, 0, 0.5);
    }

    .chat-message--doctor {
      background: #88b39f;
      color: #0f1b18;
    }

    .chat-message--patient {
      background: #d9d2c7;
      color: #1f1b16;
      justify-self: end;
    }

    .chat-input {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 8px;
      align-items: center;
      background: #fff;
      border-radius: 999px;
      padding: 8px 12px;
      border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .chat-input input {
      border: none;
      outline: none;
      background: transparent;
      font-size: 13px;
    }

    .chat-icon {
      border: none;
      background: transparent;
      font-size: 16px;
    }

    body[data-theme='dark'] .consultation-chat {
      background: #1a1a1a;
    }

    body[data-theme='dark'] .chat-file {
      background: #1f1f1f;
      border-color: var(--line);
      color: var(--ink);
    }

    body[data-theme='dark'] .chat-message--doctor {
      background: #5a8776;
      color: #0e1a18;
    }

    body[data-theme='dark'] .chat-message--patient {
      background: #2b2b2b;
      color: var(--ink);
    }

    body[data-theme='dark'] .chat-input {
      background: #1f1f1f;
      border-color: var(--line);
    }

    body[data-theme='dark'] .chat-header span {
      color: var(--muted);
    }

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

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

    /* Patient card (admin) */
    .patient-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
    }

    .patient-title h1 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 24px;
      color: var(--ink);
    }

    .patient-title span {
      font-size: 14px;
      color: var(--muted);
    }

    .patient-actions {
      margin-left: auto;
      display: flex;
      gap: 12px;
    }

    .patient-action--danger {
      background: #ef4444;
      border: none;
    }

    .patient-layout {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 32px;
      align-items: start;
    }

    .patient-main {
      display: grid;
      gap: 24px;
    }

    .patient-video {
      background: #000;
      border-radius: 24px;
      position: relative;
      overflow: hidden;
      min-height: 320px;
      display: grid;
      place-items: center;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .patient-video__rec {
      position: absolute;
      top: 16px;
      left: 16px;
      background: rgba(0, 0, 0, 0.55);
      color: #fff;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .rec-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #ef4444;
      box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
    }

    .patient-video__status {
      color: rgba(255, 255, 255, 0.6);
      font-size: 14px;
    }

    .patient-video__controls {
      position: absolute;
      bottom: 18px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 14px;
    }

    .patient-control {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.16);
      color: #fff;
      font-size: 18px;
      cursor: pointer;
    }

    .patient-control--danger {
      background: #ef4444;
    }

    .patient-data {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 20px 24px;
    }

    .patient-data h3 {
      margin: 0 0 12px;
      font-size: 16px;
    }

    .patient-data__grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .patient-data__label {
      font-size: 12px;
      color: var(--muted);
    }

    .patient-data__value {
      font-weight: 600;
    }

    .patient-data__value--danger {
      color: #ef4444;
    }

    .patient-side {
      display: grid;
      gap: 20px;
    }

    .patient-notes {
      background: #f6efe5;
      border: 1px solid #eadcc9;
      border-radius: 22px;
      padding: 20px;
      display: grid;
      gap: 14px;
    }

    .patient-notes h3 {
      margin: 0;
      font-size: 16px;
    }

    .patient-notes textarea {
      width: 100%;
      min-height: 220px;
      border-radius: 16px;
      border: 1px solid #e6d6c0;
      padding: 14px 16px;
      background: #fff7ea;
      font-family: var(--font-body);
      font-size: 14px;
      resize: vertical;
    }

    .patient-files {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 18px 20px;
    }

    .patient-files h3 {
      margin: 0 0 12px;
      font-size: 14px;
    }

    .doc-chips--stack {
      display: grid;
      gap: 8px;
    }

    body[data-theme='dark'] .patient-data,
    body[data-theme='dark'] .patient-files {
      background: #1f1f1f;
      border-color: var(--line);
    }

    body[data-theme='dark'] .patient-notes {
      background: #1a1a1a;
      border-color: var(--line);
    }

    body[data-theme='dark'] .patient-notes textarea {
      background: #141414;
      color: var(--ink);
      border-color: var(--line);
    }

    @media (max-width: 1000px) {
      .patient-layout {
        grid-template-columns: 1fr;
      }

      .patient-actions {
        margin-left: 0;
        flex-wrap: wrap;
      }
    }

    @media (max-width: 640px) {
      .patient-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .patient-actions {
        width: 100%;
        flex-direction: column;
      }

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

      .patient-action--danger {
        width: 100%;
      }

      .patient-title h1 {
        font-size: 20px;
      }

      .patient-video {
        min-height: 240px;
        border-radius: 20px;
      }

      .patient-video__controls {
        bottom: 12px;
        gap: 10px;
      }

      .patient-control {
        width: 40px;
        height: 40px;
        font-size: 16px;
      }

      .patient-video__status {
        font-size: 12px;
        text-align: center;
        padding: 0 12px;
      }

      .patient-notes {
        padding: 16px;
      }

      .patient-notes textarea {
        min-height: 160px;
      }

      .patient-data__grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 480px) {
      .patient-back {
        width: 100%;
        text-align: left;
      }

      .patient-title span {
        font-size: 12px;
      }

      .patient-data {
        padding: 16px;
      }

      .patient-files {
        padding: 14px 16px;
      }
    }

    /* Admin page */
    .admin-shell {
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 24px;
      align-items: start;
    }

    .admin-sidebar {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 20px;
      display: grid;
      gap: 16px;
      position: sticky;
      top: 96px;
    }

    .admin-sidebar__title {
      font-weight: 700;
      font-size: 16px;
    }

    .admin-sidebar__nav {
      display: grid;
      gap: 10px;
    }

    .admin-sidebar__nav a {
      padding: 10px 12px;
      border-radius: 12px;
      color: var(--muted);
      background: var(--bg-soft);
      font-weight: 600;
    }

    .admin-sidebar__nav a:hover {
      color: var(--accent-strong);
      background: rgba(255, 255, 255, 0.7);
    }

    .admin-main {
      display: grid;
      gap: 32px;
    }

    .admin-metrics {
      margin-bottom: 40px;
    }

    .admin-layout {
      align-items: start;
      gap: 40px;
    }

    .admin-left {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .admin-left>* {
      margin-top: 0 !important;
      /* Override inline margin-top */
    }

    /* Right column sticky */
    .admin-layout>section:last-child {
      position: sticky;
      top: 100px;
    }

    .admin-section-title {
      font-size: 20px;
      margin: 0;
      letter-spacing: -0.01em;
    }

    .admin-section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
    }

    .admin-schedule .admin-section-header {
      margin-bottom: 0;
    }

    .admin-card {
      padding: 24px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
      background: var(--surface);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      border-radius: 24px;
    }

    .admin-card--accent {
      background: var(--surface);
      border: 1px solid var(--line);
    }

    .admin-icon {
      width: 56px;
      height: 56px;
      background: #fff;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 24px;
      color: var(--accent);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .admin-icon--soft {
      background: var(--bg-soft);
    }

    .admin-value {
      font-size: 30px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1;
    }

    .admin-label {
      font-size: 12px;
      color: var(--muted);
      margin-top: 6px;
      line-height: 1.2;
      max-width: 140px;
    }

    .admin-card .admin-label {
      word-break: break-word;
    }

    .admin-schedule {
      display: grid;
      gap: 16px;
      align-items: stretch;
    }

    .admin-badge {
      background: var(--bg-soft);
    }

    .admin-slot {
      display: flex;
      gap: 16px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--line);
      align-items: center;
    }

    .admin-slot-info {
      flex: 1;
      min-width: 0;
    }

    .admin-slot-name,
    .admin-slot-type {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 250px;
    }

    .admin-slot-action {
      white-space: nowrap;
    }

    .admin-time {
      font-weight: 700;
      color: var(--accent);
      font-size: 16px;
      width: 60px;
    }

    .admin-slot--muted {
      border-bottom: none;
    }

    .admin-time--muted {
      color: var(--muted);
    }

    .admin-docs {
      flex-direction: column;
      align-items: stretch;
    }

    .admin-registry {
      flex-direction: column;
      align-items: stretch;
    }

    .admin-registry-list {
      display: grid;
      gap: 12px;
    }

    .admin-registry-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: var(--bg-soft);
    }

    .admin-registry-info {
      min-width: 0;
    }

    .admin-registry-name {
      font-weight: 600;
    }

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

    .admin-registry-status {
      background: rgba(125, 164, 150, 0.2);
      color: var(--accent-strong);
    }

    .admin-stats {
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
    }

    .admin-stats .grid {
      width: 100%;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .admin-stats .admin-card {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      min-height: 110px;
      padding: 18px;
    }

    .admin-stats .admin-value {
      font-size: 28px;
      color: var(--accent);
    }

    .admin-stats .admin-label {
      max-width: none;
      word-break: normal;
      line-height: 1.35;
      font-size: 13px;
    }

    .admin-stats-summary {
      margin-bottom: 16px;
    }

    .admin-stats-summary .admin-card {
      min-height: 88px;
    }

    .admin-subtitle {
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 600;
      margin-top: -8px;
    }

    .admin-planning {
      display: grid;
      gap: 24px;
      align-items: start;
    }

    .admin-planning__section {
      padding-bottom: 24px;
      border-bottom: 1px solid var(--line);
    }

    .admin-planning__section:last-child {
      padding-bottom: 0;
      border-bottom: none;
    }

    .admin-side {
      padding: 32px;
    }

    .admin-calendar {
      background: var(--surface);
      border-radius: 24px;
      padding: 28px;
      margin-bottom: 32px;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
      border: 1px solid var(--line);
    }

    .admin-calendar--embedded {
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      margin: 0;
      border-radius: 0;
    }

    .admin-calendar--with-form {
      margin-bottom: 0;
    }

    .admin-calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      text-align: center;
      gap: 10px;
      row-gap: 16px;
      font-size: 15px;
    }

    .admin-day {
      padding: 10px 0;
      cursor: pointer;
      border-radius: 12px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .admin-day:hover {
      background: var(--bg-soft);
    }

    .admin-day--active {
      background: var(--accent);
      color: #fff;
      border-radius: 14px;
      width: 100%;
      aspect-ratio: 1;
      display: grid;
      place-items: center;
      margin: 0 auto;
      box-shadow: 0 8px 16px rgba(45, 91, 86, 0.25);
      font-weight: 600;
    }

    .admin-day--muted {
      color: #e5e7eb;
      cursor: default;
    }

    .admin-slot-form {
      display: grid;
      gap: 18px;
      align-items: start;
    }

    .admin-slot-form--below {
      margin-top: 24px;
      padding-top: 24px;
      border-top: 1px solid var(--line);
    }

    .admin-slot-form h3 {
      margin: 0;
      font-size: 20px;
    }

    .admin-slot-card {
      background: var(--bg-soft);
      padding: 20px;
      border-radius: 18px;
      border: 1px solid var(--line);
      display: grid;
      gap: 14px;
    }

    .admin-slot-card input {
      background: var(--surface);
      color: var(--ink);
      border-color: var(--line);
    }

    .admin-slot-label {
      font-size: 14px;
      font-weight: 600;
    }

    .admin-slot-row {
      gap: 12px;
    }

    .admin-slot-row input {
      margin: 0;
    }

    .admin-slot-check {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: var(--muted);
      justify-content: flex-end;
      white-space: nowrap;
    }

    .admin-slot-check input {
      width: 18px;
      height: 18px;
      margin: 0;
      accent-color: var(--accent);
    }

    .admin-slot-submit {
      width: 100%;
      border-radius: 16px;
    }

    body[data-theme='dark'] .admin-card {
      background: #1f1f1f;
      border-color: var(--line);
      box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    }

    body[data-theme='dark'] .admin-icon {
      background: #1a1a1a;
      box-shadow: none;
    }

    body[data-theme='dark'] .admin-icon--soft {
      background: #202020;
    }

    body[data-theme='dark'] .admin-badge {
      background: #1f1f1f;
    }

    body[data-theme='dark'] .admin-registry-item {
      background: #1a1a1a;
      border-color: var(--line);
    }

    body[data-theme='dark'] .admin-registry-status {
      background: rgba(125, 164, 150, 0.16);
      color: #cfe6dc;
    }

    body[data-theme='dark'] .admin-calendar {
      background: #1a1a1a;
      border-color: var(--line);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    }

    body[data-theme='dark'] .admin-calendar--embedded {
      background: transparent;
      border-color: transparent;
      box-shadow: none;
    }

    body[data-theme='dark'] .admin-slot-card {
      background: #202020;
      border-color: var(--line);
    }

    body[data-theme='dark'] .admin-slot-card input {
      background: #1b1b1b;
      color: var(--ink);
      border-color: var(--line);
    }

    body[data-theme='dark'] .admin-day:hover {
      background: #222;
    }

    body[data-theme='dark'] .admin-sidebar {
      background: #1f1f1f;
      border-color: var(--line);
    }

    body[data-theme='dark'] .admin-sidebar__nav a {
      background: #1a1a1a;
      color: var(--muted);
    }

    body[data-theme='dark'] .admin-sidebar__nav a:hover {
      background: #232323;
      color: var(--ink);
    }

    @media (max-width: 900px) {
      .admin-stats .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .admin-card {
        padding: 16px;
      }

      .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }

      .admin-slot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }

      .admin-time {
        width: auto;
      }

      .admin-calendar-grid {
        gap: 8px;
        row-gap: 12px;
        font-size: 13px;
      }

      .admin-slot-row {
        grid-template-columns: 1fr;
      }

      .admin-slot-action {
        width: 100%;
        text-align: center;
      }

      .admin-slot-submit {
        width: 100%;
      }

      .consultation-chat {
        padding: 16px;
      }

      .chat-file__menu {
        display: none;
      }
    }

    @media (max-width: 640px) {
      .admin-stats .grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 1100px) {
      .admin-shell {
        grid-template-columns: 1fr;
      }

      .admin-sidebar {
        position: static;
      }
    }

    /* Forms */
    .form {
      display: grid;
      gap: 20px;
    }

    .form-row {
      display: grid;
      gap: 20px;
      grid-template-columns: 1fr 1fr;
    }

    @media (max-width: 600px) {
      .form-row {
        grid-template-columns: 1fr;
      }
    }

    .form input,
    .form textarea {
      width: 100%;
      padding: 16px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: #fff;
      font-family: inherit;
      font-size: 16px;
      transition: border-color 0.2s;
    }

    .form input:focus,
    .form textarea:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    /* Review Carousel */
    .reviews-slider {
      position: relative;
      padding: 0 10px;
    }

    .reviews-track {
      display: flex;
      gap: 24px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      padding-bottom: 20px;
      scrollbar-width: none;
      /* Firefox */
    }

    .reviews-track::-webkit-scrollbar {
      display: none;
    }

    .review-slide {
      min-width: 260px;
      max-width: 280px;
      flex: 0 0 auto;
      scroll-snap-align: start;
    }

    .review-card {
      height: 100%;
      min-height: 420px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      text-align: center;
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 32px 24px;
      box-shadow: 0 18px 32px rgba(31, 27, 22, 0.05);
      transition: transform 0.3s ease;
      max-width: 100%;
    }

    body[data-theme='dark'] .review-card {
      background: #1f1f1f;
      border-color: var(--line);
    }

    body[data-theme='dark'] img[style*="border: 1px solid rgba(255,255,255"] {
      border-color: var(--line) !important;
    }

    @media (min-width: 1024px) {
      .review-slide {
        min-width: 300px;
        max-width: 300px;
      }
    }

    .review-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 22px 40px rgba(31, 27, 22, 0.08);
    }

    .review-card blockquote {
      font-family: var(--font-body);
      font-style: normal;
      line-height: 1.6;
      color: var(--ink);
      margin-bottom: 16px;
      font-size: 15px;
      flex-grow: 1;
      display: flex;
      align-items: center;
    }

    .review-card .rating {
      color: #fbbf24;
      font-size: 18px;
      margin-bottom: 12px;
    }

    .review-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--surface);
      border: 1px solid var(--line);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
      display: grid;
      place-items: center;
      cursor: pointer;
      font-size: 20px;
      color: var(--accent-strong);
      transition: all 0.2s;
    }

    .review-nav:hover {
      background: var(--bg-soft);
      transform: translateY(-50%) scale(1.1);
    }

    .review-nav.prev {
      left: -22px;
    }

    .review-nav.next {
      right: -22px;
    }

    @media (max-width: 768px) {
      .review-nav {
        display: none;
      }

      .reviews-slider {
        padding: 0;
      }

      .review-slide {
        min-width: 100%;
        max-width: 100%;
      }
    }

    /* Home stats alignment */
    .stats-grid>div {
      min-height: 110px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .hero-grid {
      align-items: center;
      /* Vertical center alignment */
    }

    /* Align Hero actions to match banners below */
    .hero-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      /* Match banner gap? Banner gap is 32px usually */
      /* Actually banner grid is grid-2 which has 32px gap in global styles */
      gap: 32px;
      margin-bottom: 32px;
      /* Reduce from 24px + section padding */
    }

    /* Make buttons fill their grid cells */
    /* Hero actions stack on mobile */
    @media (max-width: 768px) {
      .hero-actions {
        grid-template-columns: 1fr !important;
        /* Force stack */
        gap: 12px;
        width: 100%;
      }

      .hero-actions .btn {
        width: 100%;
        /* Full width buttons */
      }

      /* Adjust spacing for banners moved to right column */
      .hero-grid>div:last-child {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }
    }

    .hero-actions .btn {
      width: 100%;
      justify-content: center;
      /* Center horizontally (for flex buttons) */
      text-align: center;
      /* Center text if it wraps */
      height: 100%;
      /* Ensure equal height */
    }

    /* Center the right card */
    .hero-card {
      margin: 0 auto;
      /* Optional: make it full width if needed, but it has max-width 360px */
    }

    /* Reduce gap between buttons and banners */
    /* We need to override .section-tight padding for this specific case if it's used inside hero */
    /* The HTML structure shows banners are in a .section-tight div. We can target it or just remove the class in HTML. */
    /* Let's try to target via CSS relative to hero */
    .hero .section-tight {
      padding-top: 10px;
      padding-bottom: 0;
    }

    /* SPA Logic */
    .page-section {
      display: none;
      animation: fadeIn 0.4s ease;
    }

    .page-section.active {
      display: block;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

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

    /* Responsive */
    @media (max-width: 1000px) {

      .hero-grid,
      .grid-3,
      .grid-2,
      .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .hero {
        padding: 48px 32px;
      }

      .nav,
      .header-actions {
        display: none;
      }

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

      /* Адаптив для карточки врача */
      #page-about .grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
      }

      #page-about .profile-photo {
        max-width: 400px;
        margin: 0 auto;
      }

      #page-about .about-experience .grid {
        display: flex !important;
        flex-direction: column-reverse;
      }
    }

    @media (max-width: 640px) {
      .hero {
        padding: 32px 24px;
        margin-top: 24px;
      }

      .hero h1 {
        font-size: 2rem;
        word-break: break-word;
        hyphens: auto;
      }

      /* Адаптивность баннеров */
      .hero-banner {
        min-height: 140px;
        padding: 16px;
      }

      .hero-banner__logo {
        min-height: 80px;
      }

      .hero-banner__rating,
      .hero-banner__desc,
      .hero-banner__link {
        font-size: 13px;
      }

      /* Адаптивность кнопок */
      .hero-actions {
        flex-direction: column;
        gap: 12px;
      }

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

      /* Отступы карточек */
      .card {
        padding: 24px;
      }

      /* Фото врача */
      .hero-profile-photo {
        min-height: 280px;
      }
    }

    /* Helper utilities */
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--accent-strong);
      background: rgba(255, 255, 255, 0.7);
      border: 1px solid var(--line);
      margin-bottom: 18px;
    }

    body[data-theme='dark'] .eyebrow {
      background: #1f1f1f;
      border-color: var(--line);
    }

    .tag-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #5f815c;
      box-shadow: 0 0 0 6px rgba(95, 129, 92, 0.18);
    }



    .socials {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      /* Чуть больше воздуха */
    }

    /* Иконки-картинки (Instagram, VK, TG, YouTube) */
    .social-img {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      display: block;
      cursor: pointer;
    }

    .social-img:hover {
      transform: translateY(-4px) scale(1.05);
      filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    }

    /* CSS иконка (Threads) */
    .social-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: #000;
      color: #fff;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      position: relative;
      overflow: hidden;
    }

    .social-link::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 100%;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
      pointer-events: none;
    }

    .social-link:hover {
      transform: translateY(-4px) scale(1.05);
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    }

    .social-link svg {
      width: 24px;
      height: 24px;
      display: block;
      z-index: 2;
    }

    .social-link--threads {
      background: black;
      /* Иконка Threads черная */
    }

    .social-link--threads {
      background: #000000;
      border-color: #000000;
    }

    .social-link--youtube {
      background: #FF0000;
      border-color: #FF0000;
    }

    /* Белая иконка внутри GLOBAL */
    .social-link svg path {
      fill: #ffffff;
    }

    /* Dark mode adjustments */
    body[data-theme='dark'] .social-link {
      border: none;
    }

    body[data-theme='dark'] .social-link--threads {
      background: #000000;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    body[data-theme='dark'] .social-link--threads svg path {
      fill: #ffffff;
    }


    .footer-email {
      font-size: 18px;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }

    /* Page selection per file */
    .page-section {
      display: none;
    }

    body[data-page='home'] #page-home,
    body[data-page='about'] #page-about,
    body[data-page='reviews'] #page-reviews,
    body[data-page='faq'] #page-faq,
    body[data-page='blog'] #page-blog,
    body[data-page='legal'] #page-legal,
    body[data-page='legal-offer'] #page-legal-offer,
    body[data-page='legal-privacy'] #page-legal-privacy,
    body[data-page='legal-consent'] #page-legal-consent,
    body[data-page='legal-terms'] #page-legal-terms,
    body[data-page='booking'] #page-booking,
    body[data-page='cabinet'] #page-cabinet,
    body[data-page='admin'] #page-admin,
    body[data-page='admin-patient'] #page-admin-patient {
      display: block;
    }

    body[data-page] .page-section.active {
      display: none;
    }

    /* === FIXES FOR ADMIN PANEL === */

    /* Compact Grid */
    .admin-calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 2px;
      row-gap: 4px;
      margin-top: 16px;
    }

    /* Headers (Mon, Tue...) */
    .admin-calendar-header-cell {
      text-align: center;
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      padding-bottom: 8px;
      letter-spacing: 0.5px;
    }

    /* Day Cell */
    .admin-day {
      height: 38px;
      width: 38px;
      /* Fixed square/circle */
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      font-size: 14px;
      cursor: pointer;
      position: relative;
      color: var(--ink);
      border: 1px solid transparent;
    }

    .admin-day:hover {
      background: var(--bg-soft);
      border-color: var(--line);
    }

    .admin-day--muted {
      color: #cbd5e1;
      /* very light gray */
      pointer-events: none;
    }

    /* Active Day selection */
    .admin-day--active {
      background: var(--accent) !important;
      color: #fff !important;
      font-weight: 600;
      box-shadow: 0 4px 10px rgba(45, 91, 86, 0.3);
      border-color: transparent;
    }

    /* Today indicator (circle outline) */
    .admin-day--today {
      border: 1px solid var(--accent);
      color: var(--accent);
      font-weight: 600;
    }

    .admin-day--active.admin-day--today {
      border-color: transparent;
      color: #fff;
    }

    /* Slot Dot Indicator */
    .has-slots-dot {
      width: 4px;
      height: 4px;
      background-color: var(--accent);
      border-radius: 50%;
      position: absolute;
      bottom: 5px;
    }

    .admin-day--active .has-slots-dot {
      background-color: #fff;
    }

    /* Form Improvements */
    .admin-selected-date-display {
      padding: 12px 16px;
      background: var(--surface);
      border: 1px solid var(--accent);
      border-radius: 12px;
      color: var(--accent-strong);
      font-weight: 600;
      margin-bottom: 12px;
      text-align: center;
      background: rgba(45, 91, 86, 0.05);
    }


    /* === Consultation Room Styles === */
    .consultation-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      padding-top: 24px;
    }

    .consultation-info {
      text-align: center;
    }

    .consultation-info h1 {
      font-size: 24px;
      font-weight: 700;
      margin: 0;
      color: var(--ink);
    }

    .consultation-info p {
      color: var(--muted);
      font-size: 14px;
      margin-top: 4px;
    }

    .consultation-grid {
      display: grid;
      grid-template-columns: 2fr 1.2fr;
      gap: 24px;
      align-items: start;
      padding-bottom: 40px;
    }

    .consultation-video-wrapper {
      background: #000;
      border-radius: 24px;
      overflow: hidden;
      position: relative;
      aspect-ratio: 16/9;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    }

    .patient-data-card {
      margin-top: 24px;
      padding: 24px;
      border-radius: 20px;
      background: #fff;
      /* or var(--surface) */
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    }

    .patient-data-label {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .patient-data-value {
      font-size: 16px;
      font-weight: 600;
      color: var(--ink);
    }

    /* Sidebar Cards */
    .notes-card {
      background: #fbf7f4;
      /* Beige aesthetics from screenshot */
      padding: 24px;
      border-radius: 24px;
      border: 1px solid rgba(0, 0, 0, 0.03);
    }

    .notes-card h3,
    .files-card h3 {
      margin-top: 0;
      margin-bottom: 16px;
      font-size: 18px;
    }

    .notes-area {
      min-height: 240px;
      background: #fff;
      border: 1px solid #eee;
      padding: 16px;
      font-family: inherit;
      font-size: 15px;
      line-height: 1.5;
      border-radius: 12px;
      width: 100%;
      margin-bottom: 16px;
      resize: none;
    }

    .notes-area:focus {
      outline: none;
      border-color: var(--accent);
    }

    .files-card {
      margin-top: 24px;
      background: #eef2f1;
      /* Soft green-gray */
      padding: 24px;
      border-radius: 24px;
    }

    .file-item {
      background: #8baca8;
      /* Muted Green */
      color: #fff;
      padding: 12px 16px;
      border-radius: 12px;
      margin-bottom: 8px;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      transition: opacity 0.2s;
    }

    .file-item:hover {
      opacity: 0.9;
    }

    .file-item--blue {
      background: #7ca1c6;
      /* Muted Blue */
    }

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

    /* === DESIGN IMPROVEMENTS TO 100 === */

    /* 1. Scroll Animations - Fade In */
    .fade-in {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .fade-in.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .fade-in-delay-1 {
      transition-delay: 0.1s;
    }

    .fade-in-delay-2 {
      transition-delay: 0.2s;
    }

    .fade-in-delay-3 {
      transition-delay: 0.3s;
    }

    /* 2. Improved Footer Contrast */
    .footer ul {
      color: var(--ink);
      opacity: 0.85;
    }

    body[data-theme='dark'] .footer ul {
      color: #d1d1d1;
      opacity: 0.9;
    }

    body[data-theme='dark'] .footer-bottom {
      color: #a0a0a0;
    }

    /* 3. Enhanced Blog Search */
    .blog-search-input {
      background: var(--surface) !important;
      border: 2px solid var(--line) !important;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
      transition: all 0.3s ease !important;
    }

    .blog-search-input:focus {
      border-color: var(--accent) !important;
      box-shadow: 0 8px 30px rgba(45, 91, 86, 0.15);
      outline: none;
    }

    body[data-theme='dark'] .blog-search-input {
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    /* 4. Smooth card transitions */
    .card {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 24px 48px rgba(31, 27, 22, 0.1);
    }

    body[data-theme='dark'] .card:hover {
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    }

    /* 5. Button micro-interactions */
    .btn:active {
      transform: scale(0.97);
    }

    /* 6. Admin Panel Polish */
    .admin-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    }

    body[data-theme='dark'] .admin-card:hover {
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }

    /* 7. Premium Focus States */
    input:focus,
    textarea:focus,
    select:focus {
      outline: none;
      border-color: var(--accent) !important;
      box-shadow: 0 0 0 3px rgba(45, 91, 86, 0.1);
    }

    body[data-theme='dark'] input:focus,
    body[data-theme='dark'] textarea:focus,
    body[data-theme='dark'] select:focus {
      box-shadow: 0 0 0 3px rgba(111, 166, 154, 0.2);
    }

    /* TOAST NOTIFICATIONS MOBILE POSITION */
    @media (max-width: 768px) {

      /* Notyf support */
      .notyf-container,
      .notyf {
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        flex-direction: column-reverse !important;
        pointer-events: none;
      }

      .notyf__toast {
        max-width: 100% !important;
        width: 100% !important;
        margin: 4px 0 !important;
        pointer-events: all;
        border-radius: 12px !important;
      }

      /* Custom toast support */
      #toast-container {
        top: auto !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
      }
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background-color: var(--muted);
      border-radius: 4px;
      border: 2px solid transparent;
      background-clip: content-box;
    }

    ::-webkit-scrollbar-thumb:hover {
      background-color: var(--accent);
    }

    /* Specific for notifications in case overflow is hidden on body */
    .notifications-list-container {
      scrollbar-width: thin;
      scrollbar-color: var(--muted) transparent;
    }