/* ==========================================================================
   24arc.ru — Аркадий Валентинович Уманский, системная психотерапия онлайн

   Философия дизайна: «Один узел меняет всю систему».
   Страница — карта системы связей. Зелёный = система, рост, связь.
   Красный существует ровно в одном значении: «вы» и действие. Поэтому
   единственная красная вещь на странице — кнопка записи и узел «вы».
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper: #fbfcfa;
  --paper-2: #f0f7f3;
  --white: #ffffff;

  --ink: #0f1f1a;
  --ink-2: #2c453d;
  --ink-3: #5b7570;

  --g-50: #eef8f3;
  --g-100: #d9f0e5;
  --g-200: #b4e3d0;
  --g-300: #7fd0b2;
  --g-400: #3fb98d;
  --g-500: #18a47a;
  --g-600: #0f7d5d;
  --g-700: #0b5f47;

  --red: #e23e32;
  --red-600: #c92f1f;
  --red-glow: rgba(226, 62, 50, 0.32);

  --amber: #f5a524;
  --sky: #2e9bd6;
  --violet: #7c5cff;
  --rose: #e8618c;

  --line: #e2ece7;
  --line-2: #d3e5dc;

  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 26, 0.04), 0 10px 30px -22px rgba(15, 31, 26, 0.35);
  --shadow: 0 2px 4px rgba(15, 31, 26, 0.04), 0 26px 60px -34px rgba(15, 31, 26, 0.4);
  --shadow-lg: 0 40px 90px -46px rgba(11, 95, 71, 0.45);

  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* фактуры: бумажное зерно и сетка точек — фон живой, но не шумный.
     Кладутся слоем в background-image, поэтому не мешают контенту и курсору. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  --dots: radial-gradient(rgba(15, 125, 93, 0.11) 1px, transparent 1.4px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain),
    radial-gradient(900px 620px at 82% 6%, rgba(15, 125, 93, 0.07), transparent 70%),
    radial-gradient(760px 520px at 4% 42%, rgba(245, 165, 36, 0.05), transparent 72%);
  background-attachment: fixed, fixed, fixed;
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  /* height:auto обязателен: у картинок заданы атрибуты width/height ради CLS,
     без этого браузер держит высоту из атрибута и растягивает кадр */
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: var(--g-600);
  text-decoration-color: var(--g-200);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
.serif {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
}

::selection {
  background: var(--g-200);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--g-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: clamp(64px, 9vw, 128px) 0;
  position: relative;
}

.section--paper {
  background-color: var(--paper-2);
  background-image: var(--grain);
}

.section--white {
  background-color: var(--white);
  background-image: var(--grain),
    radial-gradient(700px 440px at 10% -10%, rgba(15, 125, 93, 0.075), transparent 70%),
    radial-gradient(620px 420px at 94% 112%, rgba(245, 165, 36, 0.07), transparent 72%);
}

/* секция с зелёной подложкой и сеткой точек — разбивает белые полосы */
.section--wash {
  background-color: #f4faf7;
  background-image: var(--dots), var(--grain),
    radial-gradient(760px 500px at 88% 0%, rgba(46, 155, 214, 0.07), transparent 70%);
  background-size: 24px 24px, 180px 180px, auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-600);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g-500);
  box-shadow: 0 0 0 4px var(--g-100);
}

h2.h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  margin-top: 16px;
  max-width: 22ch;
}

.h2--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  color: var(--ink-2);
  font-size: clamp(1rem, 2.1vw, 1.16rem);
  line-height: 1.65;
  max-width: 62ch;
  margin-top: 18px;
}

.center {
  text-align: center;
}

.center .eyebrow,
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.italic {
  font-style: italic;
}

.ico {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--sm {
  width: 17px;
  height: 17px;
}

.ico--lg {
  width: 26px;
  height: 26px;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- custom cursor (fine pointers only) ---------- */
.cursor-layer {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-layer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    pointer-events: none;
    border-radius: 50%;
    will-change: transform;
  }

  .cursor-glow {
    width: 260px;
    height: 260px;
    margin: -130px 0 0 -130px;
    background: radial-gradient(circle, rgba(24, 164, 122, 0.16), rgba(24, 164, 122, 0) 62%);
    transition: opacity 0.4s ease;
  }

  .cursor-ring {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 1.5px solid rgba(15, 125, 93, 0.55);
    transition: width 0.28s var(--ease), height 0.28s var(--ease), margin 0.28s var(--ease),
      border-color 0.28s ease, opacity 0.28s ease;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--g-600);
  }

  body.is-hot .cursor-ring {
    width: 62px;
    height: 62px;
    margin: -31px 0 0 -31px;
    border-color: rgba(226, 62, 50, 0.5);
  }

  body.is-hot .cursor-dot {
    opacity: 0;
  }
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--g-400), var(--g-600) 60%, var(--amber));
}

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  padding: 14px 0;
  transition: padding 0.3s var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.header.is-stuck .header__inner {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

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

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--g-500), var(--g-700));
  color: #fff;
  font-family: "Lora", serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px -10px rgba(11, 95, 71, 0.7);
}

.brand__name {
  font-family: "Lora", serif;
  font-size: 17px;
  line-height: 1.15;
}

.brand__role {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.header__cta {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.header.is-stuck .header__cta {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.3s ease, transform 0.22s var(--ease);
}

.btn--cta {
  position: relative;
  background: var(--red);
  color: #fff;
  padding: 19px 26px 19px 32px;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  box-shadow: 0 18px 40px -18px var(--red-glow), 0 2px 0 rgba(0, 0, 0, 0.04) inset;
}

.btn--cta:hover {
  background: var(--red-600);
  transform: translateY(-2px);
  box-shadow: 0 26px 52px -20px var(--red-glow);
}

.btn--cta:active {
  transform: translateY(0) scale(0.985);
}

.btn--cta .btn__arrow {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.3s var(--ease);
}

.btn--cta:hover .btn__arrow {
  transform: translateX(4px);
}

/* «эхо» — тихая пульсация вокруг главной кнопки: узел системы, который зовёт */
.btn--pulse::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1.5px solid var(--red);
  opacity: 0;
  animation: echo 3.6s var(--ease) infinite;
  pointer-events: none;
}

@keyframes echo {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

.btn--sm {
  padding: 11px 20px;
  font-size: 14.5px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 26px -14px var(--red-glow);
}

.btn--sm:hover {
  background: var(--red-600);
}

.btn--ghost {
  padding: 15px 24px;
  border: 1.5px solid var(--line-2);
  color: var(--ink-2);
  background: var(--white);
}

.btn--ghost:hover {
  border-color: var(--g-400);
  color: var(--g-700);
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--g-600);
  background: none;
  padding: 0;
  transition: gap 0.25s var(--ease), color 0.2s ease;
}

.link-cta:hover {
  gap: 14px;
  color: var(--g-700);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(104px, 11vw, 132px) 0 clamp(48px, 6vw, 76px);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(251, 252, 250, 0) 55%, var(--paper) 100%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  margin-top: 20px;
}

.hero h1 .line-2 {
  display: block;
  font-size: 0.55em;
  font-style: italic;
  color: var(--ink-2);
  margin-top: 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero__sub {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.hero__sub b {
  color: var(--ink);
  font-weight: 700;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero__note {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-3);
  max-width: 42ch;
}

.chips {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  backdrop-filter: blur(6px);
}

.chip .ico {
  color: var(--g-600);
}

.chip--price {
  background: var(--g-700);
  border-color: var(--g-700);
  color: #fff;
}

.chip--price .ico {
  color: #fff;
}

/* ---------- ценовая полоса под hero ---------- */
.pricebar-wrap {
  position: relative;
  padding: 0 0 clamp(10px, 2vw, 18px);
}

.pricebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: 22px clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--white), var(--g-50) 65%, #fff7ed);
  border: 1px solid var(--g-100);
  box-shadow: var(--shadow);
}

.pricebar__main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.pricebar__value {
  font-family: "Lora", serif;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1;
  color: var(--g-700);
}

.pricebar__unit {
  font-size: 14.5px;
  color: var(--ink-3);
  max-width: 22ch;
}

.pricebar__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  border-left: 1px solid var(--g-100);
  padding-left: clamp(18px, 3vw, 34px);
}

.pricebar__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.pricebar__list .ico {
  color: var(--g-500);
  flex: none;
}

.pricebar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  text-decoration: none;
}

.pricebar__link .ico {
  transition: transform 0.25s var(--ease);
}

.pricebar__link:hover .ico {
  transform: translateX(4px);
}

/* портрет: «узел», к которому сходятся связи */
.hero__portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
}

.hero__portrait img {
  width: 100%;
  /* кадрируем под арку сами, чтобы колонка не была выше текстовой */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 200px 200px var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: var(--g-50);
}

.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -18px -18px 34px -18px;
  border-radius: 220px 220px var(--r-xl) var(--r-xl);
  border: 1px solid var(--g-200);
  z-index: -1;
}

.badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}

.badge-float--a {
  left: -26px;
  bottom: 78px;
  animation-delay: -1s;
}

.badge-float--b {
  right: -14px;
  top: 54px;
}

.badge-float__k {
  font-family: "Lora", serif;
  font-size: 21px;
  line-height: 1;
  color: var(--g-700);
}

.badge-float__v {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.25;
  max-width: 15ch;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- «узнаёте себя» ---------- */
.grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(34px, 5vw, 54px);
}

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

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

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

/* карточка со «пятном внимания» под курсором */
.card {
  position: relative;
  height: 100%;
  padding: 26px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(24, 164, 122, 0.1),
    transparent 68%
  );
  pointer-events: none;
}

.card:hover {
  border-color: var(--g-200);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--g-50);
  color: var(--g-600);
  border: 1px solid var(--g-100);
  transition: background 0.3s ease, color 0.3s ease;
}

.card:hover .card__icon {
  background: var(--g-500);
  color: #fff;
  border-color: var(--g-500);
}

.card__icon--amber {
  background: #fef6e7;
  border-color: #fbe3b8;
  color: #b0741a;
}

.card:hover .card__icon--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.card__icon--sky {
  background: #eaf5fc;
  border-color: #c5e4f6;
  color: #1f6f9e;
}

.card:hover .card__icon--sky {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
}

.card__icon--violet {
  background: #f1eefe;
  border-color: #ddd5fd;
  color: #5b41cc;
}

.card:hover .card__icon--violet {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.card__icon--rose {
  background: #fdeef3;
  border-color: #fad2e0;
  color: #b93f66;
}

.card:hover .card__icon--rose {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.card h3 {
  font-size: 1.22rem;
  margin-top: 20px;
}

.card p {
  margin-top: 9px;
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.6;
}

.after-grid {
  margin-top: 36px;
  text-align: center;
}

/* ---------- метод: принципы + схема ---------- */
.method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
  margin-top: clamp(34px, 5vw, 52px);
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: left;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.principle:hover,
.principle.is-active {
  border-color: var(--g-300);
  box-shadow: var(--shadow-sm);
}

.principle__num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--g-50);
  border: 1px solid var(--g-100);
  color: var(--g-600);
  transition: background 0.3s ease, color 0.3s ease;
}

.principle:hover .principle__num,
.principle.is-active .principle__num {
  background: var(--g-600);
  border-color: var(--g-600);
  color: #fff;
}

.principle h3 {
  font-size: 1.14rem;
}

.principle p {
  margin-top: 7px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.58;
}

/* схема системы */
.diagram {
  position: sticky;
  top: 104px;
  padding: 26px 22px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--white), var(--g-50));
  border: 1px solid var(--g-100);
  box-shadow: var(--shadow-sm);
}

.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram__hint {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
  min-height: 3em;
}

.sys-link {
  stroke: var(--g-300);
  stroke-width: 1.6;
  fill: none;
  transition: stroke 0.35s ease, stroke-width 0.35s ease, opacity 0.35s ease;
}

.sys-link.is-dim {
  opacity: 0.25;
}

.sys-link.is-on {
  stroke: var(--g-600);
  stroke-width: 2.6;
}

.sys-link--tri {
  stroke-dasharray: 5 6;
}

.sys-node circle {
  fill: var(--white);
  stroke: var(--g-400);
  stroke-width: 1.8;
  transition: stroke 0.35s ease, fill 0.35s ease, opacity 0.35s ease;
}

.sys-node text {
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 700;
  fill: var(--ink-2);
  text-anchor: middle;
}

.sys-node.is-dim {
  opacity: 0.35;
}

.sys-node.is-on circle {
  fill: var(--g-100);
  stroke: var(--g-600);
}

.sys-node--me circle {
  fill: var(--red);
  stroke: var(--red);
}

.sys-node--me text {
  fill: #fff;
}

.sys-pulse {
  /* без fill-box Chrome масштабирует относительно viewBox и пятно уезжает от узла */
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 3.2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(1.75);
  }
}

/* ключевая мысль метода */
.keynote {
  margin-top: clamp(34px, 5vw, 54px);
  position: relative;
  padding: clamp(30px, 4vw, 46px);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--g-700), var(--g-600) 55%, #0d6d51);
  color: #eafaf3;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.keynote::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 65%);
}

.keynote__q {
  position: relative;
  font-family: "Lora", serif;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  line-height: 1.28;
  color: #fff;
  max-width: 30ch;
}

.keynote p {
  position: relative;
  margin-top: 18px;
  max-width: 62ch;
  color: rgba(234, 250, 243, 0.86);
}

/* ---------- о специалисте ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.about__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--g-50);
}

.about__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 32%;
}

.facts {
  margin-top: 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.facts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--ink-2);
  font-size: 15.8px;
}

.facts .ico {
  color: var(--g-500);
  margin-top: 2px;
}

blockquote.quote {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--g-50);
  border: 1px solid var(--g-100);
  border-left: 3px solid var(--g-500);
  font-family: "Lora", serif;
  font-size: 1.06rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 5vw, 52px);
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--line);
}

.step__n {
  font-family: "Lora", serif;
  font-size: 2.1rem;
  color: var(--g-300);
  line-height: 1;
}

.step h3 {
  font-size: 1.14rem;
  margin-top: 12px;
}

.step p {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 15.2px;
  line-height: 1.58;
}

.session-shot {
  margin: 30px auto 0;
  max-width: 980px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.session-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 34%;
}

.session-shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 26px 20px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(180deg, transparent, rgba(9, 26, 21, 0.78));
}

/* ---------- цена ---------- */
.price {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  margin-top: clamp(30px, 4vw, 46px);
}

.price__card {
  padding: clamp(28px, 3.6vw, 42px);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.price__value {
  font-family: "Lora", serif;
  font-size: clamp(2.6rem, 7vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.price__unit {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 15.5px;
}

.price__list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.price__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 15.6px;
  color: var(--ink-2);
}

.price__list .ico {
  color: var(--g-500);
  margin-top: 3px;
}

.price__cta {
  margin-top: 30px;
}

.price__side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.note {
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--line);
}

.note--accent {
  background: var(--g-50);
  border-color: var(--g-100);
}

.note h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.note h3 .ico {
  color: var(--g-600);
}

.note p {
  margin-top: 9px;
  color: var(--ink-3);
  font-size: 15.2px;
  line-height: 1.6;
}

/* ---------- география / время ---------- */
/* два кадра «как это выглядит с вашей стороны» */
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.shot {
  margin: 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--g-50);
}

.shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 34%;
  transition: transform 0.9s var(--ease);
}

.shot:hover img {
  transform: scale(1.035);
}

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 22px 18px;
  color: #fff;
  font-size: 14.5px;
  line-height: 1.4;
  background: linear-gradient(180deg, transparent, rgba(9, 26, 21, 0.82));
}

/* мелкий подзаголовок внутри секции: привязывает подпись к тому, что под ней */
.subhead {
  margin-top: clamp(26px, 3.4vw, 38px);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.clocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.clock {
  padding: 16px 14px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.clock:hover {
  border-color: var(--g-200);
  transform: translateY(-2px);
}

.clock.is-you {
  background: var(--g-600);
  border-color: var(--g-600);
}

.clock__city {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clock.is-you .clock__city {
  color: rgba(255, 255, 255, 0.8);
}

.clock__time {
  font-family: "Lora", serif;
  font-size: 1.6rem;
  line-height: 1.1;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.clock.is-you .clock__time {
  color: #fff;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: clamp(30px, 4vw, 46px) auto 0;
  display: grid;
  gap: 10px;
}

.qa {
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.qa.is-open {
  border-color: var(--g-200);
  box-shadow: var(--shadow-sm);
}

.qa__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  text-align: left;
  font-weight: 700;
  font-size: 16.6px;
  color: var(--ink);
}

.qa__sign {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--g-50);
  color: var(--g-600);
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease;
}

.qa.is-open .qa__sign {
  transform: rotate(45deg);
  background: var(--g-600);
  color: #fff;
}

.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease);
}

.qa.is-open .qa__a {
  grid-template-rows: 1fr;
}

.qa__a > div {
  overflow: hidden;
}

.qa__a p {
  padding: 0 22px 22px;
  color: var(--ink-3);
  font-size: 15.8px;
  line-height: 1.65;
}

/* ---------- финальный CTA ---------- */
.final {
  position: relative;
  padding: clamp(48px, 7vw, 92px) clamp(24px, 4vw, 64px);
  border-radius: var(--r-xl);
  /* тёмно-зелёная подложка: последний экран должен звучать, а не белеть */
  background-color: #093a2c;
  background-image: var(--grain),
    radial-gradient(620px 420px at 18% 0%, rgba(24, 164, 122, 0.5), transparent 68%),
    radial-gradient(560px 420px at 88% 104%, rgba(46, 155, 214, 0.28), transparent 70%);
  border: 1px solid #0d4b39;
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
}

.final h2,
.final p,
.final .final__note {
  color: #f2fbf7;
}

.final__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.final > :not(canvas) {
  position: relative;
}

.final h2 {
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  max-width: 24ch;
  margin: 0 auto;
}

.final p {
  margin: 18px auto 0;
  max-width: 52ch;
  color: rgba(242, 251, 247, 0.82);
}

.final .btn--cta {
  margin-top: 34px;
}

/* ---------- footer ---------- */
.footer {
  padding: 56px 0 120px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.footer h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  font-weight: 800;
}

.footer p,
.footer li {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer__bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- мобильная закреплённая кнопка ---------- */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: none;
  transform: translateY(140%);
  transition: transform 0.4s var(--ease);
}

.sticky-cta .btn--cta {
  width: 100%;
  padding: 17px 22px;
}

.sticky-cta.is-on {
  transform: none;
}

/* ---------- модалка ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 22, 0.44);
  backdrop-filter: blur(6px);
}

.modal__sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 94vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(9, 26, 21, 0.4);
  transform: translateY(30px);
  transition: transform 0.42s var(--ease);
  overscroll-behavior: contain;
}

.modal.is-open .modal__sheet {
  transform: none;
}

.modal__bar {
  height: 5px;
  background: linear-gradient(90deg, var(--g-500), var(--g-600) 55%, var(--red));
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-3);
  transition: background 0.25s ease, color 0.25s ease;
}

.modal__close:hover {
  background: var(--g-50);
  color: var(--ink);
}

.modal__body {
  padding: 26px 24px 28px;
}

.modal__body h3 {
  font-size: 1.65rem;
  margin-top: 6px;
  max-width: 22ch;
}

.modal__body > p {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 15.2px;
  line-height: 1.6;
}

.form {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.field > span {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.control {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border-radius: 15px;
  background: var(--white);
  border: 1.5px solid var(--line-2);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.control:focus-within {
  border-color: var(--g-400);
  box-shadow: 0 0 0 4px var(--g-50);
}

.control .ico {
  color: var(--g-500);
}

.control input {
  flex: 1;
  min-width: 0;
  padding: 15px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

.control input::placeholder {
  color: #a8bab4;
}

.control.is-bad {
  border-color: #f0b0aa;
  box-shadow: 0 0 0 4px #fdeeec;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(0, 152px) minmax(0, 1fr);
  gap: 10px;
}

.select {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 15px;
  background: var(--white);
  border: 1.5px solid var(--line-2);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.select:focus-within {
  border-color: var(--g-400);
  box-shadow: 0 0 0 4px var(--g-50);
}

.select select {
  appearance: none;
  width: 100%;
  padding: 15px 32px 15px 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.select::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}

/* доп. секция «канал связи» — появляется для не-РФ номеров */
.channels {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}

.channels.is-on {
  grid-template-rows: 1fr;
}

.channels > div {
  overflow: hidden;
}

.channels__inner {
  padding: 18px;
  border-radius: 17px;
  background: var(--g-50);
  border: 1px dashed var(--g-200);
}

.channels__hint {
  font-size: 13.8px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 4px;
}

.channels__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt {
  position: relative;
}

.opt span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--line-2);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.opt span .ico {
  color: var(--g-500);
  transition: color 0.22s ease;
}

.opt:hover span {
  border-color: var(--g-300);
}

.opt input:checked + span {
  background: var(--g-600);
  border-color: var(--g-600);
  color: #fff;
}

.opt input:checked + span .ico {
  color: #fff;
}

.opt input:focus-visible + span {
  outline: 3px solid var(--g-400);
  outline-offset: 3px;
}

.form__error {
  display: none;
  font-size: 14px;
  color: var(--red-600);
  background: #fdeeec;
  border: 1px solid #f7cdc8;
  border-radius: 13px;
  padding: 11px 14px;
}

.form__error.is-on {
  display: block;
}

.form__submit {
  width: 100%;
  padding: 18px 24px;
}

.form__submit[disabled] {
  opacity: 0.72;
  pointer-events: none;
}

.form__legal {
  font-size: 12.6px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* успех */
.success {
  display: none;
  padding: 40px 26px 44px;
  text-align: center;
}

.success.is-on {
  display: block;
}

.success__mark {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--g-100);
  color: var(--g-700);
  animation: pop 0.5s var(--ease) both;
}

.success__mark .ico {
  width: 36px;
  height: 36px;
  stroke-width: 2.4;
}

@keyframes pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success h3 {
  margin-top: 22px;
  font-size: 1.55rem;
}

.success p {
  margin-top: 12px;
  color: var(--ink-3);
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__grid,
  .method,
  .about,
  .price {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__portrait {
    justify-self: center;
    width: min(100%, 340px);
  }

  .diagram {
    position: static;
  }

  .about__photo {
    order: -1;
  }

  h2.h2 {
    max-width: 26ch;
  }

  .pricebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pricebar__list {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--g-100);
    padding-top: 14px;
    gap: 8px 18px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16.5px;
  }

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

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .sticky-cta {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .badge-float--a {
    left: -8px;
    bottom: 42px;
  }

  .badge-float--b {
    right: -8px;
    top: 26px;
  }

  .hero__portrait::before {
    inset: -12px -12px 24px -12px;
  }

  .modal__body {
    padding: 22px 18px 24px;
  }

  .phone-row {
    grid-template-columns: minmax(0, 138px) minmax(0, 1fr);
  }

  .hero__portrait {
    width: min(100%, 300px);
  }

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

  .shot img {
    aspect-ratio: 4 / 3;
  }

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

@media (max-width: 460px) {
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (min-width: 761px) {
  .modal {
    align-items: center;
    padding: 24px;
  }

  .modal__sheet {
    border-radius: 26px;
  }
}

/* ---------- уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- печать ---------- */
@media print {
  .header,
  .sticky-cta,
  .cursor-layer,
  .progress,
  .modal {
    display: none !important;
  }
}
