/* Главная страница «Мои финансы». Цвета — из темы приложения «Бирюза и малина». */

@font-face { font-family: "Unbounded"; font-weight: 300 900; font-display: swap; src: url("/static/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-weight: 300 900; font-display: swap; src: url("/static/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+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Golos"; font-weight: 400 900; font-display: swap; src: url("/static/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; font-weight: 400 900; font-display: swap; src: url("/static/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Receipt"; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Receipt"; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }

:root {
  --mist: #e7eff1;        /* фон страницы */
  --surface: #ffffff;
  --ink: #0e2a33;         /* текст */
  --muted: #4b6670;
  --line: #c6d7dc;
  --teal: #34606f;        /* бирюза приложения */
  --deep: #1f3f4a;        /* верхняя панель приложения */
  --deeper: #0e2a33;
  --rasp: #d81b60;        /* малиновый — только действие */
  --rasp-soft: #f06292;
  --on-deep: #e6f1f3;
  --on-deep-muted: #a9c6cf;
  --paper: #fffdf8;       /* бумага чека */
  --print: #2a2a2a;
  --display: "Unbounded", "Golos", system-ui, sans-serif;
  --text: "Golos", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Receipt", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --mist: #0a1b21; --surface: #10282f; --ink: #e2edf0; --muted: #9bb4bc; --line: #23434d; --teal: #8cc3d4; --rasp: #f06292; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rasp-soft); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Плашка тестового сервера */
.testbar { background: #5c1131; color: #ffd9e2; text-align: center; font-size: 14px; padding: 6px 16px; }

/* Шапка — продолжение первого экрана */
.top { background: var(--deeper); color: var(--on-deep); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a, .nav-login { text-decoration: none; color: var(--on-deep-muted); }
.nav a:hover, .nav-login:hover { color: var(--on-deep); }
.nav-login { padding: 8px 16px; border: 1px solid #3d6370; border-radius: 999px; color: var(--on-deep); font-size: 15px; }

/* Первый экран */
.hero { background: linear-gradient(180deg, var(--deeper) 0%, var(--deep) 100%); color: var(--on-deep); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 56px 0 0; }
.hero-text { padding-bottom: 72px; }
h1 { font: 700 clamp(32px, 4.6vw, 54px)/1.06 var(--display); letter-spacing: -0.025em; margin: 0 0 24px; max-width: 12ch; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--on-deep-muted); max-width: 31rem; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--text);
  text-decoration: none; border: 0; cursor: pointer; }
.btn-main { background: var(--rasp); color: #fff; }
.btn-main:hover { background: #ad1457; }
.btn-quiet { color: var(--on-deep); box-shadow: inset 0 0 0 1px #4f7783; }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--on-deep); }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; font-size: 14px; color: var(--on-deep-muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rasp-soft); }

.hero-visual { position: relative; align-self: end; justify-self: end; width: min(360px, 100%); margin-right: 24px; }
.phone { position: relative; background: #061418; padding: 9px; border-radius: 38px; box-shadow: 0 0 0 1px #2b4b55, 0 40px 80px -30px rgba(3, 14, 18, 0.7); }
.phone img { border-radius: 30px; }
.phone-hero { margin-bottom: -120px; } /* телефон уходит за нижний край первого экрана */

/* Чек */
.receipt { position: absolute; left: -24%; bottom: 130px; width: 262px; transform: rotate(-4deg); filter: drop-shadow(0 18px 24px rgba(3, 14, 18, 0.45));
  animation: print 1.1s cubic-bezier(.2, .7, .2, 1) .35s both; }
.receipt-paper { --zig: 9px; background: var(--paper); color: var(--print); font: 500 12.5px/1.55 var(--mono); padding: 18px 18px calc(var(--zig) + 14px);
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%; }
.receipt-paper p { margin: 0; }
.r-center { text-align: center; letter-spacing: 0.08em; }
.r-small { font-size: 11px; color: #6b6b6b; letter-spacing: 0.02em; margin-bottom: 4px !important; }
.r-rule { border-top: 1.5px dashed #9a9a9a; margin: 8px 0 !important; }
.r-line { display: flex; gap: 6px; white-space: nowrap; }
.r-line span:first-child { flex: 1; overflow: hidden; }
.r-line span:first-child::after { content: " ............................................"; color: #9a9a9a; }
.r-total { font-size: 15px; font-weight: 500; }
.r-total span:first-child::after { content: ""; }
.r-note { font-size: 11.5px; color: #4a4a4a; }
.r-extra { color: #8a1240; }
.r-extra + .r-note { color: #8a1240; opacity: .8; }
.r-code { height: 30px; margin: 12px 0 2px !important;
  background: repeating-linear-gradient(90deg, var(--print) 0 2px, #0000 2px 4px, var(--print) 4px 5px, #0000 5px 8px, var(--print) 8px 11px, #0000 11px 12px); }
@keyframes print {
  from { clip-path: inset(0 0 100% 0); transform: rotate(-4deg) translateY(-18px); }
  to { clip-path: inset(0 0 -40px 0); transform: rotate(-4deg) translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .receipt { animation: none; } html { scroll-behavior: auto; } }

/* Заголовки разделов */
.section-title { font: 600 clamp(26px, 3.3vw, 40px)/1.12 var(--display); letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance; }
h3 { font: 600 clamp(20px, 2vw, 24px)/1.25 var(--display); letter-spacing: -0.015em; margin: 0 0 14px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

/* Возможности: телефон и текст, по очереди слева и справа */
.features { padding: 96px 0 40px; }
.feature { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: center; margin: 72px 0 0; }
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) 280px; }
.feature:nth-of-type(even) .phone { order: 2; }
.feature .phone { background: #061418; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -32px rgba(14, 42, 51, 0.55); }
.feature-text { max-width: 31rem; }
.feature-text p { color: var(--muted); }
.feature:nth-of-type(even) .feature-text { justify-self: end; }

.extras { margin: 112px 0 0; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); }
.extras ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.extras li { color: var(--muted); }
.extras strong { display: block; color: var(--ink); font-weight: 600; }

/* Приватность */
.privacy { background: var(--deep); color: var(--on-deep); padding: 96px 0; margin-top: 96px; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.privacy .section-title { max-width: 11ch; }
.privacy-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.privacy-list dt { font: 600 18px/1.3 var(--display); margin-bottom: 8px; }
.privacy-list dd { margin: 0; color: var(--on-deep-muted); }

/* Premium */
.premium { padding: 104px 0 24px; }
.premium-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.premium-text { max-width: 30rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan { background: var(--surface); border-radius: 22px; padding: 22px 22px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.plan-best { box-shadow: inset 0 0 0 2px var(--rasp); }
.plan-name { font-weight: 600; margin: 0 0 6px; }
.plan-price { font: 700 clamp(28px, 3vw, 36px)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 6px; }
.plan-note { color: var(--muted); font-size: 14px; margin: 0; }
.plans-cta { grid-column: 1 / -1; }

/* Вопросы */
.faq { padding: 96px 0 24px; }
.faq-wrap { max-width: 760px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 26px/1 var(--display); color: var(--teal); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); max-width: 40rem; margin: -4px 0 20px; }

.get { padding: 80px 0 96px; }
.get-wrap { max-width: 760px; }
.get p { color: var(--muted); }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--ink); }

/* Планшеты и телефоны */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-login { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 32px; gap: 8px; }
  .hero-text { padding-bottom: 24px; }
  .hero-visual { width: min(300px, 78%); justify-self: end; margin-right: 4%; }
  .receipt { left: -52%; bottom: 120px; width: 232px; font-size: 11.5px; }
  .features { padding-top: 72px; }
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .feature:nth-of-type(even) .phone { order: 0; }
  .feature:nth-of-type(even) .feature-text { justify-self: start; }
  .feature .phone { width: min(260px, 72%); }
  .extras { grid-template-columns: 1fr; gap: 16px; }
  .privacy-grid, .premium-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .extras ul, .privacy-list { grid-template-columns: 1fr; }
  .receipt { left: -44%; width: 200px; bottom: 96px; }
  .receipt-paper { padding: 14px 14px calc(var(--zig) + 10px); font-size: 10.5px; }
  .plans { grid-template-columns: 1fr; }
}
