
    :root {
      --ink: #25212d;
      --muted: #655f70;
      --chalk: #211e26;
      --night: #15131b;
      --paper: #faf8f2;
      --white: #ffffff;
      --soft: #f0eff4;
      --line: #ddd9e5;
      --violet: #c4a8ff;
      --purple: #6740ad;
      --lime: #d9edac;
      --pink: #f5d3dd;
      --on-dark: #c9c3d1;
      --radius: 22px;
      --shadow: 0 14px 35px #211e260b;
      --body: "Inter", sans-serif;
      --display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", Impact, sans-serif;
      --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
      --section-space: clamp(64px, 8vw, 106px);
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 145px;
    }

    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: var(--body);
      font-size: 16px;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }

    h1, h2, h3, p, figure, blockquote {
      margin: 0;
    }

    h1, h2, h3 {
      text-wrap: balance;
    }

    h1, h2 {
      font-family: var(--display);
      font-weight: 600;
      text-transform: uppercase;
    }

    h1 {
      font-size: clamp(3.9rem, 8.5vw, 7.1rem);
      line-height: .93;
      letter-spacing: -.018em;
    }

    h2 {
      font-size: clamp(2.8rem, 5.4vw, 4.6rem);
      line-height: 1.02;
      letter-spacing: -.015em;
    }

    h3 {
      font-size: 1.16rem;
      line-height: 1.3;
    }

    p {
      text-wrap: pretty;
    }

    a {
      color: inherit;
      text-underline-offset: .23em;
    }

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

    button, input, select, textarea {
      font: inherit;
    }

    button, a, input, select, textarea, summary {
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    button {
      cursor: pointer;
    }

    button:disabled {
      cursor: not-allowed;
    }

    :focus-visible {
      outline: 3px solid var(--purple);
      outline-offset: 5px;
    }

    .dark :focus-visible {
      outline-color: var(--lime);
    }

    [hidden] {
      display: none !important;
    }

    [id] {
      scroll-margin-top: 145px;
    }

    ::selection {
      background: var(--violet);
      color: var(--night);
    }

    .container {
      width: calc(100% - 40px);
      max-width: 1140px;
      margin-inline: auto;
    }

    .section {
      padding-block: var(--section-space);
    }

    .white { background: var(--white); }
    .soft { background: var(--soft); }
    .paper { background: var(--paper); }

    .dark {
      background: var(--chalk);
      color: var(--paper);
    }

    .muted { color: var(--muted); }
    .dark .muted { color: var(--on-dark); }

    .small {
      font-size: .84rem;
      line-height: 1.6;
    }

    .hand {
      font-family: var(--hand);
      font-weight: 600;
      text-transform: none;
      letter-spacing: 0;
    }

    .eyebrow {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
      font-size: .7rem;
      font-weight: 800;
      letter-spacing: .15em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 23px;
      height: 2px;
      background: currentColor;
      flex: none;
    }

    .dark .eyebrow {
      color: var(--lime);
    }

    .section-heading {
      margin-bottom: 32px;
    }

    .section-heading p {
      max-width: 590px;
      margin-top: 18px;
      color: var(--muted);
    }

    .dark .section-heading p {
      color: var(--on-dark);
    }

    .split-heading {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .split-heading > p {
      margin: 0;
      max-width: 360px;
    }

    .icon {
      width: 21px;
      height: 21px;
      flex: none;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.7;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

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

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      z-index: 200;
      padding: 12px 20px;
      background: var(--lime);
      color: var(--night);
      border-radius: 10px;
      transform: translateY(-150%);
    }

    .skip-link:focus {
      transform: translateY(0);
    }

    .button {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      min-height: 48px;
      padding: 13px 20px;
      border: 1px solid transparent;
      border-radius: 12px;
      background: var(--violet);
      color: var(--night);
      font-weight: 700;
      font-size: .86rem;
      line-height: 1.4;
      text-decoration: none;
      text-align: center;
      transition: background .2s, transform .2s, box-shadow .2s;
    }

    .button:hover {
      background: #d5c1ff;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px #00000015;
    }

    .button-lime { background: var(--lime); }
    .button-lime:hover { background: #e7f5c9; }

    .button-dark {
      background: var(--ink);
      color: white;
    }

    .button-dark:hover {
      background: #41354f;
    }

    .button-outline {
      border-color: #ffffff45;
      background: transparent;
      color: var(--paper);
    }

    .button-outline:hover {
      background: #ffffff0e;
    }

    .button-light {
      background: var(--white);
      color: var(--ink);
      border-color: var(--line);
    }

    .button-light:hover {
      background: var(--soft);
    }

    .text-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      font-size: .87rem;
      font-weight: 700;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      padding: 5px 10px;
      border-radius: 100px;
      font-size: .68rem;
      font-weight: 700;
      line-height: 1.3;
    }

    .unique-slot:empty {
      display: none;
    }

    .unique-slot:not(:empty) {
      margin-top: 30px;
      padding: 24px;
      border: 1px dashed currentColor;
      border-radius: 16px;
    }

    /* Навигация доступна без JavaScript. */

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      border-bottom: 1px solid #ffffff16;
      background: #211e26f5;
      color: var(--paper);
      backdrop-filter: blur(14px);
    }

    .header-inner {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 12px 18px;
      padding-block: 15px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      text-decoration: none;
      white-space: nowrap;
    }

    .brand-mark {
      display: grid;
      place-items: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--violet);
      color: var(--night);
      font-size: 24px;
      line-height: 1;
    }

    .brand-name {
      font-weight: 800;
      font-size: 1.17rem;
      letter-spacing: -.06em;
    }

    .brand-name span {
      color: var(--violet);
    }

    .site-nav {
      display: flex;
      flex: 1 0 100%;
      order: 3;
      gap: 20px;
      padding-bottom: 2px;
      overflow-x: auto;
      scrollbar-width: thin;
    }

    .site-nav a {
      display: flex;
      align-items: center;
      min-height: 35px;
      white-space: nowrap;
      font-size: .75rem;
      color: var(--on-dark);
      text-decoration: none;
    }

    .site-nav a:hover {
      color: white;
    }

    .header-cta {
      min-height: 42px;
      padding: 10px 13px;
      font-size: .73rem;
    }

    /*
      Референс 1:
      матовая «доска», ручные пометки, бумажная коллажная композиция.
    */

    .hero {
      position: relative;
      isolation: isolate;
      padding-block: 58px 65px;
      overflow: clip;
    }

    .hero::before,
    .creator::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      opacity: .32;
      background-image: radial-gradient(#ffffff18 .65px, transparent .65px);
      background-size: 6px 6px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-items: center;
      gap: 36px;
    }

    .hero-grid > *,
    .two-col > *,
    .pricing-grid > *,
    .faq-layout > * {
      min-width: 0;
    }

    .hero-copy {
      position: relative;
      z-index: 2;
    }

    .hero-copy h1 span {
      color: var(--violet);
    }

    .hero-note {
      display: block;
      margin: 17px 0 22px;
      color: var(--lime);
      font-size: clamp(1.9rem, 3vw, 2.5rem);
      line-height: 1.1;
      transform: rotate(-3deg);
      transform-origin: left center;
    }

    .hero-description {
      max-width: 475px;
      margin-bottom: 26px;
      color: var(--on-dark);
    }

    .hero-disclosure {
      margin-top: 20px;
      color: var(--on-dark);
      font-size: .76rem;
    }

    .hero-collage {
      position: relative;
      height: clamp(385px, 64vw, 525px);
      max-width: 530px;
      width: 100%;
      margin-inline: auto;
    }

    .snapshot {
      position: absolute;
      width: 47.5%;
      padding: 9px 9px 0;
      background: var(--paper);
      color: var(--ink);
      box-shadow: 0 18px 40px #0000004a;
    }

    .snapshot-a {
      left: 2%;
      top: 8px;
      transform: rotate(-8deg);
      z-index: 2;
    }

    .snapshot-b {
      right: 1%;
      top: 76px;
      transform: rotate(7deg);
    }

    .snapshot .photo {
      position: relative;
      aspect-ratio: 3 / 4;
      background: #514758;
      overflow: hidden;
    }

    .snapshot img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 30%;
    }

    .snapshot figcaption {
      padding: 8px 3px 11px;
      font-family: var(--hand);
      font-size: clamp(1.12rem, 2.5vw, 1.6rem);
      line-height: 1.1;
    }

    .snapshot figcaption span {
      display: block;
      margin-top: 4px;
      font-family: var(--body);
      font-size: .6rem;
      font-weight: 600;
      color: var(--muted);
    }

    .collage-note {
      position: absolute;
      right: 7px;
      top: -16px;
      z-index: 3;
      color: var(--lime);
      font-size: 1.75rem;
      line-height: .9;
      transform: rotate(9deg);
    }

    .doodle-star {
      position: absolute;
      right: 1px;
      top: 46px;
      width: 42px;
      height: 42px;
      color: var(--violet);
    }

    .paper-message {
      position: absolute;
      left: 4%;
      bottom: 7px;
      z-index: 4;
      width: 84%;
      max-width: 360px;
      padding: 17px 20px;
      color: var(--ink);
      background: var(--lime);
      transform: rotate(-4deg);
      box-shadow: 0 10px 35px #00000024;
    }

    .paper-message::before {
      content: "";
      position: absolute;
      width: 64px;
      height: 20px;
      top: -10px;
      left: calc(50% - 32px);
      background: #f7edd48a;
      transform: rotate(6deg);
    }

    .paper-message small {
      display: block;
      font-size: .61rem;
      letter-spacing: .11em;
      text-transform: uppercase;
      font-weight: 700;
    }

    .paper-message p {
      margin-top: 5px;
      font-family: var(--hand);
      font-size: 1.64rem;
      line-height: 1.1;
    }

    .hero-bottom {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 15px;
      margin-top: 43px;
      padding-top: 22px;
      border-top: 1px dashed #ffffff3d;
      color: var(--on-dark);
      font-size: .72rem;
    }

    .hero-bottom span {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .hero-bottom .icon {
      width: 17px;
      height: 17px;
      color: var(--lime);
    }

    /* Четыре маршрута главного хаба. */

    .route-grid,
    .character-grid,
    .step-grid,
    .privacy-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
    }

    .route-card {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      min-height: 217px;
      padding: 26px;
      border: 1px solid var(--line);
      background: white;
      border-radius: var(--radius);
      text-decoration: none;
      box-shadow: var(--shadow);
      transition: transform .2s, border-color .2s;
    }

    .route-card:hover {
      transform: translateY(-5px);
      border-color: var(--purple);
    }

    .route-icon {
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      margin-bottom: 26px;
      border-radius: 13px;
      background: #eee5ff;
      color: var(--purple);
    }

    .route-card:nth-child(2) .route-icon {
      background: #e9efda;
      color: #526b2b;
    }

    .route-card:nth-child(3) .route-icon {
      background: #f9e4ea;
      color: #9a4863;
    }

    .route-card:nth-child(4) .route-icon {
      background: #e5eaf9;
      color: #4b6399;
    }

    .route-card p {
      margin-top: 10px;
      color: var(--muted);
      font-size: .82rem;
    }

    .route-arrow {
      position: absolute;
      top: 28px;
      right: 25px;
      color: var(--muted);
    }

    /*
      Референс 2:
      крупные портреты, спокойные скругления, сиреневые акценты.
    */

    .catalog {
      background: var(--night);
    }

    .catalog h2 .hand {
      color: var(--violet);
    }

    .catalog-controls {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 24px;
    }

    .filters {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .filter {
      min-height: 44px;
      padding: 10px 15px;
      border: 1px solid #ffffff30;
      border-radius: 100px;
      background: transparent;
      color: var(--on-dark);
      font-weight: 600;
      font-size: .76rem;
    }

    .filter:hover {
      border-color: var(--violet);
      color: white;
    }

    .filter[aria-pressed="true"] {
      background: var(--violet);
      color: var(--night);
      border-color: var(--violet);
    }

    .vibe-select {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--on-dark);
      font-size: .75rem;
    }

    .vibe-select select {
      max-width: 100%;
      min-height: 44px;
      padding: 9px 28px 9px 12px;
      border: 1px solid #ffffff40;
      border-radius: 10px;
      background: #292431;
      color: var(--paper);
    }

    .character-card {
      min-width: 0;
      overflow: hidden;
      border: 1px solid #ffffff15;
      border-radius: var(--radius);
      background: #211c2c;
      box-shadow: 0 16px 32px #0000001a;
    }

    .portrait-media {
      position: relative;
      aspect-ratio: 3 / 4;
      background: linear-gradient(150deg, #64516b, #2c2437);
      overflow: hidden;
    }

    .portrait-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 30%;
      transition: transform .5s;
    }

    .character-card:hover .portrait-media img {
      transform: scale(1.045);
    }

    .portrait-media::after {
      content: "";
      position: absolute;
      inset: 45% 0 0;
      background: linear-gradient(transparent, #181020d9);
      pointer-events: none;
    }

    .concept-label {
      position: absolute;
      left: 14px;
      top: 14px;
      z-index: 2;
      background: var(--lime);
      color: var(--night);
      font-size: .59rem;
      letter-spacing: .06em;
    }

    .portrait-name {
      position: absolute;
      bottom: 17px;
      left: 18px;
      right: 14px;
      z-index: 2;
    }

    .portrait-name h3 {
      color: white;
      font-size: 1.3rem;
    }

    .portrait-name p {
      margin-top: 4px;
      color: #ede5fa;
      font-size: .69rem;
    }

    .character-body {
      display: flex;
      flex-direction: column;
      gap: 17px;
      padding: 20px;
    }

    .character-body p {
      min-height: 4.7em;
      color: var(--on-dark);
      font-size: .79rem;
    }

    .character-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .character-tags .tag {
      border: 1px solid #ffffff20;
      color: #dcccf6;
      font-weight: 500;
      font-size: .61rem;
    }

    .character-body .button {
      width: 100%;
      min-height: 44px;
      padding: 11px;
      background: #342741;
      color: #e4d3ff;
      font-size: .76rem;
    }

    .character-body .button:hover {
      background: #4b3760;
    }

    .catalog-footer {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
      margin-top: 25px;
      color: var(--on-dark);
    }

    .empty-state {
      padding: 38px 24px;
      border: 1px dashed #ffffff40;
      border-radius: var(--radius);
      text-align: center;
    }

    .empty-state button {
      margin-top: 15px;
    }

    /* Превью разговора. */

    .two-col {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 36px;
      align-items: center;
    }

    .demo-copy > p {
      max-width: 480px;
      margin-top: 20px;
      color: var(--muted);
    }

    .demo-controls {
      padding: 0;
      margin: 26px 0 0;
      border: 0;
      min-width: 0;
    }

    .demo-controls legend,
    .field-label {
      display: block;
      margin-bottom: 9px;
      font-size: .78rem;
      font-weight: 700;
    }

    .scene-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 12px 0 18px;
    }

    .scene-option {
      position: relative;
    }

    .scene-option input {
      position: absolute;
      opacity: 0;
      width: 1px;
      height: 1px;
    }

    .scene-option span {
      display: flex;
      align-items: center;
      min-height: 44px;
      padding: 10px 13px;
      border: 1px solid var(--line);
      border-radius: 100px;
      font-size: .76rem;
      font-weight: 600;
      cursor: pointer;
    }

    .scene-option input:checked + span {
      background: #ece2ff;
      border-color: var(--purple);
      color: #4c2b7f;
    }

    .scene-option input:focus-visible + span {
      outline: 3px solid var(--purple);
      outline-offset: 3px;
    }

    .demo-persona {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      font-size: .8rem;
    }

    .demo-persona select {
      min-height: 44px;
      padding: 9px 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper);
      color: var(--ink);
    }

    .demo-copy .hand {
      display: block;
      margin-top: 24px;
      font-size: 1.85rem;
      color: var(--purple);
    }

    .chat-preview {
      border: 1px solid #d8d1e2;
      border-radius: 26px;
      background: #f9f7fc;
      box-shadow: 0 20px 65px #32234613;
      overflow: hidden;
    }

    .chat-header {
      display: flex;
      gap: 12px;
      align-items: center;
      padding: 20px 24px;
      border-bottom: 1px solid var(--line);
      background: white;
    }

    .chat-avatar {
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      flex: none;
      border-radius: 50%;
      background: var(--violet);
      color: var(--ink);
      font-family: var(--hand);
      font-size: 1.7rem;
    }

    .chat-header strong {
      display: block;
      font-size: .87rem;
    }

    .chat-header small {
      display: block;
      color: var(--muted);
      font-size: .66rem;
    }

    .chat-header > .icon {
      margin-left: auto;
      color: var(--purple);
    }

    .chat-transcript {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
      padding: 26px 22px;
    }

    .preview-label {
      align-self: center;
      color: var(--muted);
      font-size: .65rem;
      letter-spacing: .07em;
      text-transform: uppercase;
    }

    .message {
      max-width: 92%;
      padding: 15px 17px;
      background: white;
      border: 1px solid #e9e3ef;
      border-radius: 17px 17px 17px 4px;
      font-size: .84rem;
      line-height: 1.7;
    }

    .message-user {
      align-self: flex-end;
      background: #e9dffc;
      border-color: transparent;
      border-radius: 17px 17px 4px 17px;
    }

    .starter-box {
      margin: 0 20px 20px;
      padding: 17px;
      background: white;
      border: 1px dashed #c6b8d9;
      border-radius: 16px;
    }

    .starter-box label {
      display: block;
      margin-bottom: 9px;
      font-size: .7rem;
      font-weight: 700;
    }

    .starter-box textarea {
      width: 100%;
      min-height: 86px;
      padding: 10px;
      resize: vertical;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--paper);
      color: var(--ink);
      font-size: .77rem;
      line-height: 1.7;
    }

    .starter-box .actions {
      margin-top: 12px;
    }

    .starter-box .button {
      min-height: 42px;
      padding: 10px 12px;
      font-size: .7rem;
    }

    .copy-status {
      min-height: 1.6em;
      margin-top: 7px;
      font-size: .7rem;
      color: var(--muted);
    }

    .preview-note {
      padding: 0 24px 19px;
      text-align: center;
      color: var(--muted);
      font-size: .66rem;
    }

    /* Шаги и проверка памяти. */

    .step-card {
      position: relative;
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: white;
      box-shadow: var(--shadow);
    }

    .step-number {
      display: block;
      margin-bottom: 20px;
      color: var(--purple);
      font-family: var(--hand);
      font-size: 3rem;
      line-height: 1;
    }

    .step-card p {
      margin-top: 12px;
      color: var(--muted);
      font-size: .83rem;
    }

    .memory-paper {
      position: relative;
      padding: 32px;
      background: var(--paper);
      border: 1px solid #e4dfd3;
      border-radius: 5px;
      box-shadow: 0 12px 30px #2d243715;
      transform: rotate(-2deg);
    }

    .memory-paper::before {
      content: "";
      position: absolute;
      top: -10px;
      left: calc(50% - 39px);
      width: 78px;
      height: 23px;
      background: #dfd3f4be;
      transform: rotate(5deg);
    }

    .memory-paper .hand {
      font-size: 2.35rem;
    }

    .memory-paper dl {
      margin: 22px 0;
    }

    .memory-paper dl div {
      padding: 13px 0;
      border-bottom: 1px dashed #cec7bb;
    }

    .memory-paper dt {
      color: var(--muted);
      font-size: .68rem;
    }

    .memory-paper dd {
      margin: 5px 0 0;
      font-size: .89rem;
      font-weight: 600;
    }

    .memory-label {
      display: inline-block;
      margin-top: 5px;
      color: var(--purple);
      font-size: .67rem;
      font-weight: 600;
    }

    .memory-copy > p {
      margin-top: 20px;
      color: var(--muted);
    }

    .check-list {
      padding: 0;
      margin: 23px 0 0;
      list-style: none;
    }

    .check-list li {
      position: relative;
      padding-left: 29px;
      margin-top: 15px;
      font-size: .86rem;
    }

    .check-list li::before {
      content: "✓";
      position: absolute;
      left: 0;
      top: 1px;
      display: grid;
      place-items: center;
      width: 18px;
      height: 18px;
      border: 1px solid #b4a0d0;
      border-radius: 50%;
      color: var(--purple);
      font-size: .66rem;
      font-weight: 800;
    }

    /* Бриф персонажа. */

    .creator {
      position: relative;
      isolation: isolate;
    }

    .creator h2 .hand {
      color: var(--lime);
    }

    .creator-copy > p {
      margin-top: 22px;
      max-width: 440px;
      color: var(--on-dark);
    }

    .creator-copy .text-link {
      margin-top: 19px;
      color: var(--violet);
    }

    .brief-card {
      padding: 25px;
      border-radius: 16px;
      background: var(--paper);
      color: var(--ink);
      box-shadow: 8px 8px 0 #c4a8ff;
      transform: rotate(1.5deg);
    }

    .brief-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      margin-bottom: 18px;
    }

    .brief-top .hand {
      font-size: 1.7rem;
    }

    .brief-top .tag {
      background: #e6ebd6;
      color: #43532c;
    }

    .brief-card pre {
      margin: 0;
      padding: 18px;
      border: 1px dashed #c8c2ce;
      border-radius: 9px;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      font-family: var(--body);
      font-size: .8rem;
      line-height: 1.85;
    }

    .brief-card .actions {
      margin-top: 18px;
    }

    .brief-card .button {
      min-height: 42px;
      font-size: .74rem;
    }

    .brief-card .small {
      margin-top: 13px;
      color: var(--muted);
    }

    .brief-card :focus-visible {
      outline-color: var(--purple);
    }

    /* Таблица стоимости и локальный калькулятор. */

    .pricing-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-items: start;
      gap: 25px;
    }

    .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: white;
      box-shadow: var(--shadow);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: .79rem;
      min-width: 430px;
    }

    caption {
      padding: 19px;
      text-align: left;
      font-size: .86rem;
      font-weight: 700;
    }

    thead {
      background: var(--ink);
      color: white;
    }

    th, td {
      padding: 15px 17px;
      text-align: left;
      vertical-align: top;
    }

    thead th {
      font-size: .7rem;
      font-weight: 600;
    }

    tbody th {
      min-width: 125px;
      font-weight: 600;
    }

    tbody td {
      color: var(--muted);
    }

    tbody tr:nth-child(even) {
      background: #f5f3f8;
    }

    tbody tr + tr {
      border-top: 1px solid var(--line);
    }

    .table-note {
      margin-top: 15px;
      color: var(--muted);
      font-size: .75rem;
    }

    .price-callout {
      padding: 22px;
      margin-top: 24px;
      border-radius: 16px;
      background: #e5dfef;
    }

    .price-callout .hand {
      display: block;
      font-size: 1.9rem;
      line-height: 1.15;
    }

    .price-callout p {
      margin-top: 9px;
      font-size: .79rem;
    }

    .calculator {
      padding: 24px;
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .calculator > p {
      margin-top: 9px;
      color: var(--muted);
      font-size: .74rem;
    }

    .calculator fieldset {
      padding: 0;
      margin: 23px 0 0;
      border: 0;
      min-width: 0;
    }

    .calc-fields {
      display: grid;
      gap: 15px;
    }

    .calc-field {
      display: flex;
      flex-direction: column;
      gap: 7px;
      min-width: 0;
    }

    .calc-field label {
      font-size: .69rem;
      font-weight: 600;
    }

    .calc-field input {
      width: 100%;
      min-height: 44px;
      padding: 10px 12px;
      border: 1px solid #d5cfdd;
      border-radius: 9px;
      color: var(--ink);
      background: #fbfafc;
      font-size: .83rem;
    }

    .usage-field {
      margin: 22px 0;
    }

    .usage-field label {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 5px 12px;
      font-size: .73rem;
      font-weight: 600;
    }

    .usage-field input {
      display: block;
      width: 100%;
      min-height: 36px;
      margin: 8px 0;
      accent-color: var(--purple);
      cursor: pointer;
    }

    .usage-scale {
      display: flex;
      justify-content: space-between;
      font-size: .65rem;
      color: var(--muted);
    }

    .calc-result {
      margin-top: 21px;
      padding: 21px;
      background: var(--chalk);
      color: white;
      border-radius: 14px;
    }

    .calc-result .small {
      font-size: .7rem;
      color: var(--on-dark);
    }

    .calc-result output {
      display: block;
      margin: 5px 0;
      font-size: 2.3rem;
      line-height: 1.25;
      font-weight: 700;
      letter-spacing: -.05em;
      font-variant-numeric: tabular-nums;
      overflow-wrap: anywhere;
    }

    .calc-result p {
      font-size: .69rem;
      color: var(--on-dark);
    }

    .calc-disclaimer {
      margin-top: 13px;
      color: var(--muted);
      font-size: .67rem;
    }

    /* Приватность и FAQ. */

    .privacy-card {
      padding: 27px;
      border: 1px solid var(--line);
      background: var(--paper);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .privacy-card .icon {
      width: 27px;
      height: 27px;
      margin-bottom: 20px;
      color: var(--purple);
    }

    .privacy-card p {
      margin-top: 12px;
      color: var(--muted);
      font-size: .82rem;
    }

    .privacy-footnote {
      display: flex;
      align-items: flex-start;
      gap: 13px;
      padding: 21px;
      margin-top: 25px;
      background: #eff2e7;
      border-radius: 14px;
      color: #46523b;
      font-size: .79rem;
    }

    .privacy-footnote .icon {
      margin-top: 3px;
    }

    .faq-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-items: start;
      gap: 30px;
    }

    .faq-heading p {
      max-width: 290px;
      margin-top: 18px;
      color: var(--muted);
    }

    .faq-list {
      border-top: 1px solid #d1cbd9;
    }

    .faq-list details {
      border-bottom: 1px solid #d1cbd9;
    }

    .faq-list summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
      min-height: 76px;
      padding: 20px 0;
      list-style: none;
      cursor: pointer;
      font-size: .87rem;
      font-weight: 600;
      line-height: 1.5;
    }

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

    .faq-list summary::after {
      content: "+";
      display: grid;
      place-items: center;
      flex: none;
      width: 27px;
      height: 27px;
      background: white;
      border-radius: 50%;
      color: var(--purple);
      font-size: 1.15rem;
      font-weight: 400;
    }

    .faq-list details[open] summary::after {
      content: "−";
      background: #e4d7f7;
    }

    .faq-list details p {
      padding: 0 38px 22px 0;
      font-size: .81rem;
      color: var(--muted);
    }

    /* Финальный переход. */

    .final-section {
      overflow: clip;
      background: #c7b2ec;
    }

    .final-section .two-col {
      gap: 42px;
    }

    .final-section h2 {
      font-size: clamp(3.7rem, 7vw, 6rem);
    }

    .final-section h2 .hand {
      display: block;
      font-size: .85em;
      transform: rotate(-4deg);
    }

    .final-card {
      padding: 32px;
      border: 1px solid #ffffff80;
      border-radius: 7px;
      background: var(--paper);
      box-shadow: 8px 9px 0 #5f3c8b24;
      transform: rotate(2deg);
    }

    .final-card .eyebrow {
      color: var(--muted);
    }

    .destination {
      font-size: 2rem;
      font-weight: 800;
      letter-spacing: -.05em;
      line-height: 1.2;
    }

    .final-card > p {
      margin-top: 17px;
      color: var(--muted);
      font-size: .88rem;
    }

    .final-card .button {
      width: 100%;
      margin-top: 25px;
    }

    .final-card .small {
      margin-top: 13px;
      font-size: .69rem;
    }

    .site-footer {
      padding: 40px 0 28px;
      background: var(--night);
      color: var(--on-dark);
    }

    .footer-top {
      display: flex;
      flex-direction: column;
      gap: 20px;
      justify-content: space-between;
    }

    .footer-top .brand {
      color: white;
    }

    .footer-top p {
      max-width: 530px;
      margin-top: 15px;
      font-size: .73rem;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      align-items: flex-start;
    }

    .footer-links a {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      font-size: .74rem;
    }

    .credits {
      margin-top: 28px;
      padding-top: 20px;
      border-top: 1px solid #ffffff1f;
      font-size: .65rem;
    }

    .credits summary {
      min-height: 35px;
      width: fit-content;
      cursor: pointer;
    }

    .credits p {
      max-width: 760px;
      margin-top: 12px;
    }

    .credits a {
      color: var(--violet);
    }

    .image-missing {
      display: grid;
      place-items: center;
      height: 100%;
      min-height: 160px;
      padding: 20px;
      text-align: center;
      color: #f3ebfc;
      background: linear-gradient(135deg, #574267, #2d2539);
      font-family: var(--hand);
      font-size: 1.6rem;
    }

    noscript p {
      padding: 15px;
      margin-top: 15px;
      border: 1px dashed currentColor;
      font-size: .78rem;
    }

    /* Mobile-first: расширение сеток по мере увеличения экрана. */

    @media (min-width: 640px) {
      .container {
        width: calc(100% - 64px);
      }

      .route-grid,
      .character-grid,
      .privacy-grid,
      .calc-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .catalog-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }

      .hero-collage { height: 535px; }
      .paper-message { bottom: 20px; }
      .hero { padding-top: 68px; }
      .footer-top { flex-direction: row; }
    }

    @media (min-width: 900px) {
      html { scroll-padding-top: 100px; }
      [id] { scroll-margin-top: 100px; }

      .header-inner {
        flex-wrap: nowrap;
        gap: 28px;
        padding-block: 17px;
      }

      .site-nav {
        order: 0;
        flex: 0 1 auto;
        padding: 0;
        gap: 24px;
        overflow: visible;
      }

      .site-nav a { font-size: .75rem; }
      .header-cta { font-size: .76rem; }

      .hero-grid {
        grid-template-columns: 1.07fr 1fr;
        gap: 28px;
      }

      .hero-collage { height: 510px; }
      .hero { padding-block: 75px 35px; }
      .hero-bottom { margin-top: 55px; }

      .two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 68px;
      }

      .split-heading {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
      }

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

      .step-card:nth-child(2) {
        transform: rotate(-2deg);
      }

      .pricing-grid {
        grid-template-columns: 1.12fr 1fr;
        gap: 32px;
      }

      .faq-layout {
        grid-template-columns: .8fr 1.2fr;
        gap: 85px;
      }

      .faq-heading {
        position: sticky;
        top: 112px;
      }
    }

    @media (min-width: 1080px) {
      .route-grid,
      .character-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .hero-collage { height: 535px; }
      .route-card { padding: 25px; }
    }

    @media (max-width: 399px) {
      .brand-name { font-size: 1.03rem; }

      .header-cta {
        font-size: .66rem;
        padding: 9px 8px;
        gap: 6px;
      }

      .header-cta .icon {
        width: 17px;
        height: 17px;
      }

      .header-inner { gap: 10px; }

      .hero .actions {
        align-items: stretch;
        flex-direction: column;
      }

      .hero h1 {
        font-size: clamp(2.95rem, 13vw, 3.4rem);
      }

      .collage-note { font-size: 1.5rem; }
      .paper-message p { font-size: 1.4rem; }
      .site-nav { gap: 17px; }
      .site-nav a { font-size: .7rem; }
      .chat-header { padding: 18px; }
      .calculator { padding: 19px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }

      *,
      *::before,
      *::after {
        animation: none !important;
        transition: none !important;
      }
    }

    @media print {
      .site-header { position: static; }

      .site-nav,
      .catalog-controls,
      .scene-options,
      [data-copy],
      .calculator {
        display: none !important;
      }

      .section { padding-block: 30px; }

      .dark,
      .final-section {
        color: #000;
        background: white;
      }

      .dark .muted,
      .dark .section-heading p,
      .hero-description,
      .hero-disclosure {
        color: #333;
      }

      .character-card,
      .chat-preview,
      .step-card,
      .privacy-card {
        break-inside: avoid;
      }

      .snapshot,
      .brief-card,
      .memory-paper,
      .final-card {
        transform: none;
        box-shadow: none;
      }
    }


.unique-slot:not(:empty){border:1px solid var(--line);text-align:left}
.unique-slot h3{margin-bottom:10px}.unique-slot p+p{margin-top:12px}.unique-slot .text-link{margin-top:12px}
.dark .unique-slot{border-color:#ffffff35}.unique-slot a{font-weight:700}
.guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-block:24px}
.guide-card{border:1px solid var(--line);border-radius:18px;padding:24px;background:white;color:var(--ink)}
.guide-card h3{margin-bottom:12px}.guide-card p{font-size:.9rem;color:var(--muted)}
.article-hero{padding:64px 0 44px}.article-hero h1{font-size:clamp(2.7rem,6vw,5rem);max-width:950px;line-height:1.02}
.article-dek{max-width:760px;font-size:1.16rem;margin-top:24px;color:var(--on-dark)}
.article-layout{display:grid;grid-template-columns:220px minmax(0,780px);gap:44px;max-width:1080px;margin:auto;padding-block:48px}
.article-toc{align-self:start;position:sticky;top:160px;font-size:.84rem}.article-toc a{display:block;padding:8px 0}
.article-body{min-width:0}.article-body h2{font-size:clamp(1.9rem,3vw,2.6rem);margin:42px 0 16px;line-height:1.1}.article-body h2:first-child{margin-top:0}
.article-body p,.article-body ul{margin:16px 0}.article-body li+li{margin-top:10px}
.article-body pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--soft);border-left:4px solid var(--purple);padding:22px;border-radius:8px;font:inherit;font-size:.91rem;line-height:1.8}
.article-body table{width:100%;border-collapse:collapse;min-width:540px;font-size:.92rem}.article-body th,.article-body td{padding:16px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}.article-body th{background:var(--soft);color:var(--ink)}
.article-body .table-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px;margin:24px 0}
.article-meta{font-size:.78rem;color:var(--on-dark);margin-top:20px}.article-footer{padding:32px 0;border-top:1px solid var(--line)}.article-footer nav{display:flex;gap:24px;flex-wrap:wrap}
@media(max-width:760px){.article-layout{grid-template-columns:1fr;gap:28px}.article-toc{position:static;border-bottom:1px solid var(--line);padding-bottom:20px}.article-hero{padding-top:38px}.article-toc a{min-height:44px}.article-body h2{scroll-margin-top:190px}}

/* Original local portraits and consistent First Hello brand. */
.brand-mark{background:transparent;display:inline-block;width:34px;height:34px}.brand-mark img{width:34px;height:34px;display:block}.brand{gap:10px}
.guide-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.guide-card:has(.guide-photo){padding:0;overflow:hidden;display:flex;flex-direction:column;background:var(--night);border-color:#2e283b;box-shadow:0 10px 25px #211e2610}
.guide-photo{display:block;overflow:hidden;aspect-ratio:3/4;background:#302b39}.guide-photo img{width:100%;height:100%;object-fit:cover;object-position:center 30%;transition:transform .3s ease}
.guide-photo:hover img{transform:scale(1.025)}
.guide-card:has(.guide-photo) h3{padding:22px 24px 0;color:#d9c6ff;margin:0;font-size:1.13rem;line-height:1.4}
.guide-card:has(.guide-photo) h3 a{text-decoration:none}.guide-card:has(.guide-photo) h3 a:hover{text-decoration:underline}
.guide-card:has(.guide-photo) p{padding:12px 24px 24px;color:#c9c3d1;margin:0;line-height:1.65}
.article-hero.with-portrait>.container{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.75fr);align-items:center;gap:48px}
.article-hero.with-portrait h1{font-size:clamp(2.6rem,4.6vw,4.8rem)}
.article-portrait{margin:0;max-width:430px;justify-self:end}.article-portrait img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:26px;box-shadow:0 14px 45px #0003}
.article-portrait figcaption{color:var(--on-dark);font-size:.72rem;line-height:1.5;margin-top:12px}
.breadcrumbs{font-size:.78rem;color:var(--on-dark);display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.article-meta a{color:inherit}.article-toc{top:155px}.article-body .guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-hero.with-portrait>.container{gap:28px;grid-template-columns:minmax(0,1.1fr) minmax(230px,.75fr)}}
@media(max-width:620px){.guide-grid,.article-body .guide-grid{grid-template-columns:1fr}.article-hero.with-portrait>.container{grid-template-columns:1fr}.article-portrait{justify-self:center;max-width:390px;width:100%}.article-hero.with-portrait h1{font-size:clamp(2.5rem,10vw,3.8rem)}.guide-photo{max-height:none}.article-toc{position:static}.guide-card:has(.guide-photo) h3{font-size:1.22rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.guide-photo img{transition:none}}
