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

/* ---------------------------------------------
   Design tokens — Бонум
   Источник: ui-ux-pro-max --design-system
   (blue trust primary + green/lime accent,
   без navy+gold и без пастельных cursive-клише)
--------------------------------------------- */
:root {
  /* primitive */
  --blue-900: #0F2E66;
  --blue-700: #1E40AF;
  --blue-500: #3B6FE0;
  --blue-300: #7CA6EF;

  --lime-400: #A3E635;
  --lime-500: #8FCB22;

  --ink-900: #0F172A;
  --ink-700: #1E293B;
  --ink-500: #64748B;

  --white: #FFFFFF;
  --slate-50: #F8FAFC;
  --slate-100: #EEF2F8;
  --slate-200: #E2E8F0;

  /* semantic */
  --color-accent: var(--lime-400);
  --color-accent-ink: var(--ink-900);
  --color-surface: var(--white);
  --color-surface-dark: var(--ink-900);
  --color-page-bg: var(--white);
  --color-text-body: var(--ink-700);
  --color-text-muted: var(--ink-500);
  --color-text-on-blue: rgba(255, 255, 255, 0.97);
  --color-text-on-blue-muted: rgba(255, 255, 255, 0.86);
  --color-border: var(--slate-200);

  /* typography */
  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --fs-eyebrow: 13px;
  --fs-caption: 14px;
  --fs-body: 16px;
  --fs-body-lg: 17px;
  --fs-h3: 19px;

  /* rhythm — расстояние от section-heading до основного контентного блока
     и между heading → lead. Держим одинаковыми во всех секциях. */
  --gap-heading-lead: 20px;
  --gap-heading-block: 48px;

  /* layout */
  --page-pad: 14px;
  --container-width: 1320px;
  --container-pad: 56px;
  --radius-hero: 32px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-card: 0 20px 40px -14px rgba(15, 23, 42, 0.22);
  --shadow-btn: 0 12px 24px -8px rgba(163, 230, 53, 0.55);
  --text-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.28);
}

@media (max-width: 720px) {
  :root {
    --container-pad: 18px;
    --page-pad: 8px;
    --radius-hero: 22px;
  }
}

/* ---------------------------------------------
   Reset
--------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-page-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p, ol, ul { margin: 0; padding: 0; }
ol { list-style: none; }
a { text-decoration: none; color: inherit; }
svg { display: block; }

/* ---------------------------------------------
   Page shell — первый экран без скролла, ровно
   в размер viewport, отступ одинаковый со всех сторон
--------------------------------------------- */
.page {
  height: 100vh;
  height: 100dvh;
  padding: var(--page-pad);
  display: flex;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 78%,
    rgba(59, 111, 224, 0.06) 92%,
    rgba(59, 111, 224, 0.12) 100%
  );
}

/* On phones and on short (landscape) viewports the hero must NOT be locked to
   the viewport height: a fixed 100vh + min-height:520 + overflow:hidden clips
   the headline, CTA and the floating-cards row. Let the hero grow to its
   natural height and scroll normally, while still filling at least one screen
   on tall phones. */
@media (max-width: 720px), (max-height: 640px) {
  .page {
    height: auto;
    min-height: 100svh;
    align-items: flex-start;
  }
  /* fill at least one screen on tall phones, but grow past it (no clipping)
     when the stacked hero content is taller than the viewport */
  .hero-card {
    min-height: calc(100svh - 2 * var(--page-pad));
  }
}

/* ---------------------------------------------
   Hero card — фото-карточка, заполняет всё пространство page
--------------------------------------------- */
.hero-card {
  position: relative;
  flex: 1 1 auto;
  min-height: 520px;
  width: 100%;
  border-radius: var(--radius-hero);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.hero-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 15%;
}

/* ---------------------------------------------
   Nav
--------------------------------------------- */
.nav {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  width: 100%;
  margin-inline: auto;
  padding: clamp(14px, 4vh, 28px) var(--container-pad) 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-on-blue);
  text-shadow: var(--text-shadow-sm);
  margin-right: auto;
}

.nav__logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-on-blue-muted);
  text-shadow: var(--text-shadow-sm);
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--color-text-on-blue); }

@media (max-width: 900px) {
  .nav__links { display: none; }
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--radius-pill);
}

.btn--nav {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 13px 22px;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-btn);
  padding: 6px;
  padding-left: 26px;
  gap: 16px;
}

.btn--primary__label {
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn--primary__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-ink);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------
   Hero content
--------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  width: 100%;
  margin-inline: auto;
  padding: clamp(24px, 7vh, 64px) var(--container-pad) clamp(16px, 4vh, 40px);
}

.hero__text {
  max-width: 600px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--color-text-on-blue);
  text-shadow: var(--text-shadow-sm);
  overflow-wrap: break-word;
}

.hero__subtitle {
  margin-top: clamp(10px, 2.5vh, 22px);
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--color-text-on-blue-muted);
  text-shadow: var(--text-shadow-sm);
  max-width: 420px;
}

.hero__text .btn--primary {
  margin-top: clamp(14px, 3.5vh, 32px);
}

@media (max-width: 600px) {
  .hero-card__bg img { object-position: 64% 12%; }
}

/* ---------------------------------------------
   Floating cards — внутри hero-card, обрезаны по краям
--------------------------------------------- */
.floating-cards {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-bottom: clamp(16px, 4vh, 40px);
  margin-top: auto;
}

.floating-cards__track {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.card {
  border-radius: var(--radius-md);
  padding: clamp(12px, 1.6vh, 18px);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

/* glass card — frosted, line texture (edge cards) */
.card--glass {
  width: 200px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0px, rgba(255, 255, 255, 0.09) 1px, transparent 1px, transparent 9px),
    linear-gradient(160deg, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.22) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card--glass__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.card--glass__label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.65);
}

.card--glass__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -4px;
}

.card--glass__pills span {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.card--glass__text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: -4px;
}

/* dark quote card */
.card--dark {
  width: 260px;
  background: var(--color-surface-dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card--dark__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.card--dark__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(163, 230, 53, 0.16);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card--dark__quote {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
}

/* lime principle card */
.card--lime {
  width: 160px;
  background: var(--lime-400);
  color: var(--color-accent-ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card--lime__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-ink);
}

.card--lime p {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

/* steps card */
.card--steps {
  width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.card--steps__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.card--steps__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card--steps__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-body);
}

.card--steps__num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 12px;
}

/* Below ~1300px the five fixed-width cards no longer fit edge-to-edge.
   A horizontal scroll strip felt awkward on touch (stray scrollbar, hidden
   content), so instead show a smaller, flexible set that fits the row with
   no scrolling: three cards on tablets, two on phones. */
@media (max-width: 1300px) {
  .floating-cards { padding-bottom: 24px; }
  .floating-cards__track {
    justify-content: stretch;
    align-items: stretch;
    gap: 14px;
  }
  .floating-cards__track .card {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  /* keep the first three cards, drop the rest */
  .floating-cards__track .card:nth-child(n + 4) { display: none; }
}

@media (max-width: 600px) {
  .hero { padding-bottom: 28px; }
  .card { padding: 16px; }
  /* on phones two cards side by side is the most that stays legible */
  .floating-cards__track .card:nth-child(n + 3) { display: none; }
}

/* ---------------------------------------------
   Shared section scaffolding
--------------------------------------------- */
.section {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: clamp(56px, 8vw, 112px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 18px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.375rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  max-width: 820px;
}

.section-lead {
  margin-top: var(--gap-heading-lead);
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 560px;
}

/* icon badges reused across cards */
.card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon--blue { background: rgba(30, 64, 175, 0.1); color: var(--blue-700); }
.card-icon--lime { background: rgba(163, 230, 53, 0.18); color: var(--lime-500); }
.card-icon--ink { background: var(--slate-100); color: var(--ink-700); }
.card-icon--on-dark { background: rgba(255, 255, 255, 0.12); color: var(--color-accent); }
.card-icon--on-lime { background: rgba(15, 23, 42, 0.12); color: var(--color-accent-ink); }

/* tint card — light blue surface, used in the principles grid */
.card--tint {
  background: linear-gradient(160deg, rgba(30, 64, 175, 0.05), rgba(59, 111, 224, 0.1));
  border: 1px solid rgba(30, 64, 175, 0.12);
  color: var(--ink-900);
}

/* full-bleed tinted background band, wraps a .section for rhythm between white sections */
.band--tint {
  background: var(--slate-50);
}

/* full-bleed soft blue gradient behind the goal section — starts transparent
   right under the hero card and eases into --slate-50 so it blends with the
   tinted band that follows, with no visible seam */
.band--goal {
  background: linear-gradient(
    180deg,
    rgba(59, 111, 224, 0.12) 0%,
    rgba(59, 111, 224, 0.18) 40%,
    rgba(148, 175, 232, 0.10) 82%,
    var(--slate-50) 100%
  );
}

.section-lead-lg {
  margin-top: var(--gap-heading-lead);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-900);
  max-width: 520px;
}

/* ---------------------------------------------
   Goal
--------------------------------------------- */
.goal__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.goal__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: 8px;
}

.goal__orbit {
  --badge-size: 84px;
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1;
}

.goal__orbit-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.goal__center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    #ffffff 0%,
    #ffffff 55%,
    rgba(255, 255, 255, 0.7) 76%,
    rgba(255, 255, 255, 0.25) 90%,
    rgba(255, 255, 255, 0) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
}
.goal__center svg {
  width: 64%;
  height: 64%;
}

.goal__node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: 48%;
}

.goal__node--tl,
.goal__node--bl {
  flex-direction: row-reverse;
  text-align: right;
}

.goal__node--tl {
  top: 23.13%;
  left: 23.13%;
  transform: translate(calc(-100% + var(--badge-size) / 2), -50%);
}
.goal__node--tr {
  top: 23.13%;
  left: 76.87%;
  transform: translate(calc(var(--badge-size) / -2), -50%);
}
.goal__node--bl {
  top: 76.87%;
  left: 23.13%;
  transform: translate(calc(-100% + var(--badge-size) / 2), -50%);
}
.goal__node--br {
  top: 76.87%;
  left: 76.87%;
  transform: translate(calc(var(--badge-size) / -2), -50%);
}

.goal__node-badge {
  position: relative;
  flex-shrink: 0;
  width: var(--badge-size);
  height: var(--badge-size);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 26px 44px -22px rgba(15, 23, 42, 0.22),
    0 4px 10px -4px rgba(15, 23, 42, 0.06);
}
.goal__node-badge > svg {
  width: 32px;
  height: 32px;
}

.goal__node-dot {
  position: absolute;
  top: 7%;
  right: 7%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime-400);
  border: 2px solid #fff;
}

.goal__node-label {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.32;
  color: var(--ink-900);
}

@media (max-width: 1100px) {
  .goal__grid { gap: 32px; }
  .goal__orbit { --badge-size: 74px; max-width: 520px; }
  .goal__node-badge > svg { width: 28px; height: 28px; }
  .goal__node-label { font-size: 14px; }
}

@media (max-width: 860px) {
  .goal__grid { grid-template-columns: 1fr; }
  .goal__mark { min-height: 480px; }
  .goal__orbit { max-width: 480px; }
}

/* Below ~560px the orbital diagram (four labelled nodes positioned around a
   ring) runs out of room — nodes spill past the viewport edges and their
   labels collide with the central mark. Reflow it into a clean 2-column
   feature grid: drop the rings + centre glyph, and lay the badges out in a
   readable list. */
@media (max-width: 560px) {
  .goal__mark { min-height: 0; padding: 0; }
  .goal__orbit {
    --badge-size: 52px;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }
  .goal__orbit-rings,
  .goal__center { display: none; }
  .goal__node,
  .goal__node--tl,
  .goal__node--tr,
  .goal__node--bl,
  .goal__node--br {
    position: static;
    transform: none;
    flex-direction: row;
    text-align: left;
    width: auto;
    max-width: none;
    min-width: 0;
    gap: 12px;
    align-items: center;
    top: auto;
    left: auto;
  }
  .goal__node-badge > svg { width: 24px; height: 24px; }
  .goal__node-dot { width: 10px; height: 10px; border-width: 1.5px; }
  .goal__node-label {
    min-width: 0;
    font-size: 13.5px;
    overflow-wrap: break-word;
  }
  /* labels are hand-broken with <br> for the orbit layout; let them reflow
     naturally in the narrow grid cells instead */
  .goal__node-label br { display: none; }
}

@media (max-width: 360px) {
  .goal__orbit { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------------------------------------------
   Tasks — editorial bento: asymmetric grid of white cells
   over the tint band, joined by hairlines. No colored fills.
--------------------------------------------- */
.task-bento {
  margin-top: var(--gap-heading-block);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: minmax(240px, auto) minmax(180px, auto);
  grid-template-areas:
    "one two three"
    "one four four";
  gap: 20px;
}

.task-bento__cell {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.task-bento__cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -22px rgba(15, 23, 42, 0.18);
}

.task-bento__cell--one   { grid-area: one; }
.task-bento__cell--two   { grid-area: two; }
.task-bento__cell--three { grid-area: three; }
.task-bento__cell--four  { grid-area: four; }

.task-bento__num {
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.task-bento__num-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-500);
  display: inline-block;
}

.task-bento__icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EEF3FC 0%, #E4ECFA 100%);
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-bento__icon > svg {
  width: 28px;
  height: 28px;
}

.task-bento__icon-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 2px #fff;
}

.task-bento__text {
  font-family: var(--font-heading);
  font-size: clamp(14px, 0.78rem + 0.35vw, 17px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-900);
  margin: 0;
  max-width: 34ch;
}

/* --- Card 01: blue gradient with abstract waves --- */
.task-bento__cell--one {
  background: linear-gradient(155deg, #E6EFFC 0%, #D6E4F8 55%, #C4D6F3 100%);
  padding: 32px 32px 40px;
  justify-content: flex-start;
  gap: 22px;
}

.task-bento__cell--one .task-bento__num { color: var(--lime-500); }
.task-bento__cell--one .task-bento__num-dot { background: var(--lime-500); }

.task-bento__cell--one .task-bento__text {
  font-size: clamp(18px, 0.95rem + 0.7vw, 24px);
  line-height: 1.3;
  max-width: 22ch;
  position: relative;
  z-index: 2;
}

.task-bento__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 55%;
  pointer-events: none;
  z-index: 1;
}

/* --- Card 04: wider — allow icon + text side-by-side on larger screens --- */
.task-bento__cell--four {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.task-bento__cell--four .task-bento__num {
  position: absolute;
  top: 32px;
  left: 32px;
}

.task-bento__cell--four {
  padding-top: 60px;
}

.task-bento__cell--four .task-bento__text {
  max-width: 42ch;
  flex: 1;
  min-width: 200px;
}

@media (max-width: 1024px) {
  .task-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "one one"
      "two three"
      "four four";
  }
}

@media (max-width: 560px) {
  .task-bento {
    grid-template-columns: 1fr;
    grid-template-areas: "one" "two" "three" "four";
    gap: 14px;
  }
  .task-bento__cell { padding: 26px 22px; min-height: 0; }
  .task-bento__cell--one { padding: 26px 22px 32px; }
  .task-bento__cell--four { padding: 52px 22px 26px; }
  .task-bento__cell--four .task-bento__num { top: 22px; left: 22px; }
  .task-bento__icon { width: 48px; height: 48px; border-radius: 12px; }
  .task-bento__icon > svg { width: 24px; height: 24px; }
}

/* ---------------------------------------------
   Principles — editorial numbered rows with dividers,
   deliberately NOT a card grid (different rhythm from
   Tasks above and FAQ below)
--------------------------------------------- */
.principle-rows {
  list-style: none;
  margin: var(--gap-heading-block) 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.principle-row {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr 140px;
  gap: 40px;
  align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.principle-row:hover { padding-left: 12px; }

.principle-row__num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue-700);
  letter-spacing: -0.02em;
}

.principle-row:nth-child(2) .principle-row__num { color: var(--lime-500); }
.principle-row:nth-child(3) .principle-row__num { color: var(--ink-900); }

.principle-row__body { max-width: 640px; }

.principle-row__body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-900);
  margin: 0 0 12px;
}

.principle-row__body p {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-500);
  margin: 0;
}

.principle-row__accent {
  justify-self: end;
  align-self: center;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue-700);
  opacity: 0.9;
}

.principle-row:nth-child(2) .principle-row__accent { background: var(--lime-400); }
.principle-row:nth-child(3) .principle-row__accent { background: var(--ink-900); }

@media (max-width: 860px) {
  .principle-row {
    grid-template-columns: 60px 1fr;
    gap: 20px;
    padding: 28px 0;
  }
  .principle-row__accent { display: none; }
  .principle-row__num { font-size: 2rem; }
  .principle-row:hover { padding-left: 0; }
}

/* ---------------------------------------------
   Steps / conditions — vertical connected timeline
--------------------------------------------- */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: stretch;
}

.timeline {
  display: flex;
  flex-direction: column;
  margin-top: var(--gap-heading-block);
}

.steps-aside {
  position: sticky;
  top: 32px;
  align-self: stretch;
  min-height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(165deg, var(--blue-700) 0%, var(--blue-900) 100%),
    var(--blue-900);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

/* photo overlay — loads if file exists; otherwise the blue gradient shows through */
.steps-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/steps-aside.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* subtle vignette to seat the photo in the palette */
.steps-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.22) 100%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 860px) {
  .steps-layout { grid-template-columns: 1fr; gap: 32px; }
  /* the source photo is portrait (1400×1875); a landscape 4/3 box cropped away
     most of it. Use a portrait ratio matched to the image and cap the width so
     it stays a tidy centred photo (not a giant block) on tablets. */
  .steps-aside {
    position: static;
    min-height: 0;
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
  }
}

.timeline__item {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 48px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.timeline__node {
  flex-shrink: 0;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  background: var(--slate-50);
  border: 1px solid var(--color-border);
  color: var(--blue-700);
}

.timeline__item:first-child .timeline__node {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

.timeline__item:last-child .timeline__node {
  background: var(--lime-400);
  border-color: var(--lime-400);
  color: var(--color-accent-ink);
}

.timeline__content { padding-top: 6px; }

.timeline__content h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 8px;
}

.timeline__content p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 460px;
  margin: 0;
}

/* ---------------------------------------------
   FAQ — centered column, decorative glyph
--------------------------------------------- */
.faq { position: relative; text-align: center; overflow: hidden; }

.faq::before {
  content: "?";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: clamp(11rem, 40vw, 22rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(30, 64, 175, 0.05);
  pointer-events: none;
}

.faq__head {
  position: relative;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq__head .eyebrow { justify-content: center; }

.faq-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
  text-align: left;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, color 0.3s ease;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(135deg);
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item__answer p {
  padding: 0 24px 22px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-500);
  margin: 0;
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.footer {
  width: 100%;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 32px var(--container-pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.footer__logo {
  color: var(--ink-900);
  text-shadow: none;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: var(--fs-caption);
  color: var(--ink-500);
  transition: color 0.2s ease;
}

.footer__links a:hover { color: var(--ink-900); }

.footer__copy {
  font-size: var(--fs-eyebrow);
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------------------------------------------
   Apply modal — "Оставить заявку" popup
--------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-pad);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 2 * var(--page-pad));
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 40px 32px 32px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--slate-100);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover { background: var(--slate-200); color: var(--ink-900); }

.modal__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.modal__lead {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-500);
  margin-bottom: 24px;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.apply-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.apply-form__label {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--ink-700);
}

.apply-form__field input {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink-900);
  background: var(--slate-50);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.apply-form__field input::placeholder { color: #9AA6B8; }

.apply-form__field input:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}

.apply-form__field input:user-invalid {
  border-color: #E0576B;
}

.apply-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.apply-form__checkbox input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue-500);
  cursor: pointer;
}

.apply-form__checkbox span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-500);
}

.apply-form__checkbox a {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.apply-form__checkbox a:hover { color: var(--ink-900); }

.apply-form__submit {
  width: 100%;
  margin-top: 4px;
}

.apply-form__error {
  margin: 4px 0 0;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
}

.apply-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 20px 0 8px;
}

.apply-form__success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(163, 230, 53, 0.18);
  color: var(--lime-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply-form__success .modal__title {
  margin-bottom: 0;
}

.apply-form__success p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 320px;
}

body.modal-open { overflow: hidden; }

/* ---------------------------------------------
   Cookie consent banner
--------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: var(--page-pad);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__inner {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 64, 175, 0.1);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner__text {
  flex: 1 1 auto;
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: var(--ink-500);
  margin: 0;
}

.cookie-banner__link {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover { color: var(--ink-900); }

.cookie-banner__accept {
  flex-shrink: 0;
  padding: 13px 22px;
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-wrap: wrap;
    padding: 18px;
  }
  .cookie-banner__accept {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------
   Scroll reveal (progressively enhanced by script.js / Motion)
--------------------------------------------- */
.js-ready .reveal {
  opacity: 0;
}

/* ---------------------------------------------
   Legal pages — Политика конфиденциальности, Согласие на обработку ПД
--------------------------------------------- */
.legal-header {
  width: 100%;
  border-bottom: 1px solid var(--color-border);
}

.legal-header__inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 20px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-header .nav__logo {
  color: var(--ink-900);
  text-shadow: none;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--ink-500);
  transition: color 0.2s ease;
}

.legal-back:hover { color: var(--ink-900); }

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(40px, 7vh, 72px) var(--container-pad) clamp(64px, 10vh, 96px);
}

.legal__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.25;
}

.legal__meta {
  margin-top: 14px;
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
}

.legal__section {
  margin-top: 40px;
}

.legal__section h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.4;
  margin-bottom: 16px;
}

.legal__section p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text-body);
}

.legal__section p + p {
  margin-top: 14px;
}

.legal__section ul {
  margin-top: 14px;
  padding-left: 22px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal__section ul li {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text-body);
}

.legal__section a {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__section a:hover { color: var(--ink-900); }

.legal__intro {
  margin-top: var(--gap-heading-lead);
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--color-text-body);
}

.legal--doc {
  max-width: 820px;
}

.doc-pages {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doc-pages__page {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-pages__page img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.doc-pages__num {
  align-self: center;
  font-size: var(--fs-eyebrow);
  color: var(--color-text-muted);
}

.doc-pages--single .doc-pages__page img {
  max-width: 620px;
  margin-inline: auto;
}
