/* =========================================================
   ЛАДЬЯ — CRM для малого бизнеса
   Концепция: «редакционный» стиль — бумага, засечки, пастель
   ========================================================= */

/* ===== БАЗА ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --card: #ffffff;
  --ink: #1c1b19;
  --ink-2: #3a3833;
  --muted: #6e695f;
  --dim: #9a9488;
  --line: #e3ded3;
  --line-2: #d2ccbf;
  --green: #1f5c45;
  --green-2: #174634;
  --mint: #dcefe3;
  --butter: #f6e7b4;
  --lilac: #e6e0f3;
  --peach: #f7ddd0;
  --sky: #dce8f4;
  --coral: #d9583a;
  --yellow: #f2c14e;
  --radius: 22px;
  --font-serif: 'Literata', Georgia, serif;
  --font-sans: 'Commissioner', system-ui, sans-serif;
  --font-mono: 'PT Mono', ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.04), 0 18px 40px -24px rgba(28, 27, 25, 0.25);
}

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

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lock {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--butter);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.container--narrow {
  max-width: 820px;
}

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

h1 em,
h2 em,
h3 em {
  font-style: italic;
  color: var(--green);
}

.mono {
  font-family: var(--font-mono);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.kicker b {
  font-weight: 400;
  color: var(--green);
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* подчёркивание ссылок */
.ulink {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.3s;
}

.ulink:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green);
}

.arrow-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.arrow-link:hover svg {
  transform: translateX(4px);
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
}

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

.btn--dark:hover {
  background: var(--green);
}

.btn--green {
  background: var(--green);
  color: #fff;
}

.btn--green:hover {
  background: var(--green-2);
}

.btn--line {
  border-color: var(--line-2);
  background: transparent;
}

.btn--line:hover {
  border-color: var(--ink);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

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

.btn--ghost:hover {
  background: var(--paper-2);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 14px;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.tag--mint { background: var(--mint); color: var(--green-2); }
.tag--butter { background: var(--butter); color: #6b5413; }
.tag--lilac { background: var(--lilac); color: #4b3d7a; }
.tag--peach { background: var(--peach); color: #8a3a22; }
.tag--sky { background: var(--sky); color: #23476b; }

/* ===== ШАПКА ===== */
.notice {
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-align: center;
}

.notice a {
  display: block;
  padding: 9px 16px;
}

.notice b {
  font-weight: 600;
  color: var(--yellow);
}

.notice span {
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(247, 245, 240, 0.92);
  transition: border-color 0.3s;
}

.header.scrolled {
  border-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 25px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--paper);
}

.logo__mark svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 24px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s;
}

.nav__link:hover,
.has-menu.open > .nav__link {
  background: var(--paper-2);
}

.nav__link.active {
  color: var(--green);
}

.nav__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.has-menu {
  position: relative;
}

.has-menu.open > .nav__link svg {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  display: grid;
  grid-template-columns: 1fr 1fr 250px;
  gap: 8px;
  width: 760px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 30px 60px -30px rgba(28, 27, 25, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.has-menu.open .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega__item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  transition: background 0.2s;
}

.mega__item:hover {
  background: var(--paper);
}

.mega__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}

.mega__icon svg {
  width: 20px;
  height: 20px;
}

.mega__item b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.mega__item span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.mega__promo {
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--butter);
}

.mega__promo small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6b5413;
}

.mega__promo b {
  display: block;
  margin: 6px 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.mega__promo p {
  font-size: 13px;
  color: var(--ink-2);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  width: 18px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ===== СЕКЦИИ ===== */
.section {
  padding: 110px 0;
}

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

.section--card {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: 56px;
}

.section-head .kicker {
  flex-basis: 100%;
  margin-bottom: -4px;
}

.section-head h2 {
  flex: 1 1 560px;
  max-width: 820px;
  font-size: clamp(34px, 4.6vw, 58px);
}

.section-head p {
  flex-basis: 100%;
  max-width: 600px;
  font-size: 18px;
  color: var(--muted);
}

.section-head > a,
.section-head > .btn {
  flex: none;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--muted);
}

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

.crumbs span::before {
  content: '→';
  margin-right: 8px;
  color: var(--dim);
}

.page-hero {
  padding: 64px 0 72px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 80px);
}

.page-hero .lead {
  max-width: 640px;
  margin-top: 24px;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

/* ===== HERO ===== */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  transition: border-color 0.2s;
}

.hero__badge:hover {
  border-color: var(--ink);
}

.hero__badge .tag {
  background: var(--mint);
  color: var(--green-2);
}

.hero h1 {
  max-width: 980px;
  margin: 28px auto 24px;
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 1;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.hero__note span::before {
  content: '✓';
  margin-right: 6px;
  color: var(--green);
}

/* окно приложения */
.showcase {
  position: relative;
  margin-top: 64px;
}

.showcase::before {
  content: '';
  position: absolute;
  inset: 12% -4% -6%;
  border-radius: 40px;
  background:
    radial-gradient(circle at 20% 30%, var(--mint), transparent 45%),
    radial-gradient(circle at 80% 20%, var(--lilac), transparent 45%),
    radial-gradient(circle at 60% 90%, var(--butter), transparent 50%);
  filter: blur(10px);
  opacity: 0.9;
}

.window {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 50px 100px -50px rgba(28, 27, 25, 0.45);
  overflow: hidden;
  text-align: left;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.window__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-2);
}

.window__bar span {
  margin: 0 auto;
  padding: 4px 40px;
  border-radius: 8px;
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.window__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 420px;
}

.window__side {
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: #fbfaf7;
  font-size: 13px;
}

.window__side b {
  display: block;
  padding: 0 8px 14px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
}

.window__side a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--ink-2);
}

.window__side a.on {
  background: var(--mint);
  color: var(--green-2);
  font-weight: 600;
}

.window__side svg {
  width: 16px;
  height: 16px;
}

.window__main {
  padding: 18px;
  min-width: 0;
}

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

.window__top h3 {
  font-size: 20px;
}

.window__top small {
  font-size: 12px;
  color: var(--muted);
}

/* мини-канбан */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.col {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: var(--paper);
}

.col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: 600;
}

.col__head span {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--muted);
}

.col__head i {
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  display: inline-block;
}

.deal {
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 13px;
  line-height: 1.35;
}

.deal b {
  display: block;
  font-weight: 600;
}

.deal small {
  color: var(--muted);
}

.deal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.ava {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
}

.float-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  animation: bob 6s ease-in-out infinite;
}

.float-note b {
  display: block;
  font-size: 14px;
}

.float-note__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.float-note__icon svg {
  width: 18px;
  height: 18px;
}

.float-note--1 { top: 28%; right: -36px; }
.float-note--2 { bottom: 12%; left: -40px; animation-delay: 1.5s; }

/* ===== ЛОГОТИПЫ КЛИЕНТОВ ===== */
.logos {
  padding: 56px 0;
  text-align: center;
}

.logos p {
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--muted);
}

.logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 52px;
  color: var(--ink-2);
  opacity: 0.75;
}

.logos__row span {
  font-size: 22px;
  white-space: nowrap;
}

/* ===== ПАСТЕЛЬНЫЕ КАРТОЧКИ ===== */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s;
}

.pcard:hover {
  transform: translateY(-4px);
}

.pcard--mint { background: var(--mint); }
.pcard--butter { background: var(--butter); }
.pcard--lilac { background: var(--lilac); }
.pcard--peach { background: var(--peach); }
.pcard--sky { background: var(--sky); }

.pcard__num {
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: 0.65;
}

.pcard h3 {
  margin: 14px 0 12px;
  font-size: 30px;
}

.pcard p {
  color: var(--ink-2);
}

.pcard__visual {
  margin-top: auto;
  padding-top: 28px;
}

.pcard .arrow-link {
  margin-top: 22px;
  color: var(--ink);
}

/* визуалы внутри карточек */
.mini-list {
  display: grid;
  gap: 6px;
}

.mini-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.mini-list b {
  font-family: var(--font-mono);
  font-weight: 400;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}

.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: rgba(28, 27, 25, 0.15);
}

.bars i:last-child {
  background: var(--ink);
}

.visible .bars i {
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.flow {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.flow div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.flow em {
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
}

/* ===== BENTO ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

a.tile:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.tile--wide { grid-column: span 3; }
.tile--full { grid-column: span 6; }

.tile__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}

.tile__icon svg {
  width: 22px;
  height: 22px;
}

.tile h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

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

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.tile__more svg {
  width: 16px;
  height: 16px;
}

/* ===== ШАГИ ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.step {
  padding: 28px 28px 0 0;
}

.step + .step {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.step__num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-style: italic;
  line-height: 1;
  color: var(--green);
}

.step h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.step p {
  margin-bottom: 16px;
  color: var(--muted);
}

/* ===== ЦИТАТА ===== */
.quote {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: end;
  padding: 56px;
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
}

.quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.3;
}

.quote blockquote::before {
  content: '«';
  color: var(--yellow);
}

.quote blockquote::after {
  content: '»';
  color: var(--yellow);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  font-size: 15px;
  color: rgba(247, 245, 240, 0.7);
}

.quote figcaption b {
  display: block;
  color: var(--paper);
}

.quote .ava {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.quote__stats {
  display: grid;
  gap: 20px;
}

.quote__stats div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.15);
}

.quote__stats b {
  display: block;
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--yellow);
}

.quote__stats span {
  font-size: 14px;
  color: rgba(247, 245, 240, 0.7);
}

.quote .arrow-link {
  color: var(--paper);
}

/* ===== ТАРИФЫ ===== */
.billing {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 36px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
}

.billing button {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.billing button.active {
  background: var(--ink);
  color: var(--paper);
}

.billing em {
  margin-left: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--green);
}

.billing button.active em {
  color: var(--yellow);
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.plan--hot {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.plan--hot .tag {
  position: absolute;
  top: 24px;
  right: 24px;
}

.plan h3 {
  font-size: 26px;
}

.plan__desc {
  margin: 6px 0 22px;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.plan__price b {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
}

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

.plan__note {
  min-height: 21px;
  margin: 8px 0 22px;
  font-size: 13px;
  color: var(--green);
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.plan li {
  display: flex;
  gap: 10px;
}

.plan li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5c45' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* калькулятор мест */
.seats {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.seats__form,
.seats__result {
  padding: 32px;
  border-radius: var(--radius);
}

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

.seats__result {
  display: flex;
  flex-direction: column;
  background: var(--mint);
}

.seats h3 {
  margin-bottom: 20px;
  font-size: 26px;
}

.seats__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 15px;
}

.seats__row output {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
}

.range {
  --fill: 0%;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green) var(--fill), var(--paper-2) var(--fill));
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 5px solid var(--card);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 1px 6px rgba(28, 27, 25, 0.3);
}

.range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 5px solid var(--card);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 1px 6px rgba(28, 27, 25, 0.3);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 26px;
}

.seg button {
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.seg button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.seats__total {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1.05;
}

.seats__lines {
  display: grid;
  gap: 8px;
  margin: 20px 0 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 92, 69, 0.2);
  font-size: 14px;
}

.seats__lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.seats__result .btn {
  margin-top: auto;
}

/* таблица сравнения */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
}

.compare thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
}

.compare .group td {
  padding-top: 26px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.compare tr:last-child td {
  border-bottom: 0;
}

.yes {
  color: var(--green);
  font-weight: 700;
}

.no {
  color: var(--dim);
}

/* ===== FAQ ===== */
.faq {
  border-top: 1px solid var(--ink);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 21px;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
  border-color: var(--green);
  background: var(--mint);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__a p {
  max-width: 720px;
  padding-bottom: 24px;
  color: var(--ink-2);
}

/* ===== СЛЕДУЮЩИЙ ШАГ ===== */
.next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.next a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s, transform 0.2s;
}

.next a:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.next small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.next b {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

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

.next svg {
  width: 22px;
  height: 22px;
  margin-top: auto;
  color: var(--green);
}

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 80px 56px;
  border-radius: 32px;
  background: var(--green);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.cta::before {
  width: 360px;
  height: 360px;
  top: -180px;
  left: -100px;
  background: rgba(242, 193, 78, 0.18);
}

.cta::after {
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -160px;
  background: rgba(220, 239, 227, 0.14);
}

.cta > * {
  position: relative;
}

.cta h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(34px, 4.6vw, 58px);
}

.cta h2 em {
  color: var(--yellow);
}

.cta p {
  max-width: 540px;
  margin: 18px auto 32px;
  font-size: 18px;
  color: rgba(247, 245, 240, 0.8);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cta .btn--line {
  border-color: rgba(247, 245, 240, 0.4);
  color: var(--paper);
}

.cta .btn--line:hover {
  border-color: var(--paper);
}

/* ===== ПРОДУКТ ===== */
.product {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
}

.subnav {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 2px;
}

.subnav small {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.subnav a {
  padding: 8px 14px;
  border-left: 2px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

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

.subnav a.active {
  border-color: var(--green);
  color: var(--ink);
  font-weight: 600;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.feature > div {
  min-width: 0;
}

.feature:first-child {
  padding-top: 0;
}

.feature:last-child {
  border-bottom: 0;
}

.feature h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.4vw, 44px);
}

.feature > div > p {
  color: var(--ink-2);
}

.checks {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  font-size: 15px;
}

.checks li {
  display: flex;
  gap: 10px;
}

.checks li::before {
  content: '✓';
  flex-shrink: 0;
  font-weight: 700;
  color: var(--green);
}

.panel {
  padding: 22px;
  border-radius: var(--radius);
}

.panel__card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

/* карточка клиента */
.client__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.client__head .ava {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

.client__head b {
  display: block;
  font-size: 16px;
}

.client__head span {
  font-size: 13px;
  color: var(--muted);
}

.events {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
}

.events div {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
}

.events i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
}

.events i svg {
  width: 15px;
  height: 15px;
}

.events time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}

/* задачи */
.tasks {
  display: grid;
  gap: 8px;
}

.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.task input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}

.task span {
  flex: 1;
}

.task:has(input:checked) span {
  color: var(--dim);
  text-decoration: line-through;
}

.task time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.task time.late {
  color: var(--coral);
}

/* автоматизации */
.rule {
  display: grid;
  gap: 0;
}

.rule__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 14px;
}

.rule__step small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.rule__step i {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
}

.rule__step i svg {
  width: 17px;
  height: 17px;
}

.rule__line {
  width: 2px;
  height: 22px;
  margin-left: 32px;
  background: repeating-linear-gradient(var(--line-2) 0 4px, transparent 4px 8px);
}

/* аналитика */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  padding-top: 10px;
}

.chart div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.chart i {
  width: 100%;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: var(--mint);
}

.chart div:last-child i {
  background: var(--green);
}

.visible .chart i {
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.funnel {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
}

.funnel div {
  display: flex;
  justify-content: space-between;
  width: var(--w);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--paper-2);
}

.funnel b {
  font-family: var(--font-mono);
  font-weight: 400;
}

/* телефон */
.phone {
  width: 250px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 38px;
  background: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(28, 27, 25, 0.6);
}

.phone__screen {
  height: 480px;
  padding: 26px 14px 14px;
  border-radius: 28px;
  background: var(--paper);
  overflow: hidden;
}

.phone__screen h4 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
}

/* безопасность */
.secure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secure div {
  padding: 18px;
  border-radius: 16px;
  background: var(--card);
}

.secure b {
  display: block;
  margin: 10px 0 4px;
  font-size: 15px;
}

.secure span {
  font-size: 13px;
  color: var(--muted);
}

.secure svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

/* ===== ИНТЕГРАЦИИ ===== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.search {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--dim);
  transform: translateY(-50%);
  pointer-events: none;
}

.search .input {
  padding-left: 44px;
  border-radius: 999px;
}

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

.chip {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: var(--ink);
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.integrations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.integ {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.integ:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.integ__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.integ__logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.integ h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.integ p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.integ small {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}

.empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
}

/* модальное окно */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 27, 25, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

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

.modal__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 32px;
  border-radius: 26px;
  background: var(--card);
  overflow-y: auto;
  transform: translateY(14px);
  transition: transform 0.25s;
}

.modal.open .modal__box {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}

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

.modal h2 {
  margin: 14px 0 8px;
  font-size: 32px;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.modal ol {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  counter-reset: s;
}

.modal ol li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  font-size: 15px;
  counter-increment: s;
}

.modal ol li::before {
  content: counter(s);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green-2);
}

/* ===== КЛИЕНТЫ ===== */
.case {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.case__side {
  position: sticky;
  top: 110px;
  align-self: start;
}

.case__cover {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 22px;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 34px;
  font-style: italic;
}

.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.case__metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.case__metrics b {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--green);
}

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

.case h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 3.4vw, 42px);
}

.case h3 {
  margin: 28px 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.case p {
  color: var(--ink-2);
}

.case blockquote {
  margin: 28px 0;
  padding-left: 22px;
  border-left: 3px solid var(--yellow);
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
}

.case blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 26px 24px 26px 0;
}

.stats div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stats b {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
}

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

/* ===== БЛОГ ===== */
.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s;
}

.featured:hover {
  border-color: var(--ink);
}

.featured__cover {
  min-height: 340px;
}

.featured__body {
  display: flex;
  flex-direction: column;
  padding: 40px;
}

.featured h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 3vw, 40px);
}

.featured p {
  color: var(--muted);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}

.featured .post-meta {
  margin-top: auto;
  padding-top: 24px;
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 18px;
}

.post {
  display: flex;
  flex-direction: column;
}

.post__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s;
}

.post:hover .post__cover {
  transform: translateY(-4px);
}

.post h3 {
  margin: 10px 0 8px;
  font-size: 23px;
  transition: color 0.2s;
}

.post:hover h3 {
  color: var(--green);
}

.post p {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--muted);
}

.post .post-meta {
  margin-top: auto;
}

/* генеративные обложки */
.cover {
  position: relative;
  overflow: hidden;
}

.cover::before,
.cover::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.cover--a { background: var(--mint); }
.cover--a::before { width: 60%; aspect-ratio: 1; left: -10%; bottom: -30%; background: var(--green); opacity: 0.85; }
.cover--a::after { width: 26%; aspect-ratio: 1; right: 14%; top: 18%; background: var(--yellow); }

.cover--b { background: var(--lilac); }
.cover--b::before { width: 70%; aspect-ratio: 1; right: -20%; top: -35%; border-radius: 0; transform: rotate(18deg); background: #8d7cc3; opacity: 0.7; }
.cover--b::after { width: 30%; aspect-ratio: 1; left: 16%; bottom: 14%; background: var(--paper); }

.cover--c { background: var(--butter); }
.cover--c::before { width: 90%; aspect-ratio: 1; left: 5%; top: 55%; background: var(--coral); opacity: 0.8; }
.cover--c::after { width: 18%; aspect-ratio: 1; left: 18%; top: 16%; background: var(--ink); }

.cover--d { background: var(--peach); }
.cover--d::before { width: 46%; aspect-ratio: 1; right: 10%; bottom: 10%; border-radius: 30%; background: var(--green); opacity: 0.8; }
.cover--d::after { width: 46%; aspect-ratio: 1; left: 12%; top: -12%; background: var(--paper); opacity: 0.8; }

.cover--e { background: var(--sky); }
.cover--e::before { width: 120%; height: 40%; left: -10%; bottom: -8%; border-radius: 50% 50% 0 0; background: #3f6f99; opacity: 0.7; }
.cover--e::after { width: 22%; aspect-ratio: 1; right: 20%; top: 18%; background: var(--yellow); }

.cover--f { background: var(--ink); }
.cover--f::before { width: 50%; aspect-ratio: 1; left: 25%; top: 20%; border: 14px solid var(--mint); background: transparent; }
.cover--f::after { width: 14%; aspect-ratio: 1; right: 14%; bottom: 14%; background: var(--yellow); }

/* статья */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: 0;
  height: 3px;
  background: var(--green);
}

.article-head {
  padding: 56px 0 40px;
}

.article-head h1 {
  max-width: 880px;
  margin: 18px 0 20px;
  font-size: clamp(36px, 5vw, 62px);
}

.article-head .lead {
  max-width: 720px;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.author .ava {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.author b {
  display: block;
  color: var(--ink);
}

.article-cover {
  aspect-ratio: 21 / 8;
  border-radius: 28px;
}

.article {
  display: grid;
  grid-template-columns: 220px minmax(0, 680px) 1fr;
  gap: 56px;
  padding-top: 56px;
}

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 2px;
  font-size: 14px;
}

.toc small {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.toc a {
  padding: 6px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.toc a.active {
  border-color: var(--green);
  color: var(--ink);
}

.prose {
  font-size: 18px;
  line-height: 1.75;
}

.prose h2 {
  margin: 48px 0 16px;
  font-size: 32px;
  scroll-margin-top: 100px;
}

.prose p + p {
  margin-top: 18px;
}

.prose ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 22px;
  list-style: disc;
}

.prose blockquote {
  margin: 30px 0;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--butter);
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.share .btn {
  margin-left: auto;
}

.inline-cta {
  margin-top: 40px;
  padding: 30px;
  border-radius: 22px;
  background: var(--mint);
}

.inline-cta b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}

.inline-cta p {
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--ink-2);
}

/* ===== О КОМПАНИИ ===== */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.story p + p {
  margin-top: 16px;
}

.story__big {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
}

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

.values .pcard {
  min-height: 300px;
}

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.person {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.person__pic {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 46px;
  font-style: italic;
}

.person b {
  display: block;
  font-size: 16px;
}

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

.jobs {
  border-top: 1px solid var(--ink);
}

.job {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.job b {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

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

.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact__info {
  display: grid;
  align-content: start;
  gap: 22px;
}

.contact__info div {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.contact__info small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.contact__info b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

/* ===== ЧТО НОВОГО ===== */
.releases {
  display: grid;
}

.release {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.release__date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.release__date b {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}

.release h3 {
  margin: 10px 0 10px;
  font-size: 26px;
}

.release p {
  color: var(--ink-2);
}

.release ul {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-left: 20px;
  list-style: disc;
  color: var(--ink-2);
}

/* ===== ДОКУМЕНТ ===== */
.legal {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 56px;
}

.legal .prose h2:first-child {
  margin-top: 0;
}

/* ===== ПОЛЯ ФОРМ ===== */
.field > label:not(.check),
.label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.opt {
  font-weight: 400;
  color: var(--muted);
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--card);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: var(--dim);
}

.input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--mint);
}

textarea.input {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

select.input {
  padding-right: 42px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e695f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}

.field.error .input {
  border-color: var(--coral);
}

.field__err {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--coral);
}

.field.error .field__err {
  display: block;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

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

.check a {
  color: var(--ink);
  text-decoration: underline;
}

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

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

.form-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
}

.pass-wrap {
  position: relative;
}

.pass-wrap .input {
  padding-right: 92px;
}

.pass-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.success {
  padding: 40px 32px;
  border-radius: 22px;
  background: var(--mint);
  text-align: center;
}

.success h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.success p {
  color: var(--ink-2);
}

.success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
}

.success__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 3;
}

/* ===== ВХОД / РЕГИСТРАЦИЯ ===== */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth__art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  background: var(--mint);
  overflow: hidden;
}

.auth__art::before,
.auth__art::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.auth__art::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: 18%;
  background: var(--butter);
}

.auth__art::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -80px;
  background: var(--lilac);
}

.auth__art > * {
  position: relative;
  z-index: 1;
}

.auth__art blockquote {
  max-width: 460px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.3;
}

.auth__art figcaption {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-2);
}

.auth__art small {
  font-size: 13px;
  color: var(--ink-2);
}

.auth__main {
  display: flex;
  flex-direction: column;
  padding: 32px 48px;
}

.auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.auth__top a:not(.logo) {
  font-weight: 600;
  color: var(--ink);
}

.auth__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.auth__box {
  width: 100%;
  max-width: 420px;
}

.auth__box h1 {
  margin-bottom: 8px;
  font-size: 42px;
}

.auth__box .sub {
  margin-bottom: 28px;
  color: var(--muted);
}

.auth__box .field {
  margin-bottom: 16px;
}

.auth__alt {
  margin-top: 22px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.auth__alt a {
  font-weight: 600;
  color: var(--green);
}

.stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
}

.stepper i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.3s;
}

.stepper i.on {
  background: var(--green);
}

.picks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pick {
  position: relative;
}

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

.pick span {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pick input:checked + span {
  border-color: var(--green);
  background: var(--mint);
}

.pick input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.form-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.form-nav .btn--dark,
.form-nav .btn--green {
  flex: 1;
}

/* ===== ПРИЛОЖЕНИЕ ===== */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  height: 100dvh;
}

.app__side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: #fbfaf7;
}

.app__side .logo {
  padding: 0 8px 18px;
  font-size: 22px;
}

.app__side .logo__mark {
  width: 32px;
  height: 32px;
}

.workspace {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
}

.workspace b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.app__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.app__nav a:hover {
  background: var(--paper-2);
}

.app__nav a.on {
  background: var(--mint);
  color: var(--green-2);
  font-weight: 600;
}

.app__nav svg {
  width: 18px;
  height: 18px;
}

.app__nav small {
  display: block;
  margin: 18px 12px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}

.app__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.app__user .ava {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.app__user b {
  display: block;
}

.app__user a {
  margin-left: auto;
  color: var(--muted);
}

.app__user a svg {
  width: 18px;
  height: 18px;
}

.app__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.app__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.app__top h1 {
  margin-right: auto;
  font-size: 30px;
}

.app__top .search {
  max-width: 260px;
}

.app__top .search .input {
  height: 40px;
}

.app__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.app__stats b {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--ink);
}

.welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 24px 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--butter);
  font-size: 14px;
}

.welcome b {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
}

.welcome button {
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-2);
}

.kanban {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 14px;
  padding: 18px 24px 24px;
  overflow: auto;
}

.lane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 16px;
  background: var(--paper-2);
  transition: box-shadow 0.2s, background 0.2s;
}

.lane.over {
  background: var(--mint);
  box-shadow: inset 0 0 0 2px var(--green);
}

.lane__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 6px;
  font-size: 14px;
  font-weight: 600;
}

.lane__head i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.lane__head span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.lane__sum {
  padding: 0 14px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.lane__cards {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 10px 12px;
  overflow-y: auto;
}

.card-deal {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 14px;
  line-height: 1.35;
  cursor: grab;
  transition: box-shadow 0.2s, opacity 0.2s, transform 0.2s;
}

.card-deal:hover {
  box-shadow: var(--shadow);
}

.card-deal.dragging {
  opacity: 0.4;
  transform: rotate(2deg);
}

.card-deal b {
  display: block;
  font-weight: 600;
}

.card-deal small {
  font-size: 13px;
  color: var(--muted);
}

.card-deal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.card-deal__sum {
  font-family: var(--font-mono);
  font-size: 13px;
}

.card-deal__move {
  display: none;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-size: 12px;
}

.lane__add {
  margin: 0 10px 12px;
  padding: 10px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}

.lane__add:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ===== ПОДВАЛ ===== */
.footer {
  margin-top: 110px;
  padding: 72px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.footer__top h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}

.newsletter p {
  margin-bottom: 14px;
  color: var(--muted);
}

.newsletter form {
  display: flex;
  gap: 8px;
}

.newsletter .input {
  border-radius: 999px;
}

.newsletter .field {
  flex: 1;
}

.newsletter__ok {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--mint);
  font-weight: 600;
  color: var(--green-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.footer__brand p {
  max-width: 260px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.footer h4 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.footer__col a {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
  color: var(--ink-2);
}

.footer__col a:hover {
  color: var(--green);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer__bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3aa36b;
}

/* ===== УВЕДОМЛЕНИЕ ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  max-width: calc(100% - 32px);
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 20px 40px -14px rgba(28, 27, 25, 0.5);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ===== АНИМАЦИИ ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.pcard.reveal.visible:hover {
  transform: translateY(-4px);
}

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

@keyframes rise {
  from { height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

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

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1100px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tile,
  .tile--wide {
    grid-column: span 1;
  }

  .tile--full {
    grid-column: span 2;
  }

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

  .article > aside:last-child {
    display: none;
  }

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }

  .float-note--1 { right: -12px; }
  .float-note--2 { left: -12px; }
}

@media (max-width: 960px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 16px 28px 32px;
    background: var(--paper);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list > li {
    border-bottom: 1px solid var(--line);
  }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 0;
    border-radius: 0;
    font-family: var(--font-serif);
    font-size: 24px;
  }

  .nav__link:hover,
  .has-menu.open > .nav__link {
    background: none;
  }

  .mega {
    position: static;
    display: none;
    width: auto;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-menu.open .mega {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mega__promo {
    display: none;
  }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .nav__actions .btn {
    padding: 14px;
  }

  .nav__actions .btn--ghost {
    border-color: var(--line-2);
  }

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

  .window__side {
    display: none;
  }

  .float-note {
    display: none;
  }

  .trio,
  .values,
  .next {
    grid-template-columns: 1fr;
  }

  .pcard {
    min-height: 0;
  }

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

  .step,
  .step + .step {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .quote {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 32px;
  }

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

  .product {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .subnav {
    position: sticky;
    top: 74px;
    z-index: 5;
    display: flex;
    gap: 6px;
    margin: 0 -28px 32px;
    padding: 10px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .subnav::-webkit-scrollbar {
    display: none;
  }

  .subnav small {
    display: none;
  }

  .subnav a {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 14px;
  }

  .subnav a.active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0;
  }

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

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

  .case__side {
    position: static;
  }

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

  .stats div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .featured__cover {
    min-height: 220px;
  }

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

  .article,
  .legal {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .toc {
    display: none;
  }

  .story,
  .contact,
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .release {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .auth__art {
    display: none;
  }

  .auth__main {
    padding: 24px 28px;
  }

  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100vh;
  }

  .app__side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app__side .logo {
    padding: 0;
    margin-right: auto;
  }

  .workspace,
  .app__nav small,
  .app__user div {
    display: none;
  }

  .app__nav {
    display: flex;
    gap: 4px;
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .app__nav a {
    flex-shrink: 0;
  }

  .app__user {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .app__main {
    overflow: visible;
  }

  .kanban {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
  }

  .lane__cards {
    overflow: visible;
  }

  .card-deal__move {
    display: inline-block;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .nav {
    top: 66px;
    padding: 12px 18px 28px;
  }

  .header__inner {
    height: 66px;
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .showcase {
    margin-top: 44px;
  }

  .window__main {
    padding: 14px;
  }

  .board {
    grid-template-columns: repeat(4, 200px);
  }

  .logos__row {
    gap: 14px 30px;
  }

  .logos__row span {
    font-size: 18px;
  }

  .pcard {
    padding: 26px;
  }

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

  .tile,
  .tile--wide,
  .tile--full {
    grid-column: span 1;
  }

  .quote {
    padding: 32px 22px;
    border-radius: 24px;
  }

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

  .seats__form,
  .seats__result,
  .form-card {
    padding: 24px 20px;
  }

  .cta {
    padding: 56px 22px;
    border-radius: 24px;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .integrations,
  .posts {
    grid-template-columns: 1fr;
  }

  .search {
    max-width: none;
    flex-basis: 100%;
  }

  .case__metrics {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .case__metrics div {
    padding: 10px;
  }

  .case__metrics b {
    font-size: 22px;
  }

  .featured__body {
    padding: 26px;
  }

  .article-cover {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  .prose {
    font-size: 17px;
  }

  .prose h2 {
    font-size: 27px;
  }

  .team {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .job {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .job .btn {
    justify-self: start;
    margin-top: 8px;
  }

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

  .newsletter form {
    flex-direction: column;
  }

  .footer {
    margin-top: 76px;
  }

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

  .modal__box {
    padding: 26px 20px;
  }

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

  .phone {
    width: 230px;
  }

  .app__top {
    padding: 14px 16px;
  }

  .app__top .search {
    max-width: none;
    order: 3;
  }

  .app__stats,
  .kanban {
    padding-left: 16px;
    padding-right: 16px;
  }

  .welcome {
    margin: 14px 16px 0;
  }

  .auth__main {
    padding: 20px 18px;
  }

  .auth__box h1 {
    font-size: 34px;
  }
}
