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

@font-face { font-family: "Unbounded"; font-weight: 300 900; font-display: block; 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: block; 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: block; 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: block; 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: block; 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: block; 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-fill: #d81b60;   /* фон кнопок под белым текстом — одинаковый в обеих темах (контраст ≥ 4,5:1) */
  color-scheme: light dark;
  --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; white-space: nowrap; }
/* Ссылка на страницу студии — тихая, рядом с кнопкой кабинета */
.nav-studio { color: var(--on-deep-muted); text-decoration: none; font-size: 15px; white-space: nowrap; margin-right: -12px; }
.nav-studio:hover { color: var(--on-deep); }

/* Первый экран */
.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: 8.8em; 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-fill); 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: 7.6em; }
.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; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--display); color: var(--teal); transition: transform .2s ease; }
.faq 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-studio { margin-left: auto; }
  .nav-login { margin-left: auto; }
  .nav-studio + .nav-login { margin-left: 0; }
  .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; }
  .nav-studio { display: none; }
  .nav-login, .nav-studio + .nav-login { margin-left: auto; }
  .receipt { left: -20%; width: 200px; bottom: 40px; } /* чек целиком на экране, а не обрезан краем */
  .receipt-paper { padding: 14px 14px calc(var(--zig) + 10px); font-size: 10.5px; }
  .plans { grid-template-columns: 1fr; }
}

/* --- Цвет и значки: свои линейные значки (inline SVG), цвет — от текста --- */
.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root { --t-teal: #d4e8ee; --t-rasp: #fbe1ea; --t-blue: #dde9fb; --t-amber: #fbedd3; --t-violet: #e9e5fb; }
@media (prefers-color-scheme: dark) { :root { --t-teal: #143640; --t-rasp: #3a1a28; --t-blue: #16294a; --t-amber: #3a2e15; --t-violet: #26204a; } }

/* Свечение за телефоном первого экрана */
.hero-visual::before { content: ""; position: absolute; z-index: 0; inset: 8% -30% 10% -10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 98, 146, .35), rgba(240, 98, 146, 0) 70%), radial-gradient(closest-side at 70% 30%, rgba(140, 195, 212, .35), rgba(140, 195, 212, 0) 70%);
  filter: blur(10px); }
.phone-hero, .receipt { z-index: 1; }

/* Значок возможности и цветная подложка за телефоном */
.f-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 14px; background: var(--tone); }
.f-ic .i { width: 28px; height: 28px; color: var(--ink); }
.feature.tone-teal { --tone: var(--t-teal); } .feature.tone-rasp { --tone: var(--t-rasp); } .feature.tone-blue { --tone: var(--t-blue); }
.feature.tone-amber { --tone: var(--t-amber); } .feature.tone-violet { --tone: var(--t-violet); }
.feature .phone { isolation: isolate; }
.feature .phone::before { content: ""; position: absolute; z-index: -1; inset: 8% -18% -6% -18%; border-radius: 44px; background: var(--tone); }

/* «И ещё» — плитки */
.extras ul { gap: 12px; }
.extras li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.extras li .i { width: 26px; height: 26px; flex: none; margin-top: 1px; color: var(--teal); transition: transform .3s cubic-bezier(.2, .7, .2, 1.3); }
.extras li span { display: block; }

/* Тарифы ярче */
.plan-best { background: linear-gradient(160deg, #fff 0%, #fff 55%, #fde7ef 100%); position: relative; }
@media (prefers-color-scheme: dark) { .plan-best { background: linear-gradient(160deg, var(--surface) 0%, var(--surface) 55%, #3a1a28 100%); } }
.plan-best::after { content: "выгоднее"; position: absolute; top: -10px; right: 16px; background: var(--rasp-fill); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }

/* Финальная полоса */
.get { padding: 64px 0 88px; }
.get-band { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding: 32px 36px; border-radius: 28px; color: #fff;
  background: linear-gradient(120deg, #0e2a33 0%, #1f3f4a 45%, #8a1240 100%); max-width: none; }
.get-band .section-title { color: #fff; margin-bottom: 8px; }
.get-band p { color: #e6d3dc; margin: 0; max-width: 34rem; }
.get-icon { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.get-text { flex: 1 1 320px; }
.btn-light { background: #fff; color: #0e2a33; }
.btn-light:hover { background: #fce4ec; }
@media (max-width: 560px) { .get-band { padding: 24px; } .get-icon { width: 64px; height: 64px; } }

/* --- Движение. Только CSS (скрипты на сайте запрещены политикой безопасности). Всё — через transform и opacity,
   поэтому соседние блоки не сдвигаются. При «Уменьшить движение» остаются только смены цвета. --- */

/* Отклик на наведение и нажатие */
.extras li, .plan, .btn, .lk-card, .nav-login, .app-tab { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, background-color .2s ease, color .2s ease; }
.btn:active, .nav-login:active, .app-tab:active { transform: translateY(1px) scale(.98); transition-duration: .08s; }
.nav a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size .3s ease, color .2s ease; }
.nav a:hover, .nav a:focus-visible { background-size: 100% 1.5px; }
.brand img { transition: transform .4s cubic-bezier(.2, .7, .2, 1.3); }
@media (hover: hover) {
  .brand:hover img { transform: rotate(-8deg) scale(1.06); }
  .nav-login:hover { background-color: rgba(255, 255, 255, .08); }
  .extras li:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -22px rgba(14, 42, 51, .55); }
  .extras li:hover .i { transform: scale(1.12) rotate(-6deg); }
  .plan:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 20px 36px -24px rgba(14, 42, 51, .5); }
  .plan-best:hover { box-shadow: inset 0 0 0 2px var(--rasp), 0 20px 36px -22px rgba(216, 27, 96, .45); }
  .btn:hover { transform: translateY(-2px); }
  .btn-main:hover { box-shadow: 0 12px 22px -14px var(--rasp-fill); }
  .feature .phone img { transition: transform .4s ease; }
  .feature:hover .phone img { transform: scale(1.015); }
  .faq summary:hover { color: var(--teal); }
}
.faq summary { transition: color .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .extras li, .plan, .btn, .lk-card, .nav-login, .app-tab, .brand img, .extras li .i { transition-property: background-color, color, box-shadow; }
  .feature .phone img { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Первый экран: текст поднимается по очереди, пока печатается чек */
  .hero-text > * { animation: rise-in .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .1s; }
  .hero-text > :nth-child(3) { animation-delay: .2s; }
  .hero-text > :nth-child(4) { animation-delay: .3s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .phone-hero { animation: phone-in 1s cubic-bezier(.2, .7, .2, 1) both, float 7s ease-in-out 1.6s infinite; }
  @keyframes phone-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
  /* Телефон первого экрана слегка «парит» после того, как чек допечатался */
  @keyframes float { 50% { transform: translateY(-10px); } }

  /* Свечение за телефоном медленно перетекает */
  .hero-visual::before { animation: glow 16s ease-in-out infinite alternate; }
  @keyframes glow { 50% { transform: translate(-8%, 6%) scale(1.08) rotate(8deg); } to { transform: translate(6%, -4%) scale(.96) rotate(-6deg); } }

  /* Пункты под кнопками загораются точкой по очереди */
  .hero-facts li::before { animation: blink .5s ease-out both; }
  .hero-facts li:nth-child(1)::before { animation-delay: .9s; }
  .hero-facts li:nth-child(2)::before { animation-delay: 1.05s; }
  .hero-facts li:nth-child(3)::before { animation-delay: 1.2s; }
  @keyframes blink { from { transform: scale(0); } 60% { transform: scale(1.8); } to { transform: none; } }

  /* Появление при прокрутке. translate и rotate — отдельными свойствами, чтобы не спорить с transform при наведении */
  @supports (animation-timeline: view()) {
    .feature .feature-text, .extras li, .privacy-list > div, .premium .plan, .faq details, .get-band {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 28%;
    }
    .extras li:nth-child(even), .privacy-list > div:nth-child(even) { animation-range: entry 10% cover 32%; }
    .feature .phone { animation: from-left linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
    .feature:nth-of-type(even) .phone { animation-name: from-right; }
    @keyframes rise { from { opacity: 0; translate: 0 42px; } to { opacity: 1; translate: none; } }
    @keyframes from-left { from { opacity: 0; translate: -60px 0; rotate: -3deg; } to { opacity: 1; translate: none; rotate: none; } }
    @keyframes from-right { from { opacity: 0; translate: 60px 0; rotate: 3deg; } to { opacity: 1; translate: none; rotate: none; } }

    /* Цветная подложка за телефоном отстаёт от него при прокрутке — получается глубина */
    .feature .phone::before { animation: lag linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes lag { from { translate: 0 48px; } to { translate: 0 -48px; } }

    /* Значок возможности прорисовывается линией */
    .feature .f-ic { animation: pop linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    .feature .f-ic .i > * { stroke-dasharray: 1; animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 42%; }
    @keyframes pop { from { opacity: 0; scale: .6; rotate: -12deg; } to { opacity: 1; scale: none; rotate: none; } }
    @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  }

  /* Ответы раскрываются плавно (где браузер это умеет) */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    details::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
    details[open]::details-content { height: auto; }
  }
}

/* После удаления аккаунта — над шапкой главной */
.donebar { background: #1b5e20; color: #e8f5e9; text-align: center; font-size: 14px; padding: 8px 16px; }
@media (max-width: 900px) { .privacy .section-title { max-width: none; } }

/* Пробный период — под описанием Premium */
.trial-note { display: inline-block; padding: 10px 16px; border-radius: 14px; background: var(--t-teal, rgba(52, 96, 111, .12)); font-weight: 500; }
.family-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15px; }

/* Страница приложения в разработке: вместо кнопки оформления — пояснение */
.plans-soon { grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
