/* CashMe — одностраничный сайт. Стиль презентации: Unbounded Black + Manrope, оранжевый, крем, розовый, тёплый чёрный. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(fonts/unbounded-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --orange: #ff4a1c;
  --cream: #fff6f2;
  --pink: #ffe4ec;
  --ink: #1e0d08;
  --rust: #b4462a;   /* мелкие подписи на креме, контраст 5:1 */
  --line: #e2d8d4;   /* тонкие разделители */

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 6.75vw, 128px);
  --radius: clamp(22px, 2.4vw, 36px);
  --gap: clamp(16px, 1.8vw, 28px);
}

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

html {
  background: var(--orange);   /* за краями страницы при прокрутке — цвет первого и последнего экранов */
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  font: 500 18px/1.55 var(--text);
  font-kerning: normal;
}

h1, h2, h3, p, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Пилюли — единственные «кнопки» сайта, как плашки в презентации */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.pill--ink { background: var(--ink); color: var(--cream); }
.pill--ink:hover { background: #3a1d14; }
.pill--big { min-height: 64px; padding: 18px 34px; font-size: clamp(17px, 1.5vw, 22px); }

/* Заголовки разделов — широкий капс, как на слайдах */
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 5.3vw, 96px);
  line-height: 1.08;   /* меньше — точки над Ё и бреве Й налезают на строку выше */
  letter-spacing: -0.01em;
  margin-bottom: clamp(36px, 4.6vw, 80px);
  text-wrap: balance;
}
.display--cream { color: var(--cream); }

/* ---------------------------------------------------------------- шапка и первый экран */
.top { background: var(--orange); }
.top__row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  padding-block: 20px;
}
.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav a { font-weight: 700; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.hero {
  background: var(--orange);
  padding-block: clamp(40px, 8vw, 150px) clamp(36px, 5vw, 88px);
}
.hero .wrap, .finale .wrap { container-type: inline-size; }
/* AICODE-NOTE: CASHME занимает ширину контейнера, как на титульном слайде: ширина слова в Unbounded Black ≈ 5,6 em,
   поэтому размер шрифта считается от ширины контейнера (cqw); 15,3vw — запас для браузеров без container queries. */
.hero__mark {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cream);
  font-size: 15.3vw;
  font-size: 17.6cqw;
  line-height: 0.8;
  letter-spacing: -0.02em;
}
.hero__lead {
  margin-top: clamp(28px, 5vw, 96px);
  max-width: 20ch;
  color: var(--cream);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 56px);
  line-height: 1.18;
}
.hero__stages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  margin-top: clamp(36px, 5vw, 80px);
  padding-top: clamp(20px, 2.2vw, 32px);
  border-top: 2px solid var(--ink);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 26px);
}
.hero__stages b { font-weight: 800; }

/* ---------------------------------------------------------------- разделы на креме */
.section { padding-block: clamp(80px, 10vw, 180px) 0; }
.section--tight { padding-top: clamp(96px, 11vw, 200px); }

h3 { font-weight: 700; font-size: clamp(21px, 1.8vw, 30px); line-height: 1.2; }

/* Проблема и демонстрация */
.idea {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.point { padding-block: 0 clamp(22px, 2.4vw, 34px); }
.point + .point {
  padding-top: clamp(22px, 2.4vw, 34px);
  border-top: 1.5px solid var(--line);
}
.point p { margin-top: 10px; max-width: 46ch; }

.demo {
  background: var(--pink);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 44px);
}
.demo__title { font-weight: 800; font-size: clamp(22px, 1.9vw, 30px); }

.chips {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  transition: background-color .15s, color .15s;
}
.chip:hover span { background: rgba(30, 13, 8, .07); }
.chip input:checked + span { background: var(--ink); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

.wallet {
  display: grid;
  gap: 10px;
  margin-top: clamp(22px, 2.4vw, 32px);
}
/* Карты — горизонтальные «пластики»: у каждой свой цвет, лучшая поднимается наверх */
.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 20px;
  border-radius: 18px;
}
.card--ink { background: var(--ink); color: var(--cream); }
.card--orange { background: var(--orange); color: var(--ink); }
.card--cream { background: var(--cream); color: var(--ink); }
.card--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.card__chip {
  width: 34px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) 50% 50% / 2px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat;
  opacity: .55;
}
.card__body { display: grid; gap: 2px; min-width: 0; }
.card__name { font-weight: 800; font-size: 17px; line-height: 1.3; }
.card__terms { font-weight: 500; font-size: 15px; line-height: 1.35; }
.card__rate {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 28px);
  white-space: nowrap;
}
.card__badge {
  display: none;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  vertical-align: 2px;
  white-space: nowrap;
}
.card--ink .card__badge { background: var(--cream); color: var(--ink); }
.card.is-best { outline: 3px solid var(--ink); outline-offset: 3px; }
.card.is-best .card__badge { display: inline-block; }
.card.is-out .card__terms { font-weight: 700; }

.demo__answer {
  margin-top: 22px;
  min-height: 3.1em;
  font-weight: 700;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  cursor: pointer;
}
.switch input {
  appearance: none;
  flex: none;
  width: 48px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: var(--ink);
  opacity: .35;
  position: relative;
  cursor: pointer;
  transition: opacity .15s;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform .2s;
}
.switch input:checked { opacity: 1; background: var(--orange); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.demo__note { margin-top: 14px; color: var(--rust); font-size: 15px; font-weight: 500; }

/* Прототип */
.mvp {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 96px);
  align-items: stretch;
}
.mvp__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(26px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--orange);
}
.mvp__big {
  font-family: var(--display);
  font-weight: 900;
  color: var(--cream);
  font-size: clamp(56px, 6vw, 110px);
  line-height: 0.9;
}
.mvp__text { font-weight: 700; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; max-width: 24ch; }
.row { padding-block: clamp(20px, 2.2vw, 30px); }
.row:first-child { padding-top: 0; }
.row + .row { border-top: 1.5px solid var(--line); }
.row p { margin-top: 8px; max-width: 60ch; }

/* Тёмная полоса — главный тезис раздела, как на слайдах */
.bar {
  margin-top: clamp(36px, 4vw, 64px);
  padding: clamp(18px, 1.8vw, 26px) clamp(24px, 2.6vw, 40px);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 26px);
  line-height: 1.3;
}

/* Путь к оплате телефоном: три состояния, как на слайде «Развитие продукта» */
.stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.stage {
  display: flex;
  flex-direction: column;
  min-height: clamp(250px, 21vw, 340px);
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--radius);
}
.stage__when { font-weight: 700; font-size: 16px; color: var(--rust); }
.stage__title {
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 44px);
  line-height: 1.05;
}
.stage p:last-child { margin-top: 16px; max-width: 32ch; }
.stage--pink { background: var(--pink); }
.stage--line { box-shadow: inset 0 0 0 2px var(--orange); }
.stage--orange { background: var(--orange); }
.stage--orange .stage__when { color: var(--ink); }
.stage--orange .stage__title { color: var(--cream); }

/* Команда */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.person__photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--pink);
}
.person__photo img {
  width: auto;
  height: 94%;
  max-width: 92%;
  object-fit: contain;
  object-position: 50% 100%;
}
.person__name {
  margin-top: clamp(22px, 2.4vw, 36px);
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(26px, 2.6vw, 44px);
  line-height: 1;
}
.person__role { margin-top: 14px; color: var(--orange); font-weight: 700; font-size: clamp(19px, 1.6vw, 26px); }
.person__about { margin-top: 12px; font-weight: 600; }

/* ---------------------------------------------------------------- финал на оранжевом */
.finale {
  margin-top: clamp(96px, 11vw, 200px);
  padding-block: clamp(72px, 9vw, 150px) 28px;
  background: var(--orange);
}
.partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.partners li {
  padding: clamp(22px, 2.6vw, 38px);
  border-radius: var(--radius);
  background: var(--pink);
}
.partners h3 { font-weight: 800; font-size: clamp(20px, 1.7vw, 28px); }
.partners p { margin-top: 10px; }

.slogan {
  margin-top: clamp(64px, 8vw, 140px);
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cream);
  font-size: 6.2vw;
  font-size: max(34px, 6.4cqw);   /* самая длинная строка «Получай максимум» ≈ 15,3 em */
  line-height: 1.12;   /* меньше — бреве над Й касается строки выше */
  letter-spacing: -0.015em;
}
.slogan span { display: block; }
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: clamp(36px, 4vw, 64px);
}
.contact__handle { font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(72px, 8vw, 140px);
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-weight: 700;
  font-size: 16px;
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- адаптивность */
@media (max-width: 1100px) {
  .idea, .mvp { grid-template-columns: minmax(0, 1fr); }
  .mvp__card { flex-direction: row; align-items: flex-end; }
  .mvp__text { max-width: 26ch; }
}

@media (max-width: 900px) {
  .stages, .team { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 0; }
  .stage__title { margin-top: 0; padding-top: 20px; }
  .team { gap: 48px; }
  .person__photo { aspect-ratio: 5 / 4; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .top__row { justify-content: space-between; }
  .partners { grid-template-columns: minmax(0, 1fr); }
  .bar { border-radius: 26px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero__stages { grid-template-columns: minmax(0, 1fr); }
  .mvp__card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .card { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; min-height: 68px; }
  .card__chip { display: none; }
  .card__badge { display: none !important; }
  .card.is-best .card__name::after { content: " — платите этой"; font-weight: 700; }
  .pill--big { white-space: normal; }
}

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